Linear.Matrix:det44 from linear-1.19.1.3

Percentage Accurate: 31.1% → 56.0%
Time: 32.5s
Alternatives: 34
Speedup: 4.8×

Specification

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

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

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 34 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: 31.1% 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: 56.0% accurate, 0.5× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\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 92.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

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

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Step-by-step derivation
      1. mul-1-negN/A

        \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. distribute-lft-neg-inN/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
      3. lower-*.f64N/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
      4. lower-neg.f64N/A

        \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
      5. lower--.f64N/A

        \[\leadsto \left(-z\right) \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    5. Applied rewrites46.5%

      \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 2: 41.4% accurate, 2.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\\ t_2 := \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right)\\ t_3 := \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right)\\ t_4 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\ \mathbf{if}\;b \leq -3.5 \cdot 10^{+248}:\\ \;\;\;\;\left(-z\right) \cdot \left(b \cdot \mathsf{fma}\left(a, t, \left(-k\right) \cdot y0\right)\right)\\ \mathbf{elif}\;b \leq -2.45 \cdot 10^{-21}:\\ \;\;\;\;\left(\mathsf{fma}\left(t\_3, y1, t\_4 \cdot b\right) - t\_1 \cdot c\right) \cdot y4\\ \mathbf{elif}\;b \leq -2.9 \cdot 10^{-192}:\\ \;\;\;\;\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, t\_2 \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)\\ \mathbf{elif}\;b \leq 10^{-308}:\\ \;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(t\_3, y0, t\_4 \cdot i\right) - t\_1 \cdot a\right)\\ \mathbf{elif}\;b \leq 1.55 \cdot 10^{-204}:\\ \;\;\;\;\left(-z\right) \cdot \left(y0 \cdot \mathsf{fma}\left(c, y3, \left(-b\right) \cdot k\right)\right)\\ \mathbf{elif}\;b \leq 6 \cdot 10^{+76}:\\ \;\;\;\;\left(\mathsf{fma}\left(t\_2, y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, t\_4 \cdot y4\right) - \mathsf{fma}\left(j, x, k \cdot \left(-z\right)\right) \cdot y0\right) \cdot b\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (fma y2 t (* (- y) y3)))
        (t_2 (fma y0 c (* (- a) y1)))
        (t_3 (fma y2 k (* (- j) y3)))
        (t_4 (fma j t (* (- k) y))))
   (if (<= b -3.5e+248)
     (* (- z) (* b (fma a t (* (- k) y0))))
     (if (<= b -2.45e-21)
       (* (- (fma t_3 y1 (* t_4 b)) (* t_1 c)) y4)
       (if (<= b -2.9e-192)
         (*
          (- y3)
          (-
           (fma (fma y4 y1 (* (- y0) y5)) j (* t_2 z))
           (* (fma y4 c (* (- a) y5)) y)))
         (if (<= b 1e-308)
           (* (- y5) (- (fma t_3 y0 (* t_4 i)) (* t_1 a)))
           (if (<= b 1.55e-204)
             (* (- z) (* y0 (fma c y3 (* (- b) k))))
             (if (<= b 6e+76)
               (*
                (-
                 (fma t_2 y2 (* (fma b a (* (- c) i)) y))
                 (* (fma y0 b (* (- i) y1)) j))
                x)
               (*
                (-
                 (fma (fma y x (* (- t) z)) a (* t_4 y4))
                 (* (fma j x (* k (- z))) y0))
                b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = fma(y2, t, (-y * y3));
	double t_2 = fma(y0, c, (-a * y1));
	double t_3 = fma(y2, k, (-j * y3));
	double t_4 = fma(j, t, (-k * y));
	double tmp;
	if (b <= -3.5e+248) {
		tmp = -z * (b * fma(a, t, (-k * y0)));
	} else if (b <= -2.45e-21) {
		tmp = (fma(t_3, y1, (t_4 * b)) - (t_1 * c)) * y4;
	} else if (b <= -2.9e-192) {
		tmp = -y3 * (fma(fma(y4, y1, (-y0 * y5)), j, (t_2 * z)) - (fma(y4, c, (-a * y5)) * y));
	} else if (b <= 1e-308) {
		tmp = -y5 * (fma(t_3, y0, (t_4 * i)) - (t_1 * a));
	} else if (b <= 1.55e-204) {
		tmp = -z * (y0 * fma(c, y3, (-b * k)));
	} else if (b <= 6e+76) {
		tmp = (fma(t_2, y2, (fma(b, a, (-c * i)) * y)) - (fma(y0, b, (-i * y1)) * j)) * x;
	} else {
		tmp = (fma(fma(y, x, (-t * z)), a, (t_4 * y4)) - (fma(j, x, (k * -z)) * y0)) * b;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = fma(y2, t, Float64(Float64(-y) * y3))
	t_2 = fma(y0, c, Float64(Float64(-a) * y1))
	t_3 = fma(y2, k, Float64(Float64(-j) * y3))
	t_4 = fma(j, t, Float64(Float64(-k) * y))
	tmp = 0.0
	if (b <= -3.5e+248)
		tmp = Float64(Float64(-z) * Float64(b * fma(a, t, Float64(Float64(-k) * y0))));
	elseif (b <= -2.45e-21)
		tmp = Float64(Float64(fma(t_3, y1, Float64(t_4 * b)) - Float64(t_1 * c)) * y4);
	elseif (b <= -2.9e-192)
		tmp = Float64(Float64(-y3) * Float64(fma(fma(y4, y1, Float64(Float64(-y0) * y5)), j, Float64(t_2 * z)) - Float64(fma(y4, c, Float64(Float64(-a) * y5)) * y)));
	elseif (b <= 1e-308)
		tmp = Float64(Float64(-y5) * Float64(fma(t_3, y0, Float64(t_4 * i)) - Float64(t_1 * a)));
	elseif (b <= 1.55e-204)
		tmp = Float64(Float64(-z) * Float64(y0 * fma(c, y3, Float64(Float64(-b) * k))));
	elseif (b <= 6e+76)
		tmp = Float64(Float64(fma(t_2, y2, Float64(fma(b, a, Float64(Float64(-c) * i)) * y)) - Float64(fma(y0, b, Float64(Float64(-i) * y1)) * j)) * x);
	else
		tmp = Float64(Float64(fma(fma(y, x, Float64(Float64(-t) * z)), a, Float64(t_4 * y4)) - Float64(fma(j, x, Float64(k * Float64(-z))) * y0)) * b);
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y0 * c + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.5e+248], N[((-z) * N[(b * N[(a * t + N[((-k) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.45e-21], N[(N[(N[(t$95$3 * y1 + N[(t$95$4 * b), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[b, -2.9e-192], N[((-y3) * N[(N[(N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision] * j + N[(t$95$2 * z), $MachinePrecision]), $MachinePrecision] - N[(N[(y4 * c + N[((-a) * y5), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1e-308], N[((-y5) * N[(N[(t$95$3 * y0 + N[(t$95$4 * i), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.55e-204], N[((-z) * N[(y0 * N[(c * y3 + N[((-b) * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6e+76], N[(N[(N[(t$95$2 * y2 + N[(N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$4 * y4), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[(k * (-z)), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\\
t_2 := \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right)\\
t_3 := \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right)\\
t_4 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
\mathbf{if}\;b \leq -3.5 \cdot 10^{+248}:\\
\;\;\;\;\left(-z\right) \cdot \left(b \cdot \mathsf{fma}\left(a, t, \left(-k\right) \cdot y0\right)\right)\\

\mathbf{elif}\;b \leq -2.45 \cdot 10^{-21}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_3, y1, t\_4 \cdot b\right) - t\_1 \cdot c\right) \cdot y4\\

\mathbf{elif}\;b \leq -2.9 \cdot 10^{-192}:\\
\;\;\;\;\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, t\_2 \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)\\

\mathbf{elif}\;b \leq 10^{-308}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(t\_3, y0, t\_4 \cdot i\right) - t\_1 \cdot a\right)\\

\mathbf{elif}\;b \leq 1.55 \cdot 10^{-204}:\\
\;\;\;\;\left(-z\right) \cdot \left(y0 \cdot \mathsf{fma}\left(c, y3, \left(-b\right) \cdot k\right)\right)\\

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

\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, t\_4 \cdot y4\right) - \mathsf{fma}\left(j, x, k \cdot \left(-z\right)\right) \cdot y0\right) \cdot b\\


\end{array}
\end{array}
Derivation
  1. Split input into 7 regimes
  2. if b < -3.50000000000000022e248

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

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    4. Step-by-step derivation
      1. mul-1-negN/A

        \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. distribute-lft-neg-inN/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
      3. lower-*.f64N/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
      4. lower-neg.f64N/A

        \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
      5. lower--.f64N/A

        \[\leadsto \left(-z\right) \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    5. Applied rewrites57.3%

      \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
    6. Taylor expanded in b around inf

      \[\leadsto \left(-z\right) \cdot \left(b \cdot \color{blue}{\left(a \cdot t - k \cdot y0\right)}\right) \]
    7. Step-by-step derivation
      1. Applied rewrites66.9%

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

      if -3.50000000000000022e248 < b < -2.4500000000000001e-21

      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 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. *-commutativeN/A

          \[\leadsto \color{blue}{\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) \cdot y4} \]
        2. lower-*.f64N/A

          \[\leadsto \color{blue}{\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) \cdot y4} \]
      5. Applied rewrites53.5%

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

      if -2.4500000000000001e-21 < b < -2.90000000000000016e-192

      1. Initial program 33.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 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. mul-1-negN/A

          \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
        2. distribute-lft-neg-inN/A

          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
        3. lower-*.f64N/A

          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
        4. lower-neg.f64N/A

          \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
        5. lower--.f64N/A

          \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
      5. Applied rewrites60.5%

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

      if -2.90000000000000016e-192 < b < 9.9999999999999991e-309

      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 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. mul-1-negN/A

          \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
        2. distribute-lft-neg-inN/A

          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y5\right)\right) \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)} \]
        3. lower-*.f64N/A

          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y5\right)\right) \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)} \]
        4. lower-neg.f64N/A

          \[\leadsto \color{blue}{\left(-y5\right)} \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) \]
        5. lower--.f64N/A

          \[\leadsto \left(-y5\right) \cdot \color{blue}{\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)} \]
      5. Applied rewrites60.9%

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

      if 9.9999999999999991e-309 < b < 1.55e-204

      1. Initial program 14.3%

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

        \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      4. Step-by-step derivation
        1. mul-1-negN/A

          \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
        2. distribute-lft-neg-inN/A

          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
        3. lower-*.f64N/A

          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
        4. lower-neg.f64N/A

          \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
        5. lower--.f64N/A

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

        \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
      6. Taylor expanded in y0 around inf

        \[\leadsto \left(-z\right) \cdot \left(y0 \cdot \color{blue}{\left(c \cdot y3 - b \cdot k\right)}\right) \]
      7. Step-by-step derivation
        1. Applied rewrites71.2%

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

        if 1.55e-204 < b < 5.9999999999999996e76

        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 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. *-commutativeN/A

            \[\leadsto \color{blue}{\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) \cdot x} \]
          2. lower-*.f64N/A

            \[\leadsto \color{blue}{\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) \cdot x} \]
        5. Applied rewrites51.7%

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

        if 5.9999999999999996e76 < b

        1. Initial program 17.5%

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

            \[\leadsto \color{blue}{\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) \cdot b} \]
          2. lower-*.f64N/A

            \[\leadsto \color{blue}{\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) \cdot b} \]
        5. Applied rewrites65.0%

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3.5 \cdot 10^{+248}:\\ \;\;\;\;\left(-z\right) \cdot \left(b \cdot \mathsf{fma}\left(a, t, \left(-k\right) \cdot y0\right)\right)\\ \mathbf{elif}\;b \leq -2.45 \cdot 10^{-21}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right), y1, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot b\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\ \mathbf{elif}\;b \leq -2.9 \cdot 10^{-192}:\\ \;\;\;\;\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)\\ \mathbf{elif}\;b \leq 10^{-308}:\\ \;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right), y0, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot i\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)\\ \mathbf{elif}\;b \leq 1.55 \cdot 10^{-204}:\\ \;\;\;\;\left(-z\right) \cdot \left(y0 \cdot \mathsf{fma}\left(c, y3, \left(-b\right) \cdot k\right)\right)\\ \mathbf{elif}\;b \leq 6 \cdot 10^{+76}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, k \cdot \left(-z\right)\right) \cdot y0\right) \cdot b\\ \end{array} \]
      10. Add Preprocessing

      Alternative 3: 40.3% accurate, 2.0× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right)\\ t_2 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\ \mathbf{if}\;b \leq -3.5 \cdot 10^{+248}:\\ \;\;\;\;\left(-z\right) \cdot \left(b \cdot \mathsf{fma}\left(a, t, \left(-k\right) \cdot y0\right)\right)\\ \mathbf{elif}\;b \leq -5 \cdot 10^{-25}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right), y1, t\_2 \cdot b\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\ \mathbf{elif}\;b \leq -1.9 \cdot 10^{-120}:\\ \;\;\;\;y0 \cdot \left(y3 \cdot \mathsf{fma}\left(-1, c \cdot z, j \cdot y5\right)\right)\\ \mathbf{elif}\;b \leq -5 \cdot 10^{-309}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, t\_1 \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot t\right) \cdot y2\\ \mathbf{elif}\;b \leq 1.55 \cdot 10^{-204}:\\ \;\;\;\;\left(-z\right) \cdot \left(y0 \cdot \mathsf{fma}\left(c, y3, \left(-b\right) \cdot k\right)\right)\\ \mathbf{elif}\;b \leq 6 \cdot 10^{+76}:\\ \;\;\;\;\left(\mathsf{fma}\left(t\_1, y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, t\_2 \cdot y4\right) - \mathsf{fma}\left(j, x, k \cdot \left(-z\right)\right) \cdot y0\right) \cdot b\\ \end{array} \end{array} \]
      (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
       :precision binary64
       (let* ((t_1 (fma y0 c (* (- a) y1))) (t_2 (fma j t (* (- k) y))))
         (if (<= b -3.5e+248)
           (* (- z) (* b (fma a t (* (- k) y0))))
           (if (<= b -5e-25)
             (*
              (-
               (fma (fma y2 k (* (- j) y3)) y1 (* t_2 b))
               (* (fma y2 t (* (- y) y3)) c))
              y4)
             (if (<= b -1.9e-120)
               (* y0 (* y3 (fma -1.0 (* c z) (* j y5))))
               (if (<= b -5e-309)
                 (*
                  (-
                   (fma (fma y4 y1 (* (- y0) y5)) k (* t_1 x))
                   (* (fma y4 c (* (- a) y5)) t))
                  y2)
                 (if (<= b 1.55e-204)
                   (* (- z) (* y0 (fma c y3 (* (- b) k))))
                   (if (<= b 6e+76)
                     (*
                      (-
                       (fma t_1 y2 (* (fma b a (* (- c) i)) y))
                       (* (fma y0 b (* (- i) y1)) j))
                      x)
                     (*
                      (-
                       (fma (fma y x (* (- t) z)) a (* t_2 y4))
                       (* (fma j x (* k (- z))) y0))
                      b)))))))))
      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
      	double t_1 = fma(y0, c, (-a * y1));
      	double t_2 = fma(j, t, (-k * y));
      	double tmp;
      	if (b <= -3.5e+248) {
      		tmp = -z * (b * fma(a, t, (-k * y0)));
      	} else if (b <= -5e-25) {
      		tmp = (fma(fma(y2, k, (-j * y3)), y1, (t_2 * b)) - (fma(y2, t, (-y * y3)) * c)) * y4;
      	} else if (b <= -1.9e-120) {
      		tmp = y0 * (y3 * fma(-1.0, (c * z), (j * y5)));
      	} else if (b <= -5e-309) {
      		tmp = (fma(fma(y4, y1, (-y0 * y5)), k, (t_1 * x)) - (fma(y4, c, (-a * y5)) * t)) * y2;
      	} else if (b <= 1.55e-204) {
      		tmp = -z * (y0 * fma(c, y3, (-b * k)));
      	} else if (b <= 6e+76) {
      		tmp = (fma(t_1, y2, (fma(b, a, (-c * i)) * y)) - (fma(y0, b, (-i * y1)) * j)) * x;
      	} else {
      		tmp = (fma(fma(y, x, (-t * z)), a, (t_2 * y4)) - (fma(j, x, (k * -z)) * y0)) * b;
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
      	t_1 = fma(y0, c, Float64(Float64(-a) * y1))
      	t_2 = fma(j, t, Float64(Float64(-k) * y))
      	tmp = 0.0
      	if (b <= -3.5e+248)
      		tmp = Float64(Float64(-z) * Float64(b * fma(a, t, Float64(Float64(-k) * y0))));
      	elseif (b <= -5e-25)
      		tmp = Float64(Float64(fma(fma(y2, k, Float64(Float64(-j) * y3)), y1, Float64(t_2 * b)) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * c)) * y4);
      	elseif (b <= -1.9e-120)
      		tmp = Float64(y0 * Float64(y3 * fma(-1.0, Float64(c * z), Float64(j * y5))));
      	elseif (b <= -5e-309)
      		tmp = Float64(Float64(fma(fma(y4, y1, Float64(Float64(-y0) * y5)), k, Float64(t_1 * x)) - Float64(fma(y4, c, Float64(Float64(-a) * y5)) * t)) * y2);
      	elseif (b <= 1.55e-204)
      		tmp = Float64(Float64(-z) * Float64(y0 * fma(c, y3, Float64(Float64(-b) * k))));
      	elseif (b <= 6e+76)
      		tmp = Float64(Float64(fma(t_1, y2, Float64(fma(b, a, Float64(Float64(-c) * i)) * y)) - Float64(fma(y0, b, Float64(Float64(-i) * y1)) * j)) * x);
      	else
      		tmp = Float64(Float64(fma(fma(y, x, Float64(Float64(-t) * z)), a, Float64(t_2 * y4)) - Float64(fma(j, x, Float64(k * Float64(-z))) * y0)) * b);
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y0 * c + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.5e+248], N[((-z) * N[(b * N[(a * t + N[((-k) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5e-25], N[(N[(N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y1 + N[(t$95$2 * b), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[b, -1.9e-120], N[(y0 * N[(y3 * N[(-1.0 * N[(c * z), $MachinePrecision] + N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5e-309], N[(N[(N[(N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision] * k + N[(t$95$1 * x), $MachinePrecision]), $MachinePrecision] - N[(N[(y4 * c + N[((-a) * y5), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[b, 1.55e-204], N[((-z) * N[(y0 * N[(c * y3 + N[((-b) * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6e+76], N[(N[(N[(t$95$1 * y2 + N[(N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$2 * y4), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[(k * (-z)), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]]]]]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right)\\
      t_2 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
      \mathbf{if}\;b \leq -3.5 \cdot 10^{+248}:\\
      \;\;\;\;\left(-z\right) \cdot \left(b \cdot \mathsf{fma}\left(a, t, \left(-k\right) \cdot y0\right)\right)\\
      
      \mathbf{elif}\;b \leq -5 \cdot 10^{-25}:\\
      \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right), y1, t\_2 \cdot b\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\
      
      \mathbf{elif}\;b \leq -1.9 \cdot 10^{-120}:\\
      \;\;\;\;y0 \cdot \left(y3 \cdot \mathsf{fma}\left(-1, c \cdot z, j \cdot y5\right)\right)\\
      
      \mathbf{elif}\;b \leq -5 \cdot 10^{-309}:\\
      \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, t\_1 \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot t\right) \cdot y2\\
      
      \mathbf{elif}\;b \leq 1.55 \cdot 10^{-204}:\\
      \;\;\;\;\left(-z\right) \cdot \left(y0 \cdot \mathsf{fma}\left(c, y3, \left(-b\right) \cdot k\right)\right)\\
      
      \mathbf{elif}\;b \leq 6 \cdot 10^{+76}:\\
      \;\;\;\;\left(\mathsf{fma}\left(t\_1, y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x\\
      
      \mathbf{else}:\\
      \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, t\_2 \cdot y4\right) - \mathsf{fma}\left(j, x, k \cdot \left(-z\right)\right) \cdot y0\right) \cdot b\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 7 regimes
      2. if b < -3.50000000000000022e248

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

          \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
        4. Step-by-step derivation
          1. mul-1-negN/A

            \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
          2. distribute-lft-neg-inN/A

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
          3. lower-*.f64N/A

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
          4. lower-neg.f64N/A

            \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
          5. lower--.f64N/A

            \[\leadsto \left(-z\right) \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
        5. Applied rewrites57.3%

          \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
        6. Taylor expanded in b around inf

          \[\leadsto \left(-z\right) \cdot \left(b \cdot \color{blue}{\left(a \cdot t - k \cdot y0\right)}\right) \]
        7. Step-by-step derivation
          1. Applied rewrites66.9%

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

          if -3.50000000000000022e248 < b < -4.99999999999999962e-25

          1. Initial program 33.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. *-commutativeN/A

              \[\leadsto \color{blue}{\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) \cdot y4} \]
            2. lower-*.f64N/A

              \[\leadsto \color{blue}{\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) \cdot y4} \]
          5. Applied rewrites52.7%

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

          if -4.99999999999999962e-25 < b < -1.8999999999999999e-120

          1. Initial program 31.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 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. mul-1-negN/A

              \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
            2. distribute-lft-neg-inN/A

              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
            3. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
            4. lower-neg.f64N/A

              \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
            5. lower--.f64N/A

              \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
          5. Applied rewrites62.3%

            \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
          6. Taylor expanded in y0 around -inf

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

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

            if -1.8999999999999999e-120 < b < -4.9999999999999995e-309

            1. Initial program 29.7%

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

                \[\leadsto \color{blue}{\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) \cdot y2} \]
              2. lower-*.f64N/A

                \[\leadsto \color{blue}{\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) \cdot y2} \]
            5. Applied rewrites56.4%

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

            if -4.9999999999999995e-309 < b < 1.55e-204

            1. Initial program 14.3%

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

              \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
            4. Step-by-step derivation
              1. mul-1-negN/A

                \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
              2. distribute-lft-neg-inN/A

                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
              3. lower-*.f64N/A

                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
              4. lower-neg.f64N/A

                \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
              5. lower--.f64N/A

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

              \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
            6. Taylor expanded in y0 around inf

              \[\leadsto \left(-z\right) \cdot \left(y0 \cdot \color{blue}{\left(c \cdot y3 - b \cdot k\right)}\right) \]
            7. Step-by-step derivation
              1. Applied rewrites71.2%

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

              if 1.55e-204 < b < 5.9999999999999996e76

              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 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. *-commutativeN/A

                  \[\leadsto \color{blue}{\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) \cdot x} \]
                2. lower-*.f64N/A

                  \[\leadsto \color{blue}{\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) \cdot x} \]
              5. Applied rewrites51.7%

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

              if 5.9999999999999996e76 < b

              1. Initial program 17.5%

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

                  \[\leadsto \color{blue}{\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) \cdot b} \]
                2. lower-*.f64N/A

                  \[\leadsto \color{blue}{\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) \cdot b} \]
              5. Applied rewrites65.0%

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

              \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3.5 \cdot 10^{+248}:\\ \;\;\;\;\left(-z\right) \cdot \left(b \cdot \mathsf{fma}\left(a, t, \left(-k\right) \cdot y0\right)\right)\\ \mathbf{elif}\;b \leq -5 \cdot 10^{-25}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right), y1, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot b\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\ \mathbf{elif}\;b \leq -1.9 \cdot 10^{-120}:\\ \;\;\;\;y0 \cdot \left(y3 \cdot \mathsf{fma}\left(-1, c \cdot z, j \cdot y5\right)\right)\\ \mathbf{elif}\;b \leq -5 \cdot 10^{-309}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot t\right) \cdot y2\\ \mathbf{elif}\;b \leq 1.55 \cdot 10^{-204}:\\ \;\;\;\;\left(-z\right) \cdot \left(y0 \cdot \mathsf{fma}\left(c, y3, \left(-b\right) \cdot k\right)\right)\\ \mathbf{elif}\;b \leq 6 \cdot 10^{+76}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, k \cdot \left(-z\right)\right) \cdot y0\right) \cdot b\\ \end{array} \]
            10. Add Preprocessing

            Alternative 4: 43.9% accurate, 2.1× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right)\\ t_2 := \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right)\\ t_3 := \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right)\\ t_4 := \left(-z\right) \cdot \left(\mathsf{fma}\left(t\_2, y3, t\_1 \cdot t\right) - t\_3 \cdot k\right)\\ \mathbf{if}\;z \leq -1.12 \cdot 10^{-38}:\\ \;\;\;\;t\_4\\ \mathbf{elif}\;z \leq -8 \cdot 10^{-229}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, k \cdot \left(-z\right)\right) \cdot y0\right) \cdot b\\ \mathbf{elif}\;z \leq 7.1 \cdot 10^{-297}:\\ \;\;\;\;\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, t\_2 \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)\\ \mathbf{elif}\;z \leq 3.5 \cdot 10^{-182}:\\ \;\;\;\;\left(\mathsf{fma}\left(t\_2, y2, t\_1 \cdot y\right) - t\_3 \cdot j\right) \cdot x\\ \mathbf{elif}\;z \leq 7.8 \cdot 10^{-82}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\ \mathbf{else}:\\ \;\;\;\;t\_4\\ \end{array} \end{array} \]
            (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
             :precision binary64
             (let* ((t_1 (fma b a (* (- c) i)))
                    (t_2 (fma y0 c (* (- a) y1)))
                    (t_3 (fma y0 b (* (- i) y1)))
                    (t_4 (* (- z) (- (fma t_2 y3 (* t_1 t)) (* t_3 k)))))
               (if (<= z -1.12e-38)
                 t_4
                 (if (<= z -8e-229)
                   (*
                    (-
                     (fma (fma y x (* (- t) z)) a (* (fma j t (* (- k) y)) y4))
                     (* (fma j x (* k (- z))) y0))
                    b)
                   (if (<= z 7.1e-297)
                     (*
                      (- y3)
                      (-
                       (fma (fma y4 y1 (* (- y0) y5)) j (* t_2 z))
                       (* (fma y4 c (* (- a) y5)) y)))
                     (if (<= z 3.5e-182)
                       (* (- (fma t_2 y2 (* t_1 y)) (* t_3 j)) x)
                       (if (<= z 7.8e-82)
                         (+
                          (* a (* y1 (* y3 z)))
                          (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))
                         t_4)))))))
            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
            	double t_1 = fma(b, a, (-c * i));
            	double t_2 = fma(y0, c, (-a * y1));
            	double t_3 = fma(y0, b, (-i * y1));
            	double t_4 = -z * (fma(t_2, y3, (t_1 * t)) - (t_3 * k));
            	double tmp;
            	if (z <= -1.12e-38) {
            		tmp = t_4;
            	} else if (z <= -8e-229) {
            		tmp = (fma(fma(y, x, (-t * z)), a, (fma(j, t, (-k * y)) * y4)) - (fma(j, x, (k * -z)) * y0)) * b;
            	} else if (z <= 7.1e-297) {
            		tmp = -y3 * (fma(fma(y4, y1, (-y0 * y5)), j, (t_2 * z)) - (fma(y4, c, (-a * y5)) * y));
            	} else if (z <= 3.5e-182) {
            		tmp = (fma(t_2, y2, (t_1 * y)) - (t_3 * j)) * x;
            	} else if (z <= 7.8e-82) {
            		tmp = (a * (y1 * (y3 * z))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
            	} else {
            		tmp = t_4;
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
            	t_1 = fma(b, a, Float64(Float64(-c) * i))
            	t_2 = fma(y0, c, Float64(Float64(-a) * y1))
            	t_3 = fma(y0, b, Float64(Float64(-i) * y1))
            	t_4 = Float64(Float64(-z) * Float64(fma(t_2, y3, Float64(t_1 * t)) - Float64(t_3 * k)))
            	tmp = 0.0
            	if (z <= -1.12e-38)
            		tmp = t_4;
            	elseif (z <= -8e-229)
            		tmp = Float64(Float64(fma(fma(y, x, Float64(Float64(-t) * z)), a, Float64(fma(j, t, Float64(Float64(-k) * y)) * y4)) - Float64(fma(j, x, Float64(k * Float64(-z))) * y0)) * b);
            	elseif (z <= 7.1e-297)
            		tmp = Float64(Float64(-y3) * Float64(fma(fma(y4, y1, Float64(Float64(-y0) * y5)), j, Float64(t_2 * z)) - Float64(fma(y4, c, Float64(Float64(-a) * y5)) * y)));
            	elseif (z <= 3.5e-182)
            		tmp = Float64(Float64(fma(t_2, y2, Float64(t_1 * y)) - Float64(t_3 * j)) * x);
            	elseif (z <= 7.8e-82)
            		tmp = Float64(Float64(a * Float64(y1 * Float64(y3 * z))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0))));
            	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[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y0 * c + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[((-z) * N[(N[(t$95$2 * y3 + N[(t$95$1 * t), $MachinePrecision]), $MachinePrecision] - N[(t$95$3 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.12e-38], t$95$4, If[LessEqual[z, -8e-229], N[(N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a + N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[(k * (-z)), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[z, 7.1e-297], N[((-y3) * N[(N[(N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision] * j + N[(t$95$2 * z), $MachinePrecision]), $MachinePrecision] - N[(N[(y4 * c + N[((-a) * y5), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.5e-182], N[(N[(N[(t$95$2 * y2 + N[(t$95$1 * y), $MachinePrecision]), $MachinePrecision] - N[(t$95$3 * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 7.8e-82], N[(N[(a * N[(y1 * N[(y3 * z), $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], t$95$4]]]]]]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right)\\
            t_2 := \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right)\\
            t_3 := \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right)\\
            t_4 := \left(-z\right) \cdot \left(\mathsf{fma}\left(t\_2, y3, t\_1 \cdot t\right) - t\_3 \cdot k\right)\\
            \mathbf{if}\;z \leq -1.12 \cdot 10^{-38}:\\
            \;\;\;\;t\_4\\
            
            \mathbf{elif}\;z \leq -8 \cdot 10^{-229}:\\
            \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, k \cdot \left(-z\right)\right) \cdot y0\right) \cdot b\\
            
            \mathbf{elif}\;z \leq 7.1 \cdot 10^{-297}:\\
            \;\;\;\;\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, t\_2 \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)\\
            
            \mathbf{elif}\;z \leq 3.5 \cdot 10^{-182}:\\
            \;\;\;\;\left(\mathsf{fma}\left(t\_2, y2, t\_1 \cdot y\right) - t\_3 \cdot j\right) \cdot x\\
            
            \mathbf{elif}\;z \leq 7.8 \cdot 10^{-82}:\\
            \;\;\;\;a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_4\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 5 regimes
            2. if z < -1.1200000000000001e-38 or 7.79999999999999947e-82 < z

              1. Initial program 27.1%

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

                \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
              4. Step-by-step derivation
                1. mul-1-negN/A

                  \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                2. distribute-lft-neg-inN/A

                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                3. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                4. lower-neg.f64N/A

                  \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
                5. lower--.f64N/A

                  \[\leadsto \left(-z\right) \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
              5. Applied rewrites57.6%

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

              if -1.1200000000000001e-38 < z < -8.00000000000000055e-229

              1. Initial program 35.2%

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

                  \[\leadsto \color{blue}{\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) \cdot b} \]
                2. lower-*.f64N/A

                  \[\leadsto \color{blue}{\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) \cdot b} \]
              5. Applied rewrites60.1%

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

              if -8.00000000000000055e-229 < z < 7.1000000000000005e-297

              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 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. mul-1-negN/A

                  \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                2. distribute-lft-neg-inN/A

                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                3. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                4. lower-neg.f64N/A

                  \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                5. lower--.f64N/A

                  \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
              5. Applied rewrites62.2%

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

              if 7.1000000000000005e-297 < z < 3.49999999999999983e-182

              1. Initial program 47.7%

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

                \[\leadsto \color{blue}{x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
              4. Step-by-step derivation
                1. *-commutativeN/A

                  \[\leadsto \color{blue}{\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) \cdot x} \]
                2. lower-*.f64N/A

                  \[\leadsto \color{blue}{\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) \cdot x} \]
              5. Applied rewrites69.7%

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

              if 3.49999999999999983e-182 < z < 7.79999999999999947e-82

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

                \[\leadsto \color{blue}{-1 \cdot \left(y1 \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right) - i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
              4. Step-by-step derivation
                1. mul-1-negN/A

                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y1 \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right) - i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                2. distribute-lft-neg-inN/A

                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y1\right)\right) \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right) - i \cdot \left(j \cdot x - k \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                3. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y1\right)\right) \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right) - i \cdot \left(j \cdot x - k \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                4. lower-neg.f64N/A

                  \[\leadsto \color{blue}{\left(-y1\right)} \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right) - i \cdot \left(j \cdot x - k \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                5. fp-cancel-sub-sign-invN/A

                  \[\leadsto \left(-y1\right) \cdot \color{blue}{\left(a \cdot \left(x \cdot y2 - y3 \cdot z\right) + \left(\mathsf{neg}\left(i\right)\right) \cdot \left(j \cdot x - k \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                6. *-commutativeN/A

                  \[\leadsto \left(-y1\right) \cdot \left(\color{blue}{\left(x \cdot y2 - y3 \cdot z\right) \cdot a} + \left(\mathsf{neg}\left(i\right)\right) \cdot \left(j \cdot x - k \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                7. distribute-lft-neg-inN/A

                  \[\leadsto \left(-y1\right) \cdot \left(\left(x \cdot y2 - y3 \cdot z\right) \cdot a + \color{blue}{\left(\mathsf{neg}\left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                8. mul-1-negN/A

                  \[\leadsto \left(-y1\right) \cdot \left(\left(x \cdot y2 - y3 \cdot z\right) \cdot a + \color{blue}{-1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                9. lower-fma.f64N/A

                  \[\leadsto \left(-y1\right) \cdot \color{blue}{\mathsf{fma}\left(x \cdot y2 - y3 \cdot z, a, -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                10. fp-cancel-sub-sign-invN/A

                  \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\color{blue}{x \cdot y2 + \left(\mathsf{neg}\left(y3\right)\right) \cdot z}, a, -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                11. *-commutativeN/A

                  \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\color{blue}{y2 \cdot x} + \left(\mathsf{neg}\left(y3\right)\right) \cdot z, a, -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                12. lower-fma.f64N/A

                  \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y2, x, \left(\mathsf{neg}\left(y3\right)\right) \cdot z\right)}, a, -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                13. lower-*.f64N/A

                  \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \cdot z}\right), a, -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                14. lower-neg.f64N/A

                  \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \color{blue}{\left(-y3\right)} \cdot z\right), a, -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                15. mul-1-negN/A

                  \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), a, \color{blue}{\mathsf{neg}\left(i \cdot \left(j \cdot x - k \cdot z\right)\right)}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                16. distribute-lft-neg-inN/A

                  \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), a, \color{blue}{\left(\mathsf{neg}\left(i\right)\right) \cdot \left(j \cdot x - k \cdot z\right)}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                17. lower-*.f64N/A

                  \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), a, \color{blue}{\left(\mathsf{neg}\left(i\right)\right) \cdot \left(j \cdot x - k \cdot z\right)}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                18. lower-neg.f64N/A

                  \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), a, \color{blue}{\left(-i\right)} \cdot \left(j \cdot x - k \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                19. fp-cancel-sub-sign-invN/A

                  \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), a, \left(-i\right) \cdot \color{blue}{\left(j \cdot x + \left(\mathsf{neg}\left(k\right)\right) \cdot z\right)}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                20. lower-fma.f64N/A

                  \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), a, \left(-i\right) \cdot \color{blue}{\mathsf{fma}\left(j, x, \left(\mathsf{neg}\left(k\right)\right) \cdot z\right)}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
              5. Applied rewrites55.2%

                \[\leadsto \color{blue}{\left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), a, \left(-i\right) \cdot \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
              6. Taylor expanded in y3 around inf

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

                  \[\leadsto a \cdot \color{blue}{\left(y1 \cdot \left(y3 \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
              8. Recombined 5 regimes into one program.
              9. Final simplification60.0%

                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.12 \cdot 10^{-38}:\\ \;\;\;\;\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)\\ \mathbf{elif}\;z \leq -8 \cdot 10^{-229}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, k \cdot \left(-z\right)\right) \cdot y0\right) \cdot b\\ \mathbf{elif}\;z \leq 7.1 \cdot 10^{-297}:\\ \;\;\;\;\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)\\ \mathbf{elif}\;z \leq 3.5 \cdot 10^{-182}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x\\ \mathbf{elif}\;z \leq 7.8 \cdot 10^{-82}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\ \mathbf{else}:\\ \;\;\;\;\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)\\ \end{array} \]
              10. Add Preprocessing

              Alternative 5: 36.7% accurate, 2.1× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, k \cdot \left(-z\right)\right) \cdot y0\right) \cdot b\\ \mathbf{if}\;x \leq -1.05 \cdot 10^{+104}:\\ \;\;\;\;\left(y0 \cdot \mathsf{fma}\left(c, y2, \left(-b\right) \cdot j\right)\right) \cdot x\\ \mathbf{elif}\;x \leq -4.5 \cdot 10^{-23}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 2.6 \cdot 10^{-279}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\ \mathbf{elif}\;x \leq 860:\\ \;\;\;\;\left(-y3\right) \cdot \left(y1 \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\ \mathbf{elif}\;x \leq 6 \cdot 10^{+267}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\left(y1 \cdot \mathsf{fma}\left(k, y4, \left(-a\right) \cdot x\right)\right) \cdot y2\\ \end{array} \end{array} \]
              (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
               :precision binary64
               (let* ((t_1
                       (*
                        (-
                         (fma (fma y x (* (- t) z)) a (* (fma j t (* (- k) y)) y4))
                         (* (fma j x (* k (- z))) y0))
                        b)))
                 (if (<= x -1.05e+104)
                   (* (* y0 (fma c y2 (* (- b) j))) x)
                   (if (<= x -4.5e-23)
                     t_1
                     (if (<= x 2.6e-279)
                       (+
                        (* a (* y1 (* y3 z)))
                        (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))
                       (if (<= x 860.0)
                         (* (- y3) (* y1 (fma -1.0 (* a z) (* j y4))))
                         (if (<= x 6e+267) t_1 (* (* y1 (fma k y4 (* (- a) x))) y2))))))))
              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
              	double t_1 = (fma(fma(y, x, (-t * z)), a, (fma(j, t, (-k * y)) * y4)) - (fma(j, x, (k * -z)) * y0)) * b;
              	double tmp;
              	if (x <= -1.05e+104) {
              		tmp = (y0 * fma(c, y2, (-b * j))) * x;
              	} else if (x <= -4.5e-23) {
              		tmp = t_1;
              	} else if (x <= 2.6e-279) {
              		tmp = (a * (y1 * (y3 * z))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
              	} else if (x <= 860.0) {
              		tmp = -y3 * (y1 * fma(-1.0, (a * z), (j * y4)));
              	} else if (x <= 6e+267) {
              		tmp = t_1;
              	} else {
              		tmp = (y1 * fma(k, y4, (-a * x))) * y2;
              	}
              	return tmp;
              }
              
              function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
              	t_1 = Float64(Float64(fma(fma(y, x, Float64(Float64(-t) * z)), a, Float64(fma(j, t, Float64(Float64(-k) * y)) * y4)) - Float64(fma(j, x, Float64(k * Float64(-z))) * y0)) * b)
              	tmp = 0.0
              	if (x <= -1.05e+104)
              		tmp = Float64(Float64(y0 * fma(c, y2, Float64(Float64(-b) * j))) * x);
              	elseif (x <= -4.5e-23)
              		tmp = t_1;
              	elseif (x <= 2.6e-279)
              		tmp = Float64(Float64(a * Float64(y1 * Float64(y3 * z))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0))));
              	elseif (x <= 860.0)
              		tmp = Float64(Float64(-y3) * Float64(y1 * fma(-1.0, Float64(a * z), Float64(j * y4))));
              	elseif (x <= 6e+267)
              		tmp = t_1;
              	else
              		tmp = Float64(Float64(y1 * fma(k, y4, Float64(Float64(-a) * x))) * y2);
              	end
              	return tmp
              end
              
              code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a + N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[(k * (-z)), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[x, -1.05e+104], N[(N[(y0 * N[(c * y2 + N[((-b) * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[x, -4.5e-23], t$95$1, If[LessEqual[x, 2.6e-279], N[(N[(a * N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 860.0], N[((-y3) * N[(y1 * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6e+267], t$95$1, N[(N[(y1 * N[(k * y4 + N[((-a) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]]]]]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, k \cdot \left(-z\right)\right) \cdot y0\right) \cdot b\\
              \mathbf{if}\;x \leq -1.05 \cdot 10^{+104}:\\
              \;\;\;\;\left(y0 \cdot \mathsf{fma}\left(c, y2, \left(-b\right) \cdot j\right)\right) \cdot x\\
              
              \mathbf{elif}\;x \leq -4.5 \cdot 10^{-23}:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;x \leq 2.6 \cdot 10^{-279}:\\
              \;\;\;\;a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
              
              \mathbf{elif}\;x \leq 860:\\
              \;\;\;\;\left(-y3\right) \cdot \left(y1 \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\
              
              \mathbf{elif}\;x \leq 6 \cdot 10^{+267}:\\
              \;\;\;\;t\_1\\
              
              \mathbf{else}:\\
              \;\;\;\;\left(y1 \cdot \mathsf{fma}\left(k, y4, \left(-a\right) \cdot x\right)\right) \cdot y2\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 5 regimes
              2. if x < -1.0499999999999999e104

                1. Initial program 14.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 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. *-commutativeN/A

                    \[\leadsto \color{blue}{\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) \cdot x} \]
                  2. lower-*.f64N/A

                    \[\leadsto \color{blue}{\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) \cdot x} \]
                5. Applied rewrites49.4%

                  \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x} \]
                6. Taylor expanded in y0 around inf

                  \[\leadsto \left(y0 \cdot \left(c \cdot y2 - b \cdot j\right)\right) \cdot x \]
                7. Step-by-step derivation
                  1. Applied rewrites56.5%

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

                  if -1.0499999999999999e104 < x < -4.49999999999999975e-23 or 860 < x < 5.9999999999999998e267

                  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 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. *-commutativeN/A

                      \[\leadsto \color{blue}{\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) \cdot b} \]
                    2. lower-*.f64N/A

                      \[\leadsto \color{blue}{\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) \cdot b} \]
                  5. Applied rewrites61.1%

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

                  if -4.49999999999999975e-23 < x < 2.6000000000000002e-279

                  1. Initial program 54.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}{-1 \cdot \left(y1 \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right) - i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                  4. Step-by-step derivation
                    1. mul-1-negN/A

                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y1 \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right) - i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                    2. distribute-lft-neg-inN/A

                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y1\right)\right) \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right) - i \cdot \left(j \cdot x - k \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                    3. lower-*.f64N/A

                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y1\right)\right) \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right) - i \cdot \left(j \cdot x - k \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                    4. lower-neg.f64N/A

                      \[\leadsto \color{blue}{\left(-y1\right)} \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right) - i \cdot \left(j \cdot x - k \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                    5. fp-cancel-sub-sign-invN/A

                      \[\leadsto \left(-y1\right) \cdot \color{blue}{\left(a \cdot \left(x \cdot y2 - y3 \cdot z\right) + \left(\mathsf{neg}\left(i\right)\right) \cdot \left(j \cdot x - k \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                    6. *-commutativeN/A

                      \[\leadsto \left(-y1\right) \cdot \left(\color{blue}{\left(x \cdot y2 - y3 \cdot z\right) \cdot a} + \left(\mathsf{neg}\left(i\right)\right) \cdot \left(j \cdot x - k \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                    7. distribute-lft-neg-inN/A

                      \[\leadsto \left(-y1\right) \cdot \left(\left(x \cdot y2 - y3 \cdot z\right) \cdot a + \color{blue}{\left(\mathsf{neg}\left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                    8. mul-1-negN/A

                      \[\leadsto \left(-y1\right) \cdot \left(\left(x \cdot y2 - y3 \cdot z\right) \cdot a + \color{blue}{-1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                    9. lower-fma.f64N/A

                      \[\leadsto \left(-y1\right) \cdot \color{blue}{\mathsf{fma}\left(x \cdot y2 - y3 \cdot z, a, -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                    10. fp-cancel-sub-sign-invN/A

                      \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\color{blue}{x \cdot y2 + \left(\mathsf{neg}\left(y3\right)\right) \cdot z}, a, -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                    11. *-commutativeN/A

                      \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\color{blue}{y2 \cdot x} + \left(\mathsf{neg}\left(y3\right)\right) \cdot z, a, -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                    12. lower-fma.f64N/A

                      \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y2, x, \left(\mathsf{neg}\left(y3\right)\right) \cdot z\right)}, a, -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                    13. lower-*.f64N/A

                      \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \cdot z}\right), a, -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                    14. lower-neg.f64N/A

                      \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \color{blue}{\left(-y3\right)} \cdot z\right), a, -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                    15. mul-1-negN/A

                      \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), a, \color{blue}{\mathsf{neg}\left(i \cdot \left(j \cdot x - k \cdot z\right)\right)}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                    16. distribute-lft-neg-inN/A

                      \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), a, \color{blue}{\left(\mathsf{neg}\left(i\right)\right) \cdot \left(j \cdot x - k \cdot z\right)}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                    17. lower-*.f64N/A

                      \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), a, \color{blue}{\left(\mathsf{neg}\left(i\right)\right) \cdot \left(j \cdot x - k \cdot z\right)}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                    18. lower-neg.f64N/A

                      \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), a, \color{blue}{\left(-i\right)} \cdot \left(j \cdot x - k \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                    19. fp-cancel-sub-sign-invN/A

                      \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), a, \left(-i\right) \cdot \color{blue}{\left(j \cdot x + \left(\mathsf{neg}\left(k\right)\right) \cdot z\right)}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                    20. lower-fma.f64N/A

                      \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), a, \left(-i\right) \cdot \color{blue}{\mathsf{fma}\left(j, x, \left(\mathsf{neg}\left(k\right)\right) \cdot z\right)}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                  5. Applied rewrites45.1%

                    \[\leadsto \color{blue}{\left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), a, \left(-i\right) \cdot \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                  6. Taylor expanded in y3 around inf

                    \[\leadsto a \cdot \color{blue}{\left(y1 \cdot \left(y3 \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                  7. Step-by-step derivation
                    1. Applied rewrites41.9%

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

                    if 2.6000000000000002e-279 < x < 860

                    1. Initial program 25.2%

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

                        \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                      2. distribute-lft-neg-inN/A

                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                      3. lower-*.f64N/A

                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                      4. lower-neg.f64N/A

                        \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                      5. lower--.f64N/A

                        \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                    5. Applied rewrites43.6%

                      \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                    6. Taylor expanded in y1 around inf

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

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

                      if 5.9999999999999998e267 < x

                      1. Initial program 23.1%

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

                        \[\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. *-commutativeN/A

                          \[\leadsto \color{blue}{\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) \cdot y2} \]
                        2. lower-*.f64N/A

                          \[\leadsto \color{blue}{\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) \cdot y2} \]
                      5. Applied rewrites61.6%

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

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

                          \[\leadsto \left(y1 \cdot \mathsf{fma}\left(k, y4, -a \cdot x\right)\right) \cdot y2 \]
                      8. Recombined 5 regimes into one program.
                      9. Final simplification54.0%

                        \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.05 \cdot 10^{+104}:\\ \;\;\;\;\left(y0 \cdot \mathsf{fma}\left(c, y2, \left(-b\right) \cdot j\right)\right) \cdot x\\ \mathbf{elif}\;x \leq -4.5 \cdot 10^{-23}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, k \cdot \left(-z\right)\right) \cdot y0\right) \cdot b\\ \mathbf{elif}\;x \leq 2.6 \cdot 10^{-279}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\ \mathbf{elif}\;x \leq 860:\\ \;\;\;\;\left(-y3\right) \cdot \left(y1 \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\ \mathbf{elif}\;x \leq 6 \cdot 10^{+267}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, k \cdot \left(-z\right)\right) \cdot y0\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(y1 \cdot \mathsf{fma}\left(k, y4, \left(-a\right) \cdot x\right)\right) \cdot y2\\ \end{array} \]
                      10. Add Preprocessing

                      Alternative 6: 42.5% accurate, 2.3× speedup?

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

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

                          \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                        4. Step-by-step derivation
                          1. mul-1-negN/A

                            \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                          2. distribute-lft-neg-inN/A

                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                          3. lower-*.f64N/A

                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                          4. lower-neg.f64N/A

                            \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
                          5. lower--.f64N/A

                            \[\leadsto \left(-z\right) \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                        5. Applied rewrites57.3%

                          \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
                        6. Taylor expanded in b around inf

                          \[\leadsto \left(-z\right) \cdot \left(b \cdot \color{blue}{\left(a \cdot t - k \cdot y0\right)}\right) \]
                        7. Step-by-step derivation
                          1. Applied rewrites66.9%

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

                          if -3.50000000000000022e248 < b < -1.1499999999999999e-22

                          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 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. *-commutativeN/A

                              \[\leadsto \color{blue}{\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) \cdot y4} \]
                            2. lower-*.f64N/A

                              \[\leadsto \color{blue}{\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) \cdot y4} \]
                          5. Applied rewrites53.5%

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

                          if -1.1499999999999999e-22 < b < 1.55e-202

                          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 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. mul-1-negN/A

                              \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                            2. distribute-lft-neg-inN/A

                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                            3. lower-*.f64N/A

                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                            4. lower-neg.f64N/A

                              \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                            5. lower--.f64N/A

                              \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                          5. Applied rewrites46.6%

                            \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                          6. Taylor expanded in j around inf

                            \[\leadsto -1 \cdot \color{blue}{\left(j \cdot \left(y3 \cdot \left(-1 \cdot \left(y0 \cdot y5\right) + y1 \cdot y4\right)\right)\right)} \]
                          7. Step-by-step derivation
                            1. Applied rewrites36.6%

                              \[\leadsto -j \cdot \left(y3 \cdot \mathsf{fma}\left(-1, y0 \cdot y5, y1 \cdot y4\right)\right) \]
                            2. Taylor expanded in y around inf

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

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

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

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

                                if 1.55e-202 < b < 5.9999999999999996e76

                                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 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. *-commutativeN/A

                                    \[\leadsto \color{blue}{\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) \cdot x} \]
                                  2. lower-*.f64N/A

                                    \[\leadsto \color{blue}{\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) \cdot x} \]
                                5. Applied rewrites51.7%

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

                                if 5.9999999999999996e76 < b

                                1. Initial program 17.5%

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

                                    \[\leadsto \color{blue}{\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) \cdot b} \]
                                  2. lower-*.f64N/A

                                    \[\leadsto \color{blue}{\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) \cdot b} \]
                                5. Applied rewrites65.0%

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

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

                              Alternative 7: 37.1% accurate, 2.3× speedup?

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

                                1. Initial program 9.3%

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

                                  \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                4. Step-by-step derivation
                                  1. mul-1-negN/A

                                    \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                  2. distribute-lft-neg-inN/A

                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                  3. lower-*.f64N/A

                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                  4. lower-neg.f64N/A

                                    \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
                                  5. lower--.f64N/A

                                    \[\leadsto \left(-z\right) \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                5. Applied rewrites50.3%

                                  \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
                                6. Taylor expanded in y0 around inf

                                  \[\leadsto \left(-z\right) \cdot \left(y0 \cdot \color{blue}{\left(c \cdot y3 - b \cdot k\right)}\right) \]
                                7. Step-by-step derivation
                                  1. Applied rewrites68.4%

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

                                  if -6.1999999999999995e225 < y3 < -4.80000000000000013e124

                                  1. Initial program 16.3%

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

                                    \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                  4. Step-by-step derivation
                                    1. mul-1-negN/A

                                      \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                    2. distribute-lft-neg-inN/A

                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                    3. lower-*.f64N/A

                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                    4. lower-neg.f64N/A

                                      \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                    5. lower--.f64N/A

                                      \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                  5. Applied rewrites60.4%

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

                                    \[\leadsto \left(-a\right) \cdot \left(y1 \cdot \left(-1 \cdot \left(y3 \cdot z\right) + x \cdot y2\right) - \color{blue}{\mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)} \cdot y5\right) \]
                                  7. Step-by-step derivation
                                    1. Applied rewrites60.4%

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

                                    if -4.80000000000000013e124 < y3 < -2.70000000000000009e-122

                                    1. Initial program 35.5%

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

                                        \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                      2. distribute-lft-neg-inN/A

                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                      3. lower-*.f64N/A

                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                      4. lower-neg.f64N/A

                                        \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                      5. lower--.f64N/A

                                        \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                    5. Applied rewrites51.8%

                                      \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                    6. Taylor expanded in j around inf

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

                                        \[\leadsto -j \cdot \left(y3 \cdot \mathsf{fma}\left(-1, y0 \cdot y5, y1 \cdot y4\right)\right) \]
                                      2. Taylor expanded in y around inf

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

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

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

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

                                          if -2.70000000000000009e-122 < y3 < 4.6e42

                                          1. Initial program 36.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 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. *-commutativeN/A

                                              \[\leadsto \color{blue}{\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) \cdot x} \]
                                            2. lower-*.f64N/A

                                              \[\leadsto \color{blue}{\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) \cdot x} \]
                                          5. Applied rewrites51.6%

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

                                          if 4.6e42 < y3

                                          1. Initial program 31.0%

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

                                            \[\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. *-commutativeN/A

                                              \[\leadsto \color{blue}{\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) \cdot b} \]
                                            2. lower-*.f64N/A

                                              \[\leadsto \color{blue}{\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) \cdot b} \]
                                          5. Applied rewrites50.6%

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

                                          \[\leadsto \begin{array}{l} \mathbf{if}\;y3 \leq -6.2 \cdot 10^{+225}:\\ \;\;\;\;\left(-z\right) \cdot \left(y0 \cdot \mathsf{fma}\left(c, y3, \left(-b\right) \cdot k\right)\right)\\ \mathbf{elif}\;y3 \leq -4.8 \cdot 10^{+124}:\\ \;\;\;\;\left(-a\right) \cdot \left(y1 \cdot \mathsf{fma}\left(-1, y3 \cdot z, x \cdot y2\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot y5\right)\\ \mathbf{elif}\;y3 \leq -2.7 \cdot 10^{-122}:\\ \;\;\;\;\left(-y3\right) \cdot \mathsf{fma}\left(j, \mathsf{fma}\left(-1, y0 \cdot y5, y1 \cdot y4\right), z \cdot \mathsf{fma}\left(-a, y1, c \cdot y0\right)\right)\\ \mathbf{elif}\;y3 \leq 4.6 \cdot 10^{+42}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, k \cdot \left(-z\right)\right) \cdot y0\right) \cdot b\\ \end{array} \]
                                        6. Add Preprocessing

                                        Alternative 8: 44.6% accurate, 2.4× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right)\\ t_2 := \left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - t\_1 \cdot k\right)\\ \mathbf{if}\;z \leq -1.12 \cdot 10^{-38}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq -1.5 \cdot 10^{-235}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, k \cdot \left(-z\right)\right) \cdot y0\right) \cdot b\\ \mathbf{elif}\;z \leq 5.2 \cdot 10^{-67}:\\ \;\;\;\;\left(\mathsf{fma}\left(-y3, \mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), \mathsf{fma}\left(y4, b, \left(-i\right) \cdot y5\right) \cdot t\right) - t\_1 \cdot x\right) \cdot j\\ \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 (fma y0 b (* (- i) y1)))
                                                (t_2
                                                 (*
                                                  (- z)
                                                  (-
                                                   (fma (fma y0 c (* (- a) y1)) y3 (* (fma b a (* (- c) i)) t))
                                                   (* t_1 k)))))
                                           (if (<= z -1.12e-38)
                                             t_2
                                             (if (<= z -1.5e-235)
                                               (*
                                                (-
                                                 (fma (fma y x (* (- t) z)) a (* (fma j t (* (- k) y)) y4))
                                                 (* (fma j x (* k (- z))) y0))
                                                b)
                                               (if (<= z 5.2e-67)
                                                 (*
                                                  (-
                                                   (fma (- y3) (fma y4 y1 (* (- y0) y5)) (* (fma y4 b (* (- i) y5)) t))
                                                   (* t_1 x))
                                                  j)
                                                 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 = fma(y0, b, (-i * y1));
                                        	double t_2 = -z * (fma(fma(y0, c, (-a * y1)), y3, (fma(b, a, (-c * i)) * t)) - (t_1 * k));
                                        	double tmp;
                                        	if (z <= -1.12e-38) {
                                        		tmp = t_2;
                                        	} else if (z <= -1.5e-235) {
                                        		tmp = (fma(fma(y, x, (-t * z)), a, (fma(j, t, (-k * y)) * y4)) - (fma(j, x, (k * -z)) * y0)) * b;
                                        	} else if (z <= 5.2e-67) {
                                        		tmp = (fma(-y3, fma(y4, y1, (-y0 * y5)), (fma(y4, b, (-i * y5)) * t)) - (t_1 * x)) * j;
                                        	} 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 = fma(y0, b, Float64(Float64(-i) * y1))
                                        	t_2 = Float64(Float64(-z) * Float64(fma(fma(y0, c, Float64(Float64(-a) * y1)), y3, Float64(fma(b, a, Float64(Float64(-c) * i)) * t)) - Float64(t_1 * k)))
                                        	tmp = 0.0
                                        	if (z <= -1.12e-38)
                                        		tmp = t_2;
                                        	elseif (z <= -1.5e-235)
                                        		tmp = Float64(Float64(fma(fma(y, x, Float64(Float64(-t) * z)), a, Float64(fma(j, t, Float64(Float64(-k) * y)) * y4)) - Float64(fma(j, x, Float64(k * Float64(-z))) * y0)) * b);
                                        	elseif (z <= 5.2e-67)
                                        		tmp = Float64(Float64(fma(Float64(-y3), fma(y4, y1, Float64(Float64(-y0) * y5)), Float64(fma(y4, b, Float64(Float64(-i) * y5)) * t)) - Float64(t_1 * x)) * j);
                                        	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[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-z) * N[(N[(N[(y0 * c + N[((-a) * y1), $MachinePrecision]), $MachinePrecision] * y3 + N[(N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.12e-38], t$95$2, If[LessEqual[z, -1.5e-235], N[(N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a + N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[(k * (-z)), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[z, 5.2e-67], N[(N[(N[((-y3) * N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision] + N[(N[(y4 * b + N[((-i) * y5), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 * x), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], t$95$2]]]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        t_1 := \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right)\\
                                        t_2 := \left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - t\_1 \cdot k\right)\\
                                        \mathbf{if}\;z \leq -1.12 \cdot 10^{-38}:\\
                                        \;\;\;\;t\_2\\
                                        
                                        \mathbf{elif}\;z \leq -1.5 \cdot 10^{-235}:\\
                                        \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, k \cdot \left(-z\right)\right) \cdot y0\right) \cdot b\\
                                        
                                        \mathbf{elif}\;z \leq 5.2 \cdot 10^{-67}:\\
                                        \;\;\;\;\left(\mathsf{fma}\left(-y3, \mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), \mathsf{fma}\left(y4, b, \left(-i\right) \cdot y5\right) \cdot t\right) - t\_1 \cdot x\right) \cdot j\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;t\_2\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 3 regimes
                                        2. if z < -1.1200000000000001e-38 or 5.1999999999999998e-67 < z

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

                                            \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                          4. Step-by-step derivation
                                            1. mul-1-negN/A

                                              \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                            2. distribute-lft-neg-inN/A

                                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                            3. lower-*.f64N/A

                                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                            4. lower-neg.f64N/A

                                              \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
                                            5. lower--.f64N/A

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

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

                                          if -1.1200000000000001e-38 < z < -1.4999999999999999e-235

                                          1. Initial program 35.2%

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

                                              \[\leadsto \color{blue}{\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) \cdot b} \]
                                            2. lower-*.f64N/A

                                              \[\leadsto \color{blue}{\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) \cdot b} \]
                                          5. Applied rewrites58.2%

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

                                          if -1.4999999999999999e-235 < z < 5.1999999999999998e-67

                                          1. Initial program 35.9%

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

                                            \[\leadsto \color{blue}{j \cdot \left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                          4. Step-by-step derivation
                                            1. *-commutativeN/A

                                              \[\leadsto \color{blue}{\left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \cdot j} \]
                                            2. lower-*.f64N/A

                                              \[\leadsto \color{blue}{\left(\left(-1 \cdot \left(y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \cdot j} \]
                                          5. Applied rewrites56.7%

                                            \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-y3, \mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), \mathsf{fma}\left(y4, b, \left(-i\right) \cdot y5\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot x\right) \cdot j} \]
                                        3. Recombined 3 regimes into one program.
                                        4. Final simplification57.7%

                                          \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.12 \cdot 10^{-38}:\\ \;\;\;\;\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)\\ \mathbf{elif}\;z \leq -1.5 \cdot 10^{-235}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, k \cdot \left(-z\right)\right) \cdot y0\right) \cdot b\\ \mathbf{elif}\;z \leq 5.2 \cdot 10^{-67}:\\ \;\;\;\;\left(\mathsf{fma}\left(-y3, \mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), \mathsf{fma}\left(y4, b, \left(-i\right) \cdot y5\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot x\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)\\ \end{array} \]
                                        5. Add Preprocessing

                                        Alternative 9: 42.2% accurate, 2.4× speedup?

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

                                          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 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. *-commutativeN/A

                                              \[\leadsto \color{blue}{\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) \cdot y2} \]
                                            2. lower-*.f64N/A

                                              \[\leadsto \color{blue}{\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) \cdot y2} \]
                                          5. Applied rewrites62.7%

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

                                            \[\leadsto \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right) \cdot y2 \]
                                          7. Step-by-step derivation
                                            1. Applied rewrites63.1%

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

                                            if -6.99999999999999968e150 < y2 < -1.4999999999999999e-265

                                            1. Initial program 29.6%

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

                                                \[\leadsto \color{blue}{\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) \cdot b} \]
                                              2. lower-*.f64N/A

                                                \[\leadsto \color{blue}{\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) \cdot b} \]
                                            5. Applied rewrites49.5%

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

                                            if -1.4999999999999999e-265 < y2 < 6.49999999999999954e79

                                            1. Initial program 39.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. mul-1-negN/A

                                                \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                              2. distribute-lft-neg-inN/A

                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                              3. lower-*.f64N/A

                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                              4. lower-neg.f64N/A

                                                \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                              5. lower--.f64N/A

                                                \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                            5. Applied rewrites50.3%

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

                                            if 6.49999999999999954e79 < y2

                                            1. Initial program 22.7%

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

                                              \[\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. *-commutativeN/A

                                                \[\leadsto \color{blue}{\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) \cdot y2} \]
                                              2. lower-*.f64N/A

                                                \[\leadsto \color{blue}{\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) \cdot y2} \]
                                            5. Applied rewrites60.6%

                                              \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot t\right) \cdot y2} \]
                                          8. Recombined 4 regimes into one program.
                                          9. Final simplification53.7%

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

                                          Alternative 10: 37.8% accurate, 2.7× speedup?

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

                                            1. Initial program 25.7%

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

                                              \[\leadsto \color{blue}{y \cdot \left(\left(-1 \cdot \left(k \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(a \cdot b - c \cdot i\right)\right) - -1 \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
                                            4. Step-by-step derivation
                                              1. *-commutativeN/A

                                                \[\leadsto \color{blue}{\left(\left(-1 \cdot \left(k \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(a \cdot b - c \cdot i\right)\right) - -1 \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right) \cdot y} \]
                                              2. lower-*.f64N/A

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

                                              \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-k, \mathsf{fma}\left(y4, b, \left(-i\right) \cdot y5\right), \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot x\right) - \left(-y3\right) \cdot \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right)\right) \cdot y} \]
                                            6. Taylor expanded in y5 around inf

                                              \[\leadsto \left(i \cdot \left(k \cdot y5\right) - \left(-y3\right) \cdot \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right)\right) \cdot y \]
                                            7. Step-by-step derivation
                                              1. Applied rewrites58.9%

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

                                              if -5.95e159 < y < -1.1e52

                                              1. Initial program 17.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. *-commutativeN/A

                                                  \[\leadsto \color{blue}{\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) \cdot b} \]
                                                2. lower-*.f64N/A

                                                  \[\leadsto \color{blue}{\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) \cdot b} \]
                                              5. Applied rewrites46.6%

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

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

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

                                                if -1.1e52 < y < -1.59999999999999985e-20

                                                1. Initial program 25.4%

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

                                                  \[\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. mul-1-negN/A

                                                    \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                  2. distribute-lft-neg-inN/A

                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                  3. lower-*.f64N/A

                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                  4. lower-neg.f64N/A

                                                    \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                  5. lower--.f64N/A

                                                    \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                5. Applied rewrites71.9%

                                                  \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                6. Taylor expanded in j around inf

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

                                                    \[\leadsto -j \cdot \left(y3 \cdot \mathsf{fma}\left(-1, y0 \cdot y5, y1 \cdot y4\right)\right) \]
                                                  2. Taylor expanded in y around inf

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

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

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

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

                                                      if -1.59999999999999985e-20 < y < 2.10000000000000013e-41

                                                      1. Initial program 36.6%

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

                                                        \[\leadsto \color{blue}{-1 \cdot \left(y1 \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right) - i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                      4. Step-by-step derivation
                                                        1. mul-1-negN/A

                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y1 \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right) - i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                        2. distribute-lft-neg-inN/A

                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y1\right)\right) \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right) - i \cdot \left(j \cdot x - k \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                        3. lower-*.f64N/A

                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y1\right)\right) \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right) - i \cdot \left(j \cdot x - k \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                        4. lower-neg.f64N/A

                                                          \[\leadsto \color{blue}{\left(-y1\right)} \cdot \left(a \cdot \left(x \cdot y2 - y3 \cdot z\right) - i \cdot \left(j \cdot x - k \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                        5. fp-cancel-sub-sign-invN/A

                                                          \[\leadsto \left(-y1\right) \cdot \color{blue}{\left(a \cdot \left(x \cdot y2 - y3 \cdot z\right) + \left(\mathsf{neg}\left(i\right)\right) \cdot \left(j \cdot x - k \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                        6. *-commutativeN/A

                                                          \[\leadsto \left(-y1\right) \cdot \left(\color{blue}{\left(x \cdot y2 - y3 \cdot z\right) \cdot a} + \left(\mathsf{neg}\left(i\right)\right) \cdot \left(j \cdot x - k \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                        7. distribute-lft-neg-inN/A

                                                          \[\leadsto \left(-y1\right) \cdot \left(\left(x \cdot y2 - y3 \cdot z\right) \cdot a + \color{blue}{\left(\mathsf{neg}\left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                        8. mul-1-negN/A

                                                          \[\leadsto \left(-y1\right) \cdot \left(\left(x \cdot y2 - y3 \cdot z\right) \cdot a + \color{blue}{-1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                        9. lower-fma.f64N/A

                                                          \[\leadsto \left(-y1\right) \cdot \color{blue}{\mathsf{fma}\left(x \cdot y2 - y3 \cdot z, a, -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                        10. fp-cancel-sub-sign-invN/A

                                                          \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\color{blue}{x \cdot y2 + \left(\mathsf{neg}\left(y3\right)\right) \cdot z}, a, -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                        11. *-commutativeN/A

                                                          \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\color{blue}{y2 \cdot x} + \left(\mathsf{neg}\left(y3\right)\right) \cdot z, a, -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                        12. lower-fma.f64N/A

                                                          \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y2, x, \left(\mathsf{neg}\left(y3\right)\right) \cdot z\right)}, a, -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                        13. lower-*.f64N/A

                                                          \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \cdot z}\right), a, -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                        14. lower-neg.f64N/A

                                                          \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \color{blue}{\left(-y3\right)} \cdot z\right), a, -1 \cdot \left(i \cdot \left(j \cdot x - k \cdot z\right)\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                        15. mul-1-negN/A

                                                          \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), a, \color{blue}{\mathsf{neg}\left(i \cdot \left(j \cdot x - k \cdot z\right)\right)}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                        16. distribute-lft-neg-inN/A

                                                          \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), a, \color{blue}{\left(\mathsf{neg}\left(i\right)\right) \cdot \left(j \cdot x - k \cdot z\right)}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                        17. lower-*.f64N/A

                                                          \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), a, \color{blue}{\left(\mathsf{neg}\left(i\right)\right) \cdot \left(j \cdot x - k \cdot z\right)}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                        18. lower-neg.f64N/A

                                                          \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), a, \color{blue}{\left(-i\right)} \cdot \left(j \cdot x - k \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                        19. fp-cancel-sub-sign-invN/A

                                                          \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), a, \left(-i\right) \cdot \color{blue}{\left(j \cdot x + \left(\mathsf{neg}\left(k\right)\right) \cdot z\right)}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                        20. lower-fma.f64N/A

                                                          \[\leadsto \left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), a, \left(-i\right) \cdot \color{blue}{\mathsf{fma}\left(j, x, \left(\mathsf{neg}\left(k\right)\right) \cdot z\right)}\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                      5. Applied rewrites40.7%

                                                        \[\leadsto \color{blue}{\left(-y1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), a, \left(-i\right) \cdot \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                      6. Taylor expanded in y3 around inf

                                                        \[\leadsto a \cdot \color{blue}{\left(y1 \cdot \left(y3 \cdot z\right)\right)} + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
                                                      7. Step-by-step derivation
                                                        1. Applied rewrites46.0%

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

                                                        if 2.10000000000000013e-41 < y < 1.15e191

                                                        1. Initial program 30.6%

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

                                                            \[\leadsto \color{blue}{\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) \cdot b} \]
                                                          2. lower-*.f64N/A

                                                            \[\leadsto \color{blue}{\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) \cdot b} \]
                                                        5. Applied rewrites52.7%

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

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

                                                            \[\leadsto \left(x \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\right) \cdot b \]
                                                        8. Recombined 5 regimes into one program.
                                                        9. Final simplification53.2%

                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -5.95 \cdot 10^{+159}:\\ \;\;\;\;\left(\left(i \cdot k\right) \cdot y5 + y3 \cdot \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right)\right) \cdot y\\ \mathbf{elif}\;y \leq -1.1 \cdot 10^{+52}:\\ \;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-1, k \cdot y, j \cdot t\right)\right)\\ \mathbf{elif}\;y \leq -1.6 \cdot 10^{-20}:\\ \;\;\;\;\left(-y3\right) \cdot \mathsf{fma}\left(j, \mathsf{fma}\left(-1, y0 \cdot y5, y1 \cdot y4\right), z \cdot \mathsf{fma}\left(-a, y1, c \cdot y0\right)\right)\\ \mathbf{elif}\;y \leq 2.1 \cdot 10^{-41}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\ \mathbf{elif}\;y \leq 1.15 \cdot 10^{+191}:\\ \;\;\;\;\left(x \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(\left(i \cdot k\right) \cdot y5 + y3 \cdot \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right)\right) \cdot y\\ \end{array} \]
                                                        10. Add Preprocessing

                                                        Alternative 11: 37.1% accurate, 2.7× speedup?

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

                                                          1. Initial program 21.7%

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

                                                              \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                            2. lower-*.f64N/A

                                                              \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                          5. Applied rewrites28.8%

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

                                                            \[\leadsto \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right) \cdot y2 \]
                                                          7. Step-by-step derivation
                                                            1. Applied rewrites64.7%

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

                                                            if -4.39999999999999984e160 < t < -16500

                                                            1. Initial program 34.4%

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

                                                                \[\leadsto \color{blue}{\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) \cdot b} \]
                                                              2. lower-*.f64N/A

                                                                \[\leadsto \color{blue}{\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) \cdot b} \]
                                                            5. Applied rewrites50.9%

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

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

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

                                                              if -16500 < t < 5.25000000000000016e-225

                                                              1. Initial program 40.6%

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

                                                                \[\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. mul-1-negN/A

                                                                  \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                2. distribute-lft-neg-inN/A

                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                3. lower-*.f64N/A

                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                4. lower-neg.f64N/A

                                                                  \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                5. lower--.f64N/A

                                                                  \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                              5. Applied rewrites41.0%

                                                                \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                              6. Taylor expanded in j around inf

                                                                \[\leadsto -1 \cdot \color{blue}{\left(j \cdot \left(y3 \cdot \left(-1 \cdot \left(y0 \cdot y5\right) + y1 \cdot y4\right)\right)\right)} \]
                                                              7. Step-by-step derivation
                                                                1. Applied rewrites28.9%

                                                                  \[\leadsto -j \cdot \left(y3 \cdot \mathsf{fma}\left(-1, y0 \cdot y5, y1 \cdot y4\right)\right) \]
                                                                2. Taylor expanded in y around inf

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

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

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

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

                                                                    if 5.25000000000000016e-225 < t < 1.1e136

                                                                    1. Initial program 25.5%

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

                                                                        \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                      2. distribute-lft-neg-inN/A

                                                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                      3. lower-*.f64N/A

                                                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                      4. lower-neg.f64N/A

                                                                        \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                      5. lower--.f64N/A

                                                                        \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                                    5. Applied rewrites46.3%

                                                                      \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                                    6. Taylor expanded in j around inf

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

                                                                        \[\leadsto -j \cdot \left(y3 \cdot \mathsf{fma}\left(-1, y0 \cdot y5, y1 \cdot y4\right)\right) \]
                                                                      2. Taylor expanded in y5 around 0

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

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

                                                                        if 1.1e136 < t

                                                                        1. Initial program 17.1%

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

                                                                            \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                          2. lower-*.f64N/A

                                                                            \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                        5. Applied rewrites51.9%

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

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

                                                                            \[\leadsto \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right) \cdot b \]
                                                                        8. Recombined 5 regimes into one program.
                                                                        9. Final simplification49.5%

                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.4 \cdot 10^{+160}:\\ \;\;\;\;\left(y4 \cdot \mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right)\right) \cdot y2\\ \mathbf{elif}\;t \leq -16500:\\ \;\;\;\;\left(x \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\right) \cdot b\\ \mathbf{elif}\;t \leq 5.25 \cdot 10^{-225}:\\ \;\;\;\;\left(-y3\right) \cdot \mathsf{fma}\left(j, \mathsf{fma}\left(-1, y0 \cdot y5, y1 \cdot y4\right), z \cdot \mathsf{fma}\left(-a, y1, c \cdot y0\right)\right)\\ \mathbf{elif}\;t \leq 1.1 \cdot 10^{+136}:\\ \;\;\;\;\left(-y3\right) \cdot \left(\mathsf{fma}\left(j \cdot y1, y4, z \cdot \mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right) \cdot b\\ \end{array} \]
                                                                        10. Add Preprocessing

                                                                        Alternative 12: 31.2% accurate, 2.8× speedup?

                                                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y2 \leq -9.5 \cdot 10^{+144}:\\ \;\;\;\;\left(\left(-a\right) \cdot \mathsf{fma}\left(x, y1, \left(-t\right) \cdot y5\right)\right) \cdot y2\\ \mathbf{elif}\;y2 \leq -8 \cdot 10^{+68}:\\ \;\;\;\;\left(\left(-k\right) \cdot \mathsf{fma}\left(y, y4, \left(-y0\right) \cdot z\right)\right) \cdot b\\ \mathbf{elif}\;y2 \leq -2.1 \cdot 10^{-5}:\\ \;\;\;\;a \cdot \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y2 \leq -2.8 \cdot 10^{-132}:\\ \;\;\;\;\left(-z\right) \cdot \left(b \cdot \mathsf{fma}\left(a, t, \left(-k\right) \cdot y0\right)\right)\\ \mathbf{elif}\;y2 \leq 4.8 \cdot 10^{-262}:\\ \;\;\;\;a \cdot \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y2 \leq 2.2 \cdot 10^{-107}:\\ \;\;\;\;\left(j \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot b\\ \mathbf{elif}\;y2 \leq 7 \cdot 10^{-48}:\\ \;\;\;\;\left(y4 \cdot \mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right)\right) \cdot y2\\ \mathbf{elif}\;y2 \leq 4.5 \cdot 10^{+148}:\\ \;\;\;\;\left(y0 \cdot \mathsf{fma}\left(c, y2, \left(-b\right) \cdot j\right)\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(y0 \cdot \mathsf{fma}\left(c, x, \left(-k\right) \cdot y5\right)\right) \cdot y2\\ \end{array} \end{array} \]
                                                                        (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                         :precision binary64
                                                                         (if (<= y2 -9.5e+144)
                                                                           (* (* (- a) (fma x y1 (* (- t) y5))) y2)
                                                                           (if (<= y2 -8e+68)
                                                                             (* (* (- k) (fma y y4 (* (- y0) z))) b)
                                                                             (if (<= y2 -2.1e-5)
                                                                               (* a (* y3 (fma y1 z (* (- y) y5))))
                                                                               (if (<= y2 -2.8e-132)
                                                                                 (* (- z) (* b (fma a t (* (- k) y0))))
                                                                                 (if (<= y2 4.8e-262)
                                                                                   (* a (* y (fma b x (* (- y3) y5))))
                                                                                   (if (<= y2 2.2e-107)
                                                                                     (* (* j (fma t y4 (* (- x) y0))) b)
                                                                                     (if (<= y2 7e-48)
                                                                                       (* (* y4 (fma k y1 (* (- c) t))) y2)
                                                                                       (if (<= y2 4.5e+148)
                                                                                         (* (* y0 (fma c y2 (* (- b) j))) x)
                                                                                         (* (* y0 (fma c x (* (- k) y5))) y2))))))))))
                                                                        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                        	double tmp;
                                                                        	if (y2 <= -9.5e+144) {
                                                                        		tmp = (-a * fma(x, y1, (-t * y5))) * y2;
                                                                        	} else if (y2 <= -8e+68) {
                                                                        		tmp = (-k * fma(y, y4, (-y0 * z))) * b;
                                                                        	} else if (y2 <= -2.1e-5) {
                                                                        		tmp = a * (y3 * fma(y1, z, (-y * y5)));
                                                                        	} else if (y2 <= -2.8e-132) {
                                                                        		tmp = -z * (b * fma(a, t, (-k * y0)));
                                                                        	} else if (y2 <= 4.8e-262) {
                                                                        		tmp = a * (y * fma(b, x, (-y3 * y5)));
                                                                        	} else if (y2 <= 2.2e-107) {
                                                                        		tmp = (j * fma(t, y4, (-x * y0))) * b;
                                                                        	} else if (y2 <= 7e-48) {
                                                                        		tmp = (y4 * fma(k, y1, (-c * t))) * y2;
                                                                        	} else if (y2 <= 4.5e+148) {
                                                                        		tmp = (y0 * fma(c, y2, (-b * j))) * x;
                                                                        	} else {
                                                                        		tmp = (y0 * fma(c, x, (-k * y5))) * y2;
                                                                        	}
                                                                        	return tmp;
                                                                        }
                                                                        
                                                                        function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                        	tmp = 0.0
                                                                        	if (y2 <= -9.5e+144)
                                                                        		tmp = Float64(Float64(Float64(-a) * fma(x, y1, Float64(Float64(-t) * y5))) * y2);
                                                                        	elseif (y2 <= -8e+68)
                                                                        		tmp = Float64(Float64(Float64(-k) * fma(y, y4, Float64(Float64(-y0) * z))) * b);
                                                                        	elseif (y2 <= -2.1e-5)
                                                                        		tmp = Float64(a * Float64(y3 * fma(y1, z, Float64(Float64(-y) * y5))));
                                                                        	elseif (y2 <= -2.8e-132)
                                                                        		tmp = Float64(Float64(-z) * Float64(b * fma(a, t, Float64(Float64(-k) * y0))));
                                                                        	elseif (y2 <= 4.8e-262)
                                                                        		tmp = Float64(a * Float64(y * fma(b, x, Float64(Float64(-y3) * y5))));
                                                                        	elseif (y2 <= 2.2e-107)
                                                                        		tmp = Float64(Float64(j * fma(t, y4, Float64(Float64(-x) * y0))) * b);
                                                                        	elseif (y2 <= 7e-48)
                                                                        		tmp = Float64(Float64(y4 * fma(k, y1, Float64(Float64(-c) * t))) * y2);
                                                                        	elseif (y2 <= 4.5e+148)
                                                                        		tmp = Float64(Float64(y0 * fma(c, y2, Float64(Float64(-b) * j))) * x);
                                                                        	else
                                                                        		tmp = Float64(Float64(y0 * fma(c, x, Float64(Float64(-k) * y5))) * y2);
                                                                        	end
                                                                        	return tmp
                                                                        end
                                                                        
                                                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -9.5e+144], N[(N[((-a) * N[(x * y1 + N[((-t) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y2, -8e+68], N[(N[((-k) * N[(y * y4 + N[((-y0) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y2, -2.1e-5], N[(a * N[(y3 * N[(y1 * z + N[((-y) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2.8e-132], N[((-z) * N[(b * N[(a * t + N[((-k) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 4.8e-262], N[(a * N[(y * N[(b * x + N[((-y3) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.2e-107], N[(N[(j * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y2, 7e-48], N[(N[(y4 * N[(k * y1 + N[((-c) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y2, 4.5e+148], N[(N[(y0 * N[(c * y2 + N[((-b) * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(N[(y0 * N[(c * x + N[((-k) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]]]]]]]]]
                                                                        
                                                                        \begin{array}{l}
                                                                        
                                                                        \\
                                                                        \begin{array}{l}
                                                                        \mathbf{if}\;y2 \leq -9.5 \cdot 10^{+144}:\\
                                                                        \;\;\;\;\left(\left(-a\right) \cdot \mathsf{fma}\left(x, y1, \left(-t\right) \cdot y5\right)\right) \cdot y2\\
                                                                        
                                                                        \mathbf{elif}\;y2 \leq -8 \cdot 10^{+68}:\\
                                                                        \;\;\;\;\left(\left(-k\right) \cdot \mathsf{fma}\left(y, y4, \left(-y0\right) \cdot z\right)\right) \cdot b\\
                                                                        
                                                                        \mathbf{elif}\;y2 \leq -2.1 \cdot 10^{-5}:\\
                                                                        \;\;\;\;a \cdot \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right)\\
                                                                        
                                                                        \mathbf{elif}\;y2 \leq -2.8 \cdot 10^{-132}:\\
                                                                        \;\;\;\;\left(-z\right) \cdot \left(b \cdot \mathsf{fma}\left(a, t, \left(-k\right) \cdot y0\right)\right)\\
                                                                        
                                                                        \mathbf{elif}\;y2 \leq 4.8 \cdot 10^{-262}:\\
                                                                        \;\;\;\;a \cdot \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right)\\
                                                                        
                                                                        \mathbf{elif}\;y2 \leq 2.2 \cdot 10^{-107}:\\
                                                                        \;\;\;\;\left(j \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot b\\
                                                                        
                                                                        \mathbf{elif}\;y2 \leq 7 \cdot 10^{-48}:\\
                                                                        \;\;\;\;\left(y4 \cdot \mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right)\right) \cdot y2\\
                                                                        
                                                                        \mathbf{elif}\;y2 \leq 4.5 \cdot 10^{+148}:\\
                                                                        \;\;\;\;\left(y0 \cdot \mathsf{fma}\left(c, y2, \left(-b\right) \cdot j\right)\right) \cdot x\\
                                                                        
                                                                        \mathbf{else}:\\
                                                                        \;\;\;\;\left(y0 \cdot \mathsf{fma}\left(c, x, \left(-k\right) \cdot y5\right)\right) \cdot y2\\
                                                                        
                                                                        
                                                                        \end{array}
                                                                        \end{array}
                                                                        
                                                                        Derivation
                                                                        1. Split input into 9 regimes
                                                                        2. if y2 < -9.50000000000000031e144

                                                                          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 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. *-commutativeN/A

                                                                              \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                            2. lower-*.f64N/A

                                                                              \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                          5. Applied rewrites63.8%

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

                                                                            \[\leadsto \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right) \cdot y2 \]
                                                                          7. Step-by-step derivation
                                                                            1. Applied rewrites64.2%

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

                                                                            if -9.50000000000000031e144 < y2 < -7.99999999999999962e68

                                                                            1. Initial program 25.0%

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

                                                                              \[\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. *-commutativeN/A

                                                                                \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                              2. lower-*.f64N/A

                                                                                \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                            5. Applied rewrites55.6%

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

                                                                              \[\leadsto \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right) \cdot b \]
                                                                            7. Step-by-step derivation
                                                                              1. Applied rewrites75.2%

                                                                                \[\leadsto \left(-k \cdot \mathsf{fma}\left(y, y4, \left(-y0\right) \cdot z\right)\right) \cdot b \]

                                                                              if -7.99999999999999962e68 < y2 < -2.09999999999999988e-5

                                                                              1. Initial program 20.0%

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

                                                                                  \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                                2. distribute-lft-neg-inN/A

                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                3. lower-*.f64N/A

                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                4. lower-neg.f64N/A

                                                                                  \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                                5. lower--.f64N/A

                                                                                  \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                                              5. Applied rewrites47.0%

                                                                                \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                                              6. Taylor expanded in a around -inf

                                                                                \[\leadsto a \cdot \color{blue}{\left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)} \]
                                                                              7. Step-by-step derivation
                                                                                1. Applied rewrites60.4%

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

                                                                                if -2.09999999999999988e-5 < y2 < -2.80000000000000002e-132

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

                                                                                  \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                4. Step-by-step derivation
                                                                                  1. mul-1-negN/A

                                                                                    \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                  2. distribute-lft-neg-inN/A

                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                  3. lower-*.f64N/A

                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                  4. lower-neg.f64N/A

                                                                                    \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
                                                                                  5. lower--.f64N/A

                                                                                    \[\leadsto \left(-z\right) \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                5. Applied rewrites56.6%

                                                                                  \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
                                                                                6. Taylor expanded in b around inf

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

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

                                                                                  if -2.80000000000000002e-132 < y2 < 4.8000000000000001e-262

                                                                                  1. Initial program 37.3%

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

                                                                                    \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                  4. Step-by-step derivation
                                                                                    1. mul-1-negN/A

                                                                                      \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                    2. distribute-lft-neg-inN/A

                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                    3. lower-*.f64N/A

                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                    4. lower-neg.f64N/A

                                                                                      \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                    5. lower--.f64N/A

                                                                                      \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                  5. Applied rewrites45.9%

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

                                                                                    \[\leadsto a \cdot \color{blue}{\left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
                                                                                  7. Step-by-step derivation
                                                                                    1. Applied rewrites46.0%

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

                                                                                    if 4.8000000000000001e-262 < y2 < 2.20000000000000012e-107

                                                                                    1. Initial program 31.2%

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

                                                                                        \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                                      2. lower-*.f64N/A

                                                                                        \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                                    5. Applied rewrites45.4%

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

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

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

                                                                                      if 2.20000000000000012e-107 < y2 < 6.99999999999999982e-48

                                                                                      1. Initial program 40.0%

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

                                                                                          \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                        2. lower-*.f64N/A

                                                                                          \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                      5. Applied rewrites21.3%

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

                                                                                        \[\leadsto \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right) \cdot y2 \]
                                                                                      7. Step-by-step derivation
                                                                                        1. Applied rewrites60.9%

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

                                                                                        if 6.99999999999999982e-48 < y2 < 4.49999999999999994e148

                                                                                        1. Initial program 40.5%

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

                                                                                            \[\leadsto \color{blue}{\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) \cdot x} \]
                                                                                          2. lower-*.f64N/A

                                                                                            \[\leadsto \color{blue}{\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) \cdot x} \]
                                                                                        5. Applied rewrites52.3%

                                                                                          \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x} \]
                                                                                        6. Taylor expanded in y0 around inf

                                                                                          \[\leadsto \left(y0 \cdot \left(c \cdot y2 - b \cdot j\right)\right) \cdot x \]
                                                                                        7. Step-by-step derivation
                                                                                          1. Applied rewrites44.4%

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

                                                                                          if 4.49999999999999994e148 < y2

                                                                                          1. Initial program 20.1%

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

                                                                                              \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                            2. lower-*.f64N/A

                                                                                              \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                          5. Applied rewrites60.9%

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

                                                                                            \[\leadsto \left(y0 \cdot \left(-1 \cdot \left(k \cdot y5\right) + c \cdot x\right)\right) \cdot y2 \]
                                                                                          7. Step-by-step derivation
                                                                                            1. Applied rewrites45.9%

                                                                                              \[\leadsto \left(y0 \cdot \mathsf{fma}\left(c, x, -k \cdot y5\right)\right) \cdot y2 \]
                                                                                          8. Recombined 9 regimes into one program.
                                                                                          9. Final simplification53.5%

                                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -9.5 \cdot 10^{+144}:\\ \;\;\;\;\left(\left(-a\right) \cdot \mathsf{fma}\left(x, y1, \left(-t\right) \cdot y5\right)\right) \cdot y2\\ \mathbf{elif}\;y2 \leq -8 \cdot 10^{+68}:\\ \;\;\;\;\left(\left(-k\right) \cdot \mathsf{fma}\left(y, y4, \left(-y0\right) \cdot z\right)\right) \cdot b\\ \mathbf{elif}\;y2 \leq -2.1 \cdot 10^{-5}:\\ \;\;\;\;a \cdot \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y2 \leq -2.8 \cdot 10^{-132}:\\ \;\;\;\;\left(-z\right) \cdot \left(b \cdot \mathsf{fma}\left(a, t, \left(-k\right) \cdot y0\right)\right)\\ \mathbf{elif}\;y2 \leq 4.8 \cdot 10^{-262}:\\ \;\;\;\;a \cdot \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y2 \leq 2.2 \cdot 10^{-107}:\\ \;\;\;\;\left(j \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot b\\ \mathbf{elif}\;y2 \leq 7 \cdot 10^{-48}:\\ \;\;\;\;\left(y4 \cdot \mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right)\right) \cdot y2\\ \mathbf{elif}\;y2 \leq 4.5 \cdot 10^{+148}:\\ \;\;\;\;\left(y0 \cdot \mathsf{fma}\left(c, y2, \left(-b\right) \cdot j\right)\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(y0 \cdot \mathsf{fma}\left(c, x, \left(-k\right) \cdot y5\right)\right) \cdot y2\\ \end{array} \]
                                                                                          10. Add Preprocessing

                                                                                          Alternative 13: 33.5% accurate, 2.8× speedup?

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

                                                                                            1. Initial program 29.9%

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

                                                                                              \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                            4. Step-by-step derivation
                                                                                              1. mul-1-negN/A

                                                                                                \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                              2. distribute-lft-neg-inN/A

                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                              3. lower-*.f64N/A

                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                              4. lower-neg.f64N/A

                                                                                                \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
                                                                                              5. lower--.f64N/A

                                                                                                \[\leadsto \left(-z\right) \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                            5. Applied rewrites49.6%

                                                                                              \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
                                                                                            6. Taylor expanded in y0 around inf

                                                                                              \[\leadsto \left(-z\right) \cdot \left(y0 \cdot \color{blue}{\left(c \cdot y3 - b \cdot k\right)}\right) \]
                                                                                            7. Step-by-step derivation
                                                                                              1. Applied rewrites48.0%

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

                                                                                              if -3.2e23 < k < -3.50000000000000005e-268

                                                                                              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 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. *-commutativeN/A

                                                                                                  \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                                2. lower-*.f64N/A

                                                                                                  \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                              5. Applied rewrites51.9%

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

                                                                                                \[\leadsto \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right) \cdot y2 \]
                                                                                              7. Step-by-step derivation
                                                                                                1. Applied rewrites48.1%

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

                                                                                                if -3.50000000000000005e-268 < k < 1.11999999999999997e-184

                                                                                                1. Initial program 33.5%

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

                                                                                                  \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                4. Step-by-step derivation
                                                                                                  1. mul-1-negN/A

                                                                                                    \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                  2. distribute-lft-neg-inN/A

                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                  3. lower-*.f64N/A

                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                  4. lower-neg.f64N/A

                                                                                                    \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                  5. lower--.f64N/A

                                                                                                    \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                5. Applied rewrites60.5%

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

                                                                                                  \[\leadsto a \cdot \color{blue}{\left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
                                                                                                7. Step-by-step derivation
                                                                                                  1. Applied rewrites45.0%

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

                                                                                                  if 1.11999999999999997e-184 < k < 9e61

                                                                                                  1. Initial program 41.7%

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

                                                                                                      \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                                                    2. distribute-lft-neg-inN/A

                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                    3. lower-*.f64N/A

                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                    4. lower-neg.f64N/A

                                                                                                      \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                                                    5. lower--.f64N/A

                                                                                                      \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                                                                  5. Applied rewrites46.2%

                                                                                                    \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                                                                  6. Taylor expanded in j around inf

                                                                                                    \[\leadsto -1 \cdot \color{blue}{\left(j \cdot \left(y3 \cdot \left(-1 \cdot \left(y0 \cdot y5\right) + y1 \cdot y4\right)\right)\right)} \]
                                                                                                  7. Step-by-step derivation
                                                                                                    1. Applied rewrites34.4%

                                                                                                      \[\leadsto -j \cdot \left(y3 \cdot \mathsf{fma}\left(-1, y0 \cdot y5, y1 \cdot y4\right)\right) \]
                                                                                                    2. Taylor expanded in y around inf

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

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

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

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

                                                                                                        if 9e61 < k

                                                                                                        1. Initial program 18.5%

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

                                                                                                          \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                        4. Step-by-step derivation
                                                                                                          1. mul-1-negN/A

                                                                                                            \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                          2. distribute-lft-neg-inN/A

                                                                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                          3. lower-*.f64N/A

                                                                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                          4. lower-neg.f64N/A

                                                                                                            \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
                                                                                                          5. lower--.f64N/A

                                                                                                            \[\leadsto \left(-z\right) \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                        5. Applied rewrites48.9%

                                                                                                          \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
                                                                                                        6. Taylor expanded in k around inf

                                                                                                          \[\leadsto \left(-z\right) \cdot \left(-1 \cdot \color{blue}{\left(k \cdot \left(-1 \cdot \left(i \cdot y1\right) + b \cdot y0\right)\right)}\right) \]
                                                                                                        7. Step-by-step derivation
                                                                                                          1. Applied rewrites54.2%

                                                                                                            \[\leadsto \left(-z\right) \cdot \left(-k \cdot \mathsf{fma}\left(-1, i \cdot y1, b \cdot y0\right)\right) \]
                                                                                                        8. Recombined 5 regimes into one program.
                                                                                                        9. Final simplification49.0%

                                                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq -3.2 \cdot 10^{+23}:\\ \;\;\;\;\left(-z\right) \cdot \left(y0 \cdot \mathsf{fma}\left(c, y3, \left(-b\right) \cdot k\right)\right)\\ \mathbf{elif}\;k \leq -3.5 \cdot 10^{-268}:\\ \;\;\;\;\left(\left(-a\right) \cdot \mathsf{fma}\left(x, y1, \left(-t\right) \cdot y5\right)\right) \cdot y2\\ \mathbf{elif}\;k \leq 1.12 \cdot 10^{-184}:\\ \;\;\;\;a \cdot \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right)\\ \mathbf{elif}\;k \leq 9 \cdot 10^{+61}:\\ \;\;\;\;\left(-y3\right) \cdot \mathsf{fma}\left(j, \mathsf{fma}\left(-1, y0 \cdot y5, y1 \cdot y4\right), z \cdot \mathsf{fma}\left(-a, y1, c \cdot y0\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(-z\right) \cdot \left(\left(-k\right) \cdot \mathsf{fma}\left(-1, i \cdot y1, b \cdot y0\right)\right)\\ \end{array} \]
                                                                                                        10. Add Preprocessing

                                                                                                        Alternative 14: 32.0% accurate, 3.0× speedup?

                                                                                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y2 \leq -9.5 \cdot 10^{+144}:\\ \;\;\;\;\left(\left(-a\right) \cdot \mathsf{fma}\left(x, y1, \left(-t\right) \cdot y5\right)\right) \cdot y2\\ \mathbf{elif}\;y2 \leq -8 \cdot 10^{+68}:\\ \;\;\;\;\left(\left(-k\right) \cdot \mathsf{fma}\left(y, y4, \left(-y0\right) \cdot z\right)\right) \cdot b\\ \mathbf{elif}\;y2 \leq -2.1 \cdot 10^{-5}:\\ \;\;\;\;a \cdot \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y2 \leq -2.8 \cdot 10^{-132}:\\ \;\;\;\;\left(-z\right) \cdot \left(b \cdot \mathsf{fma}\left(a, t, \left(-k\right) \cdot y0\right)\right)\\ \mathbf{elif}\;y2 \leq 4.8 \cdot 10^{-262}:\\ \;\;\;\;a \cdot \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y2 \leq 4.4 \cdot 10^{-109}:\\ \;\;\;\;\left(j \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot b\\ \mathbf{elif}\;y2 \leq 3.8 \cdot 10^{+50}:\\ \;\;\;\;\left(-z\right) \cdot \left(y0 \cdot \mathsf{fma}\left(c, y3, \left(-b\right) \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(y0 \cdot \mathsf{fma}\left(c, x, \left(-k\right) \cdot y5\right)\right) \cdot y2\\ \end{array} \end{array} \]
                                                                                                        (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                         :precision binary64
                                                                                                         (if (<= y2 -9.5e+144)
                                                                                                           (* (* (- a) (fma x y1 (* (- t) y5))) y2)
                                                                                                           (if (<= y2 -8e+68)
                                                                                                             (* (* (- k) (fma y y4 (* (- y0) z))) b)
                                                                                                             (if (<= y2 -2.1e-5)
                                                                                                               (* a (* y3 (fma y1 z (* (- y) y5))))
                                                                                                               (if (<= y2 -2.8e-132)
                                                                                                                 (* (- z) (* b (fma a t (* (- k) y0))))
                                                                                                                 (if (<= y2 4.8e-262)
                                                                                                                   (* a (* y (fma b x (* (- y3) y5))))
                                                                                                                   (if (<= y2 4.4e-109)
                                                                                                                     (* (* j (fma t y4 (* (- x) y0))) b)
                                                                                                                     (if (<= y2 3.8e+50)
                                                                                                                       (* (- z) (* y0 (fma c y3 (* (- b) k))))
                                                                                                                       (* (* y0 (fma c x (* (- k) y5))) y2)))))))))
                                                                                                        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                        	double tmp;
                                                                                                        	if (y2 <= -9.5e+144) {
                                                                                                        		tmp = (-a * fma(x, y1, (-t * y5))) * y2;
                                                                                                        	} else if (y2 <= -8e+68) {
                                                                                                        		tmp = (-k * fma(y, y4, (-y0 * z))) * b;
                                                                                                        	} else if (y2 <= -2.1e-5) {
                                                                                                        		tmp = a * (y3 * fma(y1, z, (-y * y5)));
                                                                                                        	} else if (y2 <= -2.8e-132) {
                                                                                                        		tmp = -z * (b * fma(a, t, (-k * y0)));
                                                                                                        	} else if (y2 <= 4.8e-262) {
                                                                                                        		tmp = a * (y * fma(b, x, (-y3 * y5)));
                                                                                                        	} else if (y2 <= 4.4e-109) {
                                                                                                        		tmp = (j * fma(t, y4, (-x * y0))) * b;
                                                                                                        	} else if (y2 <= 3.8e+50) {
                                                                                                        		tmp = -z * (y0 * fma(c, y3, (-b * k)));
                                                                                                        	} else {
                                                                                                        		tmp = (y0 * fma(c, x, (-k * y5))) * y2;
                                                                                                        	}
                                                                                                        	return tmp;
                                                                                                        }
                                                                                                        
                                                                                                        function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                        	tmp = 0.0
                                                                                                        	if (y2 <= -9.5e+144)
                                                                                                        		tmp = Float64(Float64(Float64(-a) * fma(x, y1, Float64(Float64(-t) * y5))) * y2);
                                                                                                        	elseif (y2 <= -8e+68)
                                                                                                        		tmp = Float64(Float64(Float64(-k) * fma(y, y4, Float64(Float64(-y0) * z))) * b);
                                                                                                        	elseif (y2 <= -2.1e-5)
                                                                                                        		tmp = Float64(a * Float64(y3 * fma(y1, z, Float64(Float64(-y) * y5))));
                                                                                                        	elseif (y2 <= -2.8e-132)
                                                                                                        		tmp = Float64(Float64(-z) * Float64(b * fma(a, t, Float64(Float64(-k) * y0))));
                                                                                                        	elseif (y2 <= 4.8e-262)
                                                                                                        		tmp = Float64(a * Float64(y * fma(b, x, Float64(Float64(-y3) * y5))));
                                                                                                        	elseif (y2 <= 4.4e-109)
                                                                                                        		tmp = Float64(Float64(j * fma(t, y4, Float64(Float64(-x) * y0))) * b);
                                                                                                        	elseif (y2 <= 3.8e+50)
                                                                                                        		tmp = Float64(Float64(-z) * Float64(y0 * fma(c, y3, Float64(Float64(-b) * k))));
                                                                                                        	else
                                                                                                        		tmp = Float64(Float64(y0 * fma(c, x, Float64(Float64(-k) * y5))) * y2);
                                                                                                        	end
                                                                                                        	return tmp
                                                                                                        end
                                                                                                        
                                                                                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -9.5e+144], N[(N[((-a) * N[(x * y1 + N[((-t) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y2, -8e+68], N[(N[((-k) * N[(y * y4 + N[((-y0) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y2, -2.1e-5], N[(a * N[(y3 * N[(y1 * z + N[((-y) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2.8e-132], N[((-z) * N[(b * N[(a * t + N[((-k) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 4.8e-262], N[(a * N[(y * N[(b * x + N[((-y3) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 4.4e-109], N[(N[(j * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y2, 3.8e+50], N[((-z) * N[(y0 * N[(c * y3 + N[((-b) * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y0 * N[(c * x + N[((-k) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]]]]]]]]
                                                                                                        
                                                                                                        \begin{array}{l}
                                                                                                        
                                                                                                        \\
                                                                                                        \begin{array}{l}
                                                                                                        \mathbf{if}\;y2 \leq -9.5 \cdot 10^{+144}:\\
                                                                                                        \;\;\;\;\left(\left(-a\right) \cdot \mathsf{fma}\left(x, y1, \left(-t\right) \cdot y5\right)\right) \cdot y2\\
                                                                                                        
                                                                                                        \mathbf{elif}\;y2 \leq -8 \cdot 10^{+68}:\\
                                                                                                        \;\;\;\;\left(\left(-k\right) \cdot \mathsf{fma}\left(y, y4, \left(-y0\right) \cdot z\right)\right) \cdot b\\
                                                                                                        
                                                                                                        \mathbf{elif}\;y2 \leq -2.1 \cdot 10^{-5}:\\
                                                                                                        \;\;\;\;a \cdot \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right)\\
                                                                                                        
                                                                                                        \mathbf{elif}\;y2 \leq -2.8 \cdot 10^{-132}:\\
                                                                                                        \;\;\;\;\left(-z\right) \cdot \left(b \cdot \mathsf{fma}\left(a, t, \left(-k\right) \cdot y0\right)\right)\\
                                                                                                        
                                                                                                        \mathbf{elif}\;y2 \leq 4.8 \cdot 10^{-262}:\\
                                                                                                        \;\;\;\;a \cdot \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right)\\
                                                                                                        
                                                                                                        \mathbf{elif}\;y2 \leq 4.4 \cdot 10^{-109}:\\
                                                                                                        \;\;\;\;\left(j \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot b\\
                                                                                                        
                                                                                                        \mathbf{elif}\;y2 \leq 3.8 \cdot 10^{+50}:\\
                                                                                                        \;\;\;\;\left(-z\right) \cdot \left(y0 \cdot \mathsf{fma}\left(c, y3, \left(-b\right) \cdot k\right)\right)\\
                                                                                                        
                                                                                                        \mathbf{else}:\\
                                                                                                        \;\;\;\;\left(y0 \cdot \mathsf{fma}\left(c, x, \left(-k\right) \cdot y5\right)\right) \cdot y2\\
                                                                                                        
                                                                                                        
                                                                                                        \end{array}
                                                                                                        \end{array}
                                                                                                        
                                                                                                        Derivation
                                                                                                        1. Split input into 8 regimes
                                                                                                        2. if y2 < -9.50000000000000031e144

                                                                                                          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 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. *-commutativeN/A

                                                                                                              \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                                            2. lower-*.f64N/A

                                                                                                              \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                                          5. Applied rewrites63.8%

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

                                                                                                            \[\leadsto \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right) \cdot y2 \]
                                                                                                          7. Step-by-step derivation
                                                                                                            1. Applied rewrites64.2%

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

                                                                                                            if -9.50000000000000031e144 < y2 < -7.99999999999999962e68

                                                                                                            1. Initial program 25.0%

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

                                                                                                              \[\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. *-commutativeN/A

                                                                                                                \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                                                              2. lower-*.f64N/A

                                                                                                                \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                                                            5. Applied rewrites55.6%

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

                                                                                                              \[\leadsto \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right) \cdot b \]
                                                                                                            7. Step-by-step derivation
                                                                                                              1. Applied rewrites75.2%

                                                                                                                \[\leadsto \left(-k \cdot \mathsf{fma}\left(y, y4, \left(-y0\right) \cdot z\right)\right) \cdot b \]

                                                                                                              if -7.99999999999999962e68 < y2 < -2.09999999999999988e-5

                                                                                                              1. Initial program 20.0%

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

                                                                                                                  \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                                                                2. distribute-lft-neg-inN/A

                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                3. lower-*.f64N/A

                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                4. lower-neg.f64N/A

                                                                                                                  \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                                                                5. lower--.f64N/A

                                                                                                                  \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                                                                              5. Applied rewrites47.0%

                                                                                                                \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                                                                              6. Taylor expanded in a around -inf

                                                                                                                \[\leadsto a \cdot \color{blue}{\left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)} \]
                                                                                                              7. Step-by-step derivation
                                                                                                                1. Applied rewrites60.4%

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

                                                                                                                if -2.09999999999999988e-5 < y2 < -2.80000000000000002e-132

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

                                                                                                                  \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                4. Step-by-step derivation
                                                                                                                  1. mul-1-negN/A

                                                                                                                    \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                  2. distribute-lft-neg-inN/A

                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                  3. lower-*.f64N/A

                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                  4. lower-neg.f64N/A

                                                                                                                    \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
                                                                                                                  5. lower--.f64N/A

                                                                                                                    \[\leadsto \left(-z\right) \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                5. Applied rewrites56.6%

                                                                                                                  \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
                                                                                                                6. Taylor expanded in b around inf

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

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

                                                                                                                  if -2.80000000000000002e-132 < y2 < 4.8000000000000001e-262

                                                                                                                  1. Initial program 37.3%

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

                                                                                                                    \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                  4. Step-by-step derivation
                                                                                                                    1. mul-1-negN/A

                                                                                                                      \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                    2. distribute-lft-neg-inN/A

                                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                    3. lower-*.f64N/A

                                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                    4. lower-neg.f64N/A

                                                                                                                      \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                    5. lower--.f64N/A

                                                                                                                      \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                  5. Applied rewrites45.9%

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

                                                                                                                    \[\leadsto a \cdot \color{blue}{\left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
                                                                                                                  7. Step-by-step derivation
                                                                                                                    1. Applied rewrites46.0%

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

                                                                                                                    if 4.8000000000000001e-262 < y2 < 4.3999999999999999e-109

                                                                                                                    1. Initial program 31.2%

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

                                                                                                                        \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                                                                      2. lower-*.f64N/A

                                                                                                                        \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                                                                    5. Applied rewrites45.4%

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

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

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

                                                                                                                      if 4.3999999999999999e-109 < y2 < 3.79999999999999987e50

                                                                                                                      1. Initial program 44.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 z around -inf

                                                                                                                        \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                      4. Step-by-step derivation
                                                                                                                        1. mul-1-negN/A

                                                                                                                          \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                        2. distribute-lft-neg-inN/A

                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                        3. lower-*.f64N/A

                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                        4. lower-neg.f64N/A

                                                                                                                          \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
                                                                                                                        5. lower--.f64N/A

                                                                                                                          \[\leadsto \left(-z\right) \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                      5. Applied rewrites65.5%

                                                                                                                        \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
                                                                                                                      6. Taylor expanded in y0 around inf

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

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

                                                                                                                        if 3.79999999999999987e50 < y2

                                                                                                                        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 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. *-commutativeN/A

                                                                                                                            \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                                                          2. lower-*.f64N/A

                                                                                                                            \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                                                        5. Applied rewrites55.5%

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

                                                                                                                          \[\leadsto \left(y0 \cdot \left(-1 \cdot \left(k \cdot y5\right) + c \cdot x\right)\right) \cdot y2 \]
                                                                                                                        7. Step-by-step derivation
                                                                                                                          1. Applied rewrites41.2%

                                                                                                                            \[\leadsto \left(y0 \cdot \mathsf{fma}\left(c, x, -k \cdot y5\right)\right) \cdot y2 \]
                                                                                                                        8. Recombined 8 regimes into one program.
                                                                                                                        9. Final simplification52.6%

                                                                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -9.5 \cdot 10^{+144}:\\ \;\;\;\;\left(\left(-a\right) \cdot \mathsf{fma}\left(x, y1, \left(-t\right) \cdot y5\right)\right) \cdot y2\\ \mathbf{elif}\;y2 \leq -8 \cdot 10^{+68}:\\ \;\;\;\;\left(\left(-k\right) \cdot \mathsf{fma}\left(y, y4, \left(-y0\right) \cdot z\right)\right) \cdot b\\ \mathbf{elif}\;y2 \leq -2.1 \cdot 10^{-5}:\\ \;\;\;\;a \cdot \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y2 \leq -2.8 \cdot 10^{-132}:\\ \;\;\;\;\left(-z\right) \cdot \left(b \cdot \mathsf{fma}\left(a, t, \left(-k\right) \cdot y0\right)\right)\\ \mathbf{elif}\;y2 \leq 4.8 \cdot 10^{-262}:\\ \;\;\;\;a \cdot \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y2 \leq 4.4 \cdot 10^{-109}:\\ \;\;\;\;\left(j \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot b\\ \mathbf{elif}\;y2 \leq 3.8 \cdot 10^{+50}:\\ \;\;\;\;\left(-z\right) \cdot \left(y0 \cdot \mathsf{fma}\left(c, y3, \left(-b\right) \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(y0 \cdot \mathsf{fma}\left(c, x, \left(-k\right) \cdot y5\right)\right) \cdot y2\\ \end{array} \]
                                                                                                                        10. Add Preprocessing

                                                                                                                        Alternative 15: 34.8% accurate, 3.0× speedup?

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

                                                                                                                          1. Initial program 21.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 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. *-commutativeN/A

                                                                                                                              \[\leadsto \color{blue}{\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) \cdot x} \]
                                                                                                                            2. lower-*.f64N/A

                                                                                                                              \[\leadsto \color{blue}{\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) \cdot x} \]
                                                                                                                          5. Applied rewrites33.8%

                                                                                                                            \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x} \]
                                                                                                                          6. Taylor expanded in y0 around inf

                                                                                                                            \[\leadsto \left(y0 \cdot \left(c \cdot y2 - b \cdot j\right)\right) \cdot x \]
                                                                                                                          7. Step-by-step derivation
                                                                                                                            1. Applied rewrites55.7%

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

                                                                                                                            if -5e103 < y0 < -3.80000000000000038e-68

                                                                                                                            1. Initial program 25.3%

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

                                                                                                                              \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                            4. Step-by-step derivation
                                                                                                                              1. mul-1-negN/A

                                                                                                                                \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                              2. distribute-lft-neg-inN/A

                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                              3. lower-*.f64N/A

                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                              4. lower-neg.f64N/A

                                                                                                                                \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                              5. lower--.f64N/A

                                                                                                                                \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                            5. Applied rewrites46.9%

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

                                                                                                                              \[\leadsto \left(-a\right) \cdot \left(t \cdot \color{blue}{\left(b \cdot z - y2 \cdot y5\right)}\right) \]
                                                                                                                            7. Step-by-step derivation
                                                                                                                              1. Applied rewrites50.8%

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

                                                                                                                              if -3.80000000000000038e-68 < y0 < 6.9999999999999998e-247 or 1.00000000000000003e-146 < y0 < 5e13

                                                                                                                              1. Initial program 38.0%

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

                                                                                                                                \[\leadsto \color{blue}{y \cdot \left(\left(-1 \cdot \left(k \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(a \cdot b - c \cdot i\right)\right) - -1 \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
                                                                                                                              4. Step-by-step derivation
                                                                                                                                1. *-commutativeN/A

                                                                                                                                  \[\leadsto \color{blue}{\left(\left(-1 \cdot \left(k \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(a \cdot b - c \cdot i\right)\right) - -1 \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right) \cdot y} \]
                                                                                                                                2. lower-*.f64N/A

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

                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{fma}\left(-k, \mathsf{fma}\left(y4, b, \left(-i\right) \cdot y5\right), \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot x\right) - \left(-y3\right) \cdot \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right)\right) \cdot y} \]
                                                                                                                              6. Taylor expanded in y5 around inf

                                                                                                                                \[\leadsto \left(i \cdot \left(k \cdot y5\right) - \left(-y3\right) \cdot \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right)\right) \cdot y \]
                                                                                                                              7. Step-by-step derivation
                                                                                                                                1. Applied rewrites43.2%

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

                                                                                                                                if 6.9999999999999998e-247 < y0 < 1.00000000000000003e-146

                                                                                                                                1. Initial program 50.1%

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

                                                                                                                                  \[\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. *-commutativeN/A

                                                                                                                                    \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                                                                  2. lower-*.f64N/A

                                                                                                                                    \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                                                                5. Applied rewrites45.1%

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

                                                                                                                                  \[\leadsto \left(y1 \cdot \left(-1 \cdot \left(a \cdot x\right) + k \cdot y4\right)\right) \cdot y2 \]
                                                                                                                                7. Step-by-step derivation
                                                                                                                                  1. Applied rewrites48.1%

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

                                                                                                                                  if 5e13 < y0

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

                                                                                                                                    \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                                  4. Step-by-step derivation
                                                                                                                                    1. mul-1-negN/A

                                                                                                                                      \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                                    2. distribute-lft-neg-inN/A

                                                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                    3. lower-*.f64N/A

                                                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                    4. lower-neg.f64N/A

                                                                                                                                      \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
                                                                                                                                    5. lower--.f64N/A

                                                                                                                                      \[\leadsto \left(-z\right) \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                  5. Applied rewrites46.9%

                                                                                                                                    \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
                                                                                                                                  6. Taylor expanded in y0 around inf

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

                                                                                                                                      \[\leadsto \left(-z\right) \cdot \left(y0 \cdot \color{blue}{\mathsf{fma}\left(c, y3, \left(-b\right) \cdot k\right)}\right) \]
                                                                                                                                  8. Recombined 5 regimes into one program.
                                                                                                                                  9. Final simplification49.7%

                                                                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;y0 \leq -5 \cdot 10^{+103}:\\ \;\;\;\;\left(y0 \cdot \mathsf{fma}\left(c, y2, \left(-b\right) \cdot j\right)\right) \cdot x\\ \mathbf{elif}\;y0 \leq -3.8 \cdot 10^{-68}:\\ \;\;\;\;\left(-a\right) \cdot \left(t \cdot \mathsf{fma}\left(b, z, \left(-y2\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y0 \leq 7 \cdot 10^{-247}:\\ \;\;\;\;\left(\left(i \cdot k\right) \cdot y5 + y3 \cdot \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right)\right) \cdot y\\ \mathbf{elif}\;y0 \leq 10^{-146}:\\ \;\;\;\;\left(y1 \cdot \mathsf{fma}\left(k, y4, \left(-a\right) \cdot x\right)\right) \cdot y2\\ \mathbf{elif}\;y0 \leq 50000000000000:\\ \;\;\;\;\left(\left(i \cdot k\right) \cdot y5 + y3 \cdot \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right)\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(-z\right) \cdot \left(y0 \cdot \mathsf{fma}\left(c, y3, \left(-b\right) \cdot k\right)\right)\\ \end{array} \]
                                                                                                                                  10. Add Preprocessing

                                                                                                                                  Alternative 16: 31.0% accurate, 3.4× speedup?

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

                                                                                                                                    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 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. *-commutativeN/A

                                                                                                                                        \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                                                                      2. lower-*.f64N/A

                                                                                                                                        \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                                                                    5. Applied rewrites63.8%

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

                                                                                                                                      \[\leadsto \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right) \cdot y2 \]
                                                                                                                                    7. Step-by-step derivation
                                                                                                                                      1. Applied rewrites64.2%

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

                                                                                                                                      if -9.50000000000000031e144 < y2 < -9.4999999999999995e69

                                                                                                                                      1. Initial program 25.0%

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

                                                                                                                                        \[\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. *-commutativeN/A

                                                                                                                                          \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                                                                                        2. lower-*.f64N/A

                                                                                                                                          \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                                                                                      5. Applied rewrites55.6%

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

                                                                                                                                        \[\leadsto \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right) \cdot b \]
                                                                                                                                      7. Step-by-step derivation
                                                                                                                                        1. Applied rewrites75.2%

                                                                                                                                          \[\leadsto \left(-k \cdot \mathsf{fma}\left(y, y4, \left(-y0\right) \cdot z\right)\right) \cdot b \]

                                                                                                                                        if -9.4999999999999995e69 < y2 < 4.8000000000000001e-262

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

                                                                                                                                          \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                        4. Step-by-step derivation
                                                                                                                                          1. mul-1-negN/A

                                                                                                                                            \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                          2. distribute-lft-neg-inN/A

                                                                                                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                          3. lower-*.f64N/A

                                                                                                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                          4. lower-neg.f64N/A

                                                                                                                                            \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                          5. lower--.f64N/A

                                                                                                                                            \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                        5. Applied rewrites43.0%

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

                                                                                                                                          \[\leadsto a \cdot \color{blue}{\left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
                                                                                                                                        7. Step-by-step derivation
                                                                                                                                          1. Applied rewrites36.9%

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

                                                                                                                                          if 4.8000000000000001e-262 < y2 < 2.20000000000000012e-107

                                                                                                                                          1. Initial program 31.2%

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

                                                                                                                                              \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                                                                                            2. lower-*.f64N/A

                                                                                                                                              \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                                                                                          5. Applied rewrites45.4%

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

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

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

                                                                                                                                            if 2.20000000000000012e-107 < y2 < 6.99999999999999982e-48

                                                                                                                                            1. Initial program 40.0%

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

                                                                                                                                                \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                                                                              2. lower-*.f64N/A

                                                                                                                                                \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                                                                            5. Applied rewrites21.3%

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

                                                                                                                                              \[\leadsto \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right) \cdot y2 \]
                                                                                                                                            7. Step-by-step derivation
                                                                                                                                              1. Applied rewrites60.9%

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

                                                                                                                                              if 6.99999999999999982e-48 < y2 < 4.49999999999999994e148

                                                                                                                                              1. Initial program 40.5%

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

                                                                                                                                                  \[\leadsto \color{blue}{\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) \cdot x} \]
                                                                                                                                                2. lower-*.f64N/A

                                                                                                                                                  \[\leadsto \color{blue}{\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) \cdot x} \]
                                                                                                                                              5. Applied rewrites52.3%

                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x} \]
                                                                                                                                              6. Taylor expanded in y0 around inf

                                                                                                                                                \[\leadsto \left(y0 \cdot \left(c \cdot y2 - b \cdot j\right)\right) \cdot x \]
                                                                                                                                              7. Step-by-step derivation
                                                                                                                                                1. Applied rewrites44.4%

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

                                                                                                                                                if 4.49999999999999994e148 < y2

                                                                                                                                                1. Initial program 20.1%

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

                                                                                                                                                    \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                                                                                  2. lower-*.f64N/A

                                                                                                                                                    \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                                                                                5. Applied rewrites60.9%

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

                                                                                                                                                  \[\leadsto \left(y0 \cdot \left(-1 \cdot \left(k \cdot y5\right) + c \cdot x\right)\right) \cdot y2 \]
                                                                                                                                                7. Step-by-step derivation
                                                                                                                                                  1. Applied rewrites45.9%

                                                                                                                                                    \[\leadsto \left(y0 \cdot \mathsf{fma}\left(c, x, -k \cdot y5\right)\right) \cdot y2 \]
                                                                                                                                                8. Recombined 7 regimes into one program.
                                                                                                                                                9. Final simplification49.4%

                                                                                                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;y2 \leq -9.5 \cdot 10^{+144}:\\ \;\;\;\;\left(\left(-a\right) \cdot \mathsf{fma}\left(x, y1, \left(-t\right) \cdot y5\right)\right) \cdot y2\\ \mathbf{elif}\;y2 \leq -9.5 \cdot 10^{+69}:\\ \;\;\;\;\left(\left(-k\right) \cdot \mathsf{fma}\left(y, y4, \left(-y0\right) \cdot z\right)\right) \cdot b\\ \mathbf{elif}\;y2 \leq 4.8 \cdot 10^{-262}:\\ \;\;\;\;a \cdot \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y2 \leq 2.2 \cdot 10^{-107}:\\ \;\;\;\;\left(j \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot b\\ \mathbf{elif}\;y2 \leq 7 \cdot 10^{-48}:\\ \;\;\;\;\left(y4 \cdot \mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right)\right) \cdot y2\\ \mathbf{elif}\;y2 \leq 4.5 \cdot 10^{+148}:\\ \;\;\;\;\left(y0 \cdot \mathsf{fma}\left(c, y2, \left(-b\right) \cdot j\right)\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(y0 \cdot \mathsf{fma}\left(c, x, \left(-k\right) \cdot y5\right)\right) \cdot y2\\ \end{array} \]
                                                                                                                                                10. Add Preprocessing

                                                                                                                                                Alternative 17: 30.4% accurate, 3.7× speedup?

                                                                                                                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(x \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\right) \cdot b\\ \mathbf{if}\;t \leq -4.4 \cdot 10^{+160}:\\ \;\;\;\;\left(y4 \cdot \mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right)\right) \cdot y2\\ \mathbf{elif}\;t \leq -7200000000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -9 \cdot 10^{-51}:\\ \;\;\;\;a \cdot \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right)\\ \mathbf{elif}\;t \leq 2.5 \cdot 10^{-202}:\\ \;\;\;\;\left(y1 \cdot \mathsf{fma}\left(k, y4, \left(-a\right) \cdot x\right)\right) \cdot y2\\ \mathbf{elif}\;t \leq 2.9 \cdot 10^{+69}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot b\\ \end{array} \end{array} \]
                                                                                                                                                (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                 :precision binary64
                                                                                                                                                 (let* ((t_1 (* (* x (fma a y (* (- j) y0))) b)))
                                                                                                                                                   (if (<= t -4.4e+160)
                                                                                                                                                     (* (* y4 (fma k y1 (* (- c) t))) y2)
                                                                                                                                                     (if (<= t -7200000000000.0)
                                                                                                                                                       t_1
                                                                                                                                                       (if (<= t -9e-51)
                                                                                                                                                         (* a (* y3 (fma y1 z (* (- y) y5))))
                                                                                                                                                         (if (<= t 2.5e-202)
                                                                                                                                                           (* (* y1 (fma k y4 (* (- a) x))) y2)
                                                                                                                                                           (if (<= t 2.9e+69) t_1 (* (* j (fma t y4 (* (- x) y0))) b))))))))
                                                                                                                                                double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
                                                                                                                                                	double t_1 = (x * fma(a, y, (-j * y0))) * b;
                                                                                                                                                	double tmp;
                                                                                                                                                	if (t <= -4.4e+160) {
                                                                                                                                                		tmp = (y4 * fma(k, y1, (-c * t))) * y2;
                                                                                                                                                	} else if (t <= -7200000000000.0) {
                                                                                                                                                		tmp = t_1;
                                                                                                                                                	} else if (t <= -9e-51) {
                                                                                                                                                		tmp = a * (y3 * fma(y1, z, (-y * y5)));
                                                                                                                                                	} else if (t <= 2.5e-202) {
                                                                                                                                                		tmp = (y1 * fma(k, y4, (-a * x))) * y2;
                                                                                                                                                	} else if (t <= 2.9e+69) {
                                                                                                                                                		tmp = t_1;
                                                                                                                                                	} else {
                                                                                                                                                		tmp = (j * fma(t, y4, (-x * y0))) * b;
                                                                                                                                                	}
                                                                                                                                                	return tmp;
                                                                                                                                                }
                                                                                                                                                
                                                                                                                                                function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
                                                                                                                                                	t_1 = Float64(Float64(x * fma(a, y, Float64(Float64(-j) * y0))) * b)
                                                                                                                                                	tmp = 0.0
                                                                                                                                                	if (t <= -4.4e+160)
                                                                                                                                                		tmp = Float64(Float64(y4 * fma(k, y1, Float64(Float64(-c) * t))) * y2);
                                                                                                                                                	elseif (t <= -7200000000000.0)
                                                                                                                                                		tmp = t_1;
                                                                                                                                                	elseif (t <= -9e-51)
                                                                                                                                                		tmp = Float64(a * Float64(y3 * fma(y1, z, Float64(Float64(-y) * y5))));
                                                                                                                                                	elseif (t <= 2.5e-202)
                                                                                                                                                		tmp = Float64(Float64(y1 * fma(k, y4, Float64(Float64(-a) * x))) * y2);
                                                                                                                                                	elseif (t <= 2.9e+69)
                                                                                                                                                		tmp = t_1;
                                                                                                                                                	else
                                                                                                                                                		tmp = Float64(Float64(j * fma(t, y4, Float64(Float64(-x) * y0))) * b);
                                                                                                                                                	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[(x * N[(a * y + N[((-j) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[t, -4.4e+160], N[(N[(y4 * N[(k * y1 + N[((-c) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[t, -7200000000000.0], t$95$1, If[LessEqual[t, -9e-51], N[(a * N[(y3 * N[(y1 * z + N[((-y) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.5e-202], N[(N[(y1 * N[(k * y4 + N[((-a) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[t, 2.9e+69], t$95$1, N[(N[(j * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]]]]]]]
                                                                                                                                                
                                                                                                                                                \begin{array}{l}
                                                                                                                                                
                                                                                                                                                \\
                                                                                                                                                \begin{array}{l}
                                                                                                                                                t_1 := \left(x \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\right) \cdot b\\
                                                                                                                                                \mathbf{if}\;t \leq -4.4 \cdot 10^{+160}:\\
                                                                                                                                                \;\;\;\;\left(y4 \cdot \mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right)\right) \cdot y2\\
                                                                                                                                                
                                                                                                                                                \mathbf{elif}\;t \leq -7200000000000:\\
                                                                                                                                                \;\;\;\;t\_1\\
                                                                                                                                                
                                                                                                                                                \mathbf{elif}\;t \leq -9 \cdot 10^{-51}:\\
                                                                                                                                                \;\;\;\;a \cdot \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right)\\
                                                                                                                                                
                                                                                                                                                \mathbf{elif}\;t \leq 2.5 \cdot 10^{-202}:\\
                                                                                                                                                \;\;\;\;\left(y1 \cdot \mathsf{fma}\left(k, y4, \left(-a\right) \cdot x\right)\right) \cdot y2\\
                                                                                                                                                
                                                                                                                                                \mathbf{elif}\;t \leq 2.9 \cdot 10^{+69}:\\
                                                                                                                                                \;\;\;\;t\_1\\
                                                                                                                                                
                                                                                                                                                \mathbf{else}:\\
                                                                                                                                                \;\;\;\;\left(j \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot b\\
                                                                                                                                                
                                                                                                                                                
                                                                                                                                                \end{array}
                                                                                                                                                \end{array}
                                                                                                                                                
                                                                                                                                                Derivation
                                                                                                                                                1. Split input into 5 regimes
                                                                                                                                                2. if t < -4.39999999999999984e160

                                                                                                                                                  1. Initial program 21.7%

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

                                                                                                                                                      \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                                                                                    2. lower-*.f64N/A

                                                                                                                                                      \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                                                                                  5. Applied rewrites28.8%

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

                                                                                                                                                    \[\leadsto \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right) \cdot y2 \]
                                                                                                                                                  7. Step-by-step derivation
                                                                                                                                                    1. Applied rewrites64.7%

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

                                                                                                                                                    if -4.39999999999999984e160 < t < -7.2e12 or 2.49999999999999986e-202 < t < 2.8999999999999998e69

                                                                                                                                                    1. Initial program 32.0%

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

                                                                                                                                                      \[\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. *-commutativeN/A

                                                                                                                                                        \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                                                                                                      2. lower-*.f64N/A

                                                                                                                                                        \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                                                                                                    5. Applied rewrites47.2%

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

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

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

                                                                                                                                                      if -7.2e12 < t < -8.99999999999999948e-51

                                                                                                                                                      1. Initial program 35.3%

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

                                                                                                                                                          \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                                                                                                        2. distribute-lft-neg-inN/A

                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                        3. lower-*.f64N/A

                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                        4. lower-neg.f64N/A

                                                                                                                                                          \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                                                                                                        5. lower--.f64N/A

                                                                                                                                                          \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                                                                                                                      5. Applied rewrites42.0%

                                                                                                                                                        \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                                                                                                                      6. Taylor expanded in a around -inf

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

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

                                                                                                                                                        if -8.99999999999999948e-51 < t < 2.49999999999999986e-202

                                                                                                                                                        1. Initial program 42.3%

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

                                                                                                                                                            \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                                                                                          2. lower-*.f64N/A

                                                                                                                                                            \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                                                                                        5. Applied rewrites37.4%

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

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

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

                                                                                                                                                          if 2.8999999999999998e69 < t

                                                                                                                                                          1. Initial program 13.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. *-commutativeN/A

                                                                                                                                                              \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                                                                                                            2. lower-*.f64N/A

                                                                                                                                                              \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                                                                                                          5. Applied rewrites41.2%

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

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

                                                                                                                                                              \[\leadsto \left(j \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot b \]
                                                                                                                                                          8. Recombined 5 regimes into one program.
                                                                                                                                                          9. Final simplification47.4%

                                                                                                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.4 \cdot 10^{+160}:\\ \;\;\;\;\left(y4 \cdot \mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right)\right) \cdot y2\\ \mathbf{elif}\;t \leq -7200000000000:\\ \;\;\;\;\left(x \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\right) \cdot b\\ \mathbf{elif}\;t \leq -9 \cdot 10^{-51}:\\ \;\;\;\;a \cdot \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right)\\ \mathbf{elif}\;t \leq 2.5 \cdot 10^{-202}:\\ \;\;\;\;\left(y1 \cdot \mathsf{fma}\left(k, y4, \left(-a\right) \cdot x\right)\right) \cdot y2\\ \mathbf{elif}\;t \leq 2.9 \cdot 10^{+69}:\\ \;\;\;\;\left(x \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot b\\ \end{array} \]
                                                                                                                                                          10. Add Preprocessing

                                                                                                                                                          Alternative 18: 30.6% accurate, 4.2× speedup?

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

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

                                                                                                                                                              \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                                                            4. Step-by-step derivation
                                                                                                                                                              1. mul-1-negN/A

                                                                                                                                                                \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                                                              2. distribute-lft-neg-inN/A

                                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                              3. lower-*.f64N/A

                                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                              4. lower-neg.f64N/A

                                                                                                                                                                \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
                                                                                                                                                              5. lower--.f64N/A

                                                                                                                                                                \[\leadsto \left(-z\right) \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                            5. Applied rewrites53.2%

                                                                                                                                                              \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
                                                                                                                                                            6. Taylor expanded in b around inf

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

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

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

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

                                                                                                                                                                if -8.4999999999999997e216 < y1 < -1.25000000000000005e-26

                                                                                                                                                                1. Initial program 31.4%

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

                                                                                                                                                                    \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                                                                                                                  2. distribute-lft-neg-inN/A

                                                                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                  3. lower-*.f64N/A

                                                                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                  4. lower-neg.f64N/A

                                                                                                                                                                    \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                                                                                                                  5. lower--.f64N/A

                                                                                                                                                                    \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                                                                                                                                5. Applied rewrites47.4%

                                                                                                                                                                  \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                                                                                                                                6. Taylor expanded in a around -inf

                                                                                                                                                                  \[\leadsto a \cdot \color{blue}{\left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)} \]
                                                                                                                                                                7. Step-by-step derivation
                                                                                                                                                                  1. Applied rewrites45.0%

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

                                                                                                                                                                  if -1.25000000000000005e-26 < y1 < 2.9999999999999998e50

                                                                                                                                                                  1. Initial program 29.8%

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

                                                                                                                                                                      \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                                                                                                                    2. lower-*.f64N/A

                                                                                                                                                                      \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                                                                                                                  5. Applied rewrites42.4%

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

                                                                                                                                                                    \[\leadsto \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right) \cdot b \]
                                                                                                                                                                  7. Step-by-step derivation
                                                                                                                                                                    1. Applied rewrites40.5%

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

                                                                                                                                                                    if 2.9999999999999998e50 < y1 < 2.90000000000000007e173

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

                                                                                                                                                                      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                    4. Step-by-step derivation
                                                                                                                                                                      1. mul-1-negN/A

                                                                                                                                                                        \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                      2. distribute-lft-neg-inN/A

                                                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                      3. lower-*.f64N/A

                                                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                      4. lower-neg.f64N/A

                                                                                                                                                                        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                      5. lower--.f64N/A

                                                                                                                                                                        \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                    5. Applied rewrites50.2%

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

                                                                                                                                                                      \[\leadsto a \cdot \color{blue}{\left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
                                                                                                                                                                    7. Step-by-step derivation
                                                                                                                                                                      1. Applied rewrites44.1%

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

                                                                                                                                                                      if 2.90000000000000007e173 < y1

                                                                                                                                                                      1. Initial program 44.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 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. mul-1-negN/A

                                                                                                                                                                          \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                                                                                                                        2. distribute-lft-neg-inN/A

                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                        3. lower-*.f64N/A

                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                        4. lower-neg.f64N/A

                                                                                                                                                                          \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                                                                                                                        5. lower--.f64N/A

                                                                                                                                                                          \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                                                                                                                                      5. Applied rewrites45.2%

                                                                                                                                                                        \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                                                                                                                                      6. Taylor expanded in j around inf

                                                                                                                                                                        \[\leadsto -1 \cdot \color{blue}{\left(j \cdot \left(y3 \cdot \left(-1 \cdot \left(y0 \cdot y5\right) + y1 \cdot y4\right)\right)\right)} \]
                                                                                                                                                                      7. Step-by-step derivation
                                                                                                                                                                        1. Applied rewrites35.5%

                                                                                                                                                                          \[\leadsto -j \cdot \left(y3 \cdot \mathsf{fma}\left(-1, y0 \cdot y5, y1 \cdot y4\right)\right) \]
                                                                                                                                                                        2. Taylor expanded in y1 around -inf

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

                                                                                                                                                                            \[\leadsto \left(y1 \cdot y3\right) \cdot \color{blue}{\mathsf{fma}\left(a, z, -j \cdot y4\right)} \]
                                                                                                                                                                        4. Recombined 5 regimes into one program.
                                                                                                                                                                        5. Final simplification44.8%

                                                                                                                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;y1 \leq -8.5 \cdot 10^{+216}:\\ \;\;\;\;\left(k \cdot z\right) \cdot \mathsf{fma}\left(b, y0, \left(-i\right) \cdot y1\right)\\ \mathbf{elif}\;y1 \leq -1.25 \cdot 10^{-26}:\\ \;\;\;\;a \cdot \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y1 \leq 3 \cdot 10^{+50}:\\ \;\;\;\;\left(j \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot b\\ \mathbf{elif}\;y1 \leq 2.9 \cdot 10^{+173}:\\ \;\;\;\;a \cdot \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(y1 \cdot y3\right) \cdot \mathsf{fma}\left(a, z, \left(-j\right) \cdot y4\right)\\ \end{array} \]
                                                                                                                                                                        6. Add Preprocessing

                                                                                                                                                                        Alternative 19: 29.6% accurate, 4.2× speedup?

                                                                                                                                                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right)\\ \mathbf{if}\;y1 \leq -5.2 \cdot 10^{+41}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y1 \leq 8.5 \cdot 10^{-245}:\\ \;\;\;\;a \cdot \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y1 \leq 1.8 \cdot 10^{-58}:\\ \;\;\;\;\left(y0 \cdot y3\right) \cdot \mathsf{fma}\left(j, y5, \left(-c\right) \cdot z\right)\\ \mathbf{elif}\;y1 \leq 2.15 \cdot 10^{+48}:\\ \;\;\;\;\left(-z\right) \cdot \left(\left(a \cdot b\right) \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                                                                                        (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                         :precision binary64
                                                                                                                                                                         (let* ((t_1 (* a (* y3 (fma y1 z (* (- y) y5))))))
                                                                                                                                                                           (if (<= y1 -5.2e+41)
                                                                                                                                                                             t_1
                                                                                                                                                                             (if (<= y1 8.5e-245)
                                                                                                                                                                               (* a (* y (fma b x (* (- y3) y5))))
                                                                                                                                                                               (if (<= y1 1.8e-58)
                                                                                                                                                                                 (* (* y0 y3) (fma j y5 (* (- c) z)))
                                                                                                                                                                                 (if (<= y1 2.15e+48) (* (- z) (* (* a b) 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 = a * (y3 * fma(y1, z, (-y * y5)));
                                                                                                                                                                        	double tmp;
                                                                                                                                                                        	if (y1 <= -5.2e+41) {
                                                                                                                                                                        		tmp = t_1;
                                                                                                                                                                        	} else if (y1 <= 8.5e-245) {
                                                                                                                                                                        		tmp = a * (y * fma(b, x, (-y3 * y5)));
                                                                                                                                                                        	} else if (y1 <= 1.8e-58) {
                                                                                                                                                                        		tmp = (y0 * y3) * fma(j, y5, (-c * z));
                                                                                                                                                                        	} else if (y1 <= 2.15e+48) {
                                                                                                                                                                        		tmp = -z * ((a * b) * 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(a * Float64(y3 * fma(y1, z, Float64(Float64(-y) * y5))))
                                                                                                                                                                        	tmp = 0.0
                                                                                                                                                                        	if (y1 <= -5.2e+41)
                                                                                                                                                                        		tmp = t_1;
                                                                                                                                                                        	elseif (y1 <= 8.5e-245)
                                                                                                                                                                        		tmp = Float64(a * Float64(y * fma(b, x, Float64(Float64(-y3) * y5))));
                                                                                                                                                                        	elseif (y1 <= 1.8e-58)
                                                                                                                                                                        		tmp = Float64(Float64(y0 * y3) * fma(j, y5, Float64(Float64(-c) * z)));
                                                                                                                                                                        	elseif (y1 <= 2.15e+48)
                                                                                                                                                                        		tmp = Float64(Float64(-z) * Float64(Float64(a * b) * 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[(a * N[(y3 * N[(y1 * z + N[((-y) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -5.2e+41], t$95$1, If[LessEqual[y1, 8.5e-245], N[(a * N[(y * N[(b * x + N[((-y3) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.8e-58], N[(N[(y0 * y3), $MachinePrecision] * N[(j * y5 + N[((-c) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 2.15e+48], N[((-z) * N[(N[(a * b), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
                                                                                                                                                                        
                                                                                                                                                                        \begin{array}{l}
                                                                                                                                                                        
                                                                                                                                                                        \\
                                                                                                                                                                        \begin{array}{l}
                                                                                                                                                                        t_1 := a \cdot \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right)\\
                                                                                                                                                                        \mathbf{if}\;y1 \leq -5.2 \cdot 10^{+41}:\\
                                                                                                                                                                        \;\;\;\;t\_1\\
                                                                                                                                                                        
                                                                                                                                                                        \mathbf{elif}\;y1 \leq 8.5 \cdot 10^{-245}:\\
                                                                                                                                                                        \;\;\;\;a \cdot \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right)\\
                                                                                                                                                                        
                                                                                                                                                                        \mathbf{elif}\;y1 \leq 1.8 \cdot 10^{-58}:\\
                                                                                                                                                                        \;\;\;\;\left(y0 \cdot y3\right) \cdot \mathsf{fma}\left(j, y5, \left(-c\right) \cdot z\right)\\
                                                                                                                                                                        
                                                                                                                                                                        \mathbf{elif}\;y1 \leq 2.15 \cdot 10^{+48}:\\
                                                                                                                                                                        \;\;\;\;\left(-z\right) \cdot \left(\left(a \cdot b\right) \cdot t\right)\\
                                                                                                                                                                        
                                                                                                                                                                        \mathbf{else}:\\
                                                                                                                                                                        \;\;\;\;t\_1\\
                                                                                                                                                                        
                                                                                                                                                                        
                                                                                                                                                                        \end{array}
                                                                                                                                                                        \end{array}
                                                                                                                                                                        
                                                                                                                                                                        Derivation
                                                                                                                                                                        1. Split input into 4 regimes
                                                                                                                                                                        2. if y1 < -5.2000000000000001e41 or 2.14999999999999989e48 < y1

                                                                                                                                                                          1. Initial program 28.6%

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

                                                                                                                                                                              \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                                                                                                                            2. distribute-lft-neg-inN/A

                                                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                            3. lower-*.f64N/A

                                                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                            4. lower-neg.f64N/A

                                                                                                                                                                              \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                                                                                                                            5. lower--.f64N/A

                                                                                                                                                                              \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                                                                                                                                          5. Applied rewrites35.8%

                                                                                                                                                                            \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                                                                                                                                          6. Taylor expanded in a around -inf

                                                                                                                                                                            \[\leadsto a \cdot \color{blue}{\left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)} \]
                                                                                                                                                                          7. Step-by-step derivation
                                                                                                                                                                            1. Applied rewrites39.5%

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

                                                                                                                                                                            if -5.2000000000000001e41 < y1 < 8.50000000000000022e-245

                                                                                                                                                                            1. Initial program 38.3%

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

                                                                                                                                                                              \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                            4. Step-by-step derivation
                                                                                                                                                                              1. mul-1-negN/A

                                                                                                                                                                                \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                              2. distribute-lft-neg-inN/A

                                                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                              3. lower-*.f64N/A

                                                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                              4. lower-neg.f64N/A

                                                                                                                                                                                \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                              5. lower--.f64N/A

                                                                                                                                                                                \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                            5. Applied rewrites38.8%

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

                                                                                                                                                                              \[\leadsto a \cdot \color{blue}{\left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
                                                                                                                                                                            7. Step-by-step derivation
                                                                                                                                                                              1. Applied rewrites32.9%

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

                                                                                                                                                                              if 8.50000000000000022e-245 < y1 < 1.80000000000000005e-58

                                                                                                                                                                              1. Initial program 24.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. mul-1-negN/A

                                                                                                                                                                                  \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                                                                                                                                2. distribute-lft-neg-inN/A

                                                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                3. lower-*.f64N/A

                                                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                4. lower-neg.f64N/A

                                                                                                                                                                                  \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                                                                                                                                5. lower--.f64N/A

                                                                                                                                                                                  \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                                                                                                                                              5. Applied rewrites48.9%

                                                                                                                                                                                \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                                                                                                                                              6. Taylor expanded in j around inf

                                                                                                                                                                                \[\leadsto -1 \cdot \color{blue}{\left(j \cdot \left(y3 \cdot \left(-1 \cdot \left(y0 \cdot y5\right) + y1 \cdot y4\right)\right)\right)} \]
                                                                                                                                                                              7. Step-by-step derivation
                                                                                                                                                                                1. Applied rewrites35.4%

                                                                                                                                                                                  \[\leadsto -j \cdot \left(y3 \cdot \mathsf{fma}\left(-1, y0 \cdot y5, y1 \cdot y4\right)\right) \]
                                                                                                                                                                                2. Taylor expanded in y0 around -inf

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

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

                                                                                                                                                                                  if 1.80000000000000005e-58 < y1 < 2.14999999999999989e48

                                                                                                                                                                                  1. Initial program 17.3%

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

                                                                                                                                                                                    \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                                                                                  4. Step-by-step derivation
                                                                                                                                                                                    1. mul-1-negN/A

                                                                                                                                                                                      \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                                                                                    2. distribute-lft-neg-inN/A

                                                                                                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                    3. lower-*.f64N/A

                                                                                                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                    4. lower-neg.f64N/A

                                                                                                                                                                                      \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
                                                                                                                                                                                    5. lower--.f64N/A

                                                                                                                                                                                      \[\leadsto \left(-z\right) \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                  5. Applied rewrites61.3%

                                                                                                                                                                                    \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
                                                                                                                                                                                  6. Taylor expanded in b around inf

                                                                                                                                                                                    \[\leadsto \left(-z\right) \cdot \left(b \cdot \color{blue}{\left(a \cdot t - k \cdot y0\right)}\right) \]
                                                                                                                                                                                  7. Step-by-step derivation
                                                                                                                                                                                    1. Applied rewrites52.9%

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

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

                                                                                                                                                                                        \[\leadsto \left(-z\right) \cdot \left(\left(a \cdot b\right) \cdot t\right) \]
                                                                                                                                                                                    4. Recombined 4 regimes into one program.
                                                                                                                                                                                    5. Final simplification39.1%

                                                                                                                                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;y1 \leq -5.2 \cdot 10^{+41}:\\ \;\;\;\;a \cdot \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y1 \leq 8.5 \cdot 10^{-245}:\\ \;\;\;\;a \cdot \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y1 \leq 1.8 \cdot 10^{-58}:\\ \;\;\;\;\left(y0 \cdot y3\right) \cdot \mathsf{fma}\left(j, y5, \left(-c\right) \cdot z\right)\\ \mathbf{elif}\;y1 \leq 2.15 \cdot 10^{+48}:\\ \;\;\;\;\left(-z\right) \cdot \left(\left(a \cdot b\right) \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right)\\ \end{array} \]
                                                                                                                                                                                    6. Add Preprocessing

                                                                                                                                                                                    Alternative 20: 30.0% accurate, 4.2× speedup?

                                                                                                                                                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right)\\ \mathbf{if}\;y1 \leq -5.2 \cdot 10^{+41}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y1 \leq 8.5 \cdot 10^{-245}:\\ \;\;\;\;a \cdot \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y1 \leq 1.7 \cdot 10^{-58}:\\ \;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\ \mathbf{elif}\;y1 \leq 2.15 \cdot 10^{+48}:\\ \;\;\;\;\left(-z\right) \cdot \left(\left(a \cdot b\right) \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                                                                                                    (FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
                                                                                                                                                                                     :precision binary64
                                                                                                                                                                                     (let* ((t_1 (* a (* y3 (fma y1 z (* (- y) y5))))))
                                                                                                                                                                                       (if (<= y1 -5.2e+41)
                                                                                                                                                                                         t_1
                                                                                                                                                                                         (if (<= y1 8.5e-245)
                                                                                                                                                                                           (* a (* y (fma b x (* (- y3) y5))))
                                                                                                                                                                                           (if (<= y1 1.7e-58)
                                                                                                                                                                                             (* y3 (* y5 (fma j y0 (* (- a) y))))
                                                                                                                                                                                             (if (<= y1 2.15e+48) (* (- z) (* (* a b) 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 = a * (y3 * fma(y1, z, (-y * y5)));
                                                                                                                                                                                    	double tmp;
                                                                                                                                                                                    	if (y1 <= -5.2e+41) {
                                                                                                                                                                                    		tmp = t_1;
                                                                                                                                                                                    	} else if (y1 <= 8.5e-245) {
                                                                                                                                                                                    		tmp = a * (y * fma(b, x, (-y3 * y5)));
                                                                                                                                                                                    	} else if (y1 <= 1.7e-58) {
                                                                                                                                                                                    		tmp = y3 * (y5 * fma(j, y0, (-a * y)));
                                                                                                                                                                                    	} else if (y1 <= 2.15e+48) {
                                                                                                                                                                                    		tmp = -z * ((a * b) * 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(a * Float64(y3 * fma(y1, z, Float64(Float64(-y) * y5))))
                                                                                                                                                                                    	tmp = 0.0
                                                                                                                                                                                    	if (y1 <= -5.2e+41)
                                                                                                                                                                                    		tmp = t_1;
                                                                                                                                                                                    	elseif (y1 <= 8.5e-245)
                                                                                                                                                                                    		tmp = Float64(a * Float64(y * fma(b, x, Float64(Float64(-y3) * y5))));
                                                                                                                                                                                    	elseif (y1 <= 1.7e-58)
                                                                                                                                                                                    		tmp = Float64(y3 * Float64(y5 * fma(j, y0, Float64(Float64(-a) * y))));
                                                                                                                                                                                    	elseif (y1 <= 2.15e+48)
                                                                                                                                                                                    		tmp = Float64(Float64(-z) * Float64(Float64(a * b) * 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[(a * N[(y3 * N[(y1 * z + N[((-y) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -5.2e+41], t$95$1, If[LessEqual[y1, 8.5e-245], N[(a * N[(y * N[(b * x + N[((-y3) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.7e-58], N[(y3 * N[(y5 * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 2.15e+48], N[((-z) * N[(N[(a * b), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
                                                                                                                                                                                    
                                                                                                                                                                                    \begin{array}{l}
                                                                                                                                                                                    
                                                                                                                                                                                    \\
                                                                                                                                                                                    \begin{array}{l}
                                                                                                                                                                                    t_1 := a \cdot \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right)\\
                                                                                                                                                                                    \mathbf{if}\;y1 \leq -5.2 \cdot 10^{+41}:\\
                                                                                                                                                                                    \;\;\;\;t\_1\\
                                                                                                                                                                                    
                                                                                                                                                                                    \mathbf{elif}\;y1 \leq 8.5 \cdot 10^{-245}:\\
                                                                                                                                                                                    \;\;\;\;a \cdot \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right)\\
                                                                                                                                                                                    
                                                                                                                                                                                    \mathbf{elif}\;y1 \leq 1.7 \cdot 10^{-58}:\\
                                                                                                                                                                                    \;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\
                                                                                                                                                                                    
                                                                                                                                                                                    \mathbf{elif}\;y1 \leq 2.15 \cdot 10^{+48}:\\
                                                                                                                                                                                    \;\;\;\;\left(-z\right) \cdot \left(\left(a \cdot b\right) \cdot t\right)\\
                                                                                                                                                                                    
                                                                                                                                                                                    \mathbf{else}:\\
                                                                                                                                                                                    \;\;\;\;t\_1\\
                                                                                                                                                                                    
                                                                                                                                                                                    
                                                                                                                                                                                    \end{array}
                                                                                                                                                                                    \end{array}
                                                                                                                                                                                    
                                                                                                                                                                                    Derivation
                                                                                                                                                                                    1. Split input into 4 regimes
                                                                                                                                                                                    2. if y1 < -5.2000000000000001e41 or 2.14999999999999989e48 < y1

                                                                                                                                                                                      1. Initial program 28.6%

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

                                                                                                                                                                                          \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                                                                                                                                        2. distribute-lft-neg-inN/A

                                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                        3. lower-*.f64N/A

                                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                        4. lower-neg.f64N/A

                                                                                                                                                                                          \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                                                                                                                                        5. lower--.f64N/A

                                                                                                                                                                                          \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                                                                                                                                                      5. Applied rewrites35.8%

                                                                                                                                                                                        \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                                                                                                                                                      6. Taylor expanded in a around -inf

                                                                                                                                                                                        \[\leadsto a \cdot \color{blue}{\left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)} \]
                                                                                                                                                                                      7. Step-by-step derivation
                                                                                                                                                                                        1. Applied rewrites39.5%

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

                                                                                                                                                                                        if -5.2000000000000001e41 < y1 < 8.50000000000000022e-245

                                                                                                                                                                                        1. Initial program 38.3%

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

                                                                                                                                                                                          \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                        4. Step-by-step derivation
                                                                                                                                                                                          1. mul-1-negN/A

                                                                                                                                                                                            \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                          2. distribute-lft-neg-inN/A

                                                                                                                                                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                          3. lower-*.f64N/A

                                                                                                                                                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                          4. lower-neg.f64N/A

                                                                                                                                                                                            \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                                          5. lower--.f64N/A

                                                                                                                                                                                            \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                        5. Applied rewrites38.8%

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

                                                                                                                                                                                          \[\leadsto a \cdot \color{blue}{\left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
                                                                                                                                                                                        7. Step-by-step derivation
                                                                                                                                                                                          1. Applied rewrites32.9%

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

                                                                                                                                                                                          if 8.50000000000000022e-245 < y1 < 1.69999999999999987e-58

                                                                                                                                                                                          1. Initial program 24.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. mul-1-negN/A

                                                                                                                                                                                              \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                                                                                                                                            2. distribute-lft-neg-inN/A

                                                                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                            3. lower-*.f64N/A

                                                                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                            4. lower-neg.f64N/A

                                                                                                                                                                                              \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                                                                                                                                            5. lower--.f64N/A

                                                                                                                                                                                              \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                                                                                                                                                          5. Applied rewrites48.9%

                                                                                                                                                                                            \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                                                                                                                                                          6. Taylor expanded in y5 around -inf

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

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

                                                                                                                                                                                            if 1.69999999999999987e-58 < y1 < 2.14999999999999989e48

                                                                                                                                                                                            1. Initial program 17.3%

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

                                                                                                                                                                                              \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                                                                                            4. Step-by-step derivation
                                                                                                                                                                                              1. mul-1-negN/A

                                                                                                                                                                                                \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                                                                                              2. distribute-lft-neg-inN/A

                                                                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                              3. lower-*.f64N/A

                                                                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                              4. lower-neg.f64N/A

                                                                                                                                                                                                \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
                                                                                                                                                                                              5. lower--.f64N/A

                                                                                                                                                                                                \[\leadsto \left(-z\right) \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                            5. Applied rewrites61.3%

                                                                                                                                                                                              \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
                                                                                                                                                                                            6. Taylor expanded in b around inf

                                                                                                                                                                                              \[\leadsto \left(-z\right) \cdot \left(b \cdot \color{blue}{\left(a \cdot t - k \cdot y0\right)}\right) \]
                                                                                                                                                                                            7. Step-by-step derivation
                                                                                                                                                                                              1. Applied rewrites52.9%

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

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

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

                                                                                                                                                                                              Alternative 21: 27.4% accurate, 4.2× speedup?

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

                                                                                                                                                                                                1. Initial program 32.1%

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

                                                                                                                                                                                                  \[\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. *-commutativeN/A

                                                                                                                                                                                                    \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                                                                                                                                  2. lower-*.f64N/A

                                                                                                                                                                                                    \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                                                                                                                                5. Applied rewrites46.5%

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

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

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

                                                                                                                                                                                                    \[\leadsto \left(k \cdot \left(y1 \cdot y4\right)\right) \cdot y2 \]
                                                                                                                                                                                                  3. Step-by-step derivation
                                                                                                                                                                                                    1. Applied rewrites40.2%

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

                                                                                                                                                                                                    if -4.19999999999999996e150 < y1 < 1.90000000000000001e-206 or 2.3e48 < y1 < 4.7999999999999998e173

                                                                                                                                                                                                    1. Initial program 32.0%

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

                                                                                                                                                                                                      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                    4. Step-by-step derivation
                                                                                                                                                                                                      1. mul-1-negN/A

                                                                                                                                                                                                        \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                      2. distribute-lft-neg-inN/A

                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                      3. lower-*.f64N/A

                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                      4. lower-neg.f64N/A

                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                                                      5. lower--.f64N/A

                                                                                                                                                                                                        \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                    5. Applied rewrites41.6%

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

                                                                                                                                                                                                      \[\leadsto a \cdot \color{blue}{\left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
                                                                                                                                                                                                    7. Step-by-step derivation
                                                                                                                                                                                                      1. Applied rewrites35.8%

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

                                                                                                                                                                                                      if 1.90000000000000001e-206 < y1 < 2.3e48

                                                                                                                                                                                                      1. Initial program 15.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 z around -inf

                                                                                                                                                                                                        \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                                                                                                      4. Step-by-step derivation
                                                                                                                                                                                                        1. mul-1-negN/A

                                                                                                                                                                                                          \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                                                                                                        2. distribute-lft-neg-inN/A

                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                                        3. lower-*.f64N/A

                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                                        4. lower-neg.f64N/A

                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
                                                                                                                                                                                                        5. lower--.f64N/A

                                                                                                                                                                                                          \[\leadsto \left(-z\right) \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                                      5. Applied rewrites53.8%

                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
                                                                                                                                                                                                      6. Taylor expanded in b around inf

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

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

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

                                                                                                                                                                                                            \[\leadsto \left(-z\right) \cdot \left(\left(a \cdot b\right) \cdot t\right) \]

                                                                                                                                                                                                          if 4.7999999999999998e173 < y1

                                                                                                                                                                                                          1. Initial program 44.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 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. mul-1-negN/A

                                                                                                                                                                                                              \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                                                                                                                                                            2. distribute-lft-neg-inN/A

                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                                            3. lower-*.f64N/A

                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                                            4. lower-neg.f64N/A

                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                                                                                                                                                            5. lower--.f64N/A

                                                                                                                                                                                                              \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                                                                                                                                                                          5. Applied rewrites45.2%

                                                                                                                                                                                                            \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                                                                                                                                                                          6. Taylor expanded in j around inf

                                                                                                                                                                                                            \[\leadsto -1 \cdot \color{blue}{\left(j \cdot \left(y3 \cdot \left(-1 \cdot \left(y0 \cdot y5\right) + y1 \cdot y4\right)\right)\right)} \]
                                                                                                                                                                                                          7. Step-by-step derivation
                                                                                                                                                                                                            1. Applied rewrites35.5%

                                                                                                                                                                                                              \[\leadsto -j \cdot \left(y3 \cdot \mathsf{fma}\left(-1, y0 \cdot y5, y1 \cdot y4\right)\right) \]
                                                                                                                                                                                                            2. Taylor expanded in y0 around 0

                                                                                                                                                                                                              \[\leadsto -j \cdot \left(y1 \cdot \left(y3 \cdot y4\right)\right) \]
                                                                                                                                                                                                            3. Step-by-step derivation
                                                                                                                                                                                                              1. Applied rewrites45.5%

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

                                                                                                                                                                                                              \[\leadsto \begin{array}{l} \mathbf{if}\;y1 \leq -4.2 \cdot 10^{+150}:\\ \;\;\;\;\left(k \cdot \left(y1 \cdot y4\right)\right) \cdot y2\\ \mathbf{elif}\;y1 \leq 1.9 \cdot 10^{-206}:\\ \;\;\;\;a \cdot \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y1 \leq 2.3 \cdot 10^{+48}:\\ \;\;\;\;\left(-z\right) \cdot \left(\left(a \cdot b\right) \cdot t\right)\\ \mathbf{elif}\;y1 \leq 4.8 \cdot 10^{+173}:\\ \;\;\;\;a \cdot \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(-j\right) \cdot \left(\left(y1 \cdot y3\right) \cdot y4\right)\\ \end{array} \]
                                                                                                                                                                                                            6. Add Preprocessing

                                                                                                                                                                                                            Alternative 22: 30.8% accurate, 4.8× speedup?

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

                                                                                                                                                                                                              1. Initial program 21.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 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. mul-1-negN/A

                                                                                                                                                                                                                  \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                                                                                                                                                                2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                                                3. lower-*.f64N/A

                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                                                4. lower-neg.f64N/A

                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                                                                                                                                                                5. lower--.f64N/A

                                                                                                                                                                                                                  \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                                                                                                                                                                              5. Applied rewrites38.2%

                                                                                                                                                                                                                \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                                                                                                                                                                              6. Taylor expanded in j around inf

                                                                                                                                                                                                                \[\leadsto -1 \cdot \color{blue}{\left(j \cdot \left(y3 \cdot \left(-1 \cdot \left(y0 \cdot y5\right) + y1 \cdot y4\right)\right)\right)} \]
                                                                                                                                                                                                              7. Step-by-step derivation
                                                                                                                                                                                                                1. Applied rewrites25.8%

                                                                                                                                                                                                                  \[\leadsto -j \cdot \left(y3 \cdot \mathsf{fma}\left(-1, y0 \cdot y5, y1 \cdot y4\right)\right) \]
                                                                                                                                                                                                                2. Taylor expanded in y around inf

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

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

                                                                                                                                                                                                                  if -8.49999999999999947e31 < y < -4.8000000000000002e-93

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

                                                                                                                                                                                                                    \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                                                                                                                  4. Step-by-step derivation
                                                                                                                                                                                                                    1. mul-1-negN/A

                                                                                                                                                                                                                      \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                                                                                                                    2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                                                    3. lower-*.f64N/A

                                                                                                                                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                                                    4. lower-neg.f64N/A

                                                                                                                                                                                                                      \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
                                                                                                                                                                                                                    5. lower--.f64N/A

                                                                                                                                                                                                                      \[\leadsto \left(-z\right) \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                                                  5. Applied rewrites58.6%

                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
                                                                                                                                                                                                                  6. Taylor expanded in b around inf

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

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

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

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

                                                                                                                                                                                                                      if -4.8000000000000002e-93 < y < 9e-47

                                                                                                                                                                                                                      1. Initial program 36.7%

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

                                                                                                                                                                                                                        \[\leadsto \color{blue}{x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                                                      4. Step-by-step derivation
                                                                                                                                                                                                                        1. *-commutativeN/A

                                                                                                                                                                                                                          \[\leadsto \color{blue}{\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) \cdot x} \]
                                                                                                                                                                                                                        2. lower-*.f64N/A

                                                                                                                                                                                                                          \[\leadsto \color{blue}{\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) \cdot x} \]
                                                                                                                                                                                                                      5. Applied rewrites32.5%

                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x} \]
                                                                                                                                                                                                                      6. Taylor expanded in y0 around inf

                                                                                                                                                                                                                        \[\leadsto \left(y0 \cdot \left(c \cdot y2 - b \cdot j\right)\right) \cdot x \]
                                                                                                                                                                                                                      7. Step-by-step derivation
                                                                                                                                                                                                                        1. Applied rewrites35.7%

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

                                                                                                                                                                                                                        if 9e-47 < y

                                                                                                                                                                                                                        1. Initial program 29.7%

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

                                                                                                                                                                                                                            \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                                                                                                                                                                          2. lower-*.f64N/A

                                                                                                                                                                                                                            \[\leadsto \color{blue}{\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) \cdot b} \]
                                                                                                                                                                                                                        5. Applied rewrites50.6%

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

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

                                                                                                                                                                                                                            \[\leadsto \left(x \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\right) \cdot b \]
                                                                                                                                                                                                                        8. Recombined 4 regimes into one program.
                                                                                                                                                                                                                        9. Final simplification44.0%

                                                                                                                                                                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -8.5 \cdot 10^{+31}:\\ \;\;\;\;\left(y \cdot y3\right) \cdot \mathsf{fma}\left(c, y4, \left(-a\right) \cdot y5\right)\\ \mathbf{elif}\;y \leq -4.8 \cdot 10^{-93}:\\ \;\;\;\;\left(k \cdot z\right) \cdot \mathsf{fma}\left(b, y0, \left(-i\right) \cdot y1\right)\\ \mathbf{elif}\;y \leq 9 \cdot 10^{-47}:\\ \;\;\;\;\left(y0 \cdot \mathsf{fma}\left(c, y2, \left(-b\right) \cdot j\right)\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\right) \cdot b\\ \end{array} \]
                                                                                                                                                                                                                        10. Add Preprocessing

                                                                                                                                                                                                                        Alternative 23: 31.3% accurate, 4.8× speedup?

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

                                                                                                                                                                                                                          1. Initial program 25.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 z around -inf

                                                                                                                                                                                                                            \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                                                                                                                          4. Step-by-step derivation
                                                                                                                                                                                                                            1. mul-1-negN/A

                                                                                                                                                                                                                              \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                                                                                                                            2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                                                            3. lower-*.f64N/A

                                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                                                            4. lower-neg.f64N/A

                                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
                                                                                                                                                                                                                            5. lower--.f64N/A

                                                                                                                                                                                                                              \[\leadsto \left(-z\right) \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                                                          5. Applied rewrites47.3%

                                                                                                                                                                                                                            \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
                                                                                                                                                                                                                          6. Taylor expanded in b around inf

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

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

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

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

                                                                                                                                                                                                                              if -9.99999999999999924e-25 < k < 1.79999999999999992e-165

                                                                                                                                                                                                                              1. Initial program 32.7%

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

                                                                                                                                                                                                                                \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                              4. Step-by-step derivation
                                                                                                                                                                                                                                1. mul-1-negN/A

                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                3. lower-*.f64N/A

                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                4. lower-neg.f64N/A

                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                                                                                5. lower--.f64N/A

                                                                                                                                                                                                                                  \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                              5. Applied rewrites50.8%

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

                                                                                                                                                                                                                                \[\leadsto a \cdot \color{blue}{\left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
                                                                                                                                                                                                                              7. Step-by-step derivation
                                                                                                                                                                                                                                1. Applied rewrites36.7%

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

                                                                                                                                                                                                                                if 1.79999999999999992e-165 < k < 6.7999999999999997e50

                                                                                                                                                                                                                                1. Initial program 38.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 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. mul-1-negN/A

                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                                                                                                                                                                                  2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                                                                  3. lower-*.f64N/A

                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                                                                  4. lower-neg.f64N/A

                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                                                                                                                                                                                  5. lower--.f64N/A

                                                                                                                                                                                                                                    \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                                                                                                                                                                                                5. Applied rewrites44.9%

                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                                                                                                                                                                                                6. Taylor expanded in j around inf

                                                                                                                                                                                                                                  \[\leadsto -1 \cdot \color{blue}{\left(j \cdot \left(y3 \cdot \left(-1 \cdot \left(y0 \cdot y5\right) + y1 \cdot y4\right)\right)\right)} \]
                                                                                                                                                                                                                                7. Step-by-step derivation
                                                                                                                                                                                                                                  1. Applied rewrites33.9%

                                                                                                                                                                                                                                    \[\leadsto -j \cdot \left(y3 \cdot \mathsf{fma}\left(-1, y0 \cdot y5, y1 \cdot y4\right)\right) \]
                                                                                                                                                                                                                                  2. Taylor expanded in y1 around -inf

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

                                                                                                                                                                                                                                      \[\leadsto \left(y1 \cdot y3\right) \cdot \color{blue}{\mathsf{fma}\left(a, z, -j \cdot y4\right)} \]
                                                                                                                                                                                                                                  4. Recombined 3 regimes into one program.
                                                                                                                                                                                                                                  5. Final simplification40.3%

                                                                                                                                                                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;k \leq -1 \cdot 10^{-24}:\\ \;\;\;\;\left(k \cdot z\right) \cdot \mathsf{fma}\left(b, y0, \left(-i\right) \cdot y1\right)\\ \mathbf{elif}\;k \leq 1.8 \cdot 10^{-165}:\\ \;\;\;\;a \cdot \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right)\\ \mathbf{elif}\;k \leq 6.8 \cdot 10^{+50}:\\ \;\;\;\;\left(y1 \cdot y3\right) \cdot \mathsf{fma}\left(a, z, \left(-j\right) \cdot y4\right)\\ \mathbf{else}:\\ \;\;\;\;\left(k \cdot z\right) \cdot \mathsf{fma}\left(b, y0, \left(-i\right) \cdot y1\right)\\ \end{array} \]
                                                                                                                                                                                                                                  6. Add Preprocessing

                                                                                                                                                                                                                                  Alternative 24: 28.9% accurate, 4.8× speedup?

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

                                                                                                                                                                                                                                    1. Initial program 28.6%

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

                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                                                                                                                                                                                      2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                                                                      3. lower-*.f64N/A

                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                                                                      4. lower-neg.f64N/A

                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                                                                                                                                                                                      5. lower--.f64N/A

                                                                                                                                                                                                                                        \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                                                                                                                                                                                                    5. Applied rewrites35.8%

                                                                                                                                                                                                                                      \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                                                                                                                                                                                                    6. Taylor expanded in a around -inf

                                                                                                                                                                                                                                      \[\leadsto a \cdot \color{blue}{\left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)} \]
                                                                                                                                                                                                                                    7. Step-by-step derivation
                                                                                                                                                                                                                                      1. Applied rewrites39.5%

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

                                                                                                                                                                                                                                      if -5.2000000000000001e41 < y1 < 1.90000000000000001e-206

                                                                                                                                                                                                                                      1. Initial program 39.7%

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

                                                                                                                                                                                                                                        \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                      4. Step-by-step derivation
                                                                                                                                                                                                                                        1. mul-1-negN/A

                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                        2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                        3. lower-*.f64N/A

                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                        4. lower-neg.f64N/A

                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                                                                                        5. lower--.f64N/A

                                                                                                                                                                                                                                          \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                      5. Applied rewrites38.1%

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

                                                                                                                                                                                                                                        \[\leadsto a \cdot \color{blue}{\left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
                                                                                                                                                                                                                                      7. Step-by-step derivation
                                                                                                                                                                                                                                        1. Applied rewrites32.7%

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

                                                                                                                                                                                                                                        if 1.90000000000000001e-206 < y1 < 2.14999999999999989e48

                                                                                                                                                                                                                                        1. Initial program 15.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 z around -inf

                                                                                                                                                                                                                                          \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                                                                                                                                        4. Step-by-step derivation
                                                                                                                                                                                                                                          1. mul-1-negN/A

                                                                                                                                                                                                                                            \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                                                                                                                                          2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                                                                          3. lower-*.f64N/A

                                                                                                                                                                                                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                                                                          4. lower-neg.f64N/A

                                                                                                                                                                                                                                            \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
                                                                                                                                                                                                                                          5. lower--.f64N/A

                                                                                                                                                                                                                                            \[\leadsto \left(-z\right) \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                                                                        5. Applied rewrites53.8%

                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
                                                                                                                                                                                                                                        6. Taylor expanded in b around inf

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

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

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

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

                                                                                                                                                                                                                                          Alternative 25: 21.8% accurate, 5.6× speedup?

                                                                                                                                                                                                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -850000:\\ \;\;\;\;a \cdot \left(\left(\left(-y\right) \cdot y3\right) \cdot y5\right)\\ \mathbf{elif}\;y \leq 2.4 \cdot 10^{-120}:\\ \;\;\;\;j \cdot \left(\left(-y3\right) \cdot \left(\left(-y0\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y \leq 7 \cdot 10^{-46}:\\ \;\;\;\;\left(-z\right) \cdot \left(\left(a \cdot b\right) \cdot t\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 (<= y -850000.0)
                                                                                                                                                                                                                                             (* a (* (* (- y) y3) y5))
                                                                                                                                                                                                                                             (if (<= y 2.4e-120)
                                                                                                                                                                                                                                               (* j (* (- y3) (* (- y0) y5)))
                                                                                                                                                                                                                                               (if (<= y 7e-46) (* (- z) (* (* a b) t)) (* 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 (y <= -850000.0) {
                                                                                                                                                                                                                                          		tmp = a * ((-y * y3) * y5);
                                                                                                                                                                                                                                          	} else if (y <= 2.4e-120) {
                                                                                                                                                                                                                                          		tmp = j * (-y3 * (-y0 * y5));
                                                                                                                                                                                                                                          	} else if (y <= 7e-46) {
                                                                                                                                                                                                                                          		tmp = -z * ((a * b) * t);
                                                                                                                                                                                                                                          	} 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 (y <= (-850000.0d0)) then
                                                                                                                                                                                                                                                  tmp = a * ((-y * y3) * y5)
                                                                                                                                                                                                                                              else if (y <= 2.4d-120) then
                                                                                                                                                                                                                                                  tmp = j * (-y3 * (-y0 * y5))
                                                                                                                                                                                                                                              else if (y <= 7d-46) then
                                                                                                                                                                                                                                                  tmp = -z * ((a * b) * t)
                                                                                                                                                                                                                                              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 (y <= -850000.0) {
                                                                                                                                                                                                                                          		tmp = a * ((-y * y3) * y5);
                                                                                                                                                                                                                                          	} else if (y <= 2.4e-120) {
                                                                                                                                                                                                                                          		tmp = j * (-y3 * (-y0 * y5));
                                                                                                                                                                                                                                          	} else if (y <= 7e-46) {
                                                                                                                                                                                                                                          		tmp = -z * ((a * b) * t);
                                                                                                                                                                                                                                          	} 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 y <= -850000.0:
                                                                                                                                                                                                                                          		tmp = a * ((-y * y3) * y5)
                                                                                                                                                                                                                                          	elif y <= 2.4e-120:
                                                                                                                                                                                                                                          		tmp = j * (-y3 * (-y0 * y5))
                                                                                                                                                                                                                                          	elif y <= 7e-46:
                                                                                                                                                                                                                                          		tmp = -z * ((a * b) * t)
                                                                                                                                                                                                                                          	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 (y <= -850000.0)
                                                                                                                                                                                                                                          		tmp = Float64(a * Float64(Float64(Float64(-y) * y3) * y5));
                                                                                                                                                                                                                                          	elseif (y <= 2.4e-120)
                                                                                                                                                                                                                                          		tmp = Float64(j * Float64(Float64(-y3) * Float64(Float64(-y0) * y5)));
                                                                                                                                                                                                                                          	elseif (y <= 7e-46)
                                                                                                                                                                                                                                          		tmp = Float64(Float64(-z) * Float64(Float64(a * b) * t));
                                                                                                                                                                                                                                          	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 (y <= -850000.0)
                                                                                                                                                                                                                                          		tmp = a * ((-y * y3) * y5);
                                                                                                                                                                                                                                          	elseif (y <= 2.4e-120)
                                                                                                                                                                                                                                          		tmp = j * (-y3 * (-y0 * y5));
                                                                                                                                                                                                                                          	elseif (y <= 7e-46)
                                                                                                                                                                                                                                          		tmp = -z * ((a * b) * t);
                                                                                                                                                                                                                                          	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[LessEqual[y, -850000.0], N[(a * N[(N[((-y) * y3), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.4e-120], N[(j * N[((-y3) * N[((-y0) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7e-46], N[((-z) * N[(N[(a * b), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                          \begin{array}{l}
                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                          \\
                                                                                                                                                                                                                                          \begin{array}{l}
                                                                                                                                                                                                                                          \mathbf{if}\;y \leq -850000:\\
                                                                                                                                                                                                                                          \;\;\;\;a \cdot \left(\left(\left(-y\right) \cdot y3\right) \cdot y5\right)\\
                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                          \mathbf{elif}\;y \leq 2.4 \cdot 10^{-120}:\\
                                                                                                                                                                                                                                          \;\;\;\;j \cdot \left(\left(-y3\right) \cdot \left(\left(-y0\right) \cdot y5\right)\right)\\
                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                          \mathbf{elif}\;y \leq 7 \cdot 10^{-46}:\\
                                                                                                                                                                                                                                          \;\;\;\;\left(-z\right) \cdot \left(\left(a \cdot b\right) \cdot t\right)\\
                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                          \mathbf{else}:\\
                                                                                                                                                                                                                                          \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                          \end{array}
                                                                                                                                                                                                                                          \end{array}
                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                          Derivation
                                                                                                                                                                                                                                          1. Split input into 4 regimes
                                                                                                                                                                                                                                          2. if y < -8.5e5

                                                                                                                                                                                                                                            1. Initial program 20.7%

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

                                                                                                                                                                                                                                              \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                            4. Step-by-step derivation
                                                                                                                                                                                                                                              1. mul-1-negN/A

                                                                                                                                                                                                                                                \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                              2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                              3. lower-*.f64N/A

                                                                                                                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                              4. lower-neg.f64N/A

                                                                                                                                                                                                                                                \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                                                                                              5. lower--.f64N/A

                                                                                                                                                                                                                                                \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                            5. Applied rewrites40.2%

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

                                                                                                                                                                                                                                              \[\leadsto a \cdot \color{blue}{\left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
                                                                                                                                                                                                                                            7. Step-by-step derivation
                                                                                                                                                                                                                                              1. Applied rewrites43.4%

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

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

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

                                                                                                                                                                                                                                                if -8.5e5 < y < 2.3999999999999999e-120

                                                                                                                                                                                                                                                1. Initial program 36.4%

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

                                                                                                                                                                                                                                                  \[\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. mul-1-negN/A

                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                                                                                                                                                                                                  2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                                                                                  3. lower-*.f64N/A

                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                                                                                  4. lower-neg.f64N/A

                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                                                                                                                                                                                                  5. lower--.f64N/A

                                                                                                                                                                                                                                                    \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                                                                                                                                                                                                                5. Applied rewrites39.6%

                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                                                                                                                                                                                                                6. Taylor expanded in j around inf

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

                                                                                                                                                                                                                                                    \[\leadsto -j \cdot \left(y3 \cdot \mathsf{fma}\left(-1, y0 \cdot y5, y1 \cdot y4\right)\right) \]
                                                                                                                                                                                                                                                  2. Taylor expanded in y0 around inf

                                                                                                                                                                                                                                                    \[\leadsto -j \cdot \left(y3 \cdot \left(-1 \cdot \left(y0 \cdot y5\right)\right)\right) \]
                                                                                                                                                                                                                                                  3. Step-by-step derivation
                                                                                                                                                                                                                                                    1. Applied rewrites23.6%

                                                                                                                                                                                                                                                      \[\leadsto -j \cdot \left(y3 \cdot \left(\left(-y0\right) \cdot y5\right)\right) \]

                                                                                                                                                                                                                                                    if 2.3999999999999999e-120 < y < 7.0000000000000004e-46

                                                                                                                                                                                                                                                    1. Initial program 36.9%

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

                                                                                                                                                                                                                                                      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                                                                                                                                                    4. Step-by-step derivation
                                                                                                                                                                                                                                                      1. mul-1-negN/A

                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                                                                                                                                                      2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                                                                                      3. lower-*.f64N/A

                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                                                                                      4. lower-neg.f64N/A

                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
                                                                                                                                                                                                                                                      5. lower--.f64N/A

                                                                                                                                                                                                                                                        \[\leadsto \left(-z\right) \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                                                                                    5. Applied rewrites55.4%

                                                                                                                                                                                                                                                      \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
                                                                                                                                                                                                                                                    6. Taylor expanded in b around inf

                                                                                                                                                                                                                                                      \[\leadsto \left(-z\right) \cdot \left(b \cdot \color{blue}{\left(a \cdot t - k \cdot y0\right)}\right) \]
                                                                                                                                                                                                                                                    7. Step-by-step derivation
                                                                                                                                                                                                                                                      1. Applied rewrites50.9%

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

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

                                                                                                                                                                                                                                                          \[\leadsto \left(-z\right) \cdot \left(\left(a \cdot b\right) \cdot t\right) \]

                                                                                                                                                                                                                                                        if 7.0000000000000004e-46 < y

                                                                                                                                                                                                                                                        1. Initial program 30.1%

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

                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                        4. Step-by-step derivation
                                                                                                                                                                                                                                                          1. mul-1-negN/A

                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                          2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                          3. lower-*.f64N/A

                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                          4. lower-neg.f64N/A

                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                                                                                                          5. lower--.f64N/A

                                                                                                                                                                                                                                                            \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                        5. Applied rewrites42.2%

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

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

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

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

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

                                                                                                                                                                                                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -850000:\\ \;\;\;\;a \cdot \left(\left(\left(-y\right) \cdot y3\right) \cdot y5\right)\\ \mathbf{elif}\;y \leq 2.4 \cdot 10^{-120}:\\ \;\;\;\;j \cdot \left(\left(-y3\right) \cdot \left(\left(-y0\right) \cdot y5\right)\right)\\ \mathbf{elif}\;y \leq 7 \cdot 10^{-46}:\\ \;\;\;\;\left(-z\right) \cdot \left(\left(a \cdot b\right) \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\ \end{array} \]
                                                                                                                                                                                                                                                          6. Add Preprocessing

                                                                                                                                                                                                                                                          Alternative 26: 30.6% accurate, 5.6× speedup?

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

                                                                                                                                                                                                                                                            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 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. mul-1-negN/A

                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                                                                                                                                                                                                              2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                                                                                              3. lower-*.f64N/A

                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                                                                                              4. lower-neg.f64N/A

                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                                                                                                                                                                                                              5. lower--.f64N/A

                                                                                                                                                                                                                                                                \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                                                                                                                                                                                                                            5. Applied rewrites37.2%

                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                                                                                                                                                                                                                            6. Taylor expanded in j around inf

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

                                                                                                                                                                                                                                                                \[\leadsto -j \cdot \left(y3 \cdot \mathsf{fma}\left(-1, y0 \cdot y5, y1 \cdot y4\right)\right) \]
                                                                                                                                                                                                                                                              2. Taylor expanded in y around inf

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

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

                                                                                                                                                                                                                                                                if -2.34999999999999987e50 < y < 6.59999999999999987e-88

                                                                                                                                                                                                                                                                1. Initial program 36.0%

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

                                                                                                                                                                                                                                                                  \[\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. mul-1-negN/A

                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                                                                                                                                                                                                                  2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                                                                                                  3. lower-*.f64N/A

                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                                                                                                  4. lower-neg.f64N/A

                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                                                                                                                                                                                                                  5. lower--.f64N/A

                                                                                                                                                                                                                                                                    \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                                                                                                                                                                                                                                5. Applied rewrites39.0%

                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                                                                                                                                                                                                                                6. Taylor expanded in j around inf

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

                                                                                                                                                                                                                                                                    \[\leadsto -j \cdot \left(y3 \cdot \mathsf{fma}\left(-1, y0 \cdot y5, y1 \cdot y4\right)\right) \]
                                                                                                                                                                                                                                                                  2. Taylor expanded in y1 around -inf

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

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

                                                                                                                                                                                                                                                                    if 6.59999999999999987e-88 < y

                                                                                                                                                                                                                                                                    1. Initial program 29.5%

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

                                                                                                                                                                                                                                                                      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                    4. Step-by-step derivation
                                                                                                                                                                                                                                                                      1. mul-1-negN/A

                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                      2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                      3. lower-*.f64N/A

                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                      4. lower-neg.f64N/A

                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                                                                                                                      5. lower--.f64N/A

                                                                                                                                                                                                                                                                        \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                    5. Applied rewrites39.8%

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

                                                                                                                                                                                                                                                                      \[\leadsto a \cdot \color{blue}{\left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
                                                                                                                                                                                                                                                                    7. Step-by-step derivation
                                                                                                                                                                                                                                                                      1. Applied rewrites38.7%

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

                                                                                                                                                                                                                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.35 \cdot 10^{+50}:\\ \;\;\;\;\left(y \cdot y3\right) \cdot \mathsf{fma}\left(c, y4, \left(-a\right) \cdot y5\right)\\ \mathbf{elif}\;y \leq 6.6 \cdot 10^{-88}:\\ \;\;\;\;\left(y1 \cdot y3\right) \cdot \mathsf{fma}\left(a, z, \left(-j\right) \cdot y4\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\right)\\ \end{array} \]
                                                                                                                                                                                                                                                                    10. Add Preprocessing

                                                                                                                                                                                                                                                                    Alternative 27: 21.8% accurate, 6.7× speedup?

                                                                                                                                                                                                                                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -350:\\ \;\;\;\;a \cdot \left(\left(\left(-y\right) \cdot y3\right) \cdot y5\right)\\ \mathbf{elif}\;y \leq 7 \cdot 10^{-46}:\\ \;\;\;\;\left(-z\right) \cdot \left(\left(a \cdot b\right) \cdot t\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 (<= y -350.0)
                                                                                                                                                                                                                                                                       (* a (* (* (- y) y3) y5))
                                                                                                                                                                                                                                                                       (if (<= y 7e-46) (* (- z) (* (* a b) t)) (* 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 (y <= -350.0) {
                                                                                                                                                                                                                                                                    		tmp = a * ((-y * y3) * y5);
                                                                                                                                                                                                                                                                    	} else if (y <= 7e-46) {
                                                                                                                                                                                                                                                                    		tmp = -z * ((a * b) * t);
                                                                                                                                                                                                                                                                    	} 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 (y <= (-350.0d0)) then
                                                                                                                                                                                                                                                                            tmp = a * ((-y * y3) * y5)
                                                                                                                                                                                                                                                                        else if (y <= 7d-46) then
                                                                                                                                                                                                                                                                            tmp = -z * ((a * b) * t)
                                                                                                                                                                                                                                                                        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 (y <= -350.0) {
                                                                                                                                                                                                                                                                    		tmp = a * ((-y * y3) * y5);
                                                                                                                                                                                                                                                                    	} else if (y <= 7e-46) {
                                                                                                                                                                                                                                                                    		tmp = -z * ((a * b) * t);
                                                                                                                                                                                                                                                                    	} 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 y <= -350.0:
                                                                                                                                                                                                                                                                    		tmp = a * ((-y * y3) * y5)
                                                                                                                                                                                                                                                                    	elif y <= 7e-46:
                                                                                                                                                                                                                                                                    		tmp = -z * ((a * b) * t)
                                                                                                                                                                                                                                                                    	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 (y <= -350.0)
                                                                                                                                                                                                                                                                    		tmp = Float64(a * Float64(Float64(Float64(-y) * y3) * y5));
                                                                                                                                                                                                                                                                    	elseif (y <= 7e-46)
                                                                                                                                                                                                                                                                    		tmp = Float64(Float64(-z) * Float64(Float64(a * b) * t));
                                                                                                                                                                                                                                                                    	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 (y <= -350.0)
                                                                                                                                                                                                                                                                    		tmp = a * ((-y * y3) * y5);
                                                                                                                                                                                                                                                                    	elseif (y <= 7e-46)
                                                                                                                                                                                                                                                                    		tmp = -z * ((a * b) * t);
                                                                                                                                                                                                                                                                    	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[LessEqual[y, -350.0], N[(a * N[(N[((-y) * y3), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7e-46], N[((-z) * N[(N[(a * b), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                    \begin{array}{l}
                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                    \\
                                                                                                                                                                                                                                                                    \begin{array}{l}
                                                                                                                                                                                                                                                                    \mathbf{if}\;y \leq -350:\\
                                                                                                                                                                                                                                                                    \;\;\;\;a \cdot \left(\left(\left(-y\right) \cdot y3\right) \cdot y5\right)\\
                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                    \mathbf{elif}\;y \leq 7 \cdot 10^{-46}:\\
                                                                                                                                                                                                                                                                    \;\;\;\;\left(-z\right) \cdot \left(\left(a \cdot b\right) \cdot t\right)\\
                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                    \mathbf{else}:\\
                                                                                                                                                                                                                                                                    \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                    \end{array}
                                                                                                                                                                                                                                                                    \end{array}
                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                    Derivation
                                                                                                                                                                                                                                                                    1. Split input into 3 regimes
                                                                                                                                                                                                                                                                    2. if y < -350

                                                                                                                                                                                                                                                                      1. Initial program 20.7%

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

                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                      4. Step-by-step derivation
                                                                                                                                                                                                                                                                        1. mul-1-negN/A

                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                        2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                        3. lower-*.f64N/A

                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                        4. lower-neg.f64N/A

                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                                                                                                                        5. lower--.f64N/A

                                                                                                                                                                                                                                                                          \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                      5. Applied rewrites40.2%

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

                                                                                                                                                                                                                                                                        \[\leadsto a \cdot \color{blue}{\left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
                                                                                                                                                                                                                                                                      7. Step-by-step derivation
                                                                                                                                                                                                                                                                        1. Applied rewrites43.4%

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

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

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

                                                                                                                                                                                                                                                                          if -350 < y < 7.0000000000000004e-46

                                                                                                                                                                                                                                                                          1. Initial program 36.5%

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

                                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                                                                                                                                                                          4. Step-by-step derivation
                                                                                                                                                                                                                                                                            1. mul-1-negN/A

                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\mathsf{neg}\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
                                                                                                                                                                                                                                                                            2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                                                                                                            3. lower-*.f64N/A

                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                                                                                                            4. lower-neg.f64N/A

                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(-z\right)} \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
                                                                                                                                                                                                                                                                            5. lower--.f64N/A

                                                                                                                                                                                                                                                                              \[\leadsto \left(-z\right) \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
                                                                                                                                                                                                                                                                          5. Applied rewrites47.6%

                                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)} \]
                                                                                                                                                                                                                                                                          6. Taylor expanded in b around inf

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

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

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

                                                                                                                                                                                                                                                                                \[\leadsto \left(-z\right) \cdot \left(\left(a \cdot b\right) \cdot t\right) \]

                                                                                                                                                                                                                                                                              if 7.0000000000000004e-46 < y

                                                                                                                                                                                                                                                                              1. Initial program 30.1%

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

                                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                              4. Step-by-step derivation
                                                                                                                                                                                                                                                                                1. mul-1-negN/A

                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                3. lower-*.f64N/A

                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                4. lower-neg.f64N/A

                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                                                                                                                                5. lower--.f64N/A

                                                                                                                                                                                                                                                                                  \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                              5. Applied rewrites42.2%

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

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

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

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

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

                                                                                                                                                                                                                                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -350:\\ \;\;\;\;a \cdot \left(\left(\left(-y\right) \cdot y3\right) \cdot y5\right)\\ \mathbf{elif}\;y \leq 7 \cdot 10^{-46}:\\ \;\;\;\;\left(-z\right) \cdot \left(\left(a \cdot b\right) \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\ \end{array} \]
                                                                                                                                                                                                                                                                                6. Add Preprocessing

                                                                                                                                                                                                                                                                                Alternative 28: 21.8% accurate, 7.2× speedup?

                                                                                                                                                                                                                                                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -850000:\\ \;\;\;\;a \cdot \left(\left(\left(-y\right) \cdot y3\right) \cdot y5\right)\\ \mathbf{elif}\;y \leq 9 \cdot 10^{-33}:\\ \;\;\;\;j \cdot \left(\left(y0 \cdot y3\right) \cdot y5\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 (<= y -850000.0)
                                                                                                                                                                                                                                                                                   (* a (* (* (- y) y3) y5))
                                                                                                                                                                                                                                                                                   (if (<= y 9e-33) (* j (* (* y0 y3) y5)) (* 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 (y <= -850000.0) {
                                                                                                                                                                                                                                                                                		tmp = a * ((-y * y3) * y5);
                                                                                                                                                                                                                                                                                	} else if (y <= 9e-33) {
                                                                                                                                                                                                                                                                                		tmp = j * ((y0 * y3) * y5);
                                                                                                                                                                                                                                                                                	} 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 (y <= (-850000.0d0)) then
                                                                                                                                                                                                                                                                                        tmp = a * ((-y * y3) * y5)
                                                                                                                                                                                                                                                                                    else if (y <= 9d-33) then
                                                                                                                                                                                                                                                                                        tmp = j * ((y0 * y3) * y5)
                                                                                                                                                                                                                                                                                    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 (y <= -850000.0) {
                                                                                                                                                                                                                                                                                		tmp = a * ((-y * y3) * y5);
                                                                                                                                                                                                                                                                                	} else if (y <= 9e-33) {
                                                                                                                                                                                                                                                                                		tmp = j * ((y0 * y3) * y5);
                                                                                                                                                                                                                                                                                	} 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 y <= -850000.0:
                                                                                                                                                                                                                                                                                		tmp = a * ((-y * y3) * y5)
                                                                                                                                                                                                                                                                                	elif y <= 9e-33:
                                                                                                                                                                                                                                                                                		tmp = j * ((y0 * y3) * y5)
                                                                                                                                                                                                                                                                                	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 (y <= -850000.0)
                                                                                                                                                                                                                                                                                		tmp = Float64(a * Float64(Float64(Float64(-y) * y3) * y5));
                                                                                                                                                                                                                                                                                	elseif (y <= 9e-33)
                                                                                                                                                                                                                                                                                		tmp = Float64(j * Float64(Float64(y0 * y3) * y5));
                                                                                                                                                                                                                                                                                	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 (y <= -850000.0)
                                                                                                                                                                                                                                                                                		tmp = a * ((-y * y3) * y5);
                                                                                                                                                                                                                                                                                	elseif (y <= 9e-33)
                                                                                                                                                                                                                                                                                		tmp = j * ((y0 * y3) * y5);
                                                                                                                                                                                                                                                                                	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[LessEqual[y, -850000.0], N[(a * N[(N[((-y) * y3), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9e-33], N[(j * N[(N[(y0 * y3), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                \begin{array}{l}
                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                \\
                                                                                                                                                                                                                                                                                \begin{array}{l}
                                                                                                                                                                                                                                                                                \mathbf{if}\;y \leq -850000:\\
                                                                                                                                                                                                                                                                                \;\;\;\;a \cdot \left(\left(\left(-y\right) \cdot y3\right) \cdot y5\right)\\
                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                \mathbf{elif}\;y \leq 9 \cdot 10^{-33}:\\
                                                                                                                                                                                                                                                                                \;\;\;\;j \cdot \left(\left(y0 \cdot y3\right) \cdot y5\right)\\
                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                \mathbf{else}:\\
                                                                                                                                                                                                                                                                                \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                \end{array}
                                                                                                                                                                                                                                                                                \end{array}
                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                Derivation
                                                                                                                                                                                                                                                                                1. Split input into 3 regimes
                                                                                                                                                                                                                                                                                2. if y < -8.5e5

                                                                                                                                                                                                                                                                                  1. Initial program 20.7%

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

                                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                  4. Step-by-step derivation
                                                                                                                                                                                                                                                                                    1. mul-1-negN/A

                                                                                                                                                                                                                                                                                      \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                    2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                    3. lower-*.f64N/A

                                                                                                                                                                                                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                    4. lower-neg.f64N/A

                                                                                                                                                                                                                                                                                      \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                                                                                                                                    5. lower--.f64N/A

                                                                                                                                                                                                                                                                                      \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                  5. Applied rewrites40.2%

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

                                                                                                                                                                                                                                                                                    \[\leadsto a \cdot \color{blue}{\left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
                                                                                                                                                                                                                                                                                  7. Step-by-step derivation
                                                                                                                                                                                                                                                                                    1. Applied rewrites43.4%

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

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

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

                                                                                                                                                                                                                                                                                      if -8.5e5 < y < 8.99999999999999982e-33

                                                                                                                                                                                                                                                                                      1. Initial program 36.4%

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

                                                                                                                                                                                                                                                                                        \[\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. mul-1-negN/A

                                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                                                                                                                                                                                                                                        2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                                                                                                                        3. lower-*.f64N/A

                                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                                                                                                                        4. lower-neg.f64N/A

                                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                                                                                                                                                                                                                                        5. lower--.f64N/A

                                                                                                                                                                                                                                                                                          \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                                                                                                                                                                                                                                                      5. Applied rewrites38.0%

                                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                                                                                                                                                                                                                                                      6. Taylor expanded in j around inf

                                                                                                                                                                                                                                                                                        \[\leadsto -1 \cdot \color{blue}{\left(j \cdot \left(y3 \cdot \left(-1 \cdot \left(y0 \cdot y5\right) + y1 \cdot y4\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                      7. Step-by-step derivation
                                                                                                                                                                                                                                                                                        1. Applied rewrites26.4%

                                                                                                                                                                                                                                                                                          \[\leadsto -j \cdot \left(y3 \cdot \mathsf{fma}\left(-1, y0 \cdot y5, y1 \cdot y4\right)\right) \]
                                                                                                                                                                                                                                                                                        2. Taylor expanded in y0 around inf

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

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

                                                                                                                                                                                                                                                                                          if 8.99999999999999982e-33 < y

                                                                                                                                                                                                                                                                                          1. Initial program 30.0%

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

                                                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                          4. Step-by-step derivation
                                                                                                                                                                                                                                                                                            1. mul-1-negN/A

                                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                            2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                            3. lower-*.f64N/A

                                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                            4. lower-neg.f64N/A

                                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                                                                                                                                            5. lower--.f64N/A

                                                                                                                                                                                                                                                                                              \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                          5. Applied rewrites41.0%

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

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

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

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

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

                                                                                                                                                                                                                                                                                              \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -850000:\\ \;\;\;\;a \cdot \left(\left(\left(-y\right) \cdot y3\right) \cdot y5\right)\\ \mathbf{elif}\;y \leq 9 \cdot 10^{-33}:\\ \;\;\;\;j \cdot \left(\left(y0 \cdot y3\right) \cdot y5\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\ \end{array} \]
                                                                                                                                                                                                                                                                                            6. Add Preprocessing

                                                                                                                                                                                                                                                                                            Alternative 29: 23.3% accurate, 7.2× speedup?

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

                                                                                                                                                                                                                                                                                              1. Initial program 20.5%

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

                                                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                              4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                1. mul-1-negN/A

                                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                                2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                3. lower-*.f64N/A

                                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                4. lower-neg.f64N/A

                                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                                                                                                                                                5. lower--.f64N/A

                                                                                                                                                                                                                                                                                                  \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                              5. Applied rewrites40.6%

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

                                                                                                                                                                                                                                                                                                \[\leadsto a \cdot \color{blue}{\left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
                                                                                                                                                                                                                                                                                              7. Step-by-step derivation
                                                                                                                                                                                                                                                                                                1. Applied rewrites36.2%

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

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

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

                                                                                                                                                                                                                                                                                                  if -4.5 < x < 5.5000000000000003e28

                                                                                                                                                                                                                                                                                                  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 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. *-commutativeN/A

                                                                                                                                                                                                                                                                                                      \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                                                                                                                                                                                                                                    2. lower-*.f64N/A

                                                                                                                                                                                                                                                                                                      \[\leadsto \color{blue}{\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) \cdot y2} \]
                                                                                                                                                                                                                                                                                                  5. Applied rewrites37.0%

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

                                                                                                                                                                                                                                                                                                    \[\leadsto \left(y1 \cdot \left(-1 \cdot \left(a \cdot x\right) + k \cdot y4\right)\right) \cdot y2 \]
                                                                                                                                                                                                                                                                                                  7. Step-by-step derivation
                                                                                                                                                                                                                                                                                                    1. Applied rewrites23.1%

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

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

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

                                                                                                                                                                                                                                                                                                      if 5.5000000000000003e28 < x

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

                                                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                                      4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                        1. mul-1-negN/A

                                                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                                        2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                        3. lower-*.f64N/A

                                                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                        4. lower-neg.f64N/A

                                                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                                                                                                                                                        5. lower--.f64N/A

                                                                                                                                                                                                                                                                                                          \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                      5. Applied rewrites39.8%

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

                                                                                                                                                                                                                                                                                                        \[\leadsto a \cdot \color{blue}{\left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
                                                                                                                                                                                                                                                                                                      7. Step-by-step derivation
                                                                                                                                                                                                                                                                                                        1. Applied rewrites40.1%

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

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

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

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

                                                                                                                                                                                                                                                                                                          Alternative 30: 23.5% accurate, 7.2× speedup?

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

                                                                                                                                                                                                                                                                                                            1. Initial program 21.0%

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

                                                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                                            4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                              1. mul-1-negN/A

                                                                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                                              2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                              3. lower-*.f64N/A

                                                                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                              4. lower-neg.f64N/A

                                                                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                                                                                                                                                              5. lower--.f64N/A

                                                                                                                                                                                                                                                                                                                \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                            5. Applied rewrites38.9%

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

                                                                                                                                                                                                                                                                                                              \[\leadsto a \cdot \color{blue}{\left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
                                                                                                                                                                                                                                                                                                            7. Step-by-step derivation
                                                                                                                                                                                                                                                                                                              1. Applied rewrites35.6%

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

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

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

                                                                                                                                                                                                                                                                                                                if -1.95e8 < x < 1.35000000000000005e40

                                                                                                                                                                                                                                                                                                                1. Initial program 37.0%

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

                                                                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                                                                                                                                                                                                                                                                  2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                                                                                                                                                  3. lower-*.f64N/A

                                                                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                                                                                                                                                  4. lower-neg.f64N/A

                                                                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                                                                                                                                                                                                                                                                  5. lower--.f64N/A

                                                                                                                                                                                                                                                                                                                    \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                                                                                                                                                                                                                                                                                5. Applied rewrites44.1%

                                                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                                                                                                                                                                                                                                                                                6. Taylor expanded in j around inf

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

                                                                                                                                                                                                                                                                                                                    \[\leadsto -j \cdot \left(y3 \cdot \mathsf{fma}\left(-1, y0 \cdot y5, y1 \cdot y4\right)\right) \]
                                                                                                                                                                                                                                                                                                                  2. Taylor expanded in y around inf

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

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

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

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

                                                                                                                                                                                                                                                                                                                      if 1.35000000000000005e40 < x

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

                                                                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                                                      4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                        1. mul-1-negN/A

                                                                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                                                        2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                        3. lower-*.f64N/A

                                                                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                        4. lower-neg.f64N/A

                                                                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                                                                                                                                                                        5. lower--.f64N/A

                                                                                                                                                                                                                                                                                                                          \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                      5. Applied rewrites39.1%

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

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

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

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

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

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

                                                                                                                                                                                                                                                                                                                          Alternative 31: 22.9% accurate, 7.2× speedup?

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

                                                                                                                                                                                                                                                                                                                            1. Initial program 21.3%

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

                                                                                                                                                                                                                                                                                                                              \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                                                            4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                              1. mul-1-negN/A

                                                                                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                                                              2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                              3. lower-*.f64N/A

                                                                                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                              4. lower-neg.f64N/A

                                                                                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                                                                                                                                                                              5. lower--.f64N/A

                                                                                                                                                                                                                                                                                                                                \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                            5. Applied rewrites39.5%

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

                                                                                                                                                                                                                                                                                                                              \[\leadsto a \cdot \color{blue}{\left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
                                                                                                                                                                                                                                                                                                                            7. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                              1. Applied rewrites36.1%

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

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

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

                                                                                                                                                                                                                                                                                                                                if -1.35e9 < x < 2.4500000000000001e29

                                                                                                                                                                                                                                                                                                                                1. Initial program 38.0%

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

                                                                                                                                                                                                                                                                                                                                  \[\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. mul-1-negN/A

                                                                                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\mathsf{neg}\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)} \]
                                                                                                                                                                                                                                                                                                                                  2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                                                                                                                                                                  3. lower-*.f64N/A

                                                                                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y3\right)\right) \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)} \]
                                                                                                                                                                                                                                                                                                                                  4. lower-neg.f64N/A

                                                                                                                                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(-y3\right)} \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) \]
                                                                                                                                                                                                                                                                                                                                  5. lower--.f64N/A

                                                                                                                                                                                                                                                                                                                                    \[\leadsto \left(-y3\right) \cdot \color{blue}{\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)} \]
                                                                                                                                                                                                                                                                                                                                5. Applied rewrites44.4%

                                                                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)} \]
                                                                                                                                                                                                                                                                                                                                6. Taylor expanded in j around inf

                                                                                                                                                                                                                                                                                                                                  \[\leadsto -1 \cdot \color{blue}{\left(j \cdot \left(y3 \cdot \left(-1 \cdot \left(y0 \cdot y5\right) + y1 \cdot y4\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                7. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                  1. Applied rewrites28.2%

                                                                                                                                                                                                                                                                                                                                    \[\leadsto -j \cdot \left(y3 \cdot \mathsf{fma}\left(-1, y0 \cdot y5, y1 \cdot y4\right)\right) \]
                                                                                                                                                                                                                                                                                                                                  2. Taylor expanded in y0 around inf

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

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

                                                                                                                                                                                                                                                                                                                                    if 2.4500000000000001e29 < x

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

                                                                                                                                                                                                                                                                                                                                      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                    4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                      1. mul-1-negN/A

                                                                                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                      2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                      3. lower-*.f64N/A

                                                                                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                      4. lower-neg.f64N/A

                                                                                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                                                                                                                                                                                      5. lower--.f64N/A

                                                                                                                                                                                                                                                                                                                                        \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                    5. Applied rewrites39.8%

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

                                                                                                                                                                                                                                                                                                                                      \[\leadsto a \cdot \color{blue}{\left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                    7. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                      1. Applied rewrites40.1%

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

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

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

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

                                                                                                                                                                                                                                                                                                                                        Alternative 32: 17.3% accurate, 12.6× speedup?

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

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

                                                                                                                                                                                                                                                                                                                                          \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                        4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                          1. mul-1-negN/A

                                                                                                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                          2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                          3. lower-*.f64N/A

                                                                                                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                          4. lower-neg.f64N/A

                                                                                                                                                                                                                                                                                                                                            \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                                                                                                                                                                                          5. lower--.f64N/A

                                                                                                                                                                                                                                                                                                                                            \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                        5. Applied rewrites39.7%

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

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

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

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

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

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

                                                                                                                                                                                                                                                                                                                                              Alternative 33: 17.5% accurate, 12.6× speedup?

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

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

                                                                                                                                                                                                                                                                                                                                                \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                              4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                1. mul-1-negN/A

                                                                                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                3. lower-*.f64N/A

                                                                                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                4. lower-neg.f64N/A

                                                                                                                                                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                                                                                                                                                                                                5. lower--.f64N/A

                                                                                                                                                                                                                                                                                                                                                  \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                              5. Applied rewrites39.7%

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

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

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

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

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

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

                                                                                                                                                                                                                                                                                                                                                    Alternative 34: 17.6% accurate, 12.6× speedup?

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

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

                                                                                                                                                                                                                                                                                                                                                      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                    4. Step-by-step derivation
                                                                                                                                                                                                                                                                                                                                                      1. mul-1-negN/A

                                                                                                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\mathsf{neg}\left(a \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                      2. distribute-lft-neg-inN/A

                                                                                                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                      3. lower-*.f64N/A

                                                                                                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                      4. lower-neg.f64N/A

                                                                                                                                                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
                                                                                                                                                                                                                                                                                                                                                      5. lower--.f64N/A

                                                                                                                                                                                                                                                                                                                                                        \[\leadsto \left(-a\right) \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) + y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
                                                                                                                                                                                                                                                                                                                                                    5. Applied rewrites39.7%

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

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

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

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

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

                                                                                                                                                                                                                                                                                                                                                        Developer Target 1: 28.5% 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 2024352 
                                                                                                                                                                                                                                                                                                                                                        (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)))))