Linear.Matrix:det44 from linear-1.19.1.3

Percentage Accurate: 29.9% → 42.3%
Time: 24.8s
Alternatives: 28
Speedup: 5.6×

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 28 alternatives:

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

Initial Program: 29.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: 42.3% accurate, 2.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot y0 - a \cdot y1\\ t_2 := k \cdot y2 - j \cdot y3\\ t_3 := j \cdot t - k \cdot y\\ t_4 := y1 \cdot y4 - y0 \cdot y5\\ t_5 := c \cdot y4 - a \cdot y5\\ t_6 := y2 \cdot \left(\mathsf{fma}\left(k, t\_4, x \cdot t\_1\right) - t \cdot t\_5\right)\\ \mathbf{if}\;y2 \leq -2.5 \cdot 10^{+246}:\\ \;\;\;\;t\_6\\ \mathbf{elif}\;y2 \leq -7.3 \cdot 10^{+74}:\\ \;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot t\_2, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;y2 \leq -3.4 \cdot 10^{-109}:\\ \;\;\;\;y4 \cdot \left(\mathsf{fma}\left(b, t\_3, y1 \cdot t\_2\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\ \mathbf{elif}\;y2 \leq 9.8 \cdot 10^{-251}:\\ \;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot t\_3\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\ \mathbf{elif}\;y2 \leq 5.8 \cdot 10^{-38}:\\ \;\;\;\;\left(-y3\right) \cdot \left(\mathsf{fma}\left(j, t\_4, z \cdot t\_1\right) - y \cdot t\_5\right)\\ \mathbf{elif}\;y2 \leq 6.4 \cdot 10^{+71}:\\ \;\;\;\;x \cdot \left(\mathsf{fma}\left(y, a \cdot b - c \cdot i, y2 \cdot t\_1\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\ \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 (- (* c y0) (* a y1)))
        (t_2 (- (* k y2) (* j y3)))
        (t_3 (- (* j t) (* k y)))
        (t_4 (- (* y1 y4) (* y0 y5)))
        (t_5 (- (* c y4) (* a y5)))
        (t_6 (* y2 (- (fma k t_4 (* x t_1)) (* t t_5)))))
   (if (<= y2 -2.5e+246)
     t_6
     (if (<= y2 -7.3e+74)
       (* y0 (fma -1.0 (* y5 t_2) (* c (- (* x y2) (* y3 z)))))
       (if (<= y2 -3.4e-109)
         (* y4 (- (fma b t_3 (* y1 t_2)) (* c (- (* t y2) (* y y3)))))
         (if (<= y2 9.8e-251)
           (*
            (- i)
            (-
             (fma c (- (* x y) (* t z)) (* y5 t_3))
             (* y1 (- (* j x) (* k z)))))
           (if (<= y2 5.8e-38)
             (* (- y3) (- (fma j t_4 (* z t_1)) (* y t_5)))
             (if (<= y2 6.4e+71)
               (*
                x
                (-
                 (fma y (- (* a b) (* c i)) (* y2 t_1))
                 (* j (- (* b y0) (* i y1)))))
               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 = (c * y0) - (a * y1);
	double t_2 = (k * y2) - (j * y3);
	double t_3 = (j * t) - (k * y);
	double t_4 = (y1 * y4) - (y0 * y5);
	double t_5 = (c * y4) - (a * y5);
	double t_6 = y2 * (fma(k, t_4, (x * t_1)) - (t * t_5));
	double tmp;
	if (y2 <= -2.5e+246) {
		tmp = t_6;
	} else if (y2 <= -7.3e+74) {
		tmp = y0 * fma(-1.0, (y5 * t_2), (c * ((x * y2) - (y3 * z))));
	} else if (y2 <= -3.4e-109) {
		tmp = y4 * (fma(b, t_3, (y1 * t_2)) - (c * ((t * y2) - (y * y3))));
	} else if (y2 <= 9.8e-251) {
		tmp = -i * (fma(c, ((x * y) - (t * z)), (y5 * t_3)) - (y1 * ((j * x) - (k * z))));
	} else if (y2 <= 5.8e-38) {
		tmp = -y3 * (fma(j, t_4, (z * t_1)) - (y * t_5));
	} else if (y2 <= 6.4e+71) {
		tmp = x * (fma(y, ((a * b) - (c * i)), (y2 * t_1)) - (j * ((b * y0) - (i * y1))));
	} 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 = Float64(Float64(c * y0) - Float64(a * y1))
	t_2 = Float64(Float64(k * y2) - Float64(j * y3))
	t_3 = Float64(Float64(j * t) - Float64(k * y))
	t_4 = Float64(Float64(y1 * y4) - Float64(y0 * y5))
	t_5 = Float64(Float64(c * y4) - Float64(a * y5))
	t_6 = Float64(y2 * Float64(fma(k, t_4, Float64(x * t_1)) - Float64(t * t_5)))
	tmp = 0.0
	if (y2 <= -2.5e+246)
		tmp = t_6;
	elseif (y2 <= -7.3e+74)
		tmp = Float64(y0 * fma(-1.0, Float64(y5 * t_2), Float64(c * Float64(Float64(x * y2) - Float64(y3 * z)))));
	elseif (y2 <= -3.4e-109)
		tmp = Float64(y4 * Float64(fma(b, t_3, Float64(y1 * t_2)) - Float64(c * Float64(Float64(t * y2) - Float64(y * y3)))));
	elseif (y2 <= 9.8e-251)
		tmp = Float64(Float64(-i) * Float64(fma(c, Float64(Float64(x * y) - Float64(t * z)), Float64(y5 * t_3)) - Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))));
	elseif (y2 <= 5.8e-38)
		tmp = Float64(Float64(-y3) * Float64(fma(j, t_4, Float64(z * t_1)) - Float64(y * t_5)));
	elseif (y2 <= 6.4e+71)
		tmp = Float64(x * Float64(fma(y, Float64(Float64(a * b) - Float64(c * i)), Float64(y2 * t_1)) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1)))));
	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[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(y2 * N[(N[(k * t$95$4 + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(t * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -2.5e+246], t$95$6, If[LessEqual[y2, -7.3e+74], N[(y0 * N[(-1.0 * N[(y5 * t$95$2), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -3.4e-109], N[(y4 * N[(N[(b * t$95$3 + N[(y1 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 9.8e-251], N[((-i) * N[(N[(c * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y5 * t$95$3), $MachinePrecision]), $MachinePrecision] - N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 5.8e-38], N[((-y3) * N[(N[(j * t$95$4 + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 6.4e+71], N[(x * N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$6]]]]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := k \cdot y2 - j \cdot y3\\
t_3 := j \cdot t - k \cdot y\\
t_4 := y1 \cdot y4 - y0 \cdot y5\\
t_5 := c \cdot y4 - a \cdot y5\\
t_6 := y2 \cdot \left(\mathsf{fma}\left(k, t\_4, x \cdot t\_1\right) - t \cdot t\_5\right)\\
\mathbf{if}\;y2 \leq -2.5 \cdot 10^{+246}:\\
\;\;\;\;t\_6\\

\mathbf{elif}\;y2 \leq -7.3 \cdot 10^{+74}:\\
\;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot t\_2, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\

\mathbf{elif}\;y2 \leq -3.4 \cdot 10^{-109}:\\
\;\;\;\;y4 \cdot \left(\mathsf{fma}\left(b, t\_3, y1 \cdot t\_2\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\

\mathbf{elif}\;y2 \leq 9.8 \cdot 10^{-251}:\\
\;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot t\_3\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\

\mathbf{elif}\;y2 \leq 5.8 \cdot 10^{-38}:\\
\;\;\;\;\left(-y3\right) \cdot \left(\mathsf{fma}\left(j, t\_4, z \cdot t\_1\right) - y \cdot t\_5\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if y2 < -2.49999999999999988e246 or 6.40000000000000046e71 < y2

    1. Initial program 26.3%

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

      \[\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 rewrites66.8%

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

      if -2.49999999999999988e246 < y2 < -7.3000000000000005e74

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

          \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
        2. Taylor expanded in b around 0

          \[\leadsto y0 \cdot \left(-1 \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \color{blue}{c \cdot \left(x \cdot y2 - y3 \cdot z\right)}\right) \]
        3. Step-by-step derivation
          1. Applied rewrites54.9%

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

          if -7.3000000000000005e74 < y2 < -3.40000000000000012e-109

          1. Initial program 30.5%

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

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

            if -3.40000000000000012e-109 < y2 < 9.7999999999999994e-251

            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. Step-by-step derivation
              1. Applied rewrites55.8%

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

              if 9.7999999999999994e-251 < y2 < 5.79999999999999988e-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}{-1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, y1 \cdot y4 - y0 \cdot y5, z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]

                if 5.79999999999999988e-38 < y2 < 6.40000000000000046e71

                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}{x \cdot \left(\mathsf{fma}\left(y, a \cdot b - c \cdot i, y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                5. Recombined 6 regimes into one program.
                6. Final simplification60.4%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -2.5 \cdot 10^{+246}:\\ \;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{elif}\;y2 \leq -7.3 \cdot 10^{+74}:\\ \;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;y2 \leq -3.4 \cdot 10^{-109}:\\ \;\;\;\;y4 \cdot \left(\mathsf{fma}\left(b, j \cdot t - k \cdot y, y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\ \mathbf{elif}\;y2 \leq 9.8 \cdot 10^{-251}:\\ \;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot \left(j \cdot t - k \cdot y\right)\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\ \mathbf{elif}\;y2 \leq 5.8 \cdot 10^{-38}:\\ \;\;\;\;\left(-y3\right) \cdot \left(\mathsf{fma}\left(j, y1 \cdot y4 - y0 \cdot y5, z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{elif}\;y2 \leq 6.4 \cdot 10^{+71}:\\ \;\;\;\;x \cdot \left(\mathsf{fma}\left(y, a \cdot b - c \cdot i, y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \end{array} \]
                7. Add Preprocessing

                Alternative 2: 52.8% accurate, 0.5× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot y2 - y \cdot y3\\ t_2 := k \cdot y2 - j \cdot y3\\ t_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) - t\_1 \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + t\_2 \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\ \mathbf{if}\;t\_3 \leq \infty:\\ \;\;\;\;t\_3\\ \mathbf{else}:\\ \;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(i, j \cdot t - k \cdot y, y0 \cdot t\_2\right) - a \cdot t\_1\right)\\ \end{array} \end{array} \]
                (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                 :precision binary64
                 (let* ((t_1 (- (* t y2) (* y y3)))
                        (t_2 (- (* k y2) (* j y3)))
                        (t_3
                         (+
                          (-
                           (+
                            (+
                             (-
                              (* (- (* 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_1 (- (* y4 c) (* y5 a))))
                          (* t_2 (- (* y4 y1) (* y5 y0))))))
                   (if (<= t_3 INFINITY)
                     t_3
                     (* (- y5) (- (fma i (- (* j t) (* k y)) (* y0 t_2)) (* 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 = (t * y2) - (y * y3);
                	double t_2 = (k * y2) - (j * y3);
                	double t_3 = (((((((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_1 * ((y4 * c) - (y5 * a)))) + (t_2 * ((y4 * y1) - (y5 * y0)));
                	double tmp;
                	if (t_3 <= ((double) INFINITY)) {
                		tmp = t_3;
                	} else {
                		tmp = -y5 * (fma(i, ((j * t) - (k * y)), (y0 * t_2)) - (a * 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(t * y2) - Float64(y * y3))
                	t_2 = Float64(Float64(k * y2) - Float64(j * y3))
                	t_3 = 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(t_1 * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(t_2 * Float64(Float64(y4 * y1) - Float64(y5 * y0))))
                	tmp = 0.0
                	if (t_3 <= Inf)
                		tmp = t_3;
                	else
                		tmp = Float64(Float64(-y5) * Float64(fma(i, Float64(Float64(j * t) - Float64(k * y)), Float64(y0 * t_2)) - Float64(a * 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[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = 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[(t$95$1 * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, Infinity], t$95$3, N[((-y5) * N[(N[(i * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] + N[(y0 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(a * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := t \cdot y2 - y \cdot y3\\
                t_2 := k \cdot y2 - j \cdot y3\\
                t_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) - t\_1 \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + t\_2 \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
                \mathbf{if}\;t\_3 \leq \infty:\\
                \;\;\;\;t\_3\\
                
                \mathbf{else}:\\
                \;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(i, j \cdot t - k \cdot y, y0 \cdot t\_2\right) - a \cdot t\_1\right)\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0

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

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

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

                  Alternative 3: 37.3% accurate, 2.1× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := y4 \cdot \left(j \cdot t - k \cdot y\right)\\ t_2 := k \cdot y2 - j \cdot y3\\ \mathbf{if}\;y4 \leq -1.55 \cdot 10^{+165}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot t\_2\right)\\ \mathbf{elif}\;y4 \leq -2.9 \cdot 10^{-12}:\\ \;\;\;\;b \cdot t\_1\\ \mathbf{elif}\;y4 \leq 1.75 \cdot 10^{-214}:\\ \;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot t\_2, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;y4 \leq 1.55 \cdot 10^{-37}:\\ \;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{elif}\;y4 \leq 5 \cdot 10^{+28}:\\ \;\;\;\;i \cdot \left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, t\_1\right) - y0 \cdot \left(j \cdot x - k \cdot z\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 (* y4 (- (* j t) (* k y)))) (t_2 (- (* k y2) (* j y3))))
                     (if (<= y4 -1.55e+165)
                       (* y1 (* y4 t_2))
                       (if (<= y4 -2.9e-12)
                         (* b t_1)
                         (if (<= y4 1.75e-214)
                           (* y0 (fma -1.0 (* y5 t_2) (* c (- (* x y2) (* y3 z)))))
                           (if (<= y4 1.55e-37)
                             (*
                              y2
                              (-
                               (fma k (- (* y1 y4) (* y0 y5)) (* x (- (* c y0) (* a y1))))
                               (* t (- (* c y4) (* a y5)))))
                             (if (<= y4 5e+28)
                               (* i (* t (fma -1.0 (* j y5) (* c z))))
                               (*
                                b
                                (-
                                 (fma a (- (* x y) (* t z)) t_1)
                                 (* y0 (- (* j x) (* k z))))))))))))
                  double code(double x, double y, double z, double t, double 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 * ((j * t) - (k * y));
                  	double t_2 = (k * y2) - (j * y3);
                  	double tmp;
                  	if (y4 <= -1.55e+165) {
                  		tmp = y1 * (y4 * t_2);
                  	} else if (y4 <= -2.9e-12) {
                  		tmp = b * t_1;
                  	} else if (y4 <= 1.75e-214) {
                  		tmp = y0 * fma(-1.0, (y5 * t_2), (c * ((x * y2) - (y3 * z))));
                  	} else if (y4 <= 1.55e-37) {
                  		tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * ((c * y0) - (a * y1)))) - (t * ((c * y4) - (a * y5))));
                  	} else if (y4 <= 5e+28) {
                  		tmp = i * (t * fma(-1.0, (j * y5), (c * z)));
                  	} else {
                  		tmp = b * (fma(a, ((x * y) - (t * z)), t_1) - (y0 * ((j * x) - (k * z))));
                  	}
                  	return tmp;
                  }
                  
                  function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                  	t_1 = Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))
                  	t_2 = Float64(Float64(k * y2) - Float64(j * y3))
                  	tmp = 0.0
                  	if (y4 <= -1.55e+165)
                  		tmp = Float64(y1 * Float64(y4 * t_2));
                  	elseif (y4 <= -2.9e-12)
                  		tmp = Float64(b * t_1);
                  	elseif (y4 <= 1.75e-214)
                  		tmp = Float64(y0 * fma(-1.0, Float64(y5 * t_2), Float64(c * Float64(Float64(x * y2) - Float64(y3 * z)))));
                  	elseif (y4 <= 1.55e-37)
                  		tmp = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5)))));
                  	elseif (y4 <= 5e+28)
                  		tmp = Float64(i * Float64(t * fma(-1.0, Float64(j * y5), Float64(c * z))));
                  	else
                  		tmp = Float64(b * Float64(fma(a, Float64(Float64(x * y) - Float64(t * z)), t_1) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z)))));
                  	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[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.55e+165], N[(y1 * N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2.9e-12], N[(b * t$95$1), $MachinePrecision], If[LessEqual[y4, 1.75e-214], N[(y0 * N[(-1.0 * N[(y5 * t$95$2), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.55e-37], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 5e+28], N[(i * N[(t * N[(-1.0 * N[(j * y5), $MachinePrecision] + N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := y4 \cdot \left(j \cdot t - k \cdot y\right)\\
                  t_2 := k \cdot y2 - j \cdot y3\\
                  \mathbf{if}\;y4 \leq -1.55 \cdot 10^{+165}:\\
                  \;\;\;\;y1 \cdot \left(y4 \cdot t\_2\right)\\
                  
                  \mathbf{elif}\;y4 \leq -2.9 \cdot 10^{-12}:\\
                  \;\;\;\;b \cdot t\_1\\
                  
                  \mathbf{elif}\;y4 \leq 1.75 \cdot 10^{-214}:\\
                  \;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot t\_2, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
                  
                  \mathbf{elif}\;y4 \leq 1.55 \cdot 10^{-37}:\\
                  \;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
                  
                  \mathbf{elif}\;y4 \leq 5 \cdot 10^{+28}:\\
                  \;\;\;\;i \cdot \left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right)\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, t\_1\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 6 regimes
                  2. if y4 < -1.5500000000000001e165

                    1. Initial program 28.4%

                      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                    2. Add Preprocessing
                    3. Taylor expanded in 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. Step-by-step derivation
                      1. Applied rewrites47.4%

                        \[\leadsto \color{blue}{y1 \cdot \left(\mathsf{fma}\left(-1, a \cdot \left(x \cdot y2 - y3 \cdot z\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)} \]
                      2. Taylor expanded in y4 around inf

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

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

                        if -1.5500000000000001e165 < y4 < -2.9000000000000002e-12

                        1. Initial program 25.6%

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

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

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

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

                            if -2.9000000000000002e-12 < y4 < 1.75e-214

                            1. Initial program 42.6%

                              \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                            2. Add Preprocessing
                            3. Taylor expanded in 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. Step-by-step derivation
                              1. Applied rewrites50.0%

                                \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                              2. Taylor expanded in b around 0

                                \[\leadsto y0 \cdot \left(-1 \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \color{blue}{c \cdot \left(x \cdot y2 - y3 \cdot z\right)}\right) \]
                              3. Step-by-step derivation
                                1. Applied rewrites52.3%

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

                                if 1.75e-214 < y4 < 1.54999999999999997e-37

                                1. Initial program 26.6%

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

                                  \[\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 rewrites60.5%

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

                                  if 1.54999999999999997e-37 < y4 < 4.99999999999999957e28

                                  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. Step-by-step derivation
                                    1. Applied rewrites46.5%

                                      \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot \left(j \cdot t - k \cdot y\right)\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\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 rewrites62.7%

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

                                      if 4.99999999999999957e28 < y4

                                      1. Initial program 29.1%

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

                                          \[\leadsto \color{blue}{b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                      5. Recombined 6 regimes into one program.
                                      6. Add Preprocessing

                                      Alternative 4: 42.3% accurate, 2.3× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := k \cdot y2 - j \cdot y3\\ t_2 := y4 \cdot \left(\mathsf{fma}\left(b, j \cdot t - k \cdot y, y1 \cdot t\_1\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\ \mathbf{if}\;y4 \leq -2.6 \cdot 10^{-26}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;y4 \leq 1.75 \cdot 10^{-214}:\\ \;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot t\_1, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;y4 \leq 1.55 \cdot 10^{-37}:\\ \;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{elif}\;y4 \leq 3.25 \cdot 10^{+40}:\\ \;\;\;\;i \cdot \left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                                      (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                       :precision binary64
                                       (let* ((t_1 (- (* k y2) (* j y3)))
                                              (t_2
                                               (*
                                                y4
                                                (-
                                                 (fma b (- (* j t) (* k y)) (* y1 t_1))
                                                 (* c (- (* t y2) (* y y3)))))))
                                         (if (<= y4 -2.6e-26)
                                           t_2
                                           (if (<= y4 1.75e-214)
                                             (* y0 (fma -1.0 (* y5 t_1) (* c (- (* x y2) (* y3 z)))))
                                             (if (<= y4 1.55e-37)
                                               (*
                                                y2
                                                (-
                                                 (fma k (- (* y1 y4) (* y0 y5)) (* x (- (* c y0) (* a y1))))
                                                 (* t (- (* c y4) (* a y5)))))
                                               (if (<= y4 3.25e+40) (* i (* t (fma -1.0 (* j y5) (* c z)))) t_2))))))
                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                      	double t_1 = (k * y2) - (j * y3);
                                      	double t_2 = y4 * (fma(b, ((j * t) - (k * y)), (y1 * t_1)) - (c * ((t * y2) - (y * y3))));
                                      	double tmp;
                                      	if (y4 <= -2.6e-26) {
                                      		tmp = t_2;
                                      	} else if (y4 <= 1.75e-214) {
                                      		tmp = y0 * fma(-1.0, (y5 * t_1), (c * ((x * y2) - (y3 * z))));
                                      	} else if (y4 <= 1.55e-37) {
                                      		tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * ((c * y0) - (a * y1)))) - (t * ((c * y4) - (a * y5))));
                                      	} else if (y4 <= 3.25e+40) {
                                      		tmp = i * (t * fma(-1.0, (j * y5), (c * z)));
                                      	} else {
                                      		tmp = t_2;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                      	t_1 = Float64(Float64(k * y2) - Float64(j * y3))
                                      	t_2 = Float64(y4 * Float64(fma(b, Float64(Float64(j * t) - Float64(k * y)), Float64(y1 * t_1)) - Float64(c * Float64(Float64(t * y2) - Float64(y * y3)))))
                                      	tmp = 0.0
                                      	if (y4 <= -2.6e-26)
                                      		tmp = t_2;
                                      	elseif (y4 <= 1.75e-214)
                                      		tmp = Float64(y0 * fma(-1.0, Float64(y5 * t_1), Float64(c * Float64(Float64(x * y2) - Float64(y3 * z)))));
                                      	elseif (y4 <= 1.55e-37)
                                      		tmp = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5)))));
                                      	elseif (y4 <= 3.25e+40)
                                      		tmp = Float64(i * Float64(t * fma(-1.0, Float64(j * y5), Float64(c * z))));
                                      	else
                                      		tmp = t_2;
                                      	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 * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y4 * N[(N[(b * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] + N[(y1 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -2.6e-26], t$95$2, If[LessEqual[y4, 1.75e-214], N[(y0 * N[(-1.0 * N[(y5 * t$95$1), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.55e-37], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 3.25e+40], N[(i * N[(t * N[(-1.0 * N[(j * y5), $MachinePrecision] + N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      t_1 := k \cdot y2 - j \cdot y3\\
                                      t_2 := y4 \cdot \left(\mathsf{fma}\left(b, j \cdot t - k \cdot y, y1 \cdot t\_1\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
                                      \mathbf{if}\;y4 \leq -2.6 \cdot 10^{-26}:\\
                                      \;\;\;\;t\_2\\
                                      
                                      \mathbf{elif}\;y4 \leq 1.75 \cdot 10^{-214}:\\
                                      \;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot t\_1, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
                                      
                                      \mathbf{elif}\;y4 \leq 1.55 \cdot 10^{-37}:\\
                                      \;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
                                      
                                      \mathbf{elif}\;y4 \leq 3.25 \cdot 10^{+40}:\\
                                      \;\;\;\;i \cdot \left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right)\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;t\_2\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 4 regimes
                                      2. if y4 < -2.6000000000000001e-26 or 3.2500000000000001e40 < y4

                                        1. Initial program 29.2%

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

                                          if -2.6000000000000001e-26 < y4 < 1.75e-214

                                          1. Initial program 41.2%

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

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

                                              \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                            2. Taylor expanded in b around 0

                                              \[\leadsto y0 \cdot \left(-1 \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \color{blue}{c \cdot \left(x \cdot y2 - y3 \cdot z\right)}\right) \]
                                            3. Step-by-step derivation
                                              1. Applied rewrites52.4%

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

                                              if 1.75e-214 < y4 < 1.54999999999999997e-37

                                              1. Initial program 26.6%

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

                                                \[\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 rewrites60.5%

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

                                                if 1.54999999999999997e-37 < y4 < 3.2500000000000001e40

                                                1. Initial program 21.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. Step-by-step derivation
                                                  1. Applied rewrites50.4%

                                                    \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot \left(j \cdot t - k \cdot y\right)\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\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 rewrites58.4%

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

                                                  Alternative 5: 36.2% accurate, 2.3× speedup?

                                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := y4 \cdot \left(j \cdot t - k \cdot y\right)\\ t_2 := k \cdot y2 - j \cdot y3\\ \mathbf{if}\;y4 \leq -1.55 \cdot 10^{+165}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot t\_2\right)\\ \mathbf{elif}\;y4 \leq -2.9 \cdot 10^{-12}:\\ \;\;\;\;b \cdot t\_1\\ \mathbf{elif}\;y4 \leq 6.5 \cdot 10^{-137}:\\ \;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot t\_2, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;y4 \leq 3.2 \cdot 10^{+34}:\\ \;\;\;\;\left(-y5\right) \cdot \left(y2 \cdot \left(k \cdot y0 - a \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, t\_1\right) - y0 \cdot \left(j \cdot x - k \cdot z\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 (* y4 (- (* j t) (* k y)))) (t_2 (- (* k y2) (* j y3))))
                                                     (if (<= y4 -1.55e+165)
                                                       (* y1 (* y4 t_2))
                                                       (if (<= y4 -2.9e-12)
                                                         (* b t_1)
                                                         (if (<= y4 6.5e-137)
                                                           (* y0 (fma -1.0 (* y5 t_2) (* c (- (* x y2) (* y3 z)))))
                                                           (if (<= y4 3.2e+34)
                                                             (* (- y5) (* y2 (- (* k y0) (* a t))))
                                                             (*
                                                              b
                                                              (-
                                                               (fma a (- (* x y) (* t z)) t_1)
                                                               (* y0 (- (* j x) (* k z)))))))))))
                                                  double code(double x, double y, double z, double t, double 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 * ((j * t) - (k * y));
                                                  	double t_2 = (k * y2) - (j * y3);
                                                  	double tmp;
                                                  	if (y4 <= -1.55e+165) {
                                                  		tmp = y1 * (y4 * t_2);
                                                  	} else if (y4 <= -2.9e-12) {
                                                  		tmp = b * t_1;
                                                  	} else if (y4 <= 6.5e-137) {
                                                  		tmp = y0 * fma(-1.0, (y5 * t_2), (c * ((x * y2) - (y3 * z))));
                                                  	} else if (y4 <= 3.2e+34) {
                                                  		tmp = -y5 * (y2 * ((k * y0) - (a * t)));
                                                  	} else {
                                                  		tmp = b * (fma(a, ((x * y) - (t * z)), t_1) - (y0 * ((j * x) - (k * z))));
                                                  	}
                                                  	return tmp;
                                                  }
                                                  
                                                  function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                  	t_1 = Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))
                                                  	t_2 = Float64(Float64(k * y2) - Float64(j * y3))
                                                  	tmp = 0.0
                                                  	if (y4 <= -1.55e+165)
                                                  		tmp = Float64(y1 * Float64(y4 * t_2));
                                                  	elseif (y4 <= -2.9e-12)
                                                  		tmp = Float64(b * t_1);
                                                  	elseif (y4 <= 6.5e-137)
                                                  		tmp = Float64(y0 * fma(-1.0, Float64(y5 * t_2), Float64(c * Float64(Float64(x * y2) - Float64(y3 * z)))));
                                                  	elseif (y4 <= 3.2e+34)
                                                  		tmp = Float64(Float64(-y5) * Float64(y2 * Float64(Float64(k * y0) - Float64(a * t))));
                                                  	else
                                                  		tmp = Float64(b * Float64(fma(a, Float64(Float64(x * y) - Float64(t * z)), t_1) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z)))));
                                                  	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[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.55e+165], N[(y1 * N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2.9e-12], N[(b * t$95$1), $MachinePrecision], If[LessEqual[y4, 6.5e-137], N[(y0 * N[(-1.0 * N[(y5 * t$95$2), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 3.2e+34], N[((-y5) * N[(y2 * N[(N[(k * y0), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
                                                  
                                                  \begin{array}{l}
                                                  
                                                  \\
                                                  \begin{array}{l}
                                                  t_1 := y4 \cdot \left(j \cdot t - k \cdot y\right)\\
                                                  t_2 := k \cdot y2 - j \cdot y3\\
                                                  \mathbf{if}\;y4 \leq -1.55 \cdot 10^{+165}:\\
                                                  \;\;\;\;y1 \cdot \left(y4 \cdot t\_2\right)\\
                                                  
                                                  \mathbf{elif}\;y4 \leq -2.9 \cdot 10^{-12}:\\
                                                  \;\;\;\;b \cdot t\_1\\
                                                  
                                                  \mathbf{elif}\;y4 \leq 6.5 \cdot 10^{-137}:\\
                                                  \;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot t\_2, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
                                                  
                                                  \mathbf{elif}\;y4 \leq 3.2 \cdot 10^{+34}:\\
                                                  \;\;\;\;\left(-y5\right) \cdot \left(y2 \cdot \left(k \cdot y0 - a \cdot t\right)\right)\\
                                                  
                                                  \mathbf{else}:\\
                                                  \;\;\;\;b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, t\_1\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
                                                  
                                                  
                                                  \end{array}
                                                  \end{array}
                                                  
                                                  Derivation
                                                  1. Split input into 5 regimes
                                                  2. if y4 < -1.5500000000000001e165

                                                    1. Initial program 28.4%

                                                      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                    2. Add Preprocessing
                                                    3. Taylor expanded in 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. Step-by-step derivation
                                                      1. Applied rewrites47.4%

                                                        \[\leadsto \color{blue}{y1 \cdot \left(\mathsf{fma}\left(-1, a \cdot \left(x \cdot y2 - y3 \cdot z\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)} \]
                                                      2. Taylor expanded in y4 around inf

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

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

                                                        if -1.5500000000000001e165 < y4 < -2.9000000000000002e-12

                                                        1. Initial program 25.6%

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

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

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

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

                                                            if -2.9000000000000002e-12 < y4 < 6.49999999999999991e-137

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

                                                                \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                              2. Taylor expanded in b around 0

                                                                \[\leadsto y0 \cdot \left(-1 \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \color{blue}{c \cdot \left(x \cdot y2 - y3 \cdot z\right)}\right) \]
                                                              3. Step-by-step derivation
                                                                1. Applied rewrites52.1%

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

                                                                if 6.49999999999999991e-137 < y4 < 3.1999999999999998e34

                                                                1. Initial program 24.2%

                                                                  \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                                2. 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.0%

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

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

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

                                                                    if 3.1999999999999998e34 < y4

                                                                    1. Initial program 29.1%

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

                                                                        \[\leadsto \color{blue}{b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                    5. Recombined 5 regimes into one program.
                                                                    6. Final simplification53.2%

                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;y4 \leq -1.55 \cdot 10^{+165}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \mathbf{elif}\;y4 \leq -2.9 \cdot 10^{-12}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ \mathbf{elif}\;y4 \leq 6.5 \cdot 10^{-137}:\\ \;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;y4 \leq 3.2 \cdot 10^{+34}:\\ \;\;\;\;\left(-y5\right) \cdot \left(y2 \cdot \left(k \cdot y0 - a \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\ \end{array} \]
                                                                    7. Add Preprocessing

                                                                    Alternative 6: 43.0% accurate, 2.4× speedup?

                                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := k \cdot y2 - j \cdot y3\\ t_2 := j \cdot t - k \cdot y\\ t_3 := t \cdot y2 - y \cdot y3\\ t_4 := y4 \cdot \left(\mathsf{fma}\left(b, t\_2, y1 \cdot t\_1\right) - c \cdot t\_3\right)\\ \mathbf{if}\;y4 \leq -2.6 \cdot 10^{-26}:\\ \;\;\;\;t\_4\\ \mathbf{elif}\;y4 \leq 6.8 \cdot 10^{-245}:\\ \;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot t\_1, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;y4 \leq 9.6 \cdot 10^{+89}:\\ \;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(i, t\_2, y0 \cdot t\_1\right) - a \cdot t\_3\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 (- (* k y2) (* j y3)))
                                                                            (t_2 (- (* j t) (* k y)))
                                                                            (t_3 (- (* t y2) (* y y3)))
                                                                            (t_4 (* y4 (- (fma b t_2 (* y1 t_1)) (* c t_3)))))
                                                                       (if (<= y4 -2.6e-26)
                                                                         t_4
                                                                         (if (<= y4 6.8e-245)
                                                                           (* y0 (fma -1.0 (* y5 t_1) (* c (- (* x y2) (* y3 z)))))
                                                                           (if (<= y4 9.6e+89)
                                                                             (* (- y5) (- (fma i t_2 (* y0 t_1)) (* a t_3)))
                                                                             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 = (k * y2) - (j * y3);
                                                                    	double t_2 = (j * t) - (k * y);
                                                                    	double t_3 = (t * y2) - (y * y3);
                                                                    	double t_4 = y4 * (fma(b, t_2, (y1 * t_1)) - (c * t_3));
                                                                    	double tmp;
                                                                    	if (y4 <= -2.6e-26) {
                                                                    		tmp = t_4;
                                                                    	} else if (y4 <= 6.8e-245) {
                                                                    		tmp = y0 * fma(-1.0, (y5 * t_1), (c * ((x * y2) - (y3 * z))));
                                                                    	} else if (y4 <= 9.6e+89) {
                                                                    		tmp = -y5 * (fma(i, t_2, (y0 * t_1)) - (a * t_3));
                                                                    	} else {
                                                                    		tmp = t_4;
                                                                    	}
                                                                    	return tmp;
                                                                    }
                                                                    
                                                                    function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                    	t_1 = Float64(Float64(k * y2) - Float64(j * y3))
                                                                    	t_2 = Float64(Float64(j * t) - Float64(k * y))
                                                                    	t_3 = Float64(Float64(t * y2) - Float64(y * y3))
                                                                    	t_4 = Float64(y4 * Float64(fma(b, t_2, Float64(y1 * t_1)) - Float64(c * t_3)))
                                                                    	tmp = 0.0
                                                                    	if (y4 <= -2.6e-26)
                                                                    		tmp = t_4;
                                                                    	elseif (y4 <= 6.8e-245)
                                                                    		tmp = Float64(y0 * fma(-1.0, Float64(y5 * t_1), Float64(c * Float64(Float64(x * y2) - Float64(y3 * z)))));
                                                                    	elseif (y4 <= 9.6e+89)
                                                                    		tmp = Float64(Float64(-y5) * Float64(fma(i, t_2, Float64(y0 * t_1)) - Float64(a * t_3)));
                                                                    	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[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y4 * N[(N[(b * t$95$2 + N[(y1 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(c * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -2.6e-26], t$95$4, If[LessEqual[y4, 6.8e-245], N[(y0 * N[(-1.0 * N[(y5 * t$95$1), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 9.6e+89], N[((-y5) * N[(N[(i * t$95$2 + N[(y0 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(a * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]]
                                                                    
                                                                    \begin{array}{l}
                                                                    
                                                                    \\
                                                                    \begin{array}{l}
                                                                    t_1 := k \cdot y2 - j \cdot y3\\
                                                                    t_2 := j \cdot t - k \cdot y\\
                                                                    t_3 := t \cdot y2 - y \cdot y3\\
                                                                    t_4 := y4 \cdot \left(\mathsf{fma}\left(b, t\_2, y1 \cdot t\_1\right) - c \cdot t\_3\right)\\
                                                                    \mathbf{if}\;y4 \leq -2.6 \cdot 10^{-26}:\\
                                                                    \;\;\;\;t\_4\\
                                                                    
                                                                    \mathbf{elif}\;y4 \leq 6.8 \cdot 10^{-245}:\\
                                                                    \;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot t\_1, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
                                                                    
                                                                    \mathbf{elif}\;y4 \leq 9.6 \cdot 10^{+89}:\\
                                                                    \;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(i, t\_2, y0 \cdot t\_1\right) - a \cdot t\_3\right)\\
                                                                    
                                                                    \mathbf{else}:\\
                                                                    \;\;\;\;t\_4\\
                                                                    
                                                                    
                                                                    \end{array}
                                                                    \end{array}
                                                                    
                                                                    Derivation
                                                                    1. Split input into 3 regimes
                                                                    2. if y4 < -2.6000000000000001e-26 or 9.60000000000000018e89 < 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}{y4 \cdot \left(\mathsf{fma}\left(b, j \cdot t - k \cdot y, y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]

                                                                        if -2.6000000000000001e-26 < y4 < 6.7999999999999999e-245

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

                                                                            \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                          2. Taylor expanded in b around 0

                                                                            \[\leadsto y0 \cdot \left(-1 \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \color{blue}{c \cdot \left(x \cdot y2 - y3 \cdot z\right)}\right) \]
                                                                          3. Step-by-step derivation
                                                                            1. Applied rewrites53.1%

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

                                                                            if 6.7999999999999999e-245 < y4 < 9.60000000000000018e89

                                                                            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}{-1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(i, j \cdot t - k \cdot y, y0 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - a \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                            5. Recombined 3 regimes into one program.
                                                                            6. Final simplification58.0%

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

                                                                            Alternative 7: 43.5% accurate, 2.4× speedup?

                                                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := k \cdot y2 - j \cdot y3\\ t_2 := j \cdot t - k \cdot y\\ t_3 := y4 \cdot \left(\mathsf{fma}\left(b, t\_2, y1 \cdot t\_1\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\ \mathbf{if}\;y4 \leq -2.6 \cdot 10^{-26}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;y4 \leq 4 \cdot 10^{-185}:\\ \;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot t\_1, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;y4 \leq 2.2 \cdot 10^{+48}:\\ \;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot t\_2\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_3\\ \end{array} \end{array} \]
                                                                            (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                             :precision binary64
                                                                             (let* ((t_1 (- (* k y2) (* j y3)))
                                                                                    (t_2 (- (* j t) (* k y)))
                                                                                    (t_3 (* y4 (- (fma b t_2 (* y1 t_1)) (* c (- (* t y2) (* y y3)))))))
                                                                               (if (<= y4 -2.6e-26)
                                                                                 t_3
                                                                                 (if (<= y4 4e-185)
                                                                                   (* y0 (fma -1.0 (* y5 t_1) (* c (- (* x y2) (* y3 z)))))
                                                                                   (if (<= y4 2.2e+48)
                                                                                     (*
                                                                                      (- i)
                                                                                      (-
                                                                                       (fma c (- (* x y) (* t z)) (* y5 t_2))
                                                                                       (* y1 (- (* j x) (* k z)))))
                                                                                     t_3)))))
                                                                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                            	double t_1 = (k * y2) - (j * y3);
                                                                            	double t_2 = (j * t) - (k * y);
                                                                            	double t_3 = y4 * (fma(b, t_2, (y1 * t_1)) - (c * ((t * y2) - (y * y3))));
                                                                            	double tmp;
                                                                            	if (y4 <= -2.6e-26) {
                                                                            		tmp = t_3;
                                                                            	} else if (y4 <= 4e-185) {
                                                                            		tmp = y0 * fma(-1.0, (y5 * t_1), (c * ((x * y2) - (y3 * z))));
                                                                            	} else if (y4 <= 2.2e+48) {
                                                                            		tmp = -i * (fma(c, ((x * y) - (t * z)), (y5 * t_2)) - (y1 * ((j * x) - (k * z))));
                                                                            	} else {
                                                                            		tmp = t_3;
                                                                            	}
                                                                            	return tmp;
                                                                            }
                                                                            
                                                                            function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                            	t_1 = Float64(Float64(k * y2) - Float64(j * y3))
                                                                            	t_2 = Float64(Float64(j * t) - Float64(k * y))
                                                                            	t_3 = Float64(y4 * Float64(fma(b, t_2, Float64(y1 * t_1)) - Float64(c * Float64(Float64(t * y2) - Float64(y * y3)))))
                                                                            	tmp = 0.0
                                                                            	if (y4 <= -2.6e-26)
                                                                            		tmp = t_3;
                                                                            	elseif (y4 <= 4e-185)
                                                                            		tmp = Float64(y0 * fma(-1.0, Float64(y5 * t_1), Float64(c * Float64(Float64(x * y2) - Float64(y3 * z)))));
                                                                            	elseif (y4 <= 2.2e+48)
                                                                            		tmp = Float64(Float64(-i) * Float64(fma(c, Float64(Float64(x * y) - Float64(t * z)), Float64(y5 * t_2)) - Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))));
                                                                            	else
                                                                            		tmp = t_3;
                                                                            	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 * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y4 * N[(N[(b * t$95$2 + N[(y1 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -2.6e-26], t$95$3, If[LessEqual[y4, 4e-185], N[(y0 * N[(-1.0 * N[(y5 * t$95$1), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.2e+48], N[((-i) * N[(N[(c * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y5 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]
                                                                            
                                                                            \begin{array}{l}
                                                                            
                                                                            \\
                                                                            \begin{array}{l}
                                                                            t_1 := k \cdot y2 - j \cdot y3\\
                                                                            t_2 := j \cdot t - k \cdot y\\
                                                                            t_3 := y4 \cdot \left(\mathsf{fma}\left(b, t\_2, y1 \cdot t\_1\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
                                                                            \mathbf{if}\;y4 \leq -2.6 \cdot 10^{-26}:\\
                                                                            \;\;\;\;t\_3\\
                                                                            
                                                                            \mathbf{elif}\;y4 \leq 4 \cdot 10^{-185}:\\
                                                                            \;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot t\_1, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
                                                                            
                                                                            \mathbf{elif}\;y4 \leq 2.2 \cdot 10^{+48}:\\
                                                                            \;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot t\_2\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
                                                                            
                                                                            \mathbf{else}:\\
                                                                            \;\;\;\;t\_3\\
                                                                            
                                                                            
                                                                            \end{array}
                                                                            \end{array}
                                                                            
                                                                            Derivation
                                                                            1. Split input into 3 regimes
                                                                            2. if y4 < -2.6000000000000001e-26 or 2.1999999999999999e48 < y4

                                                                              1. Initial program 29.2%

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

                                                                                if -2.6000000000000001e-26 < y4 < 4e-185

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

                                                                                    \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                  2. Taylor expanded in b around 0

                                                                                    \[\leadsto y0 \cdot \left(-1 \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \color{blue}{c \cdot \left(x \cdot y2 - y3 \cdot z\right)}\right) \]
                                                                                  3. Step-by-step derivation
                                                                                    1. Applied rewrites52.2%

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

                                                                                    if 4e-185 < y4 < 2.1999999999999999e48

                                                                                    1. Initial program 26.3%

                                                                                      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                                                    2. Add Preprocessing
                                                                                    3. Taylor expanded in 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. Step-by-step derivation
                                                                                      1. Applied rewrites53.0%

                                                                                        \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot \left(j \cdot t - k \cdot y\right)\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
                                                                                    5. Recombined 3 regimes into one program.
                                                                                    6. Final simplification55.7%

                                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;y4 \leq -2.6 \cdot 10^{-26}:\\ \;\;\;\;y4 \cdot \left(\mathsf{fma}\left(b, j \cdot t - k \cdot y, y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\ \mathbf{elif}\;y4 \leq 4 \cdot 10^{-185}:\\ \;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;y4 \leq 2.2 \cdot 10^{+48}:\\ \;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot \left(j \cdot t - k \cdot y\right)\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y4 \cdot \left(\mathsf{fma}\left(b, j \cdot t - k \cdot y, y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\ \end{array} \]
                                                                                    7. Add Preprocessing

                                                                                    Alternative 8: 42.3% accurate, 2.5× speedup?

                                                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(\mathsf{fma}\left(y, a \cdot b - c \cdot i, y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\ \mathbf{if}\;x \leq -1.6 \cdot 10^{+165}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -7 \cdot 10^{+46}:\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\ \mathbf{elif}\;x \leq 5.6 \cdot 10^{-21}:\\ \;\;\;\;b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                    (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                     :precision binary64
                                                                                     (let* ((t_1
                                                                                             (*
                                                                                              x
                                                                                              (-
                                                                                               (fma y (- (* a b) (* c i)) (* y2 (- (* c y0) (* a y1))))
                                                                                               (* j (- (* b y0) (* i y1)))))))
                                                                                       (if (<= x -1.6e+165)
                                                                                         t_1
                                                                                         (if (<= x -7e+46)
                                                                                           (* i (* z (- (* c t) (* k y1))))
                                                                                           (if (<= x 5.6e-21)
                                                                                             (*
                                                                                              b
                                                                                              (-
                                                                                               (fma a (- (* x y) (* t z)) (* y4 (- (* j t) (* k y))))
                                                                                               (* y0 (- (* j x) (* k z)))))
                                                                                             t_1)))))
                                                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                    	double t_1 = x * (fma(y, ((a * b) - (c * i)), (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1))));
                                                                                    	double tmp;
                                                                                    	if (x <= -1.6e+165) {
                                                                                    		tmp = t_1;
                                                                                    	} else if (x <= -7e+46) {
                                                                                    		tmp = i * (z * ((c * t) - (k * y1)));
                                                                                    	} else if (x <= 5.6e-21) {
                                                                                    		tmp = b * (fma(a, ((x * y) - (t * z)), (y4 * ((j * t) - (k * y)))) - (y0 * ((j * x) - (k * z))));
                                                                                    	} else {
                                                                                    		tmp = t_1;
                                                                                    	}
                                                                                    	return tmp;
                                                                                    }
                                                                                    
                                                                                    function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                    	t_1 = Float64(x * Float64(fma(y, Float64(Float64(a * b) - Float64(c * i)), Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1)))))
                                                                                    	tmp = 0.0
                                                                                    	if (x <= -1.6e+165)
                                                                                    		tmp = t_1;
                                                                                    	elseif (x <= -7e+46)
                                                                                    		tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1))));
                                                                                    	elseif (x <= 5.6e-21)
                                                                                    		tmp = Float64(b * Float64(fma(a, Float64(Float64(x * y) - Float64(t * z)), Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z)))));
                                                                                    	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[(x * N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.6e+165], t$95$1, If[LessEqual[x, -7e+46], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.6e-21], N[(b * N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                                                                                    
                                                                                    \begin{array}{l}
                                                                                    
                                                                                    \\
                                                                                    \begin{array}{l}
                                                                                    t_1 := x \cdot \left(\mathsf{fma}\left(y, a \cdot b - c \cdot i, y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
                                                                                    \mathbf{if}\;x \leq -1.6 \cdot 10^{+165}:\\
                                                                                    \;\;\;\;t\_1\\
                                                                                    
                                                                                    \mathbf{elif}\;x \leq -7 \cdot 10^{+46}:\\
                                                                                    \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
                                                                                    
                                                                                    \mathbf{elif}\;x \leq 5.6 \cdot 10^{-21}:\\
                                                                                    \;\;\;\;b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
                                                                                    
                                                                                    \mathbf{else}:\\
                                                                                    \;\;\;\;t\_1\\
                                                                                    
                                                                                    
                                                                                    \end{array}
                                                                                    \end{array}
                                                                                    
                                                                                    Derivation
                                                                                    1. Split input into 3 regimes
                                                                                    2. if x < -1.6e165 or 5.60000000000000008e-21 < x

                                                                                      1. Initial program 28.0%

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

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

                                                                                        if -1.6e165 < x < -6.9999999999999997e46

                                                                                        1. Initial program 20.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. Step-by-step derivation
                                                                                          1. Applied rewrites60.3%

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

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

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

                                                                                            if -6.9999999999999997e46 < x < 5.60000000000000008e-21

                                                                                            1. Initial program 37.7%

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

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

                                                                                            Alternative 9: 36.0% accurate, 3.1× speedup?

                                                                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ t_2 := k \cdot y2 - j \cdot y3\\ \mathbf{if}\;y4 \leq -1.55 \cdot 10^{+165}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot t\_2\right)\\ \mathbf{elif}\;y4 \leq -2.9 \cdot 10^{-12}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y4 \leq 6.5 \cdot 10^{-137}:\\ \;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot t\_2, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;y4 \leq 1.3 \cdot 10^{+21}:\\ \;\;\;\;\left(-y5\right) \cdot \left(y2 \cdot \left(k \cdot y0 - a \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                            (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                             :precision binary64
                                                                                             (let* ((t_1 (* b (* y4 (- (* j t) (* k y))))) (t_2 (- (* k y2) (* j y3))))
                                                                                               (if (<= y4 -1.55e+165)
                                                                                                 (* y1 (* y4 t_2))
                                                                                                 (if (<= y4 -2.9e-12)
                                                                                                   t_1
                                                                                                   (if (<= y4 6.5e-137)
                                                                                                     (* y0 (fma -1.0 (* y5 t_2) (* c (- (* x y2) (* y3 z)))))
                                                                                                     (if (<= y4 1.3e+21) (* (- y5) (* y2 (- (* k y0) (* a t)))) t_1))))))
                                                                                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                            	double t_1 = b * (y4 * ((j * t) - (k * y)));
                                                                                            	double t_2 = (k * y2) - (j * y3);
                                                                                            	double tmp;
                                                                                            	if (y4 <= -1.55e+165) {
                                                                                            		tmp = y1 * (y4 * t_2);
                                                                                            	} else if (y4 <= -2.9e-12) {
                                                                                            		tmp = t_1;
                                                                                            	} else if (y4 <= 6.5e-137) {
                                                                                            		tmp = y0 * fma(-1.0, (y5 * t_2), (c * ((x * y2) - (y3 * z))));
                                                                                            	} else if (y4 <= 1.3e+21) {
                                                                                            		tmp = -y5 * (y2 * ((k * y0) - (a * t)));
                                                                                            	} else {
                                                                                            		tmp = t_1;
                                                                                            	}
                                                                                            	return tmp;
                                                                                            }
                                                                                            
                                                                                            function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                            	t_1 = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y))))
                                                                                            	t_2 = Float64(Float64(k * y2) - Float64(j * y3))
                                                                                            	tmp = 0.0
                                                                                            	if (y4 <= -1.55e+165)
                                                                                            		tmp = Float64(y1 * Float64(y4 * t_2));
                                                                                            	elseif (y4 <= -2.9e-12)
                                                                                            		tmp = t_1;
                                                                                            	elseif (y4 <= 6.5e-137)
                                                                                            		tmp = Float64(y0 * fma(-1.0, Float64(y5 * t_2), Float64(c * Float64(Float64(x * y2) - Float64(y3 * z)))));
                                                                                            	elseif (y4 <= 1.3e+21)
                                                                                            		tmp = Float64(Float64(-y5) * Float64(y2 * Float64(Float64(k * y0) - Float64(a * t))));
                                                                                            	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[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.55e+165], N[(y1 * N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2.9e-12], t$95$1, If[LessEqual[y4, 6.5e-137], N[(y0 * N[(-1.0 * N[(y5 * t$95$2), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.3e+21], N[((-y5) * N[(y2 * N[(N[(k * y0), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
                                                                                            
                                                                                            \begin{array}{l}
                                                                                            
                                                                                            \\
                                                                                            \begin{array}{l}
                                                                                            t_1 := b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
                                                                                            t_2 := k \cdot y2 - j \cdot y3\\
                                                                                            \mathbf{if}\;y4 \leq -1.55 \cdot 10^{+165}:\\
                                                                                            \;\;\;\;y1 \cdot \left(y4 \cdot t\_2\right)\\
                                                                                            
                                                                                            \mathbf{elif}\;y4 \leq -2.9 \cdot 10^{-12}:\\
                                                                                            \;\;\;\;t\_1\\
                                                                                            
                                                                                            \mathbf{elif}\;y4 \leq 6.5 \cdot 10^{-137}:\\
                                                                                            \;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot t\_2, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
                                                                                            
                                                                                            \mathbf{elif}\;y4 \leq 1.3 \cdot 10^{+21}:\\
                                                                                            \;\;\;\;\left(-y5\right) \cdot \left(y2 \cdot \left(k \cdot y0 - a \cdot t\right)\right)\\
                                                                                            
                                                                                            \mathbf{else}:\\
                                                                                            \;\;\;\;t\_1\\
                                                                                            
                                                                                            
                                                                                            \end{array}
                                                                                            \end{array}
                                                                                            
                                                                                            Derivation
                                                                                            1. Split input into 4 regimes
                                                                                            2. if y4 < -1.5500000000000001e165

                                                                                              1. Initial program 28.4%

                                                                                                \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                                                              2. Add Preprocessing
                                                                                              3. Taylor expanded in 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. Step-by-step derivation
                                                                                                1. Applied rewrites47.4%

                                                                                                  \[\leadsto \color{blue}{y1 \cdot \left(\mathsf{fma}\left(-1, a \cdot \left(x \cdot y2 - y3 \cdot z\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)} \]
                                                                                                2. Taylor expanded in y4 around inf

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

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

                                                                                                  if -1.5500000000000001e165 < y4 < -2.9000000000000002e-12 or 1.3e21 < y4

                                                                                                  1. Initial program 28.8%

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

                                                                                                    \[\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 rewrites51.2%

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

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

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

                                                                                                      if -2.9000000000000002e-12 < y4 < 6.49999999999999991e-137

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

                                                                                                          \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                        2. Taylor expanded in b around 0

                                                                                                          \[\leadsto y0 \cdot \left(-1 \cdot \left(y5 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \color{blue}{c \cdot \left(x \cdot y2 - y3 \cdot z\right)}\right) \]
                                                                                                        3. Step-by-step derivation
                                                                                                          1. Applied rewrites52.1%

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

                                                                                                          if 6.49999999999999991e-137 < y4 < 1.3e21

                                                                                                          1. Initial program 19.9%

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

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

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

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

                                                                                                              \[\leadsto \begin{array}{l} \mathbf{if}\;y4 \leq -1.55 \cdot 10^{+165}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \mathbf{elif}\;y4 \leq -2.9 \cdot 10^{-12}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ \mathbf{elif}\;y4 \leq 6.5 \cdot 10^{-137}:\\ \;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;y4 \leq 1.3 \cdot 10^{+21}:\\ \;\;\;\;\left(-y5\right) \cdot \left(y2 \cdot \left(k \cdot y0 - a \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ \end{array} \]
                                                                                                            6. Add Preprocessing

                                                                                                            Alternative 10: 32.6% accurate, 3.5× speedup?

                                                                                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ \mathbf{if}\;y4 \leq -1.55 \cdot 10^{+165}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \mathbf{elif}\;y4 \leq -3.5 \cdot 10^{+17}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y4 \leq -2.6 \cdot 10^{-278}:\\ \;\;\;\;k \cdot \left(y5 \cdot \mathsf{fma}\left(-1, y0 \cdot y2, i \cdot y\right)\right)\\ \mathbf{elif}\;y4 \leq 1.95 \cdot 10^{-244}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;y4 \leq 6.8 \cdot 10^{+28}:\\ \;\;\;\;i \cdot \left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                            (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                             :precision binary64
                                                                                                             (let* ((t_1 (* b (* y4 (- (* j t) (* k y))))))
                                                                                                               (if (<= y4 -1.55e+165)
                                                                                                                 (* y1 (* y4 (- (* k y2) (* j y3))))
                                                                                                                 (if (<= y4 -3.5e+17)
                                                                                                                   t_1
                                                                                                                   (if (<= y4 -2.6e-278)
                                                                                                                     (* k (* y5 (fma -1.0 (* y0 y2) (* i y))))
                                                                                                                     (if (<= y4 1.95e-244)
                                                                                                                       (* c (* y0 (- (* x y2) (* y3 z))))
                                                                                                                       (if (<= y4 6.8e+28)
                                                                                                                         (* i (* t (fma -1.0 (* j y5) (* c z))))
                                                                                                                         t_1)))))))
                                                                                                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                            	double t_1 = b * (y4 * ((j * t) - (k * y)));
                                                                                                            	double tmp;
                                                                                                            	if (y4 <= -1.55e+165) {
                                                                                                            		tmp = y1 * (y4 * ((k * y2) - (j * y3)));
                                                                                                            	} else if (y4 <= -3.5e+17) {
                                                                                                            		tmp = t_1;
                                                                                                            	} else if (y4 <= -2.6e-278) {
                                                                                                            		tmp = k * (y5 * fma(-1.0, (y0 * y2), (i * y)));
                                                                                                            	} else if (y4 <= 1.95e-244) {
                                                                                                            		tmp = c * (y0 * ((x * y2) - (y3 * z)));
                                                                                                            	} else if (y4 <= 6.8e+28) {
                                                                                                            		tmp = i * (t * fma(-1.0, (j * y5), (c * z)));
                                                                                                            	} else {
                                                                                                            		tmp = t_1;
                                                                                                            	}
                                                                                                            	return tmp;
                                                                                                            }
                                                                                                            
                                                                                                            function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                            	t_1 = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y))))
                                                                                                            	tmp = 0.0
                                                                                                            	if (y4 <= -1.55e+165)
                                                                                                            		tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3))));
                                                                                                            	elseif (y4 <= -3.5e+17)
                                                                                                            		tmp = t_1;
                                                                                                            	elseif (y4 <= -2.6e-278)
                                                                                                            		tmp = Float64(k * Float64(y5 * fma(-1.0, Float64(y0 * y2), Float64(i * y))));
                                                                                                            	elseif (y4 <= 1.95e-244)
                                                                                                            		tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z))));
                                                                                                            	elseif (y4 <= 6.8e+28)
                                                                                                            		tmp = Float64(i * Float64(t * fma(-1.0, Float64(j * y5), Float64(c * z))));
                                                                                                            	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[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.55e+165], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -3.5e+17], t$95$1, If[LessEqual[y4, -2.6e-278], N[(k * N[(y5 * N[(-1.0 * N[(y0 * y2), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.95e-244], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 6.8e+28], N[(i * N[(t * N[(-1.0 * N[(j * y5), $MachinePrecision] + N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
                                                                                                            
                                                                                                            \begin{array}{l}
                                                                                                            
                                                                                                            \\
                                                                                                            \begin{array}{l}
                                                                                                            t_1 := b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
                                                                                                            \mathbf{if}\;y4 \leq -1.55 \cdot 10^{+165}:\\
                                                                                                            \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
                                                                                                            
                                                                                                            \mathbf{elif}\;y4 \leq -3.5 \cdot 10^{+17}:\\
                                                                                                            \;\;\;\;t\_1\\
                                                                                                            
                                                                                                            \mathbf{elif}\;y4 \leq -2.6 \cdot 10^{-278}:\\
                                                                                                            \;\;\;\;k \cdot \left(y5 \cdot \mathsf{fma}\left(-1, y0 \cdot y2, i \cdot y\right)\right)\\
                                                                                                            
                                                                                                            \mathbf{elif}\;y4 \leq 1.95 \cdot 10^{-244}:\\
                                                                                                            \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
                                                                                                            
                                                                                                            \mathbf{elif}\;y4 \leq 6.8 \cdot 10^{+28}:\\
                                                                                                            \;\;\;\;i \cdot \left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right)\\
                                                                                                            
                                                                                                            \mathbf{else}:\\
                                                                                                            \;\;\;\;t\_1\\
                                                                                                            
                                                                                                            
                                                                                                            \end{array}
                                                                                                            \end{array}
                                                                                                            
                                                                                                            Derivation
                                                                                                            1. Split input into 5 regimes
                                                                                                            2. if y4 < -1.5500000000000001e165

                                                                                                              1. Initial program 28.4%

                                                                                                                \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                                                                              2. Add Preprocessing
                                                                                                              3. Taylor expanded in 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. Step-by-step derivation
                                                                                                                1. Applied rewrites47.4%

                                                                                                                  \[\leadsto \color{blue}{y1 \cdot \left(\mathsf{fma}\left(-1, a \cdot \left(x \cdot y2 - y3 \cdot z\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)} \]
                                                                                                                2. Taylor expanded in y4 around inf

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

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

                                                                                                                  if -1.5500000000000001e165 < y4 < -3.5e17 or 6.8e28 < y4

                                                                                                                  1. Initial program 26.9%

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

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

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

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

                                                                                                                      if -3.5e17 < y4 < -2.5999999999999999e-278

                                                                                                                      1. Initial program 45.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}{-1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(i, j \cdot t - k \cdot y, y0 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - a \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\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 rewrites37.7%

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

                                                                                                                          if -2.5999999999999999e-278 < y4 < 1.9499999999999999e-244

                                                                                                                          1. Initial program 40.1%

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

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

                                                                                                                              \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                            2. Taylor expanded in c around inf

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

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

                                                                                                                              if 1.9499999999999999e-244 < y4 < 6.8e28

                                                                                                                              1. Initial program 26.0%

                                                                                                                                \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                                                                                              2. 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. Step-by-step derivation
                                                                                                                                1. Applied rewrites42.4%

                                                                                                                                  \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot \left(j \cdot t - k \cdot y\right)\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\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 rewrites43.1%

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

                                                                                                                                Alternative 11: 33.4% accurate, 3.5× speedup?

                                                                                                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ t_2 := i \cdot \left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right)\\ \mathbf{if}\;y4 \leq -1.55 \cdot 10^{+165}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \mathbf{elif}\;y4 \leq -5.5 \cdot 10^{+63}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y4 \leq -3.8 \cdot 10^{-32}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;y4 \leq 1.95 \cdot 10^{-244}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;y4 \leq 6.8 \cdot 10^{+28}:\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                                                (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                 :precision binary64
                                                                                                                                 (let* ((t_1 (* b (* y4 (- (* j t) (* k y)))))
                                                                                                                                        (t_2 (* i (* t (fma -1.0 (* j y5) (* c z))))))
                                                                                                                                   (if (<= y4 -1.55e+165)
                                                                                                                                     (* y1 (* y4 (- (* k y2) (* j y3))))
                                                                                                                                     (if (<= y4 -5.5e+63)
                                                                                                                                       t_1
                                                                                                                                       (if (<= y4 -3.8e-32)
                                                                                                                                         t_2
                                                                                                                                         (if (<= y4 1.95e-244)
                                                                                                                                           (* c (* y0 (- (* x y2) (* y3 z))))
                                                                                                                                           (if (<= y4 6.8e+28) t_2 t_1)))))))
                                                                                                                                double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                	double t_1 = b * (y4 * ((j * t) - (k * y)));
                                                                                                                                	double t_2 = i * (t * fma(-1.0, (j * y5), (c * z)));
                                                                                                                                	double tmp;
                                                                                                                                	if (y4 <= -1.55e+165) {
                                                                                                                                		tmp = y1 * (y4 * ((k * y2) - (j * y3)));
                                                                                                                                	} else if (y4 <= -5.5e+63) {
                                                                                                                                		tmp = t_1;
                                                                                                                                	} else if (y4 <= -3.8e-32) {
                                                                                                                                		tmp = t_2;
                                                                                                                                	} else if (y4 <= 1.95e-244) {
                                                                                                                                		tmp = c * (y0 * ((x * y2) - (y3 * z)));
                                                                                                                                	} else if (y4 <= 6.8e+28) {
                                                                                                                                		tmp = t_2;
                                                                                                                                	} else {
                                                                                                                                		tmp = t_1;
                                                                                                                                	}
                                                                                                                                	return tmp;
                                                                                                                                }
                                                                                                                                
                                                                                                                                function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                	t_1 = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y))))
                                                                                                                                	t_2 = Float64(i * Float64(t * fma(-1.0, Float64(j * y5), Float64(c * z))))
                                                                                                                                	tmp = 0.0
                                                                                                                                	if (y4 <= -1.55e+165)
                                                                                                                                		tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3))));
                                                                                                                                	elseif (y4 <= -5.5e+63)
                                                                                                                                		tmp = t_1;
                                                                                                                                	elseif (y4 <= -3.8e-32)
                                                                                                                                		tmp = t_2;
                                                                                                                                	elseif (y4 <= 1.95e-244)
                                                                                                                                		tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z))));
                                                                                                                                	elseif (y4 <= 6.8e+28)
                                                                                                                                		tmp = t_2;
                                                                                                                                	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[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(t * N[(-1.0 * N[(j * y5), $MachinePrecision] + N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.55e+165], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -5.5e+63], t$95$1, If[LessEqual[y4, -3.8e-32], t$95$2, If[LessEqual[y4, 1.95e-244], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 6.8e+28], t$95$2, t$95$1]]]]]]]
                                                                                                                                
                                                                                                                                \begin{array}{l}
                                                                                                                                
                                                                                                                                \\
                                                                                                                                \begin{array}{l}
                                                                                                                                t_1 := b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
                                                                                                                                t_2 := i \cdot \left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right)\\
                                                                                                                                \mathbf{if}\;y4 \leq -1.55 \cdot 10^{+165}:\\
                                                                                                                                \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
                                                                                                                                
                                                                                                                                \mathbf{elif}\;y4 \leq -5.5 \cdot 10^{+63}:\\
                                                                                                                                \;\;\;\;t\_1\\
                                                                                                                                
                                                                                                                                \mathbf{elif}\;y4 \leq -3.8 \cdot 10^{-32}:\\
                                                                                                                                \;\;\;\;t\_2\\
                                                                                                                                
                                                                                                                                \mathbf{elif}\;y4 \leq 1.95 \cdot 10^{-244}:\\
                                                                                                                                \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
                                                                                                                                
                                                                                                                                \mathbf{elif}\;y4 \leq 6.8 \cdot 10^{+28}:\\
                                                                                                                                \;\;\;\;t\_2\\
                                                                                                                                
                                                                                                                                \mathbf{else}:\\
                                                                                                                                \;\;\;\;t\_1\\
                                                                                                                                
                                                                                                                                
                                                                                                                                \end{array}
                                                                                                                                \end{array}
                                                                                                                                
                                                                                                                                Derivation
                                                                                                                                1. Split input into 4 regimes
                                                                                                                                2. if y4 < -1.5500000000000001e165

                                                                                                                                  1. Initial program 28.4%

                                                                                                                                    \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                                                                                                  2. Add Preprocessing
                                                                                                                                  3. Taylor expanded in 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. Step-by-step derivation
                                                                                                                                    1. Applied rewrites47.4%

                                                                                                                                      \[\leadsto \color{blue}{y1 \cdot \left(\mathsf{fma}\left(-1, a \cdot \left(x \cdot y2 - y3 \cdot z\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)} \]
                                                                                                                                    2. Taylor expanded in y4 around inf

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

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

                                                                                                                                      if -1.5500000000000001e165 < y4 < -5.50000000000000004e63 or 6.8e28 < y4

                                                                                                                                      1. Initial program 26.9%

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

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

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

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

                                                                                                                                          if -5.50000000000000004e63 < y4 < -3.80000000000000008e-32 or 1.9499999999999999e-244 < y4 < 6.8e28

                                                                                                                                          1. Initial program 30.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. Step-by-step derivation
                                                                                                                                            1. Applied rewrites48.2%

                                                                                                                                              \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot \left(j \cdot t - k \cdot y\right)\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\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 rewrites47.3%

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

                                                                                                                                              if -3.80000000000000008e-32 < y4 < 1.9499999999999999e-244

                                                                                                                                              1. Initial program 41.6%

                                                                                                                                                \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                                                                                                              2. Add Preprocessing
                                                                                                                                              3. Taylor expanded in 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. Step-by-step derivation
                                                                                                                                                1. Applied rewrites51.3%

                                                                                                                                                  \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                                2. Taylor expanded in c around inf

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

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

                                                                                                                                                Alternative 12: 32.6% accurate, 3.6× speedup?

                                                                                                                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ \mathbf{if}\;y4 \leq -1.55 \cdot 10^{+165}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \mathbf{elif}\;y4 \leq -3.5 \cdot 10^{+17}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y4 \leq -2.6 \cdot 10^{-278}:\\ \;\;\;\;k \cdot \left(y5 \cdot \mathsf{fma}\left(-1, y0 \cdot y2, i \cdot y\right)\right)\\ \mathbf{elif}\;y4 \leq 1.9 \cdot 10^{-241}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;y4 \leq 1.3 \cdot 10^{+21}:\\ \;\;\;\;\left(-y5\right) \cdot \left(y2 \cdot \left(k \cdot y0 - a \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                                                                (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                 :precision binary64
                                                                                                                                                 (let* ((t_1 (* b (* y4 (- (* j t) (* k y))))))
                                                                                                                                                   (if (<= y4 -1.55e+165)
                                                                                                                                                     (* y1 (* y4 (- (* k y2) (* j y3))))
                                                                                                                                                     (if (<= y4 -3.5e+17)
                                                                                                                                                       t_1
                                                                                                                                                       (if (<= y4 -2.6e-278)
                                                                                                                                                         (* k (* y5 (fma -1.0 (* y0 y2) (* i y))))
                                                                                                                                                         (if (<= y4 1.9e-241)
                                                                                                                                                           (* c (* y0 (- (* x y2) (* y3 z))))
                                                                                                                                                           (if (<= y4 1.3e+21)
                                                                                                                                                             (* (- y5) (* y2 (- (* k y0) (* a t))))
                                                                                                                                                             t_1)))))))
                                                                                                                                                double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                	double t_1 = b * (y4 * ((j * t) - (k * y)));
                                                                                                                                                	double tmp;
                                                                                                                                                	if (y4 <= -1.55e+165) {
                                                                                                                                                		tmp = y1 * (y4 * ((k * y2) - (j * y3)));
                                                                                                                                                	} else if (y4 <= -3.5e+17) {
                                                                                                                                                		tmp = t_1;
                                                                                                                                                	} else if (y4 <= -2.6e-278) {
                                                                                                                                                		tmp = k * (y5 * fma(-1.0, (y0 * y2), (i * y)));
                                                                                                                                                	} else if (y4 <= 1.9e-241) {
                                                                                                                                                		tmp = c * (y0 * ((x * y2) - (y3 * z)));
                                                                                                                                                	} else if (y4 <= 1.3e+21) {
                                                                                                                                                		tmp = -y5 * (y2 * ((k * y0) - (a * t)));
                                                                                                                                                	} else {
                                                                                                                                                		tmp = t_1;
                                                                                                                                                	}
                                                                                                                                                	return tmp;
                                                                                                                                                }
                                                                                                                                                
                                                                                                                                                function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                	t_1 = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y))))
                                                                                                                                                	tmp = 0.0
                                                                                                                                                	if (y4 <= -1.55e+165)
                                                                                                                                                		tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3))));
                                                                                                                                                	elseif (y4 <= -3.5e+17)
                                                                                                                                                		tmp = t_1;
                                                                                                                                                	elseif (y4 <= -2.6e-278)
                                                                                                                                                		tmp = Float64(k * Float64(y5 * fma(-1.0, Float64(y0 * y2), Float64(i * y))));
                                                                                                                                                	elseif (y4 <= 1.9e-241)
                                                                                                                                                		tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z))));
                                                                                                                                                	elseif (y4 <= 1.3e+21)
                                                                                                                                                		tmp = Float64(Float64(-y5) * Float64(y2 * Float64(Float64(k * y0) - Float64(a * t))));
                                                                                                                                                	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[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.55e+165], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -3.5e+17], t$95$1, If[LessEqual[y4, -2.6e-278], N[(k * N[(y5 * N[(-1.0 * N[(y0 * y2), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.9e-241], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.3e+21], N[((-y5) * N[(y2 * N[(N[(k * y0), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
                                                                                                                                                
                                                                                                                                                \begin{array}{l}
                                                                                                                                                
                                                                                                                                                \\
                                                                                                                                                \begin{array}{l}
                                                                                                                                                t_1 := b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
                                                                                                                                                \mathbf{if}\;y4 \leq -1.55 \cdot 10^{+165}:\\
                                                                                                                                                \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
                                                                                                                                                
                                                                                                                                                \mathbf{elif}\;y4 \leq -3.5 \cdot 10^{+17}:\\
                                                                                                                                                \;\;\;\;t\_1\\
                                                                                                                                                
                                                                                                                                                \mathbf{elif}\;y4 \leq -2.6 \cdot 10^{-278}:\\
                                                                                                                                                \;\;\;\;k \cdot \left(y5 \cdot \mathsf{fma}\left(-1, y0 \cdot y2, i \cdot y\right)\right)\\
                                                                                                                                                
                                                                                                                                                \mathbf{elif}\;y4 \leq 1.9 \cdot 10^{-241}:\\
                                                                                                                                                \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
                                                                                                                                                
                                                                                                                                                \mathbf{elif}\;y4 \leq 1.3 \cdot 10^{+21}:\\
                                                                                                                                                \;\;\;\;\left(-y5\right) \cdot \left(y2 \cdot \left(k \cdot y0 - a \cdot t\right)\right)\\
                                                                                                                                                
                                                                                                                                                \mathbf{else}:\\
                                                                                                                                                \;\;\;\;t\_1\\
                                                                                                                                                
                                                                                                                                                
                                                                                                                                                \end{array}
                                                                                                                                                \end{array}
                                                                                                                                                
                                                                                                                                                Derivation
                                                                                                                                                1. Split input into 5 regimes
                                                                                                                                                2. if y4 < -1.5500000000000001e165

                                                                                                                                                  1. Initial program 28.4%

                                                                                                                                                    \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                                                                                                                  2. Add Preprocessing
                                                                                                                                                  3. Taylor expanded in 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. Step-by-step derivation
                                                                                                                                                    1. Applied rewrites47.4%

                                                                                                                                                      \[\leadsto \color{blue}{y1 \cdot \left(\mathsf{fma}\left(-1, a \cdot \left(x \cdot y2 - y3 \cdot z\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)} \]
                                                                                                                                                    2. Taylor expanded in y4 around inf

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

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

                                                                                                                                                      if -1.5500000000000001e165 < y4 < -3.5e17 or 1.3e21 < y4

                                                                                                                                                      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 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 rewrites52.8%

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

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

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

                                                                                                                                                          if -3.5e17 < y4 < -2.5999999999999999e-278

                                                                                                                                                          1. Initial program 45.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}{-1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(i, j \cdot t - k \cdot y, y0 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - a \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\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 rewrites37.7%

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

                                                                                                                                                              if -2.5999999999999999e-278 < y4 < 1.8999999999999999e-241

                                                                                                                                                              1. Initial program 38.6%

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

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

                                                                                                                                                                  \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                                                2. Taylor expanded in c around inf

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

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

                                                                                                                                                                  if 1.8999999999999999e-241 < y4 < 1.3e21

                                                                                                                                                                  1. Initial program 23.9%

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

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

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

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

                                                                                                                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;y4 \leq -1.55 \cdot 10^{+165}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \mathbf{elif}\;y4 \leq -3.5 \cdot 10^{+17}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ \mathbf{elif}\;y4 \leq -2.6 \cdot 10^{-278}:\\ \;\;\;\;k \cdot \left(y5 \cdot \mathsf{fma}\left(-1, y0 \cdot y2, i \cdot y\right)\right)\\ \mathbf{elif}\;y4 \leq 1.9 \cdot 10^{-241}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;y4 \leq 1.3 \cdot 10^{+21}:\\ \;\;\;\;\left(-y5\right) \cdot \left(y2 \cdot \left(k \cdot y0 - a \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ \end{array} \]
                                                                                                                                                                    6. Add Preprocessing

                                                                                                                                                                    Alternative 13: 29.0% accurate, 3.7× speedup?

                                                                                                                                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -2.8 \cdot 10^{+78}:\\ \;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\ \mathbf{elif}\;a \leq -3 \cdot 10^{-115}:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{elif}\;a \leq 6.8 \cdot 10^{-164}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;a \leq 2.05 \cdot 10^{-16} \lor \neg \left(a \leq 2.45 \cdot 10^{+166}\right):\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\ \end{array} \end{array} \]
                                                                                                                                                                    (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                     :precision binary64
                                                                                                                                                                     (if (<= a -2.8e+78)
                                                                                                                                                                       (* a (* y5 (- (* t y2) (* y y3))))
                                                                                                                                                                       (if (<= a -3e-115)
                                                                                                                                                                         (* c (* y4 (- (* y y3) (* t y2))))
                                                                                                                                                                         (if (<= a 6.8e-164)
                                                                                                                                                                           (* c (* y0 (- (* x y2) (* y3 z))))
                                                                                                                                                                           (if (or (<= a 2.05e-16) (not (<= a 2.45e+166)))
                                                                                                                                                                             (* i (* z (- (* c t) (* k y1))))
                                                                                                                                                                             (* a (* b (- (* x y) (* t z)))))))))
                                                                                                                                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                    	double tmp;
                                                                                                                                                                    	if (a <= -2.8e+78) {
                                                                                                                                                                    		tmp = a * (y5 * ((t * y2) - (y * y3)));
                                                                                                                                                                    	} else if (a <= -3e-115) {
                                                                                                                                                                    		tmp = c * (y4 * ((y * y3) - (t * y2)));
                                                                                                                                                                    	} else if (a <= 6.8e-164) {
                                                                                                                                                                    		tmp = c * (y0 * ((x * y2) - (y3 * z)));
                                                                                                                                                                    	} else if ((a <= 2.05e-16) || !(a <= 2.45e+166)) {
                                                                                                                                                                    		tmp = i * (z * ((c * t) - (k * y1)));
                                                                                                                                                                    	} else {
                                                                                                                                                                    		tmp = a * (b * ((x * y) - (t * z)));
                                                                                                                                                                    	}
                                                                                                                                                                    	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 (a <= (-2.8d+78)) then
                                                                                                                                                                            tmp = a * (y5 * ((t * y2) - (y * y3)))
                                                                                                                                                                        else if (a <= (-3d-115)) then
                                                                                                                                                                            tmp = c * (y4 * ((y * y3) - (t * y2)))
                                                                                                                                                                        else if (a <= 6.8d-164) then
                                                                                                                                                                            tmp = c * (y0 * ((x * y2) - (y3 * z)))
                                                                                                                                                                        else if ((a <= 2.05d-16) .or. (.not. (a <= 2.45d+166))) then
                                                                                                                                                                            tmp = i * (z * ((c * t) - (k * y1)))
                                                                                                                                                                        else
                                                                                                                                                                            tmp = a * (b * ((x * y) - (t * z)))
                                                                                                                                                                        end if
                                                                                                                                                                        code = tmp
                                                                                                                                                                    end function
                                                                                                                                                                    
                                                                                                                                                                    public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                    	double tmp;
                                                                                                                                                                    	if (a <= -2.8e+78) {
                                                                                                                                                                    		tmp = a * (y5 * ((t * y2) - (y * y3)));
                                                                                                                                                                    	} else if (a <= -3e-115) {
                                                                                                                                                                    		tmp = c * (y4 * ((y * y3) - (t * y2)));
                                                                                                                                                                    	} else if (a <= 6.8e-164) {
                                                                                                                                                                    		tmp = c * (y0 * ((x * y2) - (y3 * z)));
                                                                                                                                                                    	} else if ((a <= 2.05e-16) || !(a <= 2.45e+166)) {
                                                                                                                                                                    		tmp = i * (z * ((c * t) - (k * y1)));
                                                                                                                                                                    	} else {
                                                                                                                                                                    		tmp = a * (b * ((x * y) - (t * z)));
                                                                                                                                                                    	}
                                                                                                                                                                    	return tmp;
                                                                                                                                                                    }
                                                                                                                                                                    
                                                                                                                                                                    def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                    	tmp = 0
                                                                                                                                                                    	if a <= -2.8e+78:
                                                                                                                                                                    		tmp = a * (y5 * ((t * y2) - (y * y3)))
                                                                                                                                                                    	elif a <= -3e-115:
                                                                                                                                                                    		tmp = c * (y4 * ((y * y3) - (t * y2)))
                                                                                                                                                                    	elif a <= 6.8e-164:
                                                                                                                                                                    		tmp = c * (y0 * ((x * y2) - (y3 * z)))
                                                                                                                                                                    	elif (a <= 2.05e-16) or not (a <= 2.45e+166):
                                                                                                                                                                    		tmp = i * (z * ((c * t) - (k * y1)))
                                                                                                                                                                    	else:
                                                                                                                                                                    		tmp = a * (b * ((x * y) - (t * z)))
                                                                                                                                                                    	return tmp
                                                                                                                                                                    
                                                                                                                                                                    function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                    	tmp = 0.0
                                                                                                                                                                    	if (a <= -2.8e+78)
                                                                                                                                                                    		tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))));
                                                                                                                                                                    	elseif (a <= -3e-115)
                                                                                                                                                                    		tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))));
                                                                                                                                                                    	elseif (a <= 6.8e-164)
                                                                                                                                                                    		tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z))));
                                                                                                                                                                    	elseif ((a <= 2.05e-16) || !(a <= 2.45e+166))
                                                                                                                                                                    		tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1))));
                                                                                                                                                                    	else
                                                                                                                                                                    		tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z))));
                                                                                                                                                                    	end
                                                                                                                                                                    	return tmp
                                                                                                                                                                    end
                                                                                                                                                                    
                                                                                                                                                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                    	tmp = 0.0;
                                                                                                                                                                    	if (a <= -2.8e+78)
                                                                                                                                                                    		tmp = a * (y5 * ((t * y2) - (y * y3)));
                                                                                                                                                                    	elseif (a <= -3e-115)
                                                                                                                                                                    		tmp = c * (y4 * ((y * y3) - (t * y2)));
                                                                                                                                                                    	elseif (a <= 6.8e-164)
                                                                                                                                                                    		tmp = c * (y0 * ((x * y2) - (y3 * z)));
                                                                                                                                                                    	elseif ((a <= 2.05e-16) || ~((a <= 2.45e+166)))
                                                                                                                                                                    		tmp = i * (z * ((c * t) - (k * y1)));
                                                                                                                                                                    	else
                                                                                                                                                                    		tmp = a * (b * ((x * y) - (t * z)));
                                                                                                                                                                    	end
                                                                                                                                                                    	tmp_2 = tmp;
                                                                                                                                                                    end
                                                                                                                                                                    
                                                                                                                                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[a, -2.8e+78], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3e-115], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.8e-164], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, 2.05e-16], N[Not[LessEqual[a, 2.45e+166]], $MachinePrecision]], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
                                                                                                                                                                    
                                                                                                                                                                    \begin{array}{l}
                                                                                                                                                                    
                                                                                                                                                                    \\
                                                                                                                                                                    \begin{array}{l}
                                                                                                                                                                    \mathbf{if}\;a \leq -2.8 \cdot 10^{+78}:\\
                                                                                                                                                                    \;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
                                                                                                                                                                    
                                                                                                                                                                    \mathbf{elif}\;a \leq -3 \cdot 10^{-115}:\\
                                                                                                                                                                    \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
                                                                                                                                                                    
                                                                                                                                                                    \mathbf{elif}\;a \leq 6.8 \cdot 10^{-164}:\\
                                                                                                                                                                    \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
                                                                                                                                                                    
                                                                                                                                                                    \mathbf{elif}\;a \leq 2.05 \cdot 10^{-16} \lor \neg \left(a \leq 2.45 \cdot 10^{+166}\right):\\
                                                                                                                                                                    \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
                                                                                                                                                                    
                                                                                                                                                                    \mathbf{else}:\\
                                                                                                                                                                    \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
                                                                                                                                                                    
                                                                                                                                                                    
                                                                                                                                                                    \end{array}
                                                                                                                                                                    \end{array}
                                                                                                                                                                    
                                                                                                                                                                    Derivation
                                                                                                                                                                    1. Split input into 5 regimes
                                                                                                                                                                    2. if a < -2.8000000000000001e78

                                                                                                                                                                      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 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 rewrites47.8%

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

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

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

                                                                                                                                                                          if -2.8000000000000001e78 < a < -3.0000000000000002e-115

                                                                                                                                                                          1. Initial program 31.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 rewrites58.0%

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

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

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

                                                                                                                                                                              if -3.0000000000000002e-115 < a < 6.8e-164

                                                                                                                                                                              1. Initial program 47.9%

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

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

                                                                                                                                                                                  \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                                                                2. Taylor expanded in c around inf

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

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

                                                                                                                                                                                  if 6.8e-164 < a < 2.05000000000000003e-16 or 2.44999999999999985e166 < a

                                                                                                                                                                                  1. Initial program 19.1%

                                                                                                                                                                                    \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                                                                                                                                                  2. Add Preprocessing
                                                                                                                                                                                  3. Taylor expanded in 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. Step-by-step derivation
                                                                                                                                                                                    1. Applied rewrites52.4%

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

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

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

                                                                                                                                                                                      if 2.05000000000000003e-16 < a < 2.44999999999999985e166

                                                                                                                                                                                      1. Initial program 32.4%

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

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

                                                                                                                                                                                          \[\leadsto a \cdot \color{blue}{\left(b \cdot \left(x \cdot y - t \cdot z\right)\right)} \]
                                                                                                                                                                                        3. Step-by-step derivation
                                                                                                                                                                                          1. Applied rewrites44.0%

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

                                                                                                                                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.8 \cdot 10^{+78}:\\ \;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\ \mathbf{elif}\;a \leq -3 \cdot 10^{-115}:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{elif}\;a \leq 6.8 \cdot 10^{-164}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;a \leq 2.05 \cdot 10^{-16} \lor \neg \left(a \leq 2.45 \cdot 10^{+166}\right):\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\ \end{array} \]
                                                                                                                                                                                        6. Add Preprocessing

                                                                                                                                                                                        Alternative 14: 31.8% accurate, 3.7× speedup?

                                                                                                                                                                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ t_2 := x \cdot y2 - y3 \cdot z\\ \mathbf{if}\;y4 \leq -1.7 \cdot 10^{-18}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y4 \leq -1.95 \cdot 10^{-176}:\\ \;\;\;\;y0 \cdot \left(c \cdot t\_2\right)\\ \mathbf{elif}\;y4 \leq -9 \cdot 10^{-278}:\\ \;\;\;\;y0 \cdot \left(y2 \cdot \left(\left(-k\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y4 \leq 9.2 \cdot 10^{-164}:\\ \;\;\;\;c \cdot \left(y0 \cdot t\_2\right)\\ \mathbf{elif}\;y4 \leq 1.05 \cdot 10^{+41}:\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \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 (* b (* y4 (- (* j t) (* k y))))) (t_2 (- (* x y2) (* y3 z))))
                                                                                                                                                                                           (if (<= y4 -1.7e-18)
                                                                                                                                                                                             t_1
                                                                                                                                                                                             (if (<= y4 -1.95e-176)
                                                                                                                                                                                               (* y0 (* c t_2))
                                                                                                                                                                                               (if (<= y4 -9e-278)
                                                                                                                                                                                                 (* y0 (* y2 (* (- k) y5)))
                                                                                                                                                                                                 (if (<= y4 9.2e-164)
                                                                                                                                                                                                   (* c (* y0 t_2))
                                                                                                                                                                                                   (if (<= y4 1.05e+41) (* i (* z (- (* 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 = b * (y4 * ((j * t) - (k * y)));
                                                                                                                                                                                        	double t_2 = (x * y2) - (y3 * z);
                                                                                                                                                                                        	double tmp;
                                                                                                                                                                                        	if (y4 <= -1.7e-18) {
                                                                                                                                                                                        		tmp = t_1;
                                                                                                                                                                                        	} else if (y4 <= -1.95e-176) {
                                                                                                                                                                                        		tmp = y0 * (c * t_2);
                                                                                                                                                                                        	} else if (y4 <= -9e-278) {
                                                                                                                                                                                        		tmp = y0 * (y2 * (-k * y5));
                                                                                                                                                                                        	} else if (y4 <= 9.2e-164) {
                                                                                                                                                                                        		tmp = c * (y0 * t_2);
                                                                                                                                                                                        	} else if (y4 <= 1.05e+41) {
                                                                                                                                                                                        		tmp = i * (z * ((c * t) - (k * y1)));
                                                                                                                                                                                        	} 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) :: t_2
                                                                                                                                                                                            real(8) :: tmp
                                                                                                                                                                                            t_1 = b * (y4 * ((j * t) - (k * y)))
                                                                                                                                                                                            t_2 = (x * y2) - (y3 * z)
                                                                                                                                                                                            if (y4 <= (-1.7d-18)) then
                                                                                                                                                                                                tmp = t_1
                                                                                                                                                                                            else if (y4 <= (-1.95d-176)) then
                                                                                                                                                                                                tmp = y0 * (c * t_2)
                                                                                                                                                                                            else if (y4 <= (-9d-278)) then
                                                                                                                                                                                                tmp = y0 * (y2 * (-k * y5))
                                                                                                                                                                                            else if (y4 <= 9.2d-164) then
                                                                                                                                                                                                tmp = c * (y0 * t_2)
                                                                                                                                                                                            else if (y4 <= 1.05d+41) then
                                                                                                                                                                                                tmp = i * (z * ((c * t) - (k * y1)))
                                                                                                                                                                                            else
                                                                                                                                                                                                tmp = t_1
                                                                                                                                                                                            end if
                                                                                                                                                                                            code = tmp
                                                                                                                                                                                        end function
                                                                                                                                                                                        
                                                                                                                                                                                        public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                        	double t_1 = b * (y4 * ((j * t) - (k * y)));
                                                                                                                                                                                        	double t_2 = (x * y2) - (y3 * z);
                                                                                                                                                                                        	double tmp;
                                                                                                                                                                                        	if (y4 <= -1.7e-18) {
                                                                                                                                                                                        		tmp = t_1;
                                                                                                                                                                                        	} else if (y4 <= -1.95e-176) {
                                                                                                                                                                                        		tmp = y0 * (c * t_2);
                                                                                                                                                                                        	} else if (y4 <= -9e-278) {
                                                                                                                                                                                        		tmp = y0 * (y2 * (-k * y5));
                                                                                                                                                                                        	} else if (y4 <= 9.2e-164) {
                                                                                                                                                                                        		tmp = c * (y0 * t_2);
                                                                                                                                                                                        	} else if (y4 <= 1.05e+41) {
                                                                                                                                                                                        		tmp = i * (z * ((c * t) - (k * y1)));
                                                                                                                                                                                        	} else {
                                                                                                                                                                                        		tmp = t_1;
                                                                                                                                                                                        	}
                                                                                                                                                                                        	return tmp;
                                                                                                                                                                                        }
                                                                                                                                                                                        
                                                                                                                                                                                        def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                                        	t_1 = b * (y4 * ((j * t) - (k * y)))
                                                                                                                                                                                        	t_2 = (x * y2) - (y3 * z)
                                                                                                                                                                                        	tmp = 0
                                                                                                                                                                                        	if y4 <= -1.7e-18:
                                                                                                                                                                                        		tmp = t_1
                                                                                                                                                                                        	elif y4 <= -1.95e-176:
                                                                                                                                                                                        		tmp = y0 * (c * t_2)
                                                                                                                                                                                        	elif y4 <= -9e-278:
                                                                                                                                                                                        		tmp = y0 * (y2 * (-k * y5))
                                                                                                                                                                                        	elif y4 <= 9.2e-164:
                                                                                                                                                                                        		tmp = c * (y0 * t_2)
                                                                                                                                                                                        	elif y4 <= 1.05e+41:
                                                                                                                                                                                        		tmp = i * (z * ((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(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y))))
                                                                                                                                                                                        	t_2 = Float64(Float64(x * y2) - Float64(y3 * z))
                                                                                                                                                                                        	tmp = 0.0
                                                                                                                                                                                        	if (y4 <= -1.7e-18)
                                                                                                                                                                                        		tmp = t_1;
                                                                                                                                                                                        	elseif (y4 <= -1.95e-176)
                                                                                                                                                                                        		tmp = Float64(y0 * Float64(c * t_2));
                                                                                                                                                                                        	elseif (y4 <= -9e-278)
                                                                                                                                                                                        		tmp = Float64(y0 * Float64(y2 * Float64(Float64(-k) * y5)));
                                                                                                                                                                                        	elseif (y4 <= 9.2e-164)
                                                                                                                                                                                        		tmp = Float64(c * Float64(y0 * t_2));
                                                                                                                                                                                        	elseif (y4 <= 1.05e+41)
                                                                                                                                                                                        		tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1))));
                                                                                                                                                                                        	else
                                                                                                                                                                                        		tmp = t_1;
                                                                                                                                                                                        	end
                                                                                                                                                                                        	return tmp
                                                                                                                                                                                        end
                                                                                                                                                                                        
                                                                                                                                                                                        function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                        	t_1 = b * (y4 * ((j * t) - (k * y)));
                                                                                                                                                                                        	t_2 = (x * y2) - (y3 * z);
                                                                                                                                                                                        	tmp = 0.0;
                                                                                                                                                                                        	if (y4 <= -1.7e-18)
                                                                                                                                                                                        		tmp = t_1;
                                                                                                                                                                                        	elseif (y4 <= -1.95e-176)
                                                                                                                                                                                        		tmp = y0 * (c * t_2);
                                                                                                                                                                                        	elseif (y4 <= -9e-278)
                                                                                                                                                                                        		tmp = y0 * (y2 * (-k * y5));
                                                                                                                                                                                        	elseif (y4 <= 9.2e-164)
                                                                                                                                                                                        		tmp = c * (y0 * t_2);
                                                                                                                                                                                        	elseif (y4 <= 1.05e+41)
                                                                                                                                                                                        		tmp = i * (z * ((c * t) - (k * y1)));
                                                                                                                                                                                        	else
                                                                                                                                                                                        		tmp = t_1;
                                                                                                                                                                                        	end
                                                                                                                                                                                        	tmp_2 = tmp;
                                                                                                                                                                                        end
                                                                                                                                                                                        
                                                                                                                                                                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.7e-18], t$95$1, If[LessEqual[y4, -1.95e-176], N[(y0 * N[(c * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -9e-278], N[(y0 * N[(y2 * N[((-k) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 9.2e-164], N[(c * N[(y0 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.05e+41], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
                                                                                                                                                                                        
                                                                                                                                                                                        \begin{array}{l}
                                                                                                                                                                                        
                                                                                                                                                                                        \\
                                                                                                                                                                                        \begin{array}{l}
                                                                                                                                                                                        t_1 := b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
                                                                                                                                                                                        t_2 := x \cdot y2 - y3 \cdot z\\
                                                                                                                                                                                        \mathbf{if}\;y4 \leq -1.7 \cdot 10^{-18}:\\
                                                                                                                                                                                        \;\;\;\;t\_1\\
                                                                                                                                                                                        
                                                                                                                                                                                        \mathbf{elif}\;y4 \leq -1.95 \cdot 10^{-176}:\\
                                                                                                                                                                                        \;\;\;\;y0 \cdot \left(c \cdot t\_2\right)\\
                                                                                                                                                                                        
                                                                                                                                                                                        \mathbf{elif}\;y4 \leq -9 \cdot 10^{-278}:\\
                                                                                                                                                                                        \;\;\;\;y0 \cdot \left(y2 \cdot \left(\left(-k\right) \cdot y5\right)\right)\\
                                                                                                                                                                                        
                                                                                                                                                                                        \mathbf{elif}\;y4 \leq 9.2 \cdot 10^{-164}:\\
                                                                                                                                                                                        \;\;\;\;c \cdot \left(y0 \cdot t\_2\right)\\
                                                                                                                                                                                        
                                                                                                                                                                                        \mathbf{elif}\;y4 \leq 1.05 \cdot 10^{+41}:\\
                                                                                                                                                                                        \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
                                                                                                                                                                                        
                                                                                                                                                                                        \mathbf{else}:\\
                                                                                                                                                                                        \;\;\;\;t\_1\\
                                                                                                                                                                                        
                                                                                                                                                                                        
                                                                                                                                                                                        \end{array}
                                                                                                                                                                                        \end{array}
                                                                                                                                                                                        
                                                                                                                                                                                        Derivation
                                                                                                                                                                                        1. Split input into 5 regimes
                                                                                                                                                                                        2. if y4 < -1.70000000000000001e-18 or 1.05e41 < y4

                                                                                                                                                                                          1. Initial program 29.2%

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

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

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

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

                                                                                                                                                                                              if -1.70000000000000001e-18 < y4 < -1.9499999999999999e-176

                                                                                                                                                                                              1. Initial program 38.9%

                                                                                                                                                                                                \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                                                                                                                                                              2. Add Preprocessing
                                                                                                                                                                                              3. Taylor expanded in 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. Step-by-step derivation
                                                                                                                                                                                                1. Applied rewrites52.2%

                                                                                                                                                                                                  \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                                                                                2. Taylor expanded in c around inf

                                                                                                                                                                                                  \[\leadsto y0 \cdot \left(c \cdot \color{blue}{\left(x \cdot y2 - y3 \cdot z\right)}\right) \]
                                                                                                                                                                                                3. Step-by-step derivation
                                                                                                                                                                                                  1. Applied rewrites39.9%

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

                                                                                                                                                                                                  if -1.9499999999999999e-176 < y4 < -8.9999999999999996e-278

                                                                                                                                                                                                  1. Initial program 49.8%

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

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

                                                                                                                                                                                                      \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                                                                                    2. Taylor expanded in y2 around inf

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

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

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

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

                                                                                                                                                                                                        if -8.9999999999999996e-278 < y4 < 9.19999999999999942e-164

                                                                                                                                                                                                        1. Initial program 33.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. Step-by-step derivation
                                                                                                                                                                                                          1. Applied rewrites44.2%

                                                                                                                                                                                                            \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                                                                                          2. Taylor expanded in c around inf

                                                                                                                                                                                                            \[\leadsto c \cdot \color{blue}{\left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)} \]
                                                                                                                                                                                                          3. Step-by-step derivation
                                                                                                                                                                                                            1. Applied rewrites47.0%

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

                                                                                                                                                                                                            if 9.19999999999999942e-164 < y4 < 1.05e41

                                                                                                                                                                                                            1. Initial program 27.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. Step-by-step derivation
                                                                                                                                                                                                              1. Applied rewrites51.7%

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

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

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

                                                                                                                                                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;y4 \leq -1.7 \cdot 10^{-18}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ \mathbf{elif}\;y4 \leq -1.95 \cdot 10^{-176}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;y4 \leq -9 \cdot 10^{-278}:\\ \;\;\;\;y0 \cdot \left(y2 \cdot \left(\left(-k\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y4 \leq 9.2 \cdot 10^{-164}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;y4 \leq 1.05 \cdot 10^{+41}:\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ \end{array} \]
                                                                                                                                                                                                              6. Add Preprocessing

                                                                                                                                                                                                              Alternative 15: 31.6% accurate, 3.7× speedup?

                                                                                                                                                                                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ \mathbf{if}\;y4 \leq -3.7 \cdot 10^{-74}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y4 \leq -1.7 \cdot 10^{-141}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\ \mathbf{elif}\;y4 \leq -9 \cdot 10^{-278}:\\ \;\;\;\;y0 \cdot \left(y2 \cdot \left(\left(-k\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y4 \leq 9.2 \cdot 10^{-164}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;y4 \leq 1.05 \cdot 10^{+41}:\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \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 (* b (* y4 (- (* j t) (* k y))))))
                                                                                                                                                                                                                 (if (<= y4 -3.7e-74)
                                                                                                                                                                                                                   t_1
                                                                                                                                                                                                                   (if (<= y4 -1.7e-141)
                                                                                                                                                                                                                     (* a (* b (- (* x y) (* t z))))
                                                                                                                                                                                                                     (if (<= y4 -9e-278)
                                                                                                                                                                                                                       (* y0 (* y2 (* (- k) y5)))
                                                                                                                                                                                                                       (if (<= y4 9.2e-164)
                                                                                                                                                                                                                         (* c (* y0 (- (* x y2) (* y3 z))))
                                                                                                                                                                                                                         (if (<= y4 1.05e+41) (* i (* z (- (* 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 = b * (y4 * ((j * t) - (k * y)));
                                                                                                                                                                                                              	double tmp;
                                                                                                                                                                                                              	if (y4 <= -3.7e-74) {
                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                              	} else if (y4 <= -1.7e-141) {
                                                                                                                                                                                                              		tmp = a * (b * ((x * y) - (t * z)));
                                                                                                                                                                                                              	} else if (y4 <= -9e-278) {
                                                                                                                                                                                                              		tmp = y0 * (y2 * (-k * y5));
                                                                                                                                                                                                              	} else if (y4 <= 9.2e-164) {
                                                                                                                                                                                                              		tmp = c * (y0 * ((x * y2) - (y3 * z)));
                                                                                                                                                                                                              	} else if (y4 <= 1.05e+41) {
                                                                                                                                                                                                              		tmp = i * (z * ((c * t) - (k * y1)));
                                                                                                                                                                                                              	} 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 = b * (y4 * ((j * t) - (k * y)))
                                                                                                                                                                                                                  if (y4 <= (-3.7d-74)) then
                                                                                                                                                                                                                      tmp = t_1
                                                                                                                                                                                                                  else if (y4 <= (-1.7d-141)) then
                                                                                                                                                                                                                      tmp = a * (b * ((x * y) - (t * z)))
                                                                                                                                                                                                                  else if (y4 <= (-9d-278)) then
                                                                                                                                                                                                                      tmp = y0 * (y2 * (-k * y5))
                                                                                                                                                                                                                  else if (y4 <= 9.2d-164) then
                                                                                                                                                                                                                      tmp = c * (y0 * ((x * y2) - (y3 * z)))
                                                                                                                                                                                                                  else if (y4 <= 1.05d+41) then
                                                                                                                                                                                                                      tmp = i * (z * ((c * t) - (k * y1)))
                                                                                                                                                                                                                  else
                                                                                                                                                                                                                      tmp = t_1
                                                                                                                                                                                                                  end if
                                                                                                                                                                                                                  code = tmp
                                                                                                                                                                                                              end function
                                                                                                                                                                                                              
                                                                                                                                                                                                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                              	double t_1 = b * (y4 * ((j * t) - (k * y)));
                                                                                                                                                                                                              	double tmp;
                                                                                                                                                                                                              	if (y4 <= -3.7e-74) {
                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                              	} else if (y4 <= -1.7e-141) {
                                                                                                                                                                                                              		tmp = a * (b * ((x * y) - (t * z)));
                                                                                                                                                                                                              	} else if (y4 <= -9e-278) {
                                                                                                                                                                                                              		tmp = y0 * (y2 * (-k * y5));
                                                                                                                                                                                                              	} else if (y4 <= 9.2e-164) {
                                                                                                                                                                                                              		tmp = c * (y0 * ((x * y2) - (y3 * z)));
                                                                                                                                                                                                              	} else if (y4 <= 1.05e+41) {
                                                                                                                                                                                                              		tmp = i * (z * ((c * t) - (k * y1)));
                                                                                                                                                                                                              	} else {
                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                              	}
                                                                                                                                                                                                              	return tmp;
                                                                                                                                                                                                              }
                                                                                                                                                                                                              
                                                                                                                                                                                                              def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                                                              	t_1 = b * (y4 * ((j * t) - (k * y)))
                                                                                                                                                                                                              	tmp = 0
                                                                                                                                                                                                              	if y4 <= -3.7e-74:
                                                                                                                                                                                                              		tmp = t_1
                                                                                                                                                                                                              	elif y4 <= -1.7e-141:
                                                                                                                                                                                                              		tmp = a * (b * ((x * y) - (t * z)))
                                                                                                                                                                                                              	elif y4 <= -9e-278:
                                                                                                                                                                                                              		tmp = y0 * (y2 * (-k * y5))
                                                                                                                                                                                                              	elif y4 <= 9.2e-164:
                                                                                                                                                                                                              		tmp = c * (y0 * ((x * y2) - (y3 * z)))
                                                                                                                                                                                                              	elif y4 <= 1.05e+41:
                                                                                                                                                                                                              		tmp = i * (z * ((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(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y))))
                                                                                                                                                                                                              	tmp = 0.0
                                                                                                                                                                                                              	if (y4 <= -3.7e-74)
                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                              	elseif (y4 <= -1.7e-141)
                                                                                                                                                                                                              		tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z))));
                                                                                                                                                                                                              	elseif (y4 <= -9e-278)
                                                                                                                                                                                                              		tmp = Float64(y0 * Float64(y2 * Float64(Float64(-k) * y5)));
                                                                                                                                                                                                              	elseif (y4 <= 9.2e-164)
                                                                                                                                                                                                              		tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z))));
                                                                                                                                                                                                              	elseif (y4 <= 1.05e+41)
                                                                                                                                                                                                              		tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1))));
                                                                                                                                                                                                              	else
                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                              	end
                                                                                                                                                                                                              	return tmp
                                                                                                                                                                                                              end
                                                                                                                                                                                                              
                                                                                                                                                                                                              function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                              	t_1 = b * (y4 * ((j * t) - (k * y)));
                                                                                                                                                                                                              	tmp = 0.0;
                                                                                                                                                                                                              	if (y4 <= -3.7e-74)
                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                              	elseif (y4 <= -1.7e-141)
                                                                                                                                                                                                              		tmp = a * (b * ((x * y) - (t * z)));
                                                                                                                                                                                                              	elseif (y4 <= -9e-278)
                                                                                                                                                                                                              		tmp = y0 * (y2 * (-k * y5));
                                                                                                                                                                                                              	elseif (y4 <= 9.2e-164)
                                                                                                                                                                                                              		tmp = c * (y0 * ((x * y2) - (y3 * z)));
                                                                                                                                                                                                              	elseif (y4 <= 1.05e+41)
                                                                                                                                                                                                              		tmp = i * (z * ((c * t) - (k * y1)));
                                                                                                                                                                                                              	else
                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                              	end
                                                                                                                                                                                                              	tmp_2 = tmp;
                                                                                                                                                                                                              end
                                                                                                                                                                                                              
                                                                                                                                                                                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -3.7e-74], t$95$1, If[LessEqual[y4, -1.7e-141], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -9e-278], N[(y0 * N[(y2 * N[((-k) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 9.2e-164], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.05e+41], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
                                                                                                                                                                                                              
                                                                                                                                                                                                              \begin{array}{l}
                                                                                                                                                                                                              
                                                                                                                                                                                                              \\
                                                                                                                                                                                                              \begin{array}{l}
                                                                                                                                                                                                              t_1 := b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
                                                                                                                                                                                                              \mathbf{if}\;y4 \leq -3.7 \cdot 10^{-74}:\\
                                                                                                                                                                                                              \;\;\;\;t\_1\\
                                                                                                                                                                                                              
                                                                                                                                                                                                              \mathbf{elif}\;y4 \leq -1.7 \cdot 10^{-141}:\\
                                                                                                                                                                                                              \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
                                                                                                                                                                                                              
                                                                                                                                                                                                              \mathbf{elif}\;y4 \leq -9 \cdot 10^{-278}:\\
                                                                                                                                                                                                              \;\;\;\;y0 \cdot \left(y2 \cdot \left(\left(-k\right) \cdot y5\right)\right)\\
                                                                                                                                                                                                              
                                                                                                                                                                                                              \mathbf{elif}\;y4 \leq 9.2 \cdot 10^{-164}:\\
                                                                                                                                                                                                              \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
                                                                                                                                                                                                              
                                                                                                                                                                                                              \mathbf{elif}\;y4 \leq 1.05 \cdot 10^{+41}:\\
                                                                                                                                                                                                              \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
                                                                                                                                                                                                              
                                                                                                                                                                                                              \mathbf{else}:\\
                                                                                                                                                                                                              \;\;\;\;t\_1\\
                                                                                                                                                                                                              
                                                                                                                                                                                                              
                                                                                                                                                                                                              \end{array}
                                                                                                                                                                                                              \end{array}
                                                                                                                                                                                                              
                                                                                                                                                                                                              Derivation
                                                                                                                                                                                                              1. Split input into 5 regimes
                                                                                                                                                                                                              2. if y4 < -3.69999999999999994e-74 or 1.05e41 < y4

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

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

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

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

                                                                                                                                                                                                                    if -3.69999999999999994e-74 < y4 < -1.6999999999999999e-141

                                                                                                                                                                                                                    1. Initial program 33.6%

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

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

                                                                                                                                                                                                                        \[\leadsto a \cdot \color{blue}{\left(b \cdot \left(x \cdot y - t \cdot z\right)\right)} \]
                                                                                                                                                                                                                      3. Step-by-step derivation
                                                                                                                                                                                                                        1. Applied rewrites39.7%

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

                                                                                                                                                                                                                        if -1.6999999999999999e-141 < y4 < -8.9999999999999996e-278

                                                                                                                                                                                                                        1. Initial program 49.8%

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

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

                                                                                                                                                                                                                            \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                                                                                                          2. Taylor expanded in y2 around inf

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

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

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

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

                                                                                                                                                                                                                              if -8.9999999999999996e-278 < y4 < 9.19999999999999942e-164

                                                                                                                                                                                                                              1. Initial program 33.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. Step-by-step derivation
                                                                                                                                                                                                                                1. Applied rewrites44.2%

                                                                                                                                                                                                                                  \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                                                                                                                2. Taylor expanded in c around inf

                                                                                                                                                                                                                                  \[\leadsto c \cdot \color{blue}{\left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)} \]
                                                                                                                                                                                                                                3. Step-by-step derivation
                                                                                                                                                                                                                                  1. Applied rewrites47.0%

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

                                                                                                                                                                                                                                  if 9.19999999999999942e-164 < y4 < 1.05e41

                                                                                                                                                                                                                                  1. Initial program 27.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. Step-by-step derivation
                                                                                                                                                                                                                                    1. Applied rewrites51.7%

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

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

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

                                                                                                                                                                                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;y4 \leq -3.7 \cdot 10^{-74}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ \mathbf{elif}\;y4 \leq -1.7 \cdot 10^{-141}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\ \mathbf{elif}\;y4 \leq -9 \cdot 10^{-278}:\\ \;\;\;\;y0 \cdot \left(y2 \cdot \left(\left(-k\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y4 \leq 9.2 \cdot 10^{-164}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;y4 \leq 1.05 \cdot 10^{+41}:\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ \end{array} \]
                                                                                                                                                                                                                                    6. Add Preprocessing

                                                                                                                                                                                                                                    Alternative 16: 29.2% accurate, 4.2× speedup?

                                                                                                                                                                                                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -7900000000:\\ \;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\ \mathbf{elif}\;a \leq 6.8 \cdot 10^{-164}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;a \leq 2.05 \cdot 10^{-16} \lor \neg \left(a \leq 2.45 \cdot 10^{+166}\right):\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\ \end{array} \end{array} \]
                                                                                                                                                                                                                                    (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                                     :precision binary64
                                                                                                                                                                                                                                     (if (<= a -7900000000.0)
                                                                                                                                                                                                                                       (* a (* y5 (- (* t y2) (* y y3))))
                                                                                                                                                                                                                                       (if (<= a 6.8e-164)
                                                                                                                                                                                                                                         (* c (* y0 (- (* x y2) (* y3 z))))
                                                                                                                                                                                                                                         (if (or (<= a 2.05e-16) (not (<= a 2.45e+166)))
                                                                                                                                                                                                                                           (* i (* z (- (* c t) (* k y1))))
                                                                                                                                                                                                                                           (* a (* b (- (* x y) (* t z))))))))
                                                                                                                                                                                                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                    	double tmp;
                                                                                                                                                                                                                                    	if (a <= -7900000000.0) {
                                                                                                                                                                                                                                    		tmp = a * (y5 * ((t * y2) - (y * y3)));
                                                                                                                                                                                                                                    	} else if (a <= 6.8e-164) {
                                                                                                                                                                                                                                    		tmp = c * (y0 * ((x * y2) - (y3 * z)));
                                                                                                                                                                                                                                    	} else if ((a <= 2.05e-16) || !(a <= 2.45e+166)) {
                                                                                                                                                                                                                                    		tmp = i * (z * ((c * t) - (k * y1)));
                                                                                                                                                                                                                                    	} else {
                                                                                                                                                                                                                                    		tmp = a * (b * ((x * y) - (t * z)));
                                                                                                                                                                                                                                    	}
                                                                                                                                                                                                                                    	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 (a <= (-7900000000.0d0)) then
                                                                                                                                                                                                                                            tmp = a * (y5 * ((t * y2) - (y * y3)))
                                                                                                                                                                                                                                        else if (a <= 6.8d-164) then
                                                                                                                                                                                                                                            tmp = c * (y0 * ((x * y2) - (y3 * z)))
                                                                                                                                                                                                                                        else if ((a <= 2.05d-16) .or. (.not. (a <= 2.45d+166))) then
                                                                                                                                                                                                                                            tmp = i * (z * ((c * t) - (k * y1)))
                                                                                                                                                                                                                                        else
                                                                                                                                                                                                                                            tmp = a * (b * ((x * y) - (t * z)))
                                                                                                                                                                                                                                        end if
                                                                                                                                                                                                                                        code = tmp
                                                                                                                                                                                                                                    end function
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                    	double tmp;
                                                                                                                                                                                                                                    	if (a <= -7900000000.0) {
                                                                                                                                                                                                                                    		tmp = a * (y5 * ((t * y2) - (y * y3)));
                                                                                                                                                                                                                                    	} else if (a <= 6.8e-164) {
                                                                                                                                                                                                                                    		tmp = c * (y0 * ((x * y2) - (y3 * z)));
                                                                                                                                                                                                                                    	} else if ((a <= 2.05e-16) || !(a <= 2.45e+166)) {
                                                                                                                                                                                                                                    		tmp = i * (z * ((c * t) - (k * y1)));
                                                                                                                                                                                                                                    	} else {
                                                                                                                                                                                                                                    		tmp = a * (b * ((x * y) - (t * z)));
                                                                                                                                                                                                                                    	}
                                                                                                                                                                                                                                    	return tmp;
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                                                                                    	tmp = 0
                                                                                                                                                                                                                                    	if a <= -7900000000.0:
                                                                                                                                                                                                                                    		tmp = a * (y5 * ((t * y2) - (y * y3)))
                                                                                                                                                                                                                                    	elif a <= 6.8e-164:
                                                                                                                                                                                                                                    		tmp = c * (y0 * ((x * y2) - (y3 * z)))
                                                                                                                                                                                                                                    	elif (a <= 2.05e-16) or not (a <= 2.45e+166):
                                                                                                                                                                                                                                    		tmp = i * (z * ((c * t) - (k * y1)))
                                                                                                                                                                                                                                    	else:
                                                                                                                                                                                                                                    		tmp = a * (b * ((x * y) - (t * z)))
                                                                                                                                                                                                                                    	return tmp
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                    	tmp = 0.0
                                                                                                                                                                                                                                    	if (a <= -7900000000.0)
                                                                                                                                                                                                                                    		tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))));
                                                                                                                                                                                                                                    	elseif (a <= 6.8e-164)
                                                                                                                                                                                                                                    		tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z))));
                                                                                                                                                                                                                                    	elseif ((a <= 2.05e-16) || !(a <= 2.45e+166))
                                                                                                                                                                                                                                    		tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1))));
                                                                                                                                                                                                                                    	else
                                                                                                                                                                                                                                    		tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z))));
                                                                                                                                                                                                                                    	end
                                                                                                                                                                                                                                    	return tmp
                                                                                                                                                                                                                                    end
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                    	tmp = 0.0;
                                                                                                                                                                                                                                    	if (a <= -7900000000.0)
                                                                                                                                                                                                                                    		tmp = a * (y5 * ((t * y2) - (y * y3)));
                                                                                                                                                                                                                                    	elseif (a <= 6.8e-164)
                                                                                                                                                                                                                                    		tmp = c * (y0 * ((x * y2) - (y3 * z)));
                                                                                                                                                                                                                                    	elseif ((a <= 2.05e-16) || ~((a <= 2.45e+166)))
                                                                                                                                                                                                                                    		tmp = i * (z * ((c * t) - (k * y1)));
                                                                                                                                                                                                                                    	else
                                                                                                                                                                                                                                    		tmp = a * (b * ((x * y) - (t * z)));
                                                                                                                                                                                                                                    	end
                                                                                                                                                                                                                                    	tmp_2 = tmp;
                                                                                                                                                                                                                                    end
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[a, -7900000000.0], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.8e-164], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, 2.05e-16], N[Not[LessEqual[a, 2.45e+166]], $MachinePrecision]], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    \begin{array}{l}
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    \\
                                                                                                                                                                                                                                    \begin{array}{l}
                                                                                                                                                                                                                                    \mathbf{if}\;a \leq -7900000000:\\
                                                                                                                                                                                                                                    \;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    \mathbf{elif}\;a \leq 6.8 \cdot 10^{-164}:\\
                                                                                                                                                                                                                                    \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    \mathbf{elif}\;a \leq 2.05 \cdot 10^{-16} \lor \neg \left(a \leq 2.45 \cdot 10^{+166}\right):\\
                                                                                                                                                                                                                                    \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    \mathbf{else}:\\
                                                                                                                                                                                                                                    \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    \end{array}
                                                                                                                                                                                                                                    \end{array}
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    Derivation
                                                                                                                                                                                                                                    1. Split input into 4 regimes
                                                                                                                                                                                                                                    2. if a < -7.9e9

                                                                                                                                                                                                                                      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 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 rewrites44.2%

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

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

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

                                                                                                                                                                                                                                          if -7.9e9 < a < 6.8e-164

                                                                                                                                                                                                                                          1. Initial program 45.2%

                                                                                                                                                                                                                                            \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                                                                                                                                                                                                          2. Add Preprocessing
                                                                                                                                                                                                                                          3. Taylor expanded in 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. Step-by-step derivation
                                                                                                                                                                                                                                            1. Applied rewrites49.0%

                                                                                                                                                                                                                                              \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                                                                                                                            2. Taylor expanded in c around inf

                                                                                                                                                                                                                                              \[\leadsto c \cdot \color{blue}{\left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)} \]
                                                                                                                                                                                                                                            3. Step-by-step derivation
                                                                                                                                                                                                                                              1. Applied rewrites36.9%

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

                                                                                                                                                                                                                                              if 6.8e-164 < a < 2.05000000000000003e-16 or 2.44999999999999985e166 < a

                                                                                                                                                                                                                                              1. Initial program 19.1%

                                                                                                                                                                                                                                                \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                                                                                                                                                                                                              2. Add Preprocessing
                                                                                                                                                                                                                                              3. Taylor expanded in 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. Step-by-step derivation
                                                                                                                                                                                                                                                1. Applied rewrites52.4%

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

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

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

                                                                                                                                                                                                                                                  if 2.05000000000000003e-16 < a < 2.44999999999999985e166

                                                                                                                                                                                                                                                  1. Initial program 32.4%

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

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

                                                                                                                                                                                                                                                      \[\leadsto a \cdot \color{blue}{\left(b \cdot \left(x \cdot y - t \cdot z\right)\right)} \]
                                                                                                                                                                                                                                                    3. Step-by-step derivation
                                                                                                                                                                                                                                                      1. Applied rewrites44.0%

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

                                                                                                                                                                                                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -7900000000:\\ \;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\ \mathbf{elif}\;a \leq 6.8 \cdot 10^{-164}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;a \leq 2.05 \cdot 10^{-16} \lor \neg \left(a \leq 2.45 \cdot 10^{+166}\right):\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\ \end{array} \]
                                                                                                                                                                                                                                                    6. Add Preprocessing

                                                                                                                                                                                                                                                    Alternative 17: 29.5% accurate, 4.2× speedup?

                                                                                                                                                                                                                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y5 \leq -2.9 \cdot 10^{+179}:\\ \;\;\;\;i \cdot \left(t \cdot \left(\left(-j\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y5 \leq -6.6 \cdot 10^{-208}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \mathbf{elif}\;y5 \leq 1.5 \cdot 10^{+32}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;y5 \leq 1.7 \cdot 10^{+215}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\ \end{array} \end{array} \]
                                                                                                                                                                                                                                                    (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                                                     :precision binary64
                                                                                                                                                                                                                                                     (if (<= y5 -2.9e+179)
                                                                                                                                                                                                                                                       (* i (* t (* (- j) y5)))
                                                                                                                                                                                                                                                       (if (<= y5 -6.6e-208)
                                                                                                                                                                                                                                                         (* y1 (* y4 (- (* k y2) (* j y3))))
                                                                                                                                                                                                                                                         (if (<= y5 1.5e+32)
                                                                                                                                                                                                                                                           (* y0 (* c (- (* x y2) (* y3 z))))
                                                                                                                                                                                                                                                           (if (<= y5 1.7e+215)
                                                                                                                                                                                                                                                             (* b (* y4 (- (* j t) (* k y))))
                                                                                                                                                                                                                                                             (* a (* y5 (- (* t y2) (* y y3)))))))))
                                                                                                                                                                                                                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                    	double tmp;
                                                                                                                                                                                                                                                    	if (y5 <= -2.9e+179) {
                                                                                                                                                                                                                                                    		tmp = i * (t * (-j * y5));
                                                                                                                                                                                                                                                    	} else if (y5 <= -6.6e-208) {
                                                                                                                                                                                                                                                    		tmp = y1 * (y4 * ((k * y2) - (j * y3)));
                                                                                                                                                                                                                                                    	} else if (y5 <= 1.5e+32) {
                                                                                                                                                                                                                                                    		tmp = y0 * (c * ((x * y2) - (y3 * z)));
                                                                                                                                                                                                                                                    	} else if (y5 <= 1.7e+215) {
                                                                                                                                                                                                                                                    		tmp = b * (y4 * ((j * t) - (k * y)));
                                                                                                                                                                                                                                                    	} else {
                                                                                                                                                                                                                                                    		tmp = a * (y5 * ((t * y2) - (y * y3)));
                                                                                                                                                                                                                                                    	}
                                                                                                                                                                                                                                                    	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 (y5 <= (-2.9d+179)) then
                                                                                                                                                                                                                                                            tmp = i * (t * (-j * y5))
                                                                                                                                                                                                                                                        else if (y5 <= (-6.6d-208)) then
                                                                                                                                                                                                                                                            tmp = y1 * (y4 * ((k * y2) - (j * y3)))
                                                                                                                                                                                                                                                        else if (y5 <= 1.5d+32) then
                                                                                                                                                                                                                                                            tmp = y0 * (c * ((x * y2) - (y3 * z)))
                                                                                                                                                                                                                                                        else if (y5 <= 1.7d+215) then
                                                                                                                                                                                                                                                            tmp = b * (y4 * ((j * t) - (k * y)))
                                                                                                                                                                                                                                                        else
                                                                                                                                                                                                                                                            tmp = a * (y5 * ((t * y2) - (y * y3)))
                                                                                                                                                                                                                                                        end if
                                                                                                                                                                                                                                                        code = tmp
                                                                                                                                                                                                                                                    end function
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                    	double tmp;
                                                                                                                                                                                                                                                    	if (y5 <= -2.9e+179) {
                                                                                                                                                                                                                                                    		tmp = i * (t * (-j * y5));
                                                                                                                                                                                                                                                    	} else if (y5 <= -6.6e-208) {
                                                                                                                                                                                                                                                    		tmp = y1 * (y4 * ((k * y2) - (j * y3)));
                                                                                                                                                                                                                                                    	} else if (y5 <= 1.5e+32) {
                                                                                                                                                                                                                                                    		tmp = y0 * (c * ((x * y2) - (y3 * z)));
                                                                                                                                                                                                                                                    	} else if (y5 <= 1.7e+215) {
                                                                                                                                                                                                                                                    		tmp = b * (y4 * ((j * t) - (k * y)));
                                                                                                                                                                                                                                                    	} else {
                                                                                                                                                                                                                                                    		tmp = a * (y5 * ((t * y2) - (y * y3)));
                                                                                                                                                                                                                                                    	}
                                                                                                                                                                                                                                                    	return tmp;
                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                                                                                                    	tmp = 0
                                                                                                                                                                                                                                                    	if y5 <= -2.9e+179:
                                                                                                                                                                                                                                                    		tmp = i * (t * (-j * y5))
                                                                                                                                                                                                                                                    	elif y5 <= -6.6e-208:
                                                                                                                                                                                                                                                    		tmp = y1 * (y4 * ((k * y2) - (j * y3)))
                                                                                                                                                                                                                                                    	elif y5 <= 1.5e+32:
                                                                                                                                                                                                                                                    		tmp = y0 * (c * ((x * y2) - (y3 * z)))
                                                                                                                                                                                                                                                    	elif y5 <= 1.7e+215:
                                                                                                                                                                                                                                                    		tmp = b * (y4 * ((j * t) - (k * y)))
                                                                                                                                                                                                                                                    	else:
                                                                                                                                                                                                                                                    		tmp = a * (y5 * ((t * y2) - (y * y3)))
                                                                                                                                                                                                                                                    	return tmp
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                    	tmp = 0.0
                                                                                                                                                                                                                                                    	if (y5 <= -2.9e+179)
                                                                                                                                                                                                                                                    		tmp = Float64(i * Float64(t * Float64(Float64(-j) * y5)));
                                                                                                                                                                                                                                                    	elseif (y5 <= -6.6e-208)
                                                                                                                                                                                                                                                    		tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3))));
                                                                                                                                                                                                                                                    	elseif (y5 <= 1.5e+32)
                                                                                                                                                                                                                                                    		tmp = Float64(y0 * Float64(c * Float64(Float64(x * y2) - Float64(y3 * z))));
                                                                                                                                                                                                                                                    	elseif (y5 <= 1.7e+215)
                                                                                                                                                                                                                                                    		tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y))));
                                                                                                                                                                                                                                                    	else
                                                                                                                                                                                                                                                    		tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))));
                                                                                                                                                                                                                                                    	end
                                                                                                                                                                                                                                                    	return tmp
                                                                                                                                                                                                                                                    end
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                    	tmp = 0.0;
                                                                                                                                                                                                                                                    	if (y5 <= -2.9e+179)
                                                                                                                                                                                                                                                    		tmp = i * (t * (-j * y5));
                                                                                                                                                                                                                                                    	elseif (y5 <= -6.6e-208)
                                                                                                                                                                                                                                                    		tmp = y1 * (y4 * ((k * y2) - (j * y3)));
                                                                                                                                                                                                                                                    	elseif (y5 <= 1.5e+32)
                                                                                                                                                                                                                                                    		tmp = y0 * (c * ((x * y2) - (y3 * z)));
                                                                                                                                                                                                                                                    	elseif (y5 <= 1.7e+215)
                                                                                                                                                                                                                                                    		tmp = b * (y4 * ((j * t) - (k * y)));
                                                                                                                                                                                                                                                    	else
                                                                                                                                                                                                                                                    		tmp = a * (y5 * ((t * y2) - (y * y3)));
                                                                                                                                                                                                                                                    	end
                                                                                                                                                                                                                                                    	tmp_2 = tmp;
                                                                                                                                                                                                                                                    end
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -2.9e+179], N[(i * N[(t * N[((-j) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -6.6e-208], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.5e+32], N[(y0 * N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.7e+215], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    \begin{array}{l}
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    \\
                                                                                                                                                                                                                                                    \begin{array}{l}
                                                                                                                                                                                                                                                    \mathbf{if}\;y5 \leq -2.9 \cdot 10^{+179}:\\
                                                                                                                                                                                                                                                    \;\;\;\;i \cdot \left(t \cdot \left(\left(-j\right) \cdot y5\right)\right)\\
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    \mathbf{elif}\;y5 \leq -6.6 \cdot 10^{-208}:\\
                                                                                                                                                                                                                                                    \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    \mathbf{elif}\;y5 \leq 1.5 \cdot 10^{+32}:\\
                                                                                                                                                                                                                                                    \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    \mathbf{elif}\;y5 \leq 1.7 \cdot 10^{+215}:\\
                                                                                                                                                                                                                                                    \;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    \mathbf{else}:\\
                                                                                                                                                                                                                                                    \;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    \end{array}
                                                                                                                                                                                                                                                    \end{array}
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                    Derivation
                                                                                                                                                                                                                                                    1. Split input into 5 regimes
                                                                                                                                                                                                                                                    2. if y5 < -2.90000000000000019e179

                                                                                                                                                                                                                                                      1. Initial program 22.6%

                                                                                                                                                                                                                                                        \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                                                                                                                                                                                                                      2. Add Preprocessing
                                                                                                                                                                                                                                                      3. Taylor expanded in 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. Step-by-step derivation
                                                                                                                                                                                                                                                        1. Applied rewrites42.3%

                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot \left(j \cdot t - k \cdot y\right)\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\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 rewrites58.4%

                                                                                                                                                                                                                                                            \[\leadsto i \cdot \color{blue}{\left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right)} \]
                                                                                                                                                                                                                                                          2. Taylor expanded in z around 0

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

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

                                                                                                                                                                                                                                                            if -2.90000000000000019e179 < y5 < -6.60000000000000013e-208

                                                                                                                                                                                                                                                            1. Initial program 44.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. Step-by-step derivation
                                                                                                                                                                                                                                                              1. Applied rewrites44.8%

                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{y1 \cdot \left(\mathsf{fma}\left(-1, a \cdot \left(x \cdot y2 - y3 \cdot z\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)} \]
                                                                                                                                                                                                                                                              2. Taylor expanded in y4 around inf

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

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

                                                                                                                                                                                                                                                                if -6.60000000000000013e-208 < y5 < 1.5e32

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

                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                                                                                                                                                  2. Taylor expanded in c around inf

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

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

                                                                                                                                                                                                                                                                    if 1.5e32 < y5 < 1.70000000000000009e215

                                                                                                                                                                                                                                                                    1. Initial program 22.2%

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

                                                                                                                                                                                                                                                                      \[\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}{b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                                                                                                                                                      2. Taylor expanded in y4 around inf

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

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

                                                                                                                                                                                                                                                                        if 1.70000000000000009e215 < y5

                                                                                                                                                                                                                                                                        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 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 rewrites68.8%

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

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

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

                                                                                                                                                                                                                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -2.9 \cdot 10^{+179}:\\ \;\;\;\;i \cdot \left(t \cdot \left(\left(-j\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y5 \leq -6.6 \cdot 10^{-208}:\\ \;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\ \mathbf{elif}\;y5 \leq 1.5 \cdot 10^{+32}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{elif}\;y5 \leq 1.7 \cdot 10^{+215}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\ \end{array} \]
                                                                                                                                                                                                                                                                          6. Add Preprocessing

                                                                                                                                                                                                                                                                          Alternative 18: 29.9% accurate, 4.2× speedup?

                                                                                                                                                                                                                                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -6.5 \cdot 10^{+116}:\\ \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{elif}\;t \leq -3 \cdot 10^{+77}:\\ \;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\ \mathbf{elif}\;t \leq -7.2 \cdot 10^{-220}:\\ \;\;\;\;b \cdot \left(x \cdot \left(a \cdot y - j \cdot y0\right)\right)\\ \mathbf{elif}\;t \leq 8.6 \cdot 10^{+179}:\\ \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\ \end{array} \end{array} \]
                                                                                                                                                                                                                                                                          (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                                                                           :precision binary64
                                                                                                                                                                                                                                                                           (if (<= t -6.5e+116)
                                                                                                                                                                                                                                                                             (* c (* y4 (- (* y y3) (* t y2))))
                                                                                                                                                                                                                                                                             (if (<= t -3e+77)
                                                                                                                                                                                                                                                                               (* y (* y5 (- (* i k) (* a y3))))
                                                                                                                                                                                                                                                                               (if (<= t -7.2e-220)
                                                                                                                                                                                                                                                                                 (* b (* x (- (* a y) (* j y0))))
                                                                                                                                                                                                                                                                                 (if (<= t 8.6e+179)
                                                                                                                                                                                                                                                                                   (* c (* y0 (- (* x y2) (* y3 z))))
                                                                                                                                                                                                                                                                                   (* i (* z (- (* c t) (* k 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 (t <= -6.5e+116) {
                                                                                                                                                                                                                                                                          		tmp = c * (y4 * ((y * y3) - (t * y2)));
                                                                                                                                                                                                                                                                          	} else if (t <= -3e+77) {
                                                                                                                                                                                                                                                                          		tmp = y * (y5 * ((i * k) - (a * y3)));
                                                                                                                                                                                                                                                                          	} else if (t <= -7.2e-220) {
                                                                                                                                                                                                                                                                          		tmp = b * (x * ((a * y) - (j * y0)));
                                                                                                                                                                                                                                                                          	} else if (t <= 8.6e+179) {
                                                                                                                                                                                                                                                                          		tmp = c * (y0 * ((x * y2) - (y3 * z)));
                                                                                                                                                                                                                                                                          	} else {
                                                                                                                                                                                                                                                                          		tmp = i * (z * ((c * t) - (k * 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 (t <= (-6.5d+116)) then
                                                                                                                                                                                                                                                                                  tmp = c * (y4 * ((y * y3) - (t * y2)))
                                                                                                                                                                                                                                                                              else if (t <= (-3d+77)) then
                                                                                                                                                                                                                                                                                  tmp = y * (y5 * ((i * k) - (a * y3)))
                                                                                                                                                                                                                                                                              else if (t <= (-7.2d-220)) then
                                                                                                                                                                                                                                                                                  tmp = b * (x * ((a * y) - (j * y0)))
                                                                                                                                                                                                                                                                              else if (t <= 8.6d+179) then
                                                                                                                                                                                                                                                                                  tmp = c * (y0 * ((x * y2) - (y3 * z)))
                                                                                                                                                                                                                                                                              else
                                                                                                                                                                                                                                                                                  tmp = i * (z * ((c * t) - (k * 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 (t <= -6.5e+116) {
                                                                                                                                                                                                                                                                          		tmp = c * (y4 * ((y * y3) - (t * y2)));
                                                                                                                                                                                                                                                                          	} else if (t <= -3e+77) {
                                                                                                                                                                                                                                                                          		tmp = y * (y5 * ((i * k) - (a * y3)));
                                                                                                                                                                                                                                                                          	} else if (t <= -7.2e-220) {
                                                                                                                                                                                                                                                                          		tmp = b * (x * ((a * y) - (j * y0)));
                                                                                                                                                                                                                                                                          	} else if (t <= 8.6e+179) {
                                                                                                                                                                                                                                                                          		tmp = c * (y0 * ((x * y2) - (y3 * z)));
                                                                                                                                                                                                                                                                          	} else {
                                                                                                                                                                                                                                                                          		tmp = i * (z * ((c * t) - (k * y1)));
                                                                                                                                                                                                                                                                          	}
                                                                                                                                                                                                                                                                          	return tmp;
                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                          def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                                                                                                                          	tmp = 0
                                                                                                                                                                                                                                                                          	if t <= -6.5e+116:
                                                                                                                                                                                                                                                                          		tmp = c * (y4 * ((y * y3) - (t * y2)))
                                                                                                                                                                                                                                                                          	elif t <= -3e+77:
                                                                                                                                                                                                                                                                          		tmp = y * (y5 * ((i * k) - (a * y3)))
                                                                                                                                                                                                                                                                          	elif t <= -7.2e-220:
                                                                                                                                                                                                                                                                          		tmp = b * (x * ((a * y) - (j * y0)))
                                                                                                                                                                                                                                                                          	elif t <= 8.6e+179:
                                                                                                                                                                                                                                                                          		tmp = c * (y0 * ((x * y2) - (y3 * z)))
                                                                                                                                                                                                                                                                          	else:
                                                                                                                                                                                                                                                                          		tmp = i * (z * ((c * t) - (k * 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 (t <= -6.5e+116)
                                                                                                                                                                                                                                                                          		tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))));
                                                                                                                                                                                                                                                                          	elseif (t <= -3e+77)
                                                                                                                                                                                                                                                                          		tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3))));
                                                                                                                                                                                                                                                                          	elseif (t <= -7.2e-220)
                                                                                                                                                                                                                                                                          		tmp = Float64(b * Float64(x * Float64(Float64(a * y) - Float64(j * y0))));
                                                                                                                                                                                                                                                                          	elseif (t <= 8.6e+179)
                                                                                                                                                                                                                                                                          		tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z))));
                                                                                                                                                                                                                                                                          	else
                                                                                                                                                                                                                                                                          		tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * 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 (t <= -6.5e+116)
                                                                                                                                                                                                                                                                          		tmp = c * (y4 * ((y * y3) - (t * y2)));
                                                                                                                                                                                                                                                                          	elseif (t <= -3e+77)
                                                                                                                                                                                                                                                                          		tmp = y * (y5 * ((i * k) - (a * y3)));
                                                                                                                                                                                                                                                                          	elseif (t <= -7.2e-220)
                                                                                                                                                                                                                                                                          		tmp = b * (x * ((a * y) - (j * y0)));
                                                                                                                                                                                                                                                                          	elseif (t <= 8.6e+179)
                                                                                                                                                                                                                                                                          		tmp = c * (y0 * ((x * y2) - (y3 * z)));
                                                                                                                                                                                                                                                                          	else
                                                                                                                                                                                                                                                                          		tmp = i * (z * ((c * t) - (k * y1)));
                                                                                                                                                                                                                                                                          	end
                                                                                                                                                                                                                                                                          	tmp_2 = tmp;
                                                                                                                                                                                                                                                                          end
                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -6.5e+116], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3e+77], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -7.2e-220], N[(b * N[(x * N[(N[(a * y), $MachinePrecision] - N[(j * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.6e+179], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                          \begin{array}{l}
                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                          \\
                                                                                                                                                                                                                                                                          \begin{array}{l}
                                                                                                                                                                                                                                                                          \mathbf{if}\;t \leq -6.5 \cdot 10^{+116}:\\
                                                                                                                                                                                                                                                                          \;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                          \mathbf{elif}\;t \leq -3 \cdot 10^{+77}:\\
                                                                                                                                                                                                                                                                          \;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                          \mathbf{elif}\;t \leq -7.2 \cdot 10^{-220}:\\
                                                                                                                                                                                                                                                                          \;\;\;\;b \cdot \left(x \cdot \left(a \cdot y - j \cdot y0\right)\right)\\
                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                          \mathbf{elif}\;t \leq 8.6 \cdot 10^{+179}:\\
                                                                                                                                                                                                                                                                          \;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                          \mathbf{else}:\\
                                                                                                                                                                                                                                                                          \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                          \end{array}
                                                                                                                                                                                                                                                                          \end{array}
                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                          Derivation
                                                                                                                                                                                                                                                                          1. Split input into 5 regimes
                                                                                                                                                                                                                                                                          2. if t < -6.4999999999999998e116

                                                                                                                                                                                                                                                                            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 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}{y4 \cdot \left(\mathsf{fma}\left(b, j \cdot t - k \cdot y, y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                              2. Taylor expanded in c around inf

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

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

                                                                                                                                                                                                                                                                                if -6.4999999999999998e116 < t < -2.9999999999999998e77

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

                                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{-1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(i, j \cdot t - k \cdot y, y0 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - a \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\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 rewrites75.2%

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

                                                                                                                                                                                                                                                                                    if -2.9999999999999998e77 < t < -7.20000000000000042e-220

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

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

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

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

                                                                                                                                                                                                                                                                                        if -7.20000000000000042e-220 < t < 8.5999999999999998e179

                                                                                                                                                                                                                                                                                        1. Initial program 35.1%

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

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

                                                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                                                                                                                                                                          2. Taylor expanded in c around inf

                                                                                                                                                                                                                                                                                            \[\leadsto c \cdot \color{blue}{\left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)} \]
                                                                                                                                                                                                                                                                                          3. Step-by-step derivation
                                                                                                                                                                                                                                                                                            1. Applied rewrites36.9%

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

                                                                                                                                                                                                                                                                                            if 8.5999999999999998e179 < t

                                                                                                                                                                                                                                                                                            1. Initial program 25.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. Step-by-step derivation
                                                                                                                                                                                                                                                                                              1. Applied rewrites35.1%

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

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

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

                                                                                                                                                                                                                                                                                              Alternative 19: 31.2% accurate, 4.2× speedup?

                                                                                                                                                                                                                                                                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\ \mathbf{if}\;i \leq -8.5 \cdot 10^{+65}:\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\ \mathbf{elif}\;i \leq -1.7 \cdot 10^{-128}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq 9 \cdot 10^{-84}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\ \mathbf{elif}\;i \leq 5.6 \cdot 10^{+69}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\ \end{array} \end{array} \]
                                                                                                                                                                                                                                                                                              (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                                                                                               :precision binary64
                                                                                                                                                                                                                                                                                               (let* ((t_1 (* a (* y5 (- (* t y2) (* y y3))))))
                                                                                                                                                                                                                                                                                                 (if (<= i -8.5e+65)
                                                                                                                                                                                                                                                                                                   (* i (* z (- (* c t) (* k y1))))
                                                                                                                                                                                                                                                                                                   (if (<= i -1.7e-128)
                                                                                                                                                                                                                                                                                                     t_1
                                                                                                                                                                                                                                                                                                     (if (<= i 9e-84)
                                                                                                                                                                                                                                                                                                       (* a (* b (- (* x y) (* t z))))
                                                                                                                                                                                                                                                                                                       (if (<= i 5.6e+69) t_1 (* y (* y5 (- (* i k) (* a y3))))))))))
                                                                                                                                                                                                                                                                                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                              	double t_1 = a * (y5 * ((t * y2) - (y * y3)));
                                                                                                                                                                                                                                                                                              	double tmp;
                                                                                                                                                                                                                                                                                              	if (i <= -8.5e+65) {
                                                                                                                                                                                                                                                                                              		tmp = i * (z * ((c * t) - (k * y1)));
                                                                                                                                                                                                                                                                                              	} else if (i <= -1.7e-128) {
                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                              	} else if (i <= 9e-84) {
                                                                                                                                                                                                                                                                                              		tmp = a * (b * ((x * y) - (t * z)));
                                                                                                                                                                                                                                                                                              	} else if (i <= 5.6e+69) {
                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                              	} else {
                                                                                                                                                                                                                                                                                              		tmp = y * (y5 * ((i * k) - (a * y3)));
                                                                                                                                                                                                                                                                                              	}
                                                                                                                                                                                                                                                                                              	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 = a * (y5 * ((t * y2) - (y * y3)))
                                                                                                                                                                                                                                                                                                  if (i <= (-8.5d+65)) then
                                                                                                                                                                                                                                                                                                      tmp = i * (z * ((c * t) - (k * y1)))
                                                                                                                                                                                                                                                                                                  else if (i <= (-1.7d-128)) then
                                                                                                                                                                                                                                                                                                      tmp = t_1
                                                                                                                                                                                                                                                                                                  else if (i <= 9d-84) then
                                                                                                                                                                                                                                                                                                      tmp = a * (b * ((x * y) - (t * z)))
                                                                                                                                                                                                                                                                                                  else if (i <= 5.6d+69) then
                                                                                                                                                                                                                                                                                                      tmp = t_1
                                                                                                                                                                                                                                                                                                  else
                                                                                                                                                                                                                                                                                                      tmp = y * (y5 * ((i * k) - (a * y3)))
                                                                                                                                                                                                                                                                                                  end if
                                                                                                                                                                                                                                                                                                  code = tmp
                                                                                                                                                                                                                                                                                              end function
                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                              	double t_1 = a * (y5 * ((t * y2) - (y * y3)));
                                                                                                                                                                                                                                                                                              	double tmp;
                                                                                                                                                                                                                                                                                              	if (i <= -8.5e+65) {
                                                                                                                                                                                                                                                                                              		tmp = i * (z * ((c * t) - (k * y1)));
                                                                                                                                                                                                                                                                                              	} else if (i <= -1.7e-128) {
                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                              	} else if (i <= 9e-84) {
                                                                                                                                                                                                                                                                                              		tmp = a * (b * ((x * y) - (t * z)));
                                                                                                                                                                                                                                                                                              	} else if (i <= 5.6e+69) {
                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                              	} else {
                                                                                                                                                                                                                                                                                              		tmp = y * (y5 * ((i * k) - (a * y3)));
                                                                                                                                                                                                                                                                                              	}
                                                                                                                                                                                                                                                                                              	return tmp;
                                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                              def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                                                                                                                                              	t_1 = a * (y5 * ((t * y2) - (y * y3)))
                                                                                                                                                                                                                                                                                              	tmp = 0
                                                                                                                                                                                                                                                                                              	if i <= -8.5e+65:
                                                                                                                                                                                                                                                                                              		tmp = i * (z * ((c * t) - (k * y1)))
                                                                                                                                                                                                                                                                                              	elif i <= -1.7e-128:
                                                                                                                                                                                                                                                                                              		tmp = t_1
                                                                                                                                                                                                                                                                                              	elif i <= 9e-84:
                                                                                                                                                                                                                                                                                              		tmp = a * (b * ((x * y) - (t * z)))
                                                                                                                                                                                                                                                                                              	elif i <= 5.6e+69:
                                                                                                                                                                                                                                                                                              		tmp = t_1
                                                                                                                                                                                                                                                                                              	else:
                                                                                                                                                                                                                                                                                              		tmp = y * (y5 * ((i * k) - (a * y3)))
                                                                                                                                                                                                                                                                                              	return tmp
                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                              function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                              	t_1 = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))))
                                                                                                                                                                                                                                                                                              	tmp = 0.0
                                                                                                                                                                                                                                                                                              	if (i <= -8.5e+65)
                                                                                                                                                                                                                                                                                              		tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1))));
                                                                                                                                                                                                                                                                                              	elseif (i <= -1.7e-128)
                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                              	elseif (i <= 9e-84)
                                                                                                                                                                                                                                                                                              		tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z))));
                                                                                                                                                                                                                                                                                              	elseif (i <= 5.6e+69)
                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                              	else
                                                                                                                                                                                                                                                                                              		tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3))));
                                                                                                                                                                                                                                                                                              	end
                                                                                                                                                                                                                                                                                              	return tmp
                                                                                                                                                                                                                                                                                              end
                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                              function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                              	t_1 = a * (y5 * ((t * y2) - (y * y3)));
                                                                                                                                                                                                                                                                                              	tmp = 0.0;
                                                                                                                                                                                                                                                                                              	if (i <= -8.5e+65)
                                                                                                                                                                                                                                                                                              		tmp = i * (z * ((c * t) - (k * y1)));
                                                                                                                                                                                                                                                                                              	elseif (i <= -1.7e-128)
                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                              	elseif (i <= 9e-84)
                                                                                                                                                                                                                                                                                              		tmp = a * (b * ((x * y) - (t * z)));
                                                                                                                                                                                                                                                                                              	elseif (i <= 5.6e+69)
                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                              	else
                                                                                                                                                                                                                                                                                              		tmp = y * (y5 * ((i * k) - (a * y3)));
                                                                                                                                                                                                                                                                                              	end
                                                                                                                                                                                                                                                                                              	tmp_2 = tmp;
                                                                                                                                                                                                                                                                                              end
                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -8.5e+65], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.7e-128], t$95$1, If[LessEqual[i, 9e-84], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.6e+69], t$95$1, N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                              \begin{array}{l}
                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                              \\
                                                                                                                                                                                                                                                                                              \begin{array}{l}
                                                                                                                                                                                                                                                                                              t_1 := a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
                                                                                                                                                                                                                                                                                              \mathbf{if}\;i \leq -8.5 \cdot 10^{+65}:\\
                                                                                                                                                                                                                                                                                              \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                              \mathbf{elif}\;i \leq -1.7 \cdot 10^{-128}:\\
                                                                                                                                                                                                                                                                                              \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                              \mathbf{elif}\;i \leq 9 \cdot 10^{-84}:\\
                                                                                                                                                                                                                                                                                              \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                              \mathbf{elif}\;i \leq 5.6 \cdot 10^{+69}:\\
                                                                                                                                                                                                                                                                                              \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                              \mathbf{else}:\\
                                                                                                                                                                                                                                                                                              \;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                              \end{array}
                                                                                                                                                                                                                                                                                              \end{array}
                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                              Derivation
                                                                                                                                                                                                                                                                                              1. Split input into 4 regimes
                                                                                                                                                                                                                                                                                              2. if i < -8.50000000000000075e65

                                                                                                                                                                                                                                                                                                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 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. Step-by-step derivation
                                                                                                                                                                                                                                                                                                  1. Applied rewrites53.8%

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

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

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

                                                                                                                                                                                                                                                                                                    if -8.50000000000000075e65 < i < -1.69999999999999987e-128 or 9.00000000000000031e-84 < i < 5.59999999999999964e69

                                                                                                                                                                                                                                                                                                    1. Initial program 39.1%

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

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

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

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

                                                                                                                                                                                                                                                                                                        if -1.69999999999999987e-128 < i < 9.00000000000000031e-84

                                                                                                                                                                                                                                                                                                        1. Initial program 36.1%

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

                                                                                                                                                                                                                                                                                                          \[\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 rewrites44.2%

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

                                                                                                                                                                                                                                                                                                            \[\leadsto a \cdot \color{blue}{\left(b \cdot \left(x \cdot y - t \cdot z\right)\right)} \]
                                                                                                                                                                                                                                                                                                          3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                            1. Applied rewrites39.5%

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

                                                                                                                                                                                                                                                                                                            if 5.59999999999999964e69 < i

                                                                                                                                                                                                                                                                                                            1. Initial program 22.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 rewrites54.2%

                                                                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{-1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(i, j \cdot t - k \cdot y, y0 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - a \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\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 rewrites46.6%

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

                                                                                                                                                                                                                                                                                                              Alternative 20: 22.8% accurate, 5.0× speedup?

                                                                                                                                                                                                                                                                                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{if}\;t \leq -7.2 \cdot 10^{+77}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 4.2 \cdot 10^{-288}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\ \mathbf{elif}\;t \leq 8 \cdot 10^{-17}:\\ \;\;\;\;y0 \cdot \left(y2 \cdot \left(c \cdot x\right)\right)\\ \mathbf{elif}\;t \leq 3.6 \cdot 10^{+256}:\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                                                                                                                                                                                                                              (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                                                                                                               :precision binary64
                                                                                                                                                                                                                                                                                                               (let* ((t_1 (* b (* j (* t y4)))))
                                                                                                                                                                                                                                                                                                                 (if (<= t -7.2e+77)
                                                                                                                                                                                                                                                                                                                   t_1
                                                                                                                                                                                                                                                                                                                   (if (<= t 4.2e-288)
                                                                                                                                                                                                                                                                                                                     (* a (* b (* x y)))
                                                                                                                                                                                                                                                                                                                     (if (<= t 8e-17)
                                                                                                                                                                                                                                                                                                                       (* y0 (* y2 (* c x)))
                                                                                                                                                                                                                                                                                                                       (if (<= t 3.6e+256) (* i (* z (* c t))) t_1))))))
                                                                                                                                                                                                                                                                                                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                              	double t_1 = b * (j * (t * y4));
                                                                                                                                                                                                                                                                                                              	double tmp;
                                                                                                                                                                                                                                                                                                              	if (t <= -7.2e+77) {
                                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                                              	} else if (t <= 4.2e-288) {
                                                                                                                                                                                                                                                                                                              		tmp = a * (b * (x * y));
                                                                                                                                                                                                                                                                                                              	} else if (t <= 8e-17) {
                                                                                                                                                                                                                                                                                                              		tmp = y0 * (y2 * (c * x));
                                                                                                                                                                                                                                                                                                              	} else if (t <= 3.6e+256) {
                                                                                                                                                                                                                                                                                                              		tmp = i * (z * (c * t));
                                                                                                                                                                                                                                                                                                              	} 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 = b * (j * (t * y4))
                                                                                                                                                                                                                                                                                                                  if (t <= (-7.2d+77)) then
                                                                                                                                                                                                                                                                                                                      tmp = t_1
                                                                                                                                                                                                                                                                                                                  else if (t <= 4.2d-288) then
                                                                                                                                                                                                                                                                                                                      tmp = a * (b * (x * y))
                                                                                                                                                                                                                                                                                                                  else if (t <= 8d-17) then
                                                                                                                                                                                                                                                                                                                      tmp = y0 * (y2 * (c * x))
                                                                                                                                                                                                                                                                                                                  else if (t <= 3.6d+256) then
                                                                                                                                                                                                                                                                                                                      tmp = i * (z * (c * t))
                                                                                                                                                                                                                                                                                                                  else
                                                                                                                                                                                                                                                                                                                      tmp = t_1
                                                                                                                                                                                                                                                                                                                  end if
                                                                                                                                                                                                                                                                                                                  code = tmp
                                                                                                                                                                                                                                                                                                              end function
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                              	double t_1 = b * (j * (t * y4));
                                                                                                                                                                                                                                                                                                              	double tmp;
                                                                                                                                                                                                                                                                                                              	if (t <= -7.2e+77) {
                                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                                              	} else if (t <= 4.2e-288) {
                                                                                                                                                                                                                                                                                                              		tmp = a * (b * (x * y));
                                                                                                                                                                                                                                                                                                              	} else if (t <= 8e-17) {
                                                                                                                                                                                                                                                                                                              		tmp = y0 * (y2 * (c * x));
                                                                                                                                                                                                                                                                                                              	} else if (t <= 3.6e+256) {
                                                                                                                                                                                                                                                                                                              		tmp = i * (z * (c * t));
                                                                                                                                                                                                                                                                                                              	} else {
                                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                                              	}
                                                                                                                                                                                                                                                                                                              	return tmp;
                                                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                                                                                                                                                              	t_1 = b * (j * (t * y4))
                                                                                                                                                                                                                                                                                                              	tmp = 0
                                                                                                                                                                                                                                                                                                              	if t <= -7.2e+77:
                                                                                                                                                                                                                                                                                                              		tmp = t_1
                                                                                                                                                                                                                                                                                                              	elif t <= 4.2e-288:
                                                                                                                                                                                                                                                                                                              		tmp = a * (b * (x * y))
                                                                                                                                                                                                                                                                                                              	elif t <= 8e-17:
                                                                                                                                                                                                                                                                                                              		tmp = y0 * (y2 * (c * x))
                                                                                                                                                                                                                                                                                                              	elif t <= 3.6e+256:
                                                                                                                                                                                                                                                                                                              		tmp = i * (z * (c * t))
                                                                                                                                                                                                                                                                                                              	else:
                                                                                                                                                                                                                                                                                                              		tmp = t_1
                                                                                                                                                                                                                                                                                                              	return tmp
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                              	t_1 = Float64(b * Float64(j * Float64(t * y4)))
                                                                                                                                                                                                                                                                                                              	tmp = 0.0
                                                                                                                                                                                                                                                                                                              	if (t <= -7.2e+77)
                                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                                              	elseif (t <= 4.2e-288)
                                                                                                                                                                                                                                                                                                              		tmp = Float64(a * Float64(b * Float64(x * y)));
                                                                                                                                                                                                                                                                                                              	elseif (t <= 8e-17)
                                                                                                                                                                                                                                                                                                              		tmp = Float64(y0 * Float64(y2 * Float64(c * x)));
                                                                                                                                                                                                                                                                                                              	elseif (t <= 3.6e+256)
                                                                                                                                                                                                                                                                                                              		tmp = Float64(i * Float64(z * Float64(c * t)));
                                                                                                                                                                                                                                                                                                              	else
                                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                                              	end
                                                                                                                                                                                                                                                                                                              	return tmp
                                                                                                                                                                                                                                                                                                              end
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                              	t_1 = b * (j * (t * y4));
                                                                                                                                                                                                                                                                                                              	tmp = 0.0;
                                                                                                                                                                                                                                                                                                              	if (t <= -7.2e+77)
                                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                                              	elseif (t <= 4.2e-288)
                                                                                                                                                                                                                                                                                                              		tmp = a * (b * (x * y));
                                                                                                                                                                                                                                                                                                              	elseif (t <= 8e-17)
                                                                                                                                                                                                                                                                                                              		tmp = y0 * (y2 * (c * x));
                                                                                                                                                                                                                                                                                                              	elseif (t <= 3.6e+256)
                                                                                                                                                                                                                                                                                                              		tmp = i * (z * (c * t));
                                                                                                                                                                                                                                                                                                              	else
                                                                                                                                                                                                                                                                                                              		tmp = t_1;
                                                                                                                                                                                                                                                                                                              	end
                                                                                                                                                                                                                                                                                                              	tmp_2 = tmp;
                                                                                                                                                                                                                                                                                                              end
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.2e+77], t$95$1, If[LessEqual[t, 4.2e-288], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8e-17], N[(y0 * N[(y2 * N[(c * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e+256], N[(i * N[(z * N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              \begin{array}{l}
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              \\
                                                                                                                                                                                                                                                                                                              \begin{array}{l}
                                                                                                                                                                                                                                                                                                              t_1 := b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
                                                                                                                                                                                                                                                                                                              \mathbf{if}\;t \leq -7.2 \cdot 10^{+77}:\\
                                                                                                                                                                                                                                                                                                              \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              \mathbf{elif}\;t \leq 4.2 \cdot 10^{-288}:\\
                                                                                                                                                                                                                                                                                                              \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              \mathbf{elif}\;t \leq 8 \cdot 10^{-17}:\\
                                                                                                                                                                                                                                                                                                              \;\;\;\;y0 \cdot \left(y2 \cdot \left(c \cdot x\right)\right)\\
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              \mathbf{elif}\;t \leq 3.6 \cdot 10^{+256}:\\
                                                                                                                                                                                                                                                                                                              \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t\right)\right)\\
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              \mathbf{else}:\\
                                                                                                                                                                                                                                                                                                              \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              \end{array}
                                                                                                                                                                                                                                                                                                              \end{array}
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              Derivation
                                                                                                                                                                                                                                                                                                              1. Split input into 4 regimes
                                                                                                                                                                                                                                                                                                              2. if t < -7.1999999999999996e77 or 3.59999999999999971e256 < t

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

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

                                                                                                                                                                                                                                                                                                                    \[\leadsto b \cdot \left(j \cdot \color{blue}{\left(t \cdot y4 - x \cdot y0\right)}\right) \]
                                                                                                                                                                                                                                                                                                                  3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                    1. Applied rewrites49.4%

                                                                                                                                                                                                                                                                                                                      \[\leadsto b \cdot \left(j \cdot \color{blue}{\left(t \cdot y4 - x \cdot y0\right)}\right) \]
                                                                                                                                                                                                                                                                                                                    2. Taylor expanded in x around 0

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

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

                                                                                                                                                                                                                                                                                                                      if -7.1999999999999996e77 < t < 4.19999999999999991e-288

                                                                                                                                                                                                                                                                                                                      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 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 rewrites41.8%

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

                                                                                                                                                                                                                                                                                                                          \[\leadsto a \cdot \color{blue}{\left(b \cdot \left(x \cdot y - t \cdot z\right)\right)} \]
                                                                                                                                                                                                                                                                                                                        3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                          1. Applied rewrites31.4%

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

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

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

                                                                                                                                                                                                                                                                                                                            if 4.19999999999999991e-288 < t < 8.00000000000000057e-17

                                                                                                                                                                                                                                                                                                                            1. Initial program 48.0%

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

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

                                                                                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                                                                                                                                                                                                              2. Taylor expanded in y2 around inf

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

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

                                                                                                                                                                                                                                                                                                                                  \[\leadsto y0 \cdot \left(y2 \cdot \left(c \cdot x\right)\right) \]
                                                                                                                                                                                                                                                                                                                                3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                  1. Applied rewrites31.4%

                                                                                                                                                                                                                                                                                                                                    \[\leadsto y0 \cdot \left(y2 \cdot \left(c \cdot x\right)\right) \]

                                                                                                                                                                                                                                                                                                                                  if 8.00000000000000057e-17 < t < 3.59999999999999971e256

                                                                                                                                                                                                                                                                                                                                  1. Initial program 33.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. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                    1. Applied rewrites40.4%

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

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

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

                                                                                                                                                                                                                                                                                                                                        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t\right)\right) \]
                                                                                                                                                                                                                                                                                                                                      3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                        1. Applied rewrites37.0%

                                                                                                                                                                                                                                                                                                                                          \[\leadsto i \cdot \left(z \cdot \left(c \cdot t\right)\right) \]
                                                                                                                                                                                                                                                                                                                                      4. Recombined 4 regimes into one program.
                                                                                                                                                                                                                                                                                                                                      5. Add Preprocessing

                                                                                                                                                                                                                                                                                                                                      Alternative 21: 22.7% accurate, 5.0× speedup?

                                                                                                                                                                                                                                                                                                                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{if}\;t \leq -7.2 \cdot 10^{+77}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 2.6 \cdot 10^{-288}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\ \mathbf{elif}\;t \leq 1.05 \cdot 10^{-16}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\ \mathbf{elif}\;t \leq 3.6 \cdot 10^{+256}:\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                                                                                                                                                                                                                                                      (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                                                                                                                                       :precision binary64
                                                                                                                                                                                                                                                                                                                                       (let* ((t_1 (* b (* j (* t y4)))))
                                                                                                                                                                                                                                                                                                                                         (if (<= t -7.2e+77)
                                                                                                                                                                                                                                                                                                                                           t_1
                                                                                                                                                                                                                                                                                                                                           (if (<= t 2.6e-288)
                                                                                                                                                                                                                                                                                                                                             (* a (* b (* x y)))
                                                                                                                                                                                                                                                                                                                                             (if (<= t 1.05e-16)
                                                                                                                                                                                                                                                                                                                                               (* y0 (* c (* x y2)))
                                                                                                                                                                                                                                                                                                                                               (if (<= t 3.6e+256) (* i (* z (* c t))) t_1))))))
                                                                                                                                                                                                                                                                                                                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                      	double t_1 = b * (j * (t * y4));
                                                                                                                                                                                                                                                                                                                                      	double tmp;
                                                                                                                                                                                                                                                                                                                                      	if (t <= -7.2e+77) {
                                                                                                                                                                                                                                                                                                                                      		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                      	} else if (t <= 2.6e-288) {
                                                                                                                                                                                                                                                                                                                                      		tmp = a * (b * (x * y));
                                                                                                                                                                                                                                                                                                                                      	} else if (t <= 1.05e-16) {
                                                                                                                                                                                                                                                                                                                                      		tmp = y0 * (c * (x * y2));
                                                                                                                                                                                                                                                                                                                                      	} else if (t <= 3.6e+256) {
                                                                                                                                                                                                                                                                                                                                      		tmp = i * (z * (c * t));
                                                                                                                                                                                                                                                                                                                                      	} 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 = b * (j * (t * y4))
                                                                                                                                                                                                                                                                                                                                          if (t <= (-7.2d+77)) then
                                                                                                                                                                                                                                                                                                                                              tmp = t_1
                                                                                                                                                                                                                                                                                                                                          else if (t <= 2.6d-288) then
                                                                                                                                                                                                                                                                                                                                              tmp = a * (b * (x * y))
                                                                                                                                                                                                                                                                                                                                          else if (t <= 1.05d-16) then
                                                                                                                                                                                                                                                                                                                                              tmp = y0 * (c * (x * y2))
                                                                                                                                                                                                                                                                                                                                          else if (t <= 3.6d+256) then
                                                                                                                                                                                                                                                                                                                                              tmp = i * (z * (c * t))
                                                                                                                                                                                                                                                                                                                                          else
                                                                                                                                                                                                                                                                                                                                              tmp = t_1
                                                                                                                                                                                                                                                                                                                                          end if
                                                                                                                                                                                                                                                                                                                                          code = tmp
                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                      public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                      	double t_1 = b * (j * (t * y4));
                                                                                                                                                                                                                                                                                                                                      	double tmp;
                                                                                                                                                                                                                                                                                                                                      	if (t <= -7.2e+77) {
                                                                                                                                                                                                                                                                                                                                      		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                      	} else if (t <= 2.6e-288) {
                                                                                                                                                                                                                                                                                                                                      		tmp = a * (b * (x * y));
                                                                                                                                                                                                                                                                                                                                      	} else if (t <= 1.05e-16) {
                                                                                                                                                                                                                                                                                                                                      		tmp = y0 * (c * (x * y2));
                                                                                                                                                                                                                                                                                                                                      	} else if (t <= 3.6e+256) {
                                                                                                                                                                                                                                                                                                                                      		tmp = i * (z * (c * t));
                                                                                                                                                                                                                                                                                                                                      	} else {
                                                                                                                                                                                                                                                                                                                                      		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                      	}
                                                                                                                                                                                                                                                                                                                                      	return tmp;
                                                                                                                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                      def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                                                                                                                                                                                      	t_1 = b * (j * (t * y4))
                                                                                                                                                                                                                                                                                                                                      	tmp = 0
                                                                                                                                                                                                                                                                                                                                      	if t <= -7.2e+77:
                                                                                                                                                                                                                                                                                                                                      		tmp = t_1
                                                                                                                                                                                                                                                                                                                                      	elif t <= 2.6e-288:
                                                                                                                                                                                                                                                                                                                                      		tmp = a * (b * (x * y))
                                                                                                                                                                                                                                                                                                                                      	elif t <= 1.05e-16:
                                                                                                                                                                                                                                                                                                                                      		tmp = y0 * (c * (x * y2))
                                                                                                                                                                                                                                                                                                                                      	elif t <= 3.6e+256:
                                                                                                                                                                                                                                                                                                                                      		tmp = i * (z * (c * t))
                                                                                                                                                                                                                                                                                                                                      	else:
                                                                                                                                                                                                                                                                                                                                      		tmp = t_1
                                                                                                                                                                                                                                                                                                                                      	return tmp
                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                      function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                      	t_1 = Float64(b * Float64(j * Float64(t * y4)))
                                                                                                                                                                                                                                                                                                                                      	tmp = 0.0
                                                                                                                                                                                                                                                                                                                                      	if (t <= -7.2e+77)
                                                                                                                                                                                                                                                                                                                                      		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                      	elseif (t <= 2.6e-288)
                                                                                                                                                                                                                                                                                                                                      		tmp = Float64(a * Float64(b * Float64(x * y)));
                                                                                                                                                                                                                                                                                                                                      	elseif (t <= 1.05e-16)
                                                                                                                                                                                                                                                                                                                                      		tmp = Float64(y0 * Float64(c * Float64(x * y2)));
                                                                                                                                                                                                                                                                                                                                      	elseif (t <= 3.6e+256)
                                                                                                                                                                                                                                                                                                                                      		tmp = Float64(i * Float64(z * Float64(c * t)));
                                                                                                                                                                                                                                                                                                                                      	else
                                                                                                                                                                                                                                                                                                                                      		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                      	end
                                                                                                                                                                                                                                                                                                                                      	return tmp
                                                                                                                                                                                                                                                                                                                                      end
                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                      function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                      	t_1 = b * (j * (t * y4));
                                                                                                                                                                                                                                                                                                                                      	tmp = 0.0;
                                                                                                                                                                                                                                                                                                                                      	if (t <= -7.2e+77)
                                                                                                                                                                                                                                                                                                                                      		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                      	elseif (t <= 2.6e-288)
                                                                                                                                                                                                                                                                                                                                      		tmp = a * (b * (x * y));
                                                                                                                                                                                                                                                                                                                                      	elseif (t <= 1.05e-16)
                                                                                                                                                                                                                                                                                                                                      		tmp = y0 * (c * (x * y2));
                                                                                                                                                                                                                                                                                                                                      	elseif (t <= 3.6e+256)
                                                                                                                                                                                                                                                                                                                                      		tmp = i * (z * (c * t));
                                                                                                                                                                                                                                                                                                                                      	else
                                                                                                                                                                                                                                                                                                                                      		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                      	end
                                                                                                                                                                                                                                                                                                                                      	tmp_2 = tmp;
                                                                                                                                                                                                                                                                                                                                      end
                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.2e+77], t$95$1, If[LessEqual[t, 2.6e-288], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e-16], N[(y0 * N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e+256], N[(i * N[(z * N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                      \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                      \\
                                                                                                                                                                                                                                                                                                                                      \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                      t_1 := b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
                                                                                                                                                                                                                                                                                                                                      \mathbf{if}\;t \leq -7.2 \cdot 10^{+77}:\\
                                                                                                                                                                                                                                                                                                                                      \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                      \mathbf{elif}\;t \leq 2.6 \cdot 10^{-288}:\\
                                                                                                                                                                                                                                                                                                                                      \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                      \mathbf{elif}\;t \leq 1.05 \cdot 10^{-16}:\\
                                                                                                                                                                                                                                                                                                                                      \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\
                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                      \mathbf{elif}\;t \leq 3.6 \cdot 10^{+256}:\\
                                                                                                                                                                                                                                                                                                                                      \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t\right)\right)\\
                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                      \mathbf{else}:\\
                                                                                                                                                                                                                                                                                                                                      \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                      \end{array}
                                                                                                                                                                                                                                                                                                                                      \end{array}
                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                      Derivation
                                                                                                                                                                                                                                                                                                                                      1. Split input into 4 regimes
                                                                                                                                                                                                                                                                                                                                      2. if t < -7.1999999999999996e77 or 3.59999999999999971e256 < t

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

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

                                                                                                                                                                                                                                                                                                                                            \[\leadsto b \cdot \left(j \cdot \color{blue}{\left(t \cdot y4 - x \cdot y0\right)}\right) \]
                                                                                                                                                                                                                                                                                                                                          3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                            1. Applied rewrites49.4%

                                                                                                                                                                                                                                                                                                                                              \[\leadsto b \cdot \left(j \cdot \color{blue}{\left(t \cdot y4 - x \cdot y0\right)}\right) \]
                                                                                                                                                                                                                                                                                                                                            2. Taylor expanded in x around 0

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

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

                                                                                                                                                                                                                                                                                                                                              if -7.1999999999999996e77 < t < 2.59999999999999989e-288

                                                                                                                                                                                                                                                                                                                                              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 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 rewrites41.8%

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

                                                                                                                                                                                                                                                                                                                                                  \[\leadsto a \cdot \color{blue}{\left(b \cdot \left(x \cdot y - t \cdot z\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                  1. Applied rewrites31.4%

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

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

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

                                                                                                                                                                                                                                                                                                                                                    if 2.59999999999999989e-288 < t < 1.0500000000000001e-16

                                                                                                                                                                                                                                                                                                                                                    1. Initial program 48.0%

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

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

                                                                                                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                      2. Taylor expanded in y2 around inf

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

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

                                                                                                                                                                                                                                                                                                                                                          \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot \color{blue}{y2}\right)\right) \]
                                                                                                                                                                                                                                                                                                                                                        3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                          1. Applied rewrites27.6%

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

                                                                                                                                                                                                                                                                                                                                                          if 1.0500000000000001e-16 < t < 3.59999999999999971e256

                                                                                                                                                                                                                                                                                                                                                          1. Initial program 33.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. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                            1. Applied rewrites40.4%

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

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

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

                                                                                                                                                                                                                                                                                                                                                                \[\leadsto i \cdot \left(z \cdot \left(c \cdot t\right)\right) \]
                                                                                                                                                                                                                                                                                                                                                              3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                1. Applied rewrites37.0%

                                                                                                                                                                                                                                                                                                                                                                  \[\leadsto i \cdot \left(z \cdot \left(c \cdot t\right)\right) \]
                                                                                                                                                                                                                                                                                                                                                              4. Recombined 4 regimes into one program.
                                                                                                                                                                                                                                                                                                                                                              5. Add Preprocessing

                                                                                                                                                                                                                                                                                                                                                              Alternative 22: 33.5% accurate, 5.6× speedup?

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

                                                                                                                                                                                                                                                                                                                                                                1. Initial program 18.6%

                                                                                                                                                                                                                                                                                                                                                                  \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                                                                                                                                                                                                                                                                                                                                2. Add Preprocessing
                                                                                                                                                                                                                                                                                                                                                                3. Taylor expanded in 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. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                  1. Applied rewrites43.9%

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

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

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

                                                                                                                                                                                                                                                                                                                                                                    if -1.4499999999999999e93 < z < 9.6000000000000007e66

                                                                                                                                                                                                                                                                                                                                                                    1. Initial program 40.2%

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

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

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

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

                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.45 \cdot 10^{+93} \lor \neg \left(z \leq 9.6 \cdot 10^{+66}\right):\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\ \end{array} \]
                                                                                                                                                                                                                                                                                                                                                                      6. Add Preprocessing

                                                                                                                                                                                                                                                                                                                                                                      Alternative 23: 27.5% accurate, 5.6× speedup?

                                                                                                                                                                                                                                                                                                                                                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y5 \leq -6 \cdot 10^{-11}:\\ \;\;\;\;i \cdot \left(t \cdot \left(\left(-j\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y5 \leq 3.9 \cdot 10^{+183}:\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\ \mathbf{elif}\;y5 \leq 2.7 \cdot 10^{+234}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y0 \cdot \left(\left(-k\right) \cdot \left(y2 \cdot y5\right)\right)\\ \end{array} \end{array} \]
                                                                                                                                                                                                                                                                                                                                                                      (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                                                                                                                                                                       :precision binary64
                                                                                                                                                                                                                                                                                                                                                                       (if (<= y5 -6e-11)
                                                                                                                                                                                                                                                                                                                                                                         (* i (* t (* (- j) y5)))
                                                                                                                                                                                                                                                                                                                                                                         (if (<= y5 3.9e+183)
                                                                                                                                                                                                                                                                                                                                                                           (* i (* z (- (* c t) (* k y1))))
                                                                                                                                                                                                                                                                                                                                                                           (if (<= y5 2.7e+234) (* a (* b (* x y))) (* y0 (* (- k) (* y2 y5)))))))
                                                                                                                                                                                                                                                                                                                                                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                                                      	double tmp;
                                                                                                                                                                                                                                                                                                                                                                      	if (y5 <= -6e-11) {
                                                                                                                                                                                                                                                                                                                                                                      		tmp = i * (t * (-j * y5));
                                                                                                                                                                                                                                                                                                                                                                      	} else if (y5 <= 3.9e+183) {
                                                                                                                                                                                                                                                                                                                                                                      		tmp = i * (z * ((c * t) - (k * y1)));
                                                                                                                                                                                                                                                                                                                                                                      	} else if (y5 <= 2.7e+234) {
                                                                                                                                                                                                                                                                                                                                                                      		tmp = a * (b * (x * y));
                                                                                                                                                                                                                                                                                                                                                                      	} else {
                                                                                                                                                                                                                                                                                                                                                                      		tmp = y0 * (-k * (y2 * y5));
                                                                                                                                                                                                                                                                                                                                                                      	}
                                                                                                                                                                                                                                                                                                                                                                      	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 (y5 <= (-6d-11)) then
                                                                                                                                                                                                                                                                                                                                                                              tmp = i * (t * (-j * y5))
                                                                                                                                                                                                                                                                                                                                                                          else if (y5 <= 3.9d+183) then
                                                                                                                                                                                                                                                                                                                                                                              tmp = i * (z * ((c * t) - (k * y1)))
                                                                                                                                                                                                                                                                                                                                                                          else if (y5 <= 2.7d+234) then
                                                                                                                                                                                                                                                                                                                                                                              tmp = a * (b * (x * y))
                                                                                                                                                                                                                                                                                                                                                                          else
                                                                                                                                                                                                                                                                                                                                                                              tmp = y0 * (-k * (y2 * y5))
                                                                                                                                                                                                                                                                                                                                                                          end if
                                                                                                                                                                                                                                                                                                                                                                          code = tmp
                                                                                                                                                                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                      public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                                                      	double tmp;
                                                                                                                                                                                                                                                                                                                                                                      	if (y5 <= -6e-11) {
                                                                                                                                                                                                                                                                                                                                                                      		tmp = i * (t * (-j * y5));
                                                                                                                                                                                                                                                                                                                                                                      	} else if (y5 <= 3.9e+183) {
                                                                                                                                                                                                                                                                                                                                                                      		tmp = i * (z * ((c * t) - (k * y1)));
                                                                                                                                                                                                                                                                                                                                                                      	} else if (y5 <= 2.7e+234) {
                                                                                                                                                                                                                                                                                                                                                                      		tmp = a * (b * (x * y));
                                                                                                                                                                                                                                                                                                                                                                      	} else {
                                                                                                                                                                                                                                                                                                                                                                      		tmp = y0 * (-k * (y2 * y5));
                                                                                                                                                                                                                                                                                                                                                                      	}
                                                                                                                                                                                                                                                                                                                                                                      	return tmp;
                                                                                                                                                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                      def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                                                                                                                                                                                                                      	tmp = 0
                                                                                                                                                                                                                                                                                                                                                                      	if y5 <= -6e-11:
                                                                                                                                                                                                                                                                                                                                                                      		tmp = i * (t * (-j * y5))
                                                                                                                                                                                                                                                                                                                                                                      	elif y5 <= 3.9e+183:
                                                                                                                                                                                                                                                                                                                                                                      		tmp = i * (z * ((c * t) - (k * y1)))
                                                                                                                                                                                                                                                                                                                                                                      	elif y5 <= 2.7e+234:
                                                                                                                                                                                                                                                                                                                                                                      		tmp = a * (b * (x * y))
                                                                                                                                                                                                                                                                                                                                                                      	else:
                                                                                                                                                                                                                                                                                                                                                                      		tmp = y0 * (-k * (y2 * y5))
                                                                                                                                                                                                                                                                                                                                                                      	return tmp
                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                      function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                      	tmp = 0.0
                                                                                                                                                                                                                                                                                                                                                                      	if (y5 <= -6e-11)
                                                                                                                                                                                                                                                                                                                                                                      		tmp = Float64(i * Float64(t * Float64(Float64(-j) * y5)));
                                                                                                                                                                                                                                                                                                                                                                      	elseif (y5 <= 3.9e+183)
                                                                                                                                                                                                                                                                                                                                                                      		tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1))));
                                                                                                                                                                                                                                                                                                                                                                      	elseif (y5 <= 2.7e+234)
                                                                                                                                                                                                                                                                                                                                                                      		tmp = Float64(a * Float64(b * Float64(x * y)));
                                                                                                                                                                                                                                                                                                                                                                      	else
                                                                                                                                                                                                                                                                                                                                                                      		tmp = Float64(y0 * Float64(Float64(-k) * Float64(y2 * y5)));
                                                                                                                                                                                                                                                                                                                                                                      	end
                                                                                                                                                                                                                                                                                                                                                                      	return tmp
                                                                                                                                                                                                                                                                                                                                                                      end
                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                      function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                      	tmp = 0.0;
                                                                                                                                                                                                                                                                                                                                                                      	if (y5 <= -6e-11)
                                                                                                                                                                                                                                                                                                                                                                      		tmp = i * (t * (-j * y5));
                                                                                                                                                                                                                                                                                                                                                                      	elseif (y5 <= 3.9e+183)
                                                                                                                                                                                                                                                                                                                                                                      		tmp = i * (z * ((c * t) - (k * y1)));
                                                                                                                                                                                                                                                                                                                                                                      	elseif (y5 <= 2.7e+234)
                                                                                                                                                                                                                                                                                                                                                                      		tmp = a * (b * (x * y));
                                                                                                                                                                                                                                                                                                                                                                      	else
                                                                                                                                                                                                                                                                                                                                                                      		tmp = y0 * (-k * (y2 * y5));
                                                                                                                                                                                                                                                                                                                                                                      	end
                                                                                                                                                                                                                                                                                                                                                                      	tmp_2 = tmp;
                                                                                                                                                                                                                                                                                                                                                                      end
                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -6e-11], N[(i * N[(t * N[((-j) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 3.9e+183], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2.7e+234], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y0 * N[((-k) * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                      \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                      \\
                                                                                                                                                                                                                                                                                                                                                                      \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                                      \mathbf{if}\;y5 \leq -6 \cdot 10^{-11}:\\
                                                                                                                                                                                                                                                                                                                                                                      \;\;\;\;i \cdot \left(t \cdot \left(\left(-j\right) \cdot y5\right)\right)\\
                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                      \mathbf{elif}\;y5 \leq 3.9 \cdot 10^{+183}:\\
                                                                                                                                                                                                                                                                                                                                                                      \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                      \mathbf{elif}\;y5 \leq 2.7 \cdot 10^{+234}:\\
                                                                                                                                                                                                                                                                                                                                                                      \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                      \mathbf{else}:\\
                                                                                                                                                                                                                                                                                                                                                                      \;\;\;\;y0 \cdot \left(\left(-k\right) \cdot \left(y2 \cdot y5\right)\right)\\
                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                      \end{array}
                                                                                                                                                                                                                                                                                                                                                                      \end{array}
                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                      Derivation
                                                                                                                                                                                                                                                                                                                                                                      1. Split input into 4 regimes
                                                                                                                                                                                                                                                                                                                                                                      2. if y5 < -6e-11

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

                                                                                                                                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot \left(j \cdot t - k \cdot y\right)\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\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 rewrites36.8%

                                                                                                                                                                                                                                                                                                                                                                              \[\leadsto i \cdot \color{blue}{\left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                            2. Taylor expanded in z around 0

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

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

                                                                                                                                                                                                                                                                                                                                                                              if -6e-11 < y5 < 3.8999999999999999e183

                                                                                                                                                                                                                                                                                                                                                                              1. Initial program 34.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. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                1. Applied rewrites39.8%

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

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

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

                                                                                                                                                                                                                                                                                                                                                                                  if 3.8999999999999999e183 < y5 < 2.7000000000000002e234

                                                                                                                                                                                                                                                                                                                                                                                  1. Initial program 10.0%

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

                                                                                                                                                                                                                                                                                                                                                                                    \[\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 rewrites30.5%

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

                                                                                                                                                                                                                                                                                                                                                                                      \[\leadsto a \cdot \color{blue}{\left(b \cdot \left(x \cdot y - t \cdot z\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                    3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                      1. Applied rewrites50.5%

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

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

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

                                                                                                                                                                                                                                                                                                                                                                                        if 2.7000000000000002e234 < y5

                                                                                                                                                                                                                                                                                                                                                                                        1. Initial program 27.3%

                                                                                                                                                                                                                                                                                                                                                                                          \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                                                                                                                                                                                                                                                                                                                                                        2. Add Preprocessing
                                                                                                                                                                                                                                                                                                                                                                                        3. Taylor expanded in 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. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                          1. Applied rewrites54.9%

                                                                                                                                                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                                                          2. Taylor expanded in y2 around inf

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

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

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

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

                                                                                                                                                                                                                                                                                                                                                                                              \[\leadsto \begin{array}{l} \mathbf{if}\;y5 \leq -6 \cdot 10^{-11}:\\ \;\;\;\;i \cdot \left(t \cdot \left(\left(-j\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y5 \leq 3.9 \cdot 10^{+183}:\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\ \mathbf{elif}\;y5 \leq 2.7 \cdot 10^{+234}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y0 \cdot \left(\left(-k\right) \cdot \left(y2 \cdot y5\right)\right)\\ \end{array} \]
                                                                                                                                                                                                                                                                                                                                                                                            6. Add Preprocessing

                                                                                                                                                                                                                                                                                                                                                                                            Alternative 24: 22.4% accurate, 5.9× speedup?

                                                                                                                                                                                                                                                                                                                                                                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\ \mathbf{if}\;t \leq -7.2 \cdot 10^{+77}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 4.7 \cdot 10^{-10}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\ \mathbf{elif}\;t \leq 3.6 \cdot 10^{+256}:\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                                                                                                                                                                                                                                                                                                            (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                                                                                                                                                                                                                             :precision binary64
                                                                                                                                                                                                                                                                                                                                                                                             (let* ((t_1 (* b (* j (* t y4)))))
                                                                                                                                                                                                                                                                                                                                                                                               (if (<= t -7.2e+77)
                                                                                                                                                                                                                                                                                                                                                                                                 t_1
                                                                                                                                                                                                                                                                                                                                                                                                 (if (<= t 4.7e-10)
                                                                                                                                                                                                                                                                                                                                                                                                   (* a (* b (* x y)))
                                                                                                                                                                                                                                                                                                                                                                                                   (if (<= t 3.6e+256) (* i (* z (* c t))) t_1)))))
                                                                                                                                                                                                                                                                                                                                                                                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                                                                            	double t_1 = b * (j * (t * y4));
                                                                                                                                                                                                                                                                                                                                                                                            	double tmp;
                                                                                                                                                                                                                                                                                                                                                                                            	if (t <= -7.2e+77) {
                                                                                                                                                                                                                                                                                                                                                                                            		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                            	} else if (t <= 4.7e-10) {
                                                                                                                                                                                                                                                                                                                                                                                            		tmp = a * (b * (x * y));
                                                                                                                                                                                                                                                                                                                                                                                            	} else if (t <= 3.6e+256) {
                                                                                                                                                                                                                                                                                                                                                                                            		tmp = i * (z * (c * t));
                                                                                                                                                                                                                                                                                                                                                                                            	} 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 = b * (j * (t * y4))
                                                                                                                                                                                                                                                                                                                                                                                                if (t <= (-7.2d+77)) then
                                                                                                                                                                                                                                                                                                                                                                                                    tmp = t_1
                                                                                                                                                                                                                                                                                                                                                                                                else if (t <= 4.7d-10) then
                                                                                                                                                                                                                                                                                                                                                                                                    tmp = a * (b * (x * y))
                                                                                                                                                                                                                                                                                                                                                                                                else if (t <= 3.6d+256) then
                                                                                                                                                                                                                                                                                                                                                                                                    tmp = i * (z * (c * t))
                                                                                                                                                                                                                                                                                                                                                                                                else
                                                                                                                                                                                                                                                                                                                                                                                                    tmp = t_1
                                                                                                                                                                                                                                                                                                                                                                                                end if
                                                                                                                                                                                                                                                                                                                                                                                                code = tmp
                                                                                                                                                                                                                                                                                                                                                                                            end function
                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                            public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                                                                            	double t_1 = b * (j * (t * y4));
                                                                                                                                                                                                                                                                                                                                                                                            	double tmp;
                                                                                                                                                                                                                                                                                                                                                                                            	if (t <= -7.2e+77) {
                                                                                                                                                                                                                                                                                                                                                                                            		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                            	} else if (t <= 4.7e-10) {
                                                                                                                                                                                                                                                                                                                                                                                            		tmp = a * (b * (x * y));
                                                                                                                                                                                                                                                                                                                                                                                            	} else if (t <= 3.6e+256) {
                                                                                                                                                                                                                                                                                                                                                                                            		tmp = i * (z * (c * t));
                                                                                                                                                                                                                                                                                                                                                                                            	} else {
                                                                                                                                                                                                                                                                                                                                                                                            		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                            	}
                                                                                                                                                                                                                                                                                                                                                                                            	return tmp;
                                                                                                                                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                            def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                                                                                                                                                                                                                                            	t_1 = b * (j * (t * y4))
                                                                                                                                                                                                                                                                                                                                                                                            	tmp = 0
                                                                                                                                                                                                                                                                                                                                                                                            	if t <= -7.2e+77:
                                                                                                                                                                                                                                                                                                                                                                                            		tmp = t_1
                                                                                                                                                                                                                                                                                                                                                                                            	elif t <= 4.7e-10:
                                                                                                                                                                                                                                                                                                                                                                                            		tmp = a * (b * (x * y))
                                                                                                                                                                                                                                                                                                                                                                                            	elif t <= 3.6e+256:
                                                                                                                                                                                                                                                                                                                                                                                            		tmp = i * (z * (c * t))
                                                                                                                                                                                                                                                                                                                                                                                            	else:
                                                                                                                                                                                                                                                                                                                                                                                            		tmp = t_1
                                                                                                                                                                                                                                                                                                                                                                                            	return tmp
                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                            function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                            	t_1 = Float64(b * Float64(j * Float64(t * y4)))
                                                                                                                                                                                                                                                                                                                                                                                            	tmp = 0.0
                                                                                                                                                                                                                                                                                                                                                                                            	if (t <= -7.2e+77)
                                                                                                                                                                                                                                                                                                                                                                                            		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                            	elseif (t <= 4.7e-10)
                                                                                                                                                                                                                                                                                                                                                                                            		tmp = Float64(a * Float64(b * Float64(x * y)));
                                                                                                                                                                                                                                                                                                                                                                                            	elseif (t <= 3.6e+256)
                                                                                                                                                                                                                                                                                                                                                                                            		tmp = Float64(i * Float64(z * Float64(c * t)));
                                                                                                                                                                                                                                                                                                                                                                                            	else
                                                                                                                                                                                                                                                                                                                                                                                            		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                            	end
                                                                                                                                                                                                                                                                                                                                                                                            	return tmp
                                                                                                                                                                                                                                                                                                                                                                                            end
                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                            function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                            	t_1 = b * (j * (t * y4));
                                                                                                                                                                                                                                                                                                                                                                                            	tmp = 0.0;
                                                                                                                                                                                                                                                                                                                                                                                            	if (t <= -7.2e+77)
                                                                                                                                                                                                                                                                                                                                                                                            		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                            	elseif (t <= 4.7e-10)
                                                                                                                                                                                                                                                                                                                                                                                            		tmp = a * (b * (x * y));
                                                                                                                                                                                                                                                                                                                                                                                            	elseif (t <= 3.6e+256)
                                                                                                                                                                                                                                                                                                                                                                                            		tmp = i * (z * (c * t));
                                                                                                                                                                                                                                                                                                                                                                                            	else
                                                                                                                                                                                                                                                                                                                                                                                            		tmp = t_1;
                                                                                                                                                                                                                                                                                                                                                                                            	end
                                                                                                                                                                                                                                                                                                                                                                                            	tmp_2 = tmp;
                                                                                                                                                                                                                                                                                                                                                                                            end
                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.2e+77], t$95$1, If[LessEqual[t, 4.7e-10], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e+256], N[(i * N[(z * N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                            \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                            \\
                                                                                                                                                                                                                                                                                                                                                                                            \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                                                            t_1 := b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
                                                                                                                                                                                                                                                                                                                                                                                            \mathbf{if}\;t \leq -7.2 \cdot 10^{+77}:\\
                                                                                                                                                                                                                                                                                                                                                                                            \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                            \mathbf{elif}\;t \leq 4.7 \cdot 10^{-10}:\\
                                                                                                                                                                                                                                                                                                                                                                                            \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                            \mathbf{elif}\;t \leq 3.6 \cdot 10^{+256}:\\
                                                                                                                                                                                                                                                                                                                                                                                            \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t\right)\right)\\
                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                            \mathbf{else}:\\
                                                                                                                                                                                                                                                                                                                                                                                            \;\;\;\;t\_1\\
                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                            \end{array}
                                                                                                                                                                                                                                                                                                                                                                                            \end{array}
                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                            Derivation
                                                                                                                                                                                                                                                                                                                                                                                            1. Split input into 3 regimes
                                                                                                                                                                                                                                                                                                                                                                                            2. if t < -7.1999999999999996e77 or 3.59999999999999971e256 < t

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

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

                                                                                                                                                                                                                                                                                                                                                                                                  \[\leadsto b \cdot \left(j \cdot \color{blue}{\left(t \cdot y4 - x \cdot y0\right)}\right) \]
                                                                                                                                                                                                                                                                                                                                                                                                3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                  1. Applied rewrites49.4%

                                                                                                                                                                                                                                                                                                                                                                                                    \[\leadsto b \cdot \left(j \cdot \color{blue}{\left(t \cdot y4 - x \cdot y0\right)}\right) \]
                                                                                                                                                                                                                                                                                                                                                                                                  2. Taylor expanded in x around 0

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

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

                                                                                                                                                                                                                                                                                                                                                                                                    if -7.1999999999999996e77 < t < 4.7000000000000003e-10

                                                                                                                                                                                                                                                                                                                                                                                                    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 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 rewrites41.2%

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

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

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

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

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

                                                                                                                                                                                                                                                                                                                                                                                                          if 4.7000000000000003e-10 < t < 3.59999999999999971e256

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

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

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

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

                                                                                                                                                                                                                                                                                                                                                                                                                \[\leadsto i \cdot \left(z \cdot \left(c \cdot t\right)\right) \]
                                                                                                                                                                                                                                                                                                                                                                                                              3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                1. Applied rewrites37.7%

                                                                                                                                                                                                                                                                                                                                                                                                                  \[\leadsto i \cdot \left(z \cdot \left(c \cdot t\right)\right) \]
                                                                                                                                                                                                                                                                                                                                                                                                              4. Recombined 3 regimes into one program.
                                                                                                                                                                                                                                                                                                                                                                                                              5. Add Preprocessing

                                                                                                                                                                                                                                                                                                                                                                                                              Alternative 25: 22.8% accurate, 7.2× speedup?

                                                                                                                                                                                                                                                                                                                                                                                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;c \leq -2.35 \cdot 10^{+14} \lor \neg \left(c \leq 6 \cdot 10^{+119}\right):\\ \;\;\;\;i \cdot \left(t \cdot \left(c \cdot z\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \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 (or (<= c -2.35e+14) (not (<= c 6e+119)))
                                                                                                                                                                                                                                                                                                                                                                                                                 (* i (* t (* c z)))
                                                                                                                                                                                                                                                                                                                                                                                                                 (* a (* b (* x 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 ((c <= -2.35e+14) || !(c <= 6e+119)) {
                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = i * (t * (c * z));
                                                                                                                                                                                                                                                                                                                                                                                                              	} else {
                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = a * (b * (x * y));
                                                                                                                                                                                                                                                                                                                                                                                                              	}
                                                                                                                                                                                                                                                                                                                                                                                                              	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 ((c <= (-2.35d+14)) .or. (.not. (c <= 6d+119))) then
                                                                                                                                                                                                                                                                                                                                                                                                                      tmp = i * (t * (c * z))
                                                                                                                                                                                                                                                                                                                                                                                                                  else
                                                                                                                                                                                                                                                                                                                                                                                                                      tmp = a * (b * (x * y))
                                                                                                                                                                                                                                                                                                                                                                                                                  end if
                                                                                                                                                                                                                                                                                                                                                                                                                  code = tmp
                                                                                                                                                                                                                                                                                                                                                                                                              end function
                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                                                                                                                                                                                                                                                                              	double tmp;
                                                                                                                                                                                                                                                                                                                                                                                                              	if ((c <= -2.35e+14) || !(c <= 6e+119)) {
                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = i * (t * (c * z));
                                                                                                                                                                                                                                                                                                                                                                                                              	} else {
                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = a * (b * (x * y));
                                                                                                                                                                                                                                                                                                                                                                                                              	}
                                                                                                                                                                                                                                                                                                                                                                                                              	return tmp;
                                                                                                                                                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                              def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
                                                                                                                                                                                                                                                                                                                                                                                                              	tmp = 0
                                                                                                                                                                                                                                                                                                                                                                                                              	if (c <= -2.35e+14) or not (c <= 6e+119):
                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = i * (t * (c * z))
                                                                                                                                                                                                                                                                                                                                                                                                              	else:
                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = a * (b * (x * 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 ((c <= -2.35e+14) || !(c <= 6e+119))
                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = Float64(i * Float64(t * Float64(c * z)));
                                                                                                                                                                                                                                                                                                                                                                                                              	else
                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = Float64(a * Float64(b * Float64(x * y)));
                                                                                                                                                                                                                                                                                                                                                                                                              	end
                                                                                                                                                                                                                                                                                                                                                                                                              	return tmp
                                                                                                                                                                                                                                                                                                                                                                                                              end
                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                              function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                                                                                                                                                                                                                                                                              	tmp = 0.0;
                                                                                                                                                                                                                                                                                                                                                                                                              	if ((c <= -2.35e+14) || ~((c <= 6e+119)))
                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = i * (t * (c * z));
                                                                                                                                                                                                                                                                                                                                                                                                              	else
                                                                                                                                                                                                                                                                                                                                                                                                              		tmp = a * (b * (x * y));
                                                                                                                                                                                                                                                                                                                                                                                                              	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[c, -2.35e+14], N[Not[LessEqual[c, 6e+119]], $MachinePrecision]], N[(i * N[(t * N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                              \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                              \\
                                                                                                                                                                                                                                                                                                                                                                                                              \begin{array}{l}
                                                                                                                                                                                                                                                                                                                                                                                                              \mathbf{if}\;c \leq -2.35 \cdot 10^{+14} \lor \neg \left(c \leq 6 \cdot 10^{+119}\right):\\
                                                                                                                                                                                                                                                                                                                                                                                                              \;\;\;\;i \cdot \left(t \cdot \left(c \cdot z\right)\right)\\
                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                              \mathbf{else}:\\
                                                                                                                                                                                                                                                                                                                                                                                                              \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                              \end{array}
                                                                                                                                                                                                                                                                                                                                                                                                              \end{array}
                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                              Derivation
                                                                                                                                                                                                                                                                                                                                                                                                              1. Split input into 2 regimes
                                                                                                                                                                                                                                                                                                                                                                                                              2. if c < -2.35e14 or 6.00000000000000002e119 < c

                                                                                                                                                                                                                                                                                                                                                                                                                1. Initial program 21.8%

                                                                                                                                                                                                                                                                                                                                                                                                                  \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                                                                                                                                                                                                                                                                                                                                                                                2. Add Preprocessing
                                                                                                                                                                                                                                                                                                                                                                                                                3. Taylor expanded in 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. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                  1. Applied rewrites42.9%

                                                                                                                                                                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot \left(j \cdot t - k \cdot y\right)\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\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 rewrites42.3%

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

                                                                                                                                                                                                                                                                                                                                                                                                                      \[\leadsto i \cdot \left(t \cdot \left(c \cdot z\right)\right) \]
                                                                                                                                                                                                                                                                                                                                                                                                                    3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                      1. Applied rewrites38.2%

                                                                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto i \cdot \left(t \cdot \left(c \cdot z\right)\right) \]

                                                                                                                                                                                                                                                                                                                                                                                                                      if -2.35e14 < c < 6.00000000000000002e119

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

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

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

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

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

                                                                                                                                                                                                                                                                                                                                                                                                                              \[\leadsto a \cdot \left(b \cdot \left(x \cdot y\right)\right) \]
                                                                                                                                                                                                                                                                                                                                                                                                                          4. Recombined 2 regimes into one program.
                                                                                                                                                                                                                                                                                                                                                                                                                          5. Final simplification26.7%

                                                                                                                                                                                                                                                                                                                                                                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -2.35 \cdot 10^{+14} \lor \neg \left(c \leq 6 \cdot 10^{+119}\right):\\ \;\;\;\;i \cdot \left(t \cdot \left(c \cdot z\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\ \end{array} \]
                                                                                                                                                                                                                                                                                                                                                                                                                          6. Add Preprocessing

                                                                                                                                                                                                                                                                                                                                                                                                                          Alternative 26: 17.3% accurate, 12.6× speedup?

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

                                                                                                                                                                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot \left(j \cdot t - k \cdot y\right)\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\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 rewrites30.4%

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

                                                                                                                                                                                                                                                                                                                                                                                                                                \[\leadsto i \cdot \left(t \cdot \left(c \cdot z\right)\right) \]
                                                                                                                                                                                                                                                                                                                                                                                                                              3. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                                                                                                1. Applied rewrites19.0%

                                                                                                                                                                                                                                                                                                                                                                                                                                  \[\leadsto i \cdot \left(t \cdot \left(c \cdot z\right)\right) \]
                                                                                                                                                                                                                                                                                                                                                                                                                                2. Add Preprocessing

                                                                                                                                                                                                                                                                                                                                                                                                                                Alternative 27: 17.2% accurate, 12.6× speedup?

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

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

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

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

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

                                                                                                                                                                                                                                                                                                                                                                                                                                        \[\leadsto i \cdot \left(c \cdot \left(t \cdot \color{blue}{z}\right)\right) \]
                                                                                                                                                                                                                                                                                                                                                                                                                                      2. Add Preprocessing

                                                                                                                                                                                                                                                                                                                                                                                                                                      Alternative 28: 17.1% accurate, 12.6× speedup?

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

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

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

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

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

                                                                                                                                                                                                                                                                                                                                                                                                                                              \[\leadsto c \cdot \left(i \cdot \color{blue}{\left(t \cdot z\right)}\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)))))