Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, D

Percentage Accurate: 58.2% → 97.7%
Time: 7.4s
Alternatives: 13
Speedup: 7.9×

Specification

?
\[\begin{array}{l} \\ x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (+
  x
  (/
   (*
    y
    (+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
   (+
    (* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
    0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
	return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
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)
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
    code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b):
	return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b)
	return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)))
end
function tmp = code(x, y, z, t, a, b)
	tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}

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 13 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: 58.2% accurate, 1.0× speedup?

\[\begin{array}{l} \\ x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (+
  x
  (/
   (*
    y
    (+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
   (+
    (* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
    0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
	return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
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)
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
    code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b):
	return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b)
	return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)))
end
function tmp = code(x, y, z, t, a, b)
	tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}

Alternative 1: 97.7% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z - -15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)\\ \mathbf{if}\;x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \leq \infty:\\ \;\;\;\;\mathsf{fma}\left(y, z \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(3.13060547623, z, 11.1667541262\right), z, t\right), z, a\right)}{t\_1}, \mathsf{fma}\left(b, \frac{y}{t\_1}, x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x + \left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{z}\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1
         (fma
          (fma (fma (- z -15.234687407) z 31.4690115749) z 11.9400905721)
          z
          0.607771387771)))
   (if (<=
        (+
         x
         (/
          (*
           y
           (+
            (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
            b))
          (+
           (*
            (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721)
            z)
           0.607771387771)))
        INFINITY)
     (fma
      y
      (* z (/ (fma (fma (fma 3.13060547623 z 11.1667541262) z t) z a) t_1))
      (fma b (/ y t_1) x))
     (+
      x
      (-
       (fma 3.13060547623 y (* 11.1667541262 (/ y z)))
       (* 47.69379582500642 (/ y z)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = fma(fma(fma((z - -15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771);
	double tmp;
	if ((x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) <= ((double) INFINITY)) {
		tmp = fma(y, (z * (fma(fma(fma(3.13060547623, z, 11.1667541262), z, t), z, a) / t_1)), fma(b, (y / t_1), x));
	} else {
		tmp = x + (fma(3.13060547623, y, (11.1667541262 * (y / z))) - (47.69379582500642 * (y / z)));
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = fma(fma(fma(Float64(z - -15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771)
	tmp = 0.0
	if (Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) <= Inf)
		tmp = fma(y, Float64(z * Float64(fma(fma(fma(3.13060547623, z, 11.1667541262), z, t), z, a) / t_1)), fma(b, Float64(y / t_1), x));
	else
		tmp = Float64(x + Float64(fma(3.13060547623, y, Float64(11.1667541262 * Float64(y / z))) - Float64(47.69379582500642 * Float64(y / z))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(N[(z - -15.234687407), $MachinePrecision] * z + 31.4690115749), $MachinePrecision] * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision]}, If[LessEqual[N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(y * N[(z * N[(N[(N[(N[(3.13060547623 * z + 11.1667541262), $MachinePrecision] * z + t), $MachinePrecision] * z + a), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision] + N[(b * N[(y / t$95$1), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(3.13060547623 * y + N[(11.1667541262 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(47.69379582500642 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z - -15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)\\
\mathbf{if}\;x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(y, z \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(3.13060547623, z, 11.1667541262\right), z, t\right), z, a\right)}{t\_1}, \mathsf{fma}\left(b, \frac{y}{t\_1}, x\right)\right)\\

\mathbf{else}:\\
\;\;\;\;x + \left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{z}\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (+.f64 x (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64)))) < +inf.0

    1. Initial program 58.2%

      \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
    2. Applied rewrites62.4%

      \[\leadsto \color{blue}{\mathsf{fma}\left(y, z \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(3.13060547623, z, 11.1667541262\right), z, t\right), z, a\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z - -15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}, \mathsf{fma}\left(b, \frac{y}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z - -15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}, x\right)\right)} \]

    if +inf.0 < (+.f64 x (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))))

    1. Initial program 58.2%

      \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
    2. Taylor expanded in z around inf

      \[\leadsto x + \color{blue}{\left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right)} \]
    3. Step-by-step derivation
      1. lower--.f64N/A

        \[\leadsto x + \left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \color{blue}{\frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}}\right) \]
      2. lower-fma.f64N/A

        \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \color{blue}{\frac{4769379582500641883561}{100000000000000000000}} \cdot \frac{y}{z}\right) \]
      3. lower-*.f64N/A

        \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) \]
      4. lower-/.f64N/A

        \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) \]
      5. lower-*.f64N/A

        \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \color{blue}{\frac{y}{z}}\right) \]
      6. lower-/.f6456.6

        \[\leadsto x + \left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{\color{blue}{z}}\right) \]
    4. Applied rewrites56.6%

      \[\leadsto x + \color{blue}{\left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{z}\right)} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 2: 97.1% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \leq \infty:\\ \;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(3.13060547623, z, 11.1667541262\right), z, t\right), z, a\right), z, b\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z - -15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}, y, x\right)\\ \mathbf{else}:\\ \;\;\;\;x + \left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{z}\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<=
      (+
       x
       (/
        (*
         y
         (+
          (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
          b))
        (+
         (*
          (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721)
          z)
         0.607771387771)))
      INFINITY)
   (fma
    (/
     (fma (fma (fma (fma 3.13060547623 z 11.1667541262) z t) z a) z b)
     (fma
      (fma (fma (- z -15.234687407) z 31.4690115749) z 11.9400905721)
      z
      0.607771387771))
    y
    x)
   (+
    x
    (-
     (fma 3.13060547623 y (* 11.1667541262 (/ y z)))
     (* 47.69379582500642 (/ y z))))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if ((x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) <= ((double) INFINITY)) {
		tmp = fma((fma(fma(fma(fma(3.13060547623, z, 11.1667541262), z, t), z, a), z, b) / fma(fma(fma((z - -15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771)), y, x);
	} else {
		tmp = x + (fma(3.13060547623, y, (11.1667541262 * (y / z))) - (47.69379582500642 * (y / z)));
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) <= Inf)
		tmp = fma(Float64(fma(fma(fma(fma(3.13060547623, z, 11.1667541262), z, t), z, a), z, b) / fma(fma(fma(Float64(z - -15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771)), y, x);
	else
		tmp = Float64(x + Float64(fma(3.13060547623, y, Float64(11.1667541262 * Float64(y / z))) - Float64(47.69379582500642 * Float64(y / z))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(N[(N[(N[(3.13060547623 * z + 11.1667541262), $MachinePrecision] * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision] / N[(N[(N[(N[(z - -15.234687407), $MachinePrecision] * z + 31.4690115749), $MachinePrecision] * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], N[(x + N[(N[(3.13060547623 * y + N[(11.1667541262 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(47.69379582500642 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(3.13060547623, z, 11.1667541262\right), z, t\right), z, a\right), z, b\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z - -15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}, y, x\right)\\

\mathbf{else}:\\
\;\;\;\;x + \left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{z}\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (+.f64 x (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64)))) < +inf.0

    1. Initial program 58.2%

      \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
    2. Applied rewrites60.1%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(3.13060547623, z, 11.1667541262\right), z, t\right), z, a\right), z, b\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z - -15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}, y, x\right)} \]

    if +inf.0 < (+.f64 x (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))))

    1. Initial program 58.2%

      \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
    2. Taylor expanded in z around inf

      \[\leadsto x + \color{blue}{\left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right)} \]
    3. Step-by-step derivation
      1. lower--.f64N/A

        \[\leadsto x + \left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \color{blue}{\frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}}\right) \]
      2. lower-fma.f64N/A

        \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \color{blue}{\frac{4769379582500641883561}{100000000000000000000}} \cdot \frac{y}{z}\right) \]
      3. lower-*.f64N/A

        \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) \]
      4. lower-/.f64N/A

        \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) \]
      5. lower-*.f64N/A

        \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \color{blue}{\frac{y}{z}}\right) \]
      6. lower-/.f6456.6

        \[\leadsto x + \left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{\color{blue}{z}}\right) \]
    4. Applied rewrites56.6%

      \[\leadsto x + \color{blue}{\left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{z}\right)} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 3: 94.7% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -8.2 \cdot 10^{+17}:\\ \;\;\;\;x + 3.13060547623 \cdot y\\ \mathbf{elif}\;z \leq 7 \cdot 10^{+26}:\\ \;\;\;\;x + \frac{y \cdot \left(\left(t \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}\\ \mathbf{else}:\\ \;\;\;\;x + \left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{z}\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= z -8.2e+17)
   (+ x (* 3.13060547623 y))
   (if (<= z 7e+26)
     (+
      x
      (/
       (* y (+ (* (+ (* t z) a) z) b))
       (+
        (*
         (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721)
         z)
        0.607771387771)))
     (+
      x
      (-
       (fma 3.13060547623 y (* 11.1667541262 (/ y z)))
       (* 47.69379582500642 (/ y z)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (z <= -8.2e+17) {
		tmp = x + (3.13060547623 * y);
	} else if (z <= 7e+26) {
		tmp = x + ((y * ((((t * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
	} else {
		tmp = x + (fma(3.13060547623, y, (11.1667541262 * (y / z))) - (47.69379582500642 * (y / z)));
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (z <= -8.2e+17)
		tmp = Float64(x + Float64(3.13060547623 * y));
	elseif (z <= 7e+26)
		tmp = Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(t * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)));
	else
		tmp = Float64(x + Float64(fma(3.13060547623, y, Float64(11.1667541262 * Float64(y / z))) - Float64(47.69379582500642 * Float64(y / z))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -8.2e+17], N[(x + N[(3.13060547623 * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7e+26], N[(x + N[(N[(y * N[(N[(N[(N[(t * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(3.13060547623 * y + N[(11.1667541262 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(47.69379582500642 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.2 \cdot 10^{+17}:\\
\;\;\;\;x + 3.13060547623 \cdot y\\

\mathbf{elif}\;z \leq 7 \cdot 10^{+26}:\\
\;\;\;\;x + \frac{y \cdot \left(\left(t \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}\\

\mathbf{else}:\\
\;\;\;\;x + \left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{z}\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -8.2e17

    1. Initial program 58.2%

      \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
    2. Taylor expanded in z around inf

      \[\leadsto x + \color{blue}{\frac{313060547623}{100000000000} \cdot y} \]
    3. Step-by-step derivation
      1. lower-*.f6463.0

        \[\leadsto x + 3.13060547623 \cdot \color{blue}{y} \]
    4. Applied rewrites63.0%

      \[\leadsto x + \color{blue}{3.13060547623 \cdot y} \]

    if -8.2e17 < z < 6.9999999999999998e26

    1. Initial program 58.2%

      \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
    2. Taylor expanded in z around 0

      \[\leadsto x + \frac{y \cdot \left(\left(\color{blue}{t} \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + \frac{15234687407}{1000000000}\right) \cdot z + \frac{314690115749}{10000000000}\right) \cdot z + \frac{119400905721}{10000000000}\right) \cdot z + \frac{607771387771}{1000000000000}} \]
    3. Step-by-step derivation
      1. Applied rewrites61.3%

        \[\leadsto x + \frac{y \cdot \left(\left(\color{blue}{t} \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]

      if 6.9999999999999998e26 < z

      1. Initial program 58.2%

        \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
      2. Taylor expanded in z around inf

        \[\leadsto x + \color{blue}{\left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right)} \]
      3. Step-by-step derivation
        1. lower--.f64N/A

          \[\leadsto x + \left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \color{blue}{\frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}}\right) \]
        2. lower-fma.f64N/A

          \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \color{blue}{\frac{4769379582500641883561}{100000000000000000000}} \cdot \frac{y}{z}\right) \]
        3. lower-*.f64N/A

          \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) \]
        4. lower-/.f64N/A

          \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) \]
        5. lower-*.f64N/A

          \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \color{blue}{\frac{y}{z}}\right) \]
        6. lower-/.f6456.6

          \[\leadsto x + \left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{\color{blue}{z}}\right) \]
      4. Applied rewrites56.6%

        \[\leadsto x + \color{blue}{\left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{z}\right)} \]
    4. Recombined 3 regimes into one program.
    5. Add Preprocessing

    Alternative 4: 93.1% accurate, 1.1× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -0.05:\\ \;\;\;\;y \cdot \left(3.13060547623 - \frac{36.52704169880642}{z}\right) + x\\ \mathbf{elif}\;z \leq 4.1 \cdot 10^{+20}:\\ \;\;\;\;x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{11.9400905721 \cdot z + 0.607771387771}\\ \mathbf{else}:\\ \;\;\;\;x + \left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{z}\right)\\ \end{array} \end{array} \]
    (FPCore (x y z t a b)
     :precision binary64
     (if (<= z -0.05)
       (+ (* y (- 3.13060547623 (/ 36.52704169880642 z))) x)
       (if (<= z 4.1e+20)
         (+
          x
          (/
           (*
            y
            (+
             (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
             b))
           (+ (* 11.9400905721 z) 0.607771387771)))
         (+
          x
          (-
           (fma 3.13060547623 y (* 11.1667541262 (/ y z)))
           (* 47.69379582500642 (/ y z)))))))
    double code(double x, double y, double z, double t, double a, double b) {
    	double tmp;
    	if (z <= -0.05) {
    		tmp = (y * (3.13060547623 - (36.52704169880642 / z))) + x;
    	} else if (z <= 4.1e+20) {
    		tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / ((11.9400905721 * z) + 0.607771387771));
    	} else {
    		tmp = x + (fma(3.13060547623, y, (11.1667541262 * (y / z))) - (47.69379582500642 * (y / z)));
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b)
    	tmp = 0.0
    	if (z <= -0.05)
    		tmp = Float64(Float64(y * Float64(3.13060547623 - Float64(36.52704169880642 / z))) + x);
    	elseif (z <= 4.1e+20)
    		tmp = Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(11.9400905721 * z) + 0.607771387771)));
    	else
    		tmp = Float64(x + Float64(fma(3.13060547623, y, Float64(11.1667541262 * Float64(y / z))) - Float64(47.69379582500642 * Float64(y / z))));
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -0.05], N[(N[(y * N[(3.13060547623 - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 4.1e+20], N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(11.9400905721 * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(3.13060547623 * y + N[(11.1667541262 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(47.69379582500642 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;z \leq -0.05:\\
    \;\;\;\;y \cdot \left(3.13060547623 - \frac{36.52704169880642}{z}\right) + x\\
    
    \mathbf{elif}\;z \leq 4.1 \cdot 10^{+20}:\\
    \;\;\;\;x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{11.9400905721 \cdot z + 0.607771387771}\\
    
    \mathbf{else}:\\
    \;\;\;\;x + \left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{z}\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if z < -0.050000000000000003

      1. Initial program 58.2%

        \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
      2. Taylor expanded in z around -inf

        \[\leadsto x + \color{blue}{\left(-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z} + \frac{313060547623}{100000000000} \cdot y\right)} \]
      3. Step-by-step derivation
        1. lower-fma.f64N/A

          \[\leadsto x + \mathsf{fma}\left(-1, \color{blue}{\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}}, \frac{313060547623}{100000000000} \cdot y\right) \]
        2. lower-/.f64N/A

          \[\leadsto x + \mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{z}}, \frac{313060547623}{100000000000} \cdot y\right) \]
        3. lower--.f64N/A

          \[\leadsto x + \mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}, \frac{313060547623}{100000000000} \cdot y\right) \]
        4. lower-*.f64N/A

          \[\leadsto x + \mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}, \frac{313060547623}{100000000000} \cdot y\right) \]
        5. lower-*.f64N/A

          \[\leadsto x + \mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}, \frac{313060547623}{100000000000} \cdot y\right) \]
        6. lower-*.f6459.1

          \[\leadsto x + \mathsf{fma}\left(-1, \frac{-11.1667541262 \cdot y - -47.69379582500642 \cdot y}{z}, 3.13060547623 \cdot y\right) \]
      4. Applied rewrites59.1%

        \[\leadsto x + \color{blue}{\mathsf{fma}\left(-1, \frac{-11.1667541262 \cdot y - -47.69379582500642 \cdot y}{z}, 3.13060547623 \cdot y\right)} \]
      5. Step-by-step derivation
        1. lift-+.f64N/A

          \[\leadsto \color{blue}{x + \mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}, \frac{313060547623}{100000000000} \cdot y\right)} \]
        2. +-commutativeN/A

          \[\leadsto \color{blue}{\mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}, \frac{313060547623}{100000000000} \cdot y\right) + x} \]
        3. lower-+.f6459.1

          \[\leadsto \color{blue}{\mathsf{fma}\left(-1, \frac{-11.1667541262 \cdot y - -47.69379582500642 \cdot y}{z}, 3.13060547623 \cdot y\right) + x} \]
      6. Applied rewrites59.1%

        \[\leadsto \color{blue}{y \cdot \left(3.13060547623 - \frac{36.52704169880642}{z}\right) + x} \]

      if -0.050000000000000003 < z < 4.1e20

      1. Initial program 58.2%

        \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
      2. Taylor expanded in z around 0

        \[\leadsto x + \frac{y \cdot \left(\left(\left(\left(z \cdot \frac{313060547623}{100000000000} + \frac{55833770631}{5000000000}\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\color{blue}{\frac{119400905721}{10000000000}} \cdot z + \frac{607771387771}{1000000000000}} \]
      3. Step-by-step derivation
        1. Applied rewrites54.2%

          \[\leadsto x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\color{blue}{11.9400905721} \cdot z + 0.607771387771} \]

        if 4.1e20 < z

        1. Initial program 58.2%

          \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
        2. Taylor expanded in z around inf

          \[\leadsto x + \color{blue}{\left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right)} \]
        3. Step-by-step derivation
          1. lower--.f64N/A

            \[\leadsto x + \left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \color{blue}{\frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}}\right) \]
          2. lower-fma.f64N/A

            \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \color{blue}{\frac{4769379582500641883561}{100000000000000000000}} \cdot \frac{y}{z}\right) \]
          3. lower-*.f64N/A

            \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) \]
          4. lower-/.f64N/A

            \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) \]
          5. lower-*.f64N/A

            \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \color{blue}{\frac{y}{z}}\right) \]
          6. lower-/.f6456.6

            \[\leadsto x + \left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{\color{blue}{z}}\right) \]
        4. Applied rewrites56.6%

          \[\leadsto x + \color{blue}{\left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{z}\right)} \]
      4. Recombined 3 regimes into one program.
      5. Add Preprocessing

      Alternative 5: 92.9% accurate, 1.3× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -11000000000:\\ \;\;\;\;x + 3.13060547623 \cdot y\\ \mathbf{elif}\;z \leq 4.1 \cdot 10^{+20}:\\ \;\;\;\;x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{0.607771387771}\\ \mathbf{else}:\\ \;\;\;\;x + \left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{z}\right)\\ \end{array} \end{array} \]
      (FPCore (x y z t a b)
       :precision binary64
       (if (<= z -11000000000.0)
         (+ x (* 3.13060547623 y))
         (if (<= z 4.1e+20)
           (+
            x
            (/
             (*
              y
              (+
               (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
               b))
             0.607771387771))
           (+
            x
            (-
             (fma 3.13060547623 y (* 11.1667541262 (/ y z)))
             (* 47.69379582500642 (/ y z)))))))
      double code(double x, double y, double z, double t, double a, double b) {
      	double tmp;
      	if (z <= -11000000000.0) {
      		tmp = x + (3.13060547623 * y);
      	} else if (z <= 4.1e+20) {
      		tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / 0.607771387771);
      	} else {
      		tmp = x + (fma(3.13060547623, y, (11.1667541262 * (y / z))) - (47.69379582500642 * (y / z)));
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a, b)
      	tmp = 0.0
      	if (z <= -11000000000.0)
      		tmp = Float64(x + Float64(3.13060547623 * y));
      	elseif (z <= 4.1e+20)
      		tmp = Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / 0.607771387771));
      	else
      		tmp = Float64(x + Float64(fma(3.13060547623, y, Float64(11.1667541262 * Float64(y / z))) - Float64(47.69379582500642 * Float64(y / z))));
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -11000000000.0], N[(x + N[(3.13060547623 * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.1e+20], N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / 0.607771387771), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(3.13060547623 * y + N[(11.1667541262 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(47.69379582500642 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;z \leq -11000000000:\\
      \;\;\;\;x + 3.13060547623 \cdot y\\
      
      \mathbf{elif}\;z \leq 4.1 \cdot 10^{+20}:\\
      \;\;\;\;x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{0.607771387771}\\
      
      \mathbf{else}:\\
      \;\;\;\;x + \left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{z}\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if z < -1.1e10

        1. Initial program 58.2%

          \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
        2. Taylor expanded in z around inf

          \[\leadsto x + \color{blue}{\frac{313060547623}{100000000000} \cdot y} \]
        3. Step-by-step derivation
          1. lower-*.f6463.0

            \[\leadsto x + 3.13060547623 \cdot \color{blue}{y} \]
        4. Applied rewrites63.0%

          \[\leadsto x + \color{blue}{3.13060547623 \cdot y} \]

        if -1.1e10 < z < 4.1e20

        1. Initial program 58.2%

          \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
        2. Taylor expanded in z around 0

          \[\leadsto x + \frac{y \cdot \left(\left(\left(\left(z \cdot \frac{313060547623}{100000000000} + \frac{55833770631}{5000000000}\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\color{blue}{\frac{607771387771}{1000000000000}}} \]
        3. Step-by-step derivation
          1. Applied rewrites54.9%

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

          if 4.1e20 < z

          1. Initial program 58.2%

            \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
          2. Taylor expanded in z around inf

            \[\leadsto x + \color{blue}{\left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right)} \]
          3. Step-by-step derivation
            1. lower--.f64N/A

              \[\leadsto x + \left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \color{blue}{\frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}}\right) \]
            2. lower-fma.f64N/A

              \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \color{blue}{\frac{4769379582500641883561}{100000000000000000000}} \cdot \frac{y}{z}\right) \]
            3. lower-*.f64N/A

              \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) \]
            4. lower-/.f64N/A

              \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) \]
            5. lower-*.f64N/A

              \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \color{blue}{\frac{y}{z}}\right) \]
            6. lower-/.f6456.6

              \[\leadsto x + \left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{\color{blue}{z}}\right) \]
          4. Applied rewrites56.6%

            \[\leadsto x + \color{blue}{\left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{z}\right)} \]
        4. Recombined 3 regimes into one program.
        5. Add Preprocessing

        Alternative 6: 88.8% accurate, 1.3× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -0.55:\\ \;\;\;\;y \cdot \left(3.13060547623 - \frac{36.52704169880642}{z}\right) + x\\ \mathbf{elif}\;z \leq 2.8 \cdot 10^{+20}:\\ \;\;\;\;x + \frac{\mathsf{fma}\left(b, y, z \cdot \mathsf{fma}\left(a, y, t \cdot \left(y \cdot z\right)\right)\right)}{11.9400905721 \cdot z + 0.607771387771}\\ \mathbf{else}:\\ \;\;\;\;x + \left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{z}\right)\\ \end{array} \end{array} \]
        (FPCore (x y z t a b)
         :precision binary64
         (if (<= z -0.55)
           (+ (* y (- 3.13060547623 (/ 36.52704169880642 z))) x)
           (if (<= z 2.8e+20)
             (+
              x
              (/
               (fma b y (* z (fma a y (* t (* y z)))))
               (+ (* 11.9400905721 z) 0.607771387771)))
             (+
              x
              (-
               (fma 3.13060547623 y (* 11.1667541262 (/ y z)))
               (* 47.69379582500642 (/ y z)))))))
        double code(double x, double y, double z, double t, double a, double b) {
        	double tmp;
        	if (z <= -0.55) {
        		tmp = (y * (3.13060547623 - (36.52704169880642 / z))) + x;
        	} else if (z <= 2.8e+20) {
        		tmp = x + (fma(b, y, (z * fma(a, y, (t * (y * z))))) / ((11.9400905721 * z) + 0.607771387771));
        	} else {
        		tmp = x + (fma(3.13060547623, y, (11.1667541262 * (y / z))) - (47.69379582500642 * (y / z)));
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a, b)
        	tmp = 0.0
        	if (z <= -0.55)
        		tmp = Float64(Float64(y * Float64(3.13060547623 - Float64(36.52704169880642 / z))) + x);
        	elseif (z <= 2.8e+20)
        		tmp = Float64(x + Float64(fma(b, y, Float64(z * fma(a, y, Float64(t * Float64(y * z))))) / Float64(Float64(11.9400905721 * z) + 0.607771387771)));
        	else
        		tmp = Float64(x + Float64(fma(3.13060547623, y, Float64(11.1667541262 * Float64(y / z))) - Float64(47.69379582500642 * Float64(y / z))));
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -0.55], N[(N[(y * N[(3.13060547623 - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 2.8e+20], N[(x + N[(N[(b * y + N[(z * N[(a * y + N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(11.9400905721 * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(3.13060547623 * y + N[(11.1667541262 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(47.69379582500642 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;z \leq -0.55:\\
        \;\;\;\;y \cdot \left(3.13060547623 - \frac{36.52704169880642}{z}\right) + x\\
        
        \mathbf{elif}\;z \leq 2.8 \cdot 10^{+20}:\\
        \;\;\;\;x + \frac{\mathsf{fma}\left(b, y, z \cdot \mathsf{fma}\left(a, y, t \cdot \left(y \cdot z\right)\right)\right)}{11.9400905721 \cdot z + 0.607771387771}\\
        
        \mathbf{else}:\\
        \;\;\;\;x + \left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{z}\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if z < -0.55000000000000004

          1. Initial program 58.2%

            \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
          2. Taylor expanded in z around -inf

            \[\leadsto x + \color{blue}{\left(-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z} + \frac{313060547623}{100000000000} \cdot y\right)} \]
          3. Step-by-step derivation
            1. lower-fma.f64N/A

              \[\leadsto x + \mathsf{fma}\left(-1, \color{blue}{\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}}, \frac{313060547623}{100000000000} \cdot y\right) \]
            2. lower-/.f64N/A

              \[\leadsto x + \mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{z}}, \frac{313060547623}{100000000000} \cdot y\right) \]
            3. lower--.f64N/A

              \[\leadsto x + \mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}, \frac{313060547623}{100000000000} \cdot y\right) \]
            4. lower-*.f64N/A

              \[\leadsto x + \mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}, \frac{313060547623}{100000000000} \cdot y\right) \]
            5. lower-*.f64N/A

              \[\leadsto x + \mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}, \frac{313060547623}{100000000000} \cdot y\right) \]
            6. lower-*.f6459.1

              \[\leadsto x + \mathsf{fma}\left(-1, \frac{-11.1667541262 \cdot y - -47.69379582500642 \cdot y}{z}, 3.13060547623 \cdot y\right) \]
          4. Applied rewrites59.1%

            \[\leadsto x + \color{blue}{\mathsf{fma}\left(-1, \frac{-11.1667541262 \cdot y - -47.69379582500642 \cdot y}{z}, 3.13060547623 \cdot y\right)} \]
          5. Step-by-step derivation
            1. lift-+.f64N/A

              \[\leadsto \color{blue}{x + \mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}, \frac{313060547623}{100000000000} \cdot y\right)} \]
            2. +-commutativeN/A

              \[\leadsto \color{blue}{\mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}, \frac{313060547623}{100000000000} \cdot y\right) + x} \]
            3. lower-+.f6459.1

              \[\leadsto \color{blue}{\mathsf{fma}\left(-1, \frac{-11.1667541262 \cdot y - -47.69379582500642 \cdot y}{z}, 3.13060547623 \cdot y\right) + x} \]
          6. Applied rewrites59.1%

            \[\leadsto \color{blue}{y \cdot \left(3.13060547623 - \frac{36.52704169880642}{z}\right) + x} \]

          if -0.55000000000000004 < z < 2.8e20

          1. Initial program 58.2%

            \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
          2. Taylor expanded in z around 0

            \[\leadsto x + \frac{\color{blue}{b \cdot y + z \cdot \left(a \cdot y + t \cdot \left(y \cdot z\right)\right)}}{\left(\left(\left(z + \frac{15234687407}{1000000000}\right) \cdot z + \frac{314690115749}{10000000000}\right) \cdot z + \frac{119400905721}{10000000000}\right) \cdot z + \frac{607771387771}{1000000000000}} \]
          3. Step-by-step derivation
            1. lower-fma.f64N/A

              \[\leadsto x + \frac{\mathsf{fma}\left(b, \color{blue}{y}, z \cdot \left(a \cdot y + t \cdot \left(y \cdot z\right)\right)\right)}{\left(\left(\left(z + \frac{15234687407}{1000000000}\right) \cdot z + \frac{314690115749}{10000000000}\right) \cdot z + \frac{119400905721}{10000000000}\right) \cdot z + \frac{607771387771}{1000000000000}} \]
            2. lower-*.f64N/A

              \[\leadsto x + \frac{\mathsf{fma}\left(b, y, z \cdot \left(a \cdot y + t \cdot \left(y \cdot z\right)\right)\right)}{\left(\left(\left(z + \frac{15234687407}{1000000000}\right) \cdot z + \frac{314690115749}{10000000000}\right) \cdot z + \frac{119400905721}{10000000000}\right) \cdot z + \frac{607771387771}{1000000000000}} \]
            3. lower-fma.f64N/A

              \[\leadsto x + \frac{\mathsf{fma}\left(b, y, z \cdot \mathsf{fma}\left(a, y, t \cdot \left(y \cdot z\right)\right)\right)}{\left(\left(\left(z + \frac{15234687407}{1000000000}\right) \cdot z + \frac{314690115749}{10000000000}\right) \cdot z + \frac{119400905721}{10000000000}\right) \cdot z + \frac{607771387771}{1000000000000}} \]
            4. lower-*.f64N/A

              \[\leadsto x + \frac{\mathsf{fma}\left(b, y, z \cdot \mathsf{fma}\left(a, y, t \cdot \left(y \cdot z\right)\right)\right)}{\left(\left(\left(z + \frac{15234687407}{1000000000}\right) \cdot z + \frac{314690115749}{10000000000}\right) \cdot z + \frac{119400905721}{10000000000}\right) \cdot z + \frac{607771387771}{1000000000000}} \]
            5. lower-*.f6462.4

              \[\leadsto x + \frac{\mathsf{fma}\left(b, y, z \cdot \mathsf{fma}\left(a, y, t \cdot \left(y \cdot z\right)\right)\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
          4. Applied rewrites62.4%

            \[\leadsto x + \frac{\color{blue}{\mathsf{fma}\left(b, y, z \cdot \mathsf{fma}\left(a, y, t \cdot \left(y \cdot z\right)\right)\right)}}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
          5. Taylor expanded in z around 0

            \[\leadsto x + \frac{\mathsf{fma}\left(b, y, z \cdot \mathsf{fma}\left(a, y, t \cdot \left(y \cdot z\right)\right)\right)}{\color{blue}{\frac{119400905721}{10000000000}} \cdot z + \frac{607771387771}{1000000000000}} \]
          6. Step-by-step derivation
            1. Applied rewrites56.7%

              \[\leadsto x + \frac{\mathsf{fma}\left(b, y, z \cdot \mathsf{fma}\left(a, y, t \cdot \left(y \cdot z\right)\right)\right)}{\color{blue}{11.9400905721} \cdot z + 0.607771387771} \]

            if 2.8e20 < z

            1. Initial program 58.2%

              \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
            2. Taylor expanded in z around inf

              \[\leadsto x + \color{blue}{\left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right)} \]
            3. Step-by-step derivation
              1. lower--.f64N/A

                \[\leadsto x + \left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \color{blue}{\frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}}\right) \]
              2. lower-fma.f64N/A

                \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \color{blue}{\frac{4769379582500641883561}{100000000000000000000}} \cdot \frac{y}{z}\right) \]
              3. lower-*.f64N/A

                \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) \]
              4. lower-/.f64N/A

                \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) \]
              5. lower-*.f64N/A

                \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \color{blue}{\frac{y}{z}}\right) \]
              6. lower-/.f6456.6

                \[\leadsto x + \left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{\color{blue}{z}}\right) \]
            4. Applied rewrites56.6%

              \[\leadsto x + \color{blue}{\left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{z}\right)} \]
          7. Recombined 3 regimes into one program.
          8. Add Preprocessing

          Alternative 7: 88.5% accurate, 1.6× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -4.1:\\ \;\;\;\;y \cdot \left(3.13060547623 - \frac{36.52704169880642}{z}\right) + x\\ \mathbf{elif}\;z \leq 2.65 \cdot 10^{+20}:\\ \;\;\;\;x + \frac{\mathsf{fma}\left(b, y, z \cdot \mathsf{fma}\left(a, y, t \cdot \left(y \cdot z\right)\right)\right)}{0.607771387771}\\ \mathbf{else}:\\ \;\;\;\;x + \left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{z}\right)\\ \end{array} \end{array} \]
          (FPCore (x y z t a b)
           :precision binary64
           (if (<= z -4.1)
             (+ (* y (- 3.13060547623 (/ 36.52704169880642 z))) x)
             (if (<= z 2.65e+20)
               (+ x (/ (fma b y (* z (fma a y (* t (* y z))))) 0.607771387771))
               (+
                x
                (-
                 (fma 3.13060547623 y (* 11.1667541262 (/ y z)))
                 (* 47.69379582500642 (/ y z)))))))
          double code(double x, double y, double z, double t, double a, double b) {
          	double tmp;
          	if (z <= -4.1) {
          		tmp = (y * (3.13060547623 - (36.52704169880642 / z))) + x;
          	} else if (z <= 2.65e+20) {
          		tmp = x + (fma(b, y, (z * fma(a, y, (t * (y * z))))) / 0.607771387771);
          	} else {
          		tmp = x + (fma(3.13060547623, y, (11.1667541262 * (y / z))) - (47.69379582500642 * (y / z)));
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a, b)
          	tmp = 0.0
          	if (z <= -4.1)
          		tmp = Float64(Float64(y * Float64(3.13060547623 - Float64(36.52704169880642 / z))) + x);
          	elseif (z <= 2.65e+20)
          		tmp = Float64(x + Float64(fma(b, y, Float64(z * fma(a, y, Float64(t * Float64(y * z))))) / 0.607771387771));
          	else
          		tmp = Float64(x + Float64(fma(3.13060547623, y, Float64(11.1667541262 * Float64(y / z))) - Float64(47.69379582500642 * Float64(y / z))));
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -4.1], N[(N[(y * N[(3.13060547623 - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 2.65e+20], N[(x + N[(N[(b * y + N[(z * N[(a * y + N[(t * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 0.607771387771), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(3.13060547623 * y + N[(11.1667541262 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(47.69379582500642 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;z \leq -4.1:\\
          \;\;\;\;y \cdot \left(3.13060547623 - \frac{36.52704169880642}{z}\right) + x\\
          
          \mathbf{elif}\;z \leq 2.65 \cdot 10^{+20}:\\
          \;\;\;\;x + \frac{\mathsf{fma}\left(b, y, z \cdot \mathsf{fma}\left(a, y, t \cdot \left(y \cdot z\right)\right)\right)}{0.607771387771}\\
          
          \mathbf{else}:\\
          \;\;\;\;x + \left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{z}\right)\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if z < -4.0999999999999996

            1. Initial program 58.2%

              \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
            2. Taylor expanded in z around -inf

              \[\leadsto x + \color{blue}{\left(-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z} + \frac{313060547623}{100000000000} \cdot y\right)} \]
            3. Step-by-step derivation
              1. lower-fma.f64N/A

                \[\leadsto x + \mathsf{fma}\left(-1, \color{blue}{\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}}, \frac{313060547623}{100000000000} \cdot y\right) \]
              2. lower-/.f64N/A

                \[\leadsto x + \mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{z}}, \frac{313060547623}{100000000000} \cdot y\right) \]
              3. lower--.f64N/A

                \[\leadsto x + \mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}, \frac{313060547623}{100000000000} \cdot y\right) \]
              4. lower-*.f64N/A

                \[\leadsto x + \mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}, \frac{313060547623}{100000000000} \cdot y\right) \]
              5. lower-*.f64N/A

                \[\leadsto x + \mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}, \frac{313060547623}{100000000000} \cdot y\right) \]
              6. lower-*.f6459.1

                \[\leadsto x + \mathsf{fma}\left(-1, \frac{-11.1667541262 \cdot y - -47.69379582500642 \cdot y}{z}, 3.13060547623 \cdot y\right) \]
            4. Applied rewrites59.1%

              \[\leadsto x + \color{blue}{\mathsf{fma}\left(-1, \frac{-11.1667541262 \cdot y - -47.69379582500642 \cdot y}{z}, 3.13060547623 \cdot y\right)} \]
            5. Step-by-step derivation
              1. lift-+.f64N/A

                \[\leadsto \color{blue}{x + \mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}, \frac{313060547623}{100000000000} \cdot y\right)} \]
              2. +-commutativeN/A

                \[\leadsto \color{blue}{\mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}, \frac{313060547623}{100000000000} \cdot y\right) + x} \]
              3. lower-+.f6459.1

                \[\leadsto \color{blue}{\mathsf{fma}\left(-1, \frac{-11.1667541262 \cdot y - -47.69379582500642 \cdot y}{z}, 3.13060547623 \cdot y\right) + x} \]
            6. Applied rewrites59.1%

              \[\leadsto \color{blue}{y \cdot \left(3.13060547623 - \frac{36.52704169880642}{z}\right) + x} \]

            if -4.0999999999999996 < z < 2.65e20

            1. Initial program 58.2%

              \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
            2. Taylor expanded in z around 0

              \[\leadsto x + \frac{\color{blue}{b \cdot y + z \cdot \left(a \cdot y + t \cdot \left(y \cdot z\right)\right)}}{\left(\left(\left(z + \frac{15234687407}{1000000000}\right) \cdot z + \frac{314690115749}{10000000000}\right) \cdot z + \frac{119400905721}{10000000000}\right) \cdot z + \frac{607771387771}{1000000000000}} \]
            3. Step-by-step derivation
              1. lower-fma.f64N/A

                \[\leadsto x + \frac{\mathsf{fma}\left(b, \color{blue}{y}, z \cdot \left(a \cdot y + t \cdot \left(y \cdot z\right)\right)\right)}{\left(\left(\left(z + \frac{15234687407}{1000000000}\right) \cdot z + \frac{314690115749}{10000000000}\right) \cdot z + \frac{119400905721}{10000000000}\right) \cdot z + \frac{607771387771}{1000000000000}} \]
              2. lower-*.f64N/A

                \[\leadsto x + \frac{\mathsf{fma}\left(b, y, z \cdot \left(a \cdot y + t \cdot \left(y \cdot z\right)\right)\right)}{\left(\left(\left(z + \frac{15234687407}{1000000000}\right) \cdot z + \frac{314690115749}{10000000000}\right) \cdot z + \frac{119400905721}{10000000000}\right) \cdot z + \frac{607771387771}{1000000000000}} \]
              3. lower-fma.f64N/A

                \[\leadsto x + \frac{\mathsf{fma}\left(b, y, z \cdot \mathsf{fma}\left(a, y, t \cdot \left(y \cdot z\right)\right)\right)}{\left(\left(\left(z + \frac{15234687407}{1000000000}\right) \cdot z + \frac{314690115749}{10000000000}\right) \cdot z + \frac{119400905721}{10000000000}\right) \cdot z + \frac{607771387771}{1000000000000}} \]
              4. lower-*.f64N/A

                \[\leadsto x + \frac{\mathsf{fma}\left(b, y, z \cdot \mathsf{fma}\left(a, y, t \cdot \left(y \cdot z\right)\right)\right)}{\left(\left(\left(z + \frac{15234687407}{1000000000}\right) \cdot z + \frac{314690115749}{10000000000}\right) \cdot z + \frac{119400905721}{10000000000}\right) \cdot z + \frac{607771387771}{1000000000000}} \]
              5. lower-*.f6462.4

                \[\leadsto x + \frac{\mathsf{fma}\left(b, y, z \cdot \mathsf{fma}\left(a, y, t \cdot \left(y \cdot z\right)\right)\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
            4. Applied rewrites62.4%

              \[\leadsto x + \frac{\color{blue}{\mathsf{fma}\left(b, y, z \cdot \mathsf{fma}\left(a, y, t \cdot \left(y \cdot z\right)\right)\right)}}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
            5. Taylor expanded in z around 0

              \[\leadsto x + \frac{\mathsf{fma}\left(b, y, z \cdot \mathsf{fma}\left(a, y, t \cdot \left(y \cdot z\right)\right)\right)}{\color{blue}{\frac{607771387771}{1000000000000}}} \]
            6. Step-by-step derivation
              1. Applied rewrites53.8%

                \[\leadsto x + \frac{\mathsf{fma}\left(b, y, z \cdot \mathsf{fma}\left(a, y, t \cdot \left(y \cdot z\right)\right)\right)}{\color{blue}{0.607771387771}} \]

              if 2.65e20 < z

              1. Initial program 58.2%

                \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
              2. Taylor expanded in z around inf

                \[\leadsto x + \color{blue}{\left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right)} \]
              3. Step-by-step derivation
                1. lower--.f64N/A

                  \[\leadsto x + \left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \color{blue}{\frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}}\right) \]
                2. lower-fma.f64N/A

                  \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \color{blue}{\frac{4769379582500641883561}{100000000000000000000}} \cdot \frac{y}{z}\right) \]
                3. lower-*.f64N/A

                  \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) \]
                4. lower-/.f64N/A

                  \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) \]
                5. lower-*.f64N/A

                  \[\leadsto x + \left(\mathsf{fma}\left(\frac{313060547623}{100000000000}, y, \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \color{blue}{\frac{y}{z}}\right) \]
                6. lower-/.f6456.6

                  \[\leadsto x + \left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{\color{blue}{z}}\right) \]
              4. Applied rewrites56.6%

                \[\leadsto x + \color{blue}{\left(\mathsf{fma}\left(3.13060547623, y, 11.1667541262 \cdot \frac{y}{z}\right) - 47.69379582500642 \cdot \frac{y}{z}\right)} \]
            7. Recombined 3 regimes into one program.
            8. Add Preprocessing

            Alternative 8: 83.3% accurate, 2.6× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \left(3.13060547623 - \frac{36.52704169880642}{z}\right) + x\\ \mathbf{if}\;z \leq -2.3:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.85 \cdot 10^{-43}:\\ \;\;\;\;x + 1.6453555072203998 \cdot \left(b \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (let* ((t_1 (+ (* y (- 3.13060547623 (/ 36.52704169880642 z))) x)))
               (if (<= z -2.3)
                 t_1
                 (if (<= z 2.85e-43) (+ x (* 1.6453555072203998 (* b y))) t_1))))
            double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = (y * (3.13060547623 - (36.52704169880642 / z))) + x;
            	double tmp;
            	if (z <= -2.3) {
            		tmp = t_1;
            	} else if (z <= 2.85e-43) {
            		tmp = x + (1.6453555072203998 * (b * y));
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            module fmin_fmax_functions
                implicit none
                private
                public fmax
                public fmin
            
                interface fmax
                    module procedure fmax88
                    module procedure fmax44
                    module procedure fmax84
                    module procedure fmax48
                end interface
                interface fmin
                    module procedure fmin88
                    module procedure fmin44
                    module procedure fmin84
                    module procedure fmin48
                end interface
            contains
                real(8) function fmax88(x, y) result (res)
                    real(8), intent (in) :: x
                    real(8), intent (in) :: y
                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                end function
                real(4) function fmax44(x, y) result (res)
                    real(4), intent (in) :: x
                    real(4), intent (in) :: y
                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                end function
                real(8) function fmax84(x, y) result(res)
                    real(8), intent (in) :: x
                    real(4), intent (in) :: y
                    res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                end function
                real(8) function fmax48(x, y) result(res)
                    real(4), intent (in) :: x
                    real(8), intent (in) :: y
                    res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                end function
                real(8) function fmin88(x, y) result (res)
                    real(8), intent (in) :: x
                    real(8), intent (in) :: y
                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                end function
                real(4) function fmin44(x, y) result (res)
                    real(4), intent (in) :: x
                    real(4), intent (in) :: y
                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                end function
                real(8) function fmin84(x, y) result(res)
                    real(8), intent (in) :: x
                    real(4), intent (in) :: y
                    res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                end function
                real(8) function fmin48(x, y) result(res)
                    real(4), intent (in) :: x
                    real(8), intent (in) :: y
                    res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                end function
            end module
            
            real(8) function code(x, y, z, t, a, b)
            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) :: t_1
                real(8) :: tmp
                t_1 = (y * (3.13060547623d0 - (36.52704169880642d0 / z))) + x
                if (z <= (-2.3d0)) then
                    tmp = t_1
                else if (z <= 2.85d-43) then
                    tmp = x + (1.6453555072203998d0 * (b * y))
                else
                    tmp = t_1
                end if
                code = tmp
            end function
            
            public static double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = (y * (3.13060547623 - (36.52704169880642 / z))) + x;
            	double tmp;
            	if (z <= -2.3) {
            		tmp = t_1;
            	} else if (z <= 2.85e-43) {
            		tmp = x + (1.6453555072203998 * (b * y));
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t, a, b):
            	t_1 = (y * (3.13060547623 - (36.52704169880642 / z))) + x
            	tmp = 0
            	if z <= -2.3:
            		tmp = t_1
            	elif z <= 2.85e-43:
            		tmp = x + (1.6453555072203998 * (b * y))
            	else:
            		tmp = t_1
            	return tmp
            
            function code(x, y, z, t, a, b)
            	t_1 = Float64(Float64(y * Float64(3.13060547623 - Float64(36.52704169880642 / z))) + x)
            	tmp = 0.0
            	if (z <= -2.3)
            		tmp = t_1;
            	elseif (z <= 2.85e-43)
            		tmp = Float64(x + Float64(1.6453555072203998 * Float64(b * y)));
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t, a, b)
            	t_1 = (y * (3.13060547623 - (36.52704169880642 / z))) + x;
            	tmp = 0.0;
            	if (z <= -2.3)
            		tmp = t_1;
            	elseif (z <= 2.85e-43)
            		tmp = x + (1.6453555072203998 * (b * y));
            	else
            		tmp = t_1;
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * N[(3.13060547623 - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -2.3], t$95$1, If[LessEqual[z, 2.85e-43], N[(x + N[(1.6453555072203998 * N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := y \cdot \left(3.13060547623 - \frac{36.52704169880642}{z}\right) + x\\
            \mathbf{if}\;z \leq -2.3:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;z \leq 2.85 \cdot 10^{-43}:\\
            \;\;\;\;x + 1.6453555072203998 \cdot \left(b \cdot y\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if z < -2.2999999999999998 or 2.85e-43 < z

              1. Initial program 58.2%

                \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
              2. Taylor expanded in z around -inf

                \[\leadsto x + \color{blue}{\left(-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z} + \frac{313060547623}{100000000000} \cdot y\right)} \]
              3. Step-by-step derivation
                1. lower-fma.f64N/A

                  \[\leadsto x + \mathsf{fma}\left(-1, \color{blue}{\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}}, \frac{313060547623}{100000000000} \cdot y\right) \]
                2. lower-/.f64N/A

                  \[\leadsto x + \mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{z}}, \frac{313060547623}{100000000000} \cdot y\right) \]
                3. lower--.f64N/A

                  \[\leadsto x + \mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}, \frac{313060547623}{100000000000} \cdot y\right) \]
                4. lower-*.f64N/A

                  \[\leadsto x + \mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}, \frac{313060547623}{100000000000} \cdot y\right) \]
                5. lower-*.f64N/A

                  \[\leadsto x + \mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}, \frac{313060547623}{100000000000} \cdot y\right) \]
                6. lower-*.f6459.1

                  \[\leadsto x + \mathsf{fma}\left(-1, \frac{-11.1667541262 \cdot y - -47.69379582500642 \cdot y}{z}, 3.13060547623 \cdot y\right) \]
              4. Applied rewrites59.1%

                \[\leadsto x + \color{blue}{\mathsf{fma}\left(-1, \frac{-11.1667541262 \cdot y - -47.69379582500642 \cdot y}{z}, 3.13060547623 \cdot y\right)} \]
              5. Step-by-step derivation
                1. lift-+.f64N/A

                  \[\leadsto \color{blue}{x + \mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}, \frac{313060547623}{100000000000} \cdot y\right)} \]
                2. +-commutativeN/A

                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1, \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}, \frac{313060547623}{100000000000} \cdot y\right) + x} \]
                3. lower-+.f6459.1

                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1, \frac{-11.1667541262 \cdot y - -47.69379582500642 \cdot y}{z}, 3.13060547623 \cdot y\right) + x} \]
              6. Applied rewrites59.1%

                \[\leadsto \color{blue}{y \cdot \left(3.13060547623 - \frac{36.52704169880642}{z}\right) + x} \]

              if -2.2999999999999998 < z < 2.85e-43

              1. Initial program 58.2%

                \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
              2. Taylor expanded in z around 0

                \[\leadsto x + \color{blue}{\frac{1000000000000}{607771387771} \cdot \left(b \cdot y\right)} \]
              3. Step-by-step derivation
                1. lower-*.f64N/A

                  \[\leadsto x + \frac{1000000000000}{607771387771} \cdot \color{blue}{\left(b \cdot y\right)} \]
                2. lower-*.f6459.8

                  \[\leadsto x + 1.6453555072203998 \cdot \left(b \cdot \color{blue}{y}\right) \]
              4. Applied rewrites59.8%

                \[\leadsto x + \color{blue}{1.6453555072203998 \cdot \left(b \cdot y\right)} \]
            3. Recombined 2 regimes into one program.
            4. Add Preprocessing

            Alternative 9: 82.4% accurate, 3.1× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + 3.13060547623 \cdot y\\ \mathbf{if}\;z \leq -2.3:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.45 \cdot 10^{+15}:\\ \;\;\;\;x + 1.6453555072203998 \cdot \left(b \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (let* ((t_1 (+ x (* 3.13060547623 y))))
               (if (<= z -2.3)
                 t_1
                 (if (<= z 1.45e+15) (+ x (* 1.6453555072203998 (* b y))) t_1))))
            double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = x + (3.13060547623 * y);
            	double tmp;
            	if (z <= -2.3) {
            		tmp = t_1;
            	} else if (z <= 1.45e+15) {
            		tmp = x + (1.6453555072203998 * (b * y));
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            module fmin_fmax_functions
                implicit none
                private
                public fmax
                public fmin
            
                interface fmax
                    module procedure fmax88
                    module procedure fmax44
                    module procedure fmax84
                    module procedure fmax48
                end interface
                interface fmin
                    module procedure fmin88
                    module procedure fmin44
                    module procedure fmin84
                    module procedure fmin48
                end interface
            contains
                real(8) function fmax88(x, y) result (res)
                    real(8), intent (in) :: x
                    real(8), intent (in) :: y
                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                end function
                real(4) function fmax44(x, y) result (res)
                    real(4), intent (in) :: x
                    real(4), intent (in) :: y
                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                end function
                real(8) function fmax84(x, y) result(res)
                    real(8), intent (in) :: x
                    real(4), intent (in) :: y
                    res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                end function
                real(8) function fmax48(x, y) result(res)
                    real(4), intent (in) :: x
                    real(8), intent (in) :: y
                    res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                end function
                real(8) function fmin88(x, y) result (res)
                    real(8), intent (in) :: x
                    real(8), intent (in) :: y
                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                end function
                real(4) function fmin44(x, y) result (res)
                    real(4), intent (in) :: x
                    real(4), intent (in) :: y
                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                end function
                real(8) function fmin84(x, y) result(res)
                    real(8), intent (in) :: x
                    real(4), intent (in) :: y
                    res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                end function
                real(8) function fmin48(x, y) result(res)
                    real(4), intent (in) :: x
                    real(8), intent (in) :: y
                    res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                end function
            end module
            
            real(8) function code(x, y, z, t, a, b)
            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) :: t_1
                real(8) :: tmp
                t_1 = x + (3.13060547623d0 * y)
                if (z <= (-2.3d0)) then
                    tmp = t_1
                else if (z <= 1.45d+15) then
                    tmp = x + (1.6453555072203998d0 * (b * y))
                else
                    tmp = t_1
                end if
                code = tmp
            end function
            
            public static double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = x + (3.13060547623 * y);
            	double tmp;
            	if (z <= -2.3) {
            		tmp = t_1;
            	} else if (z <= 1.45e+15) {
            		tmp = x + (1.6453555072203998 * (b * y));
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t, a, b):
            	t_1 = x + (3.13060547623 * y)
            	tmp = 0
            	if z <= -2.3:
            		tmp = t_1
            	elif z <= 1.45e+15:
            		tmp = x + (1.6453555072203998 * (b * y))
            	else:
            		tmp = t_1
            	return tmp
            
            function code(x, y, z, t, a, b)
            	t_1 = Float64(x + Float64(3.13060547623 * y))
            	tmp = 0.0
            	if (z <= -2.3)
            		tmp = t_1;
            	elseif (z <= 1.45e+15)
            		tmp = Float64(x + Float64(1.6453555072203998 * Float64(b * y)));
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t, a, b)
            	t_1 = x + (3.13060547623 * y);
            	tmp = 0.0;
            	if (z <= -2.3)
            		tmp = t_1;
            	elseif (z <= 1.45e+15)
            		tmp = x + (1.6453555072203998 * (b * y));
            	else
            		tmp = t_1;
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(3.13060547623 * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.3], t$95$1, If[LessEqual[z, 1.45e+15], N[(x + N[(1.6453555072203998 * N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := x + 3.13060547623 \cdot y\\
            \mathbf{if}\;z \leq -2.3:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;z \leq 1.45 \cdot 10^{+15}:\\
            \;\;\;\;x + 1.6453555072203998 \cdot \left(b \cdot y\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if z < -2.2999999999999998 or 1.45e15 < z

              1. Initial program 58.2%

                \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
              2. Taylor expanded in z around inf

                \[\leadsto x + \color{blue}{\frac{313060547623}{100000000000} \cdot y} \]
              3. Step-by-step derivation
                1. lower-*.f6463.0

                  \[\leadsto x + 3.13060547623 \cdot \color{blue}{y} \]
              4. Applied rewrites63.0%

                \[\leadsto x + \color{blue}{3.13060547623 \cdot y} \]

              if -2.2999999999999998 < z < 1.45e15

              1. Initial program 58.2%

                \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
              2. Taylor expanded in z around 0

                \[\leadsto x + \color{blue}{\frac{1000000000000}{607771387771} \cdot \left(b \cdot y\right)} \]
              3. Step-by-step derivation
                1. lower-*.f64N/A

                  \[\leadsto x + \frac{1000000000000}{607771387771} \cdot \color{blue}{\left(b \cdot y\right)} \]
                2. lower-*.f6459.8

                  \[\leadsto x + 1.6453555072203998 \cdot \left(b \cdot \color{blue}{y}\right) \]
              4. Applied rewrites59.8%

                \[\leadsto x + \color{blue}{1.6453555072203998 \cdot \left(b \cdot y\right)} \]
            3. Recombined 2 regimes into one program.
            4. Add Preprocessing

            Alternative 10: 71.1% accurate, 0.3× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}\\ t_2 := x + 3.13060547623 \cdot y\\ \mathbf{if}\;t\_1 \leq -4 \cdot 10^{+127}:\\ \;\;\;\;\frac{b \cdot y}{0.607771387771}\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+65}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_1 \leq \infty:\\ \;\;\;\;\frac{b}{0.607771387771} \cdot y\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (let* ((t_1
                     (/
                      (*
                       y
                       (+
                        (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
                        b))
                      (+
                       (*
                        (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721)
                        z)
                       0.607771387771)))
                    (t_2 (+ x (* 3.13060547623 y))))
               (if (<= t_1 -4e+127)
                 (/ (* b y) 0.607771387771)
                 (if (<= t_1 5e+65)
                   t_2
                   (if (<= t_1 INFINITY) (* (/ b 0.607771387771) y) t_2)))))
            double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = (y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771);
            	double t_2 = x + (3.13060547623 * y);
            	double tmp;
            	if (t_1 <= -4e+127) {
            		tmp = (b * y) / 0.607771387771;
            	} else if (t_1 <= 5e+65) {
            		tmp = t_2;
            	} else if (t_1 <= ((double) INFINITY)) {
            		tmp = (b / 0.607771387771) * y;
            	} else {
            		tmp = t_2;
            	}
            	return tmp;
            }
            
            public static double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = (y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771);
            	double t_2 = x + (3.13060547623 * y);
            	double tmp;
            	if (t_1 <= -4e+127) {
            		tmp = (b * y) / 0.607771387771;
            	} else if (t_1 <= 5e+65) {
            		tmp = t_2;
            	} else if (t_1 <= Double.POSITIVE_INFINITY) {
            		tmp = (b / 0.607771387771) * y;
            	} else {
            		tmp = t_2;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t, a, b):
            	t_1 = (y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)
            	t_2 = x + (3.13060547623 * y)
            	tmp = 0
            	if t_1 <= -4e+127:
            		tmp = (b * y) / 0.607771387771
            	elif t_1 <= 5e+65:
            		tmp = t_2
            	elif t_1 <= math.inf:
            		tmp = (b / 0.607771387771) * y
            	else:
            		tmp = t_2
            	return tmp
            
            function code(x, y, z, t, a, b)
            	t_1 = Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
            	t_2 = Float64(x + Float64(3.13060547623 * y))
            	tmp = 0.0
            	if (t_1 <= -4e+127)
            		tmp = Float64(Float64(b * y) / 0.607771387771);
            	elseif (t_1 <= 5e+65)
            		tmp = t_2;
            	elseif (t_1 <= Inf)
            		tmp = Float64(Float64(b / 0.607771387771) * y);
            	else
            		tmp = t_2;
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t, a, b)
            	t_1 = (y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771);
            	t_2 = x + (3.13060547623 * y);
            	tmp = 0.0;
            	if (t_1 <= -4e+127)
            		tmp = (b * y) / 0.607771387771;
            	elseif (t_1 <= 5e+65)
            		tmp = t_2;
            	elseif (t_1 <= Inf)
            		tmp = (b / 0.607771387771) * y;
            	else
            		tmp = t_2;
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(3.13060547623 * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -4e+127], N[(N[(b * y), $MachinePrecision] / 0.607771387771), $MachinePrecision], If[LessEqual[t$95$1, 5e+65], t$95$2, If[LessEqual[t$95$1, Infinity], N[(N[(b / 0.607771387771), $MachinePrecision] * y), $MachinePrecision], t$95$2]]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}\\
            t_2 := x + 3.13060547623 \cdot y\\
            \mathbf{if}\;t\_1 \leq -4 \cdot 10^{+127}:\\
            \;\;\;\;\frac{b \cdot y}{0.607771387771}\\
            
            \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+65}:\\
            \;\;\;\;t\_2\\
            
            \mathbf{elif}\;t\_1 \leq \infty:\\
            \;\;\;\;\frac{b}{0.607771387771} \cdot y\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_2\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < -3.99999999999999982e127

              1. Initial program 58.2%

                \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
              2. Taylor expanded in b around inf

                \[\leadsto \color{blue}{\frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)}} \]
              3. Step-by-step derivation
                1. lower-/.f64N/A

                  \[\leadsto \frac{b \cdot y}{\color{blue}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)}} \]
                2. lower-*.f64N/A

                  \[\leadsto \frac{b \cdot y}{\color{blue}{\frac{607771387771}{1000000000000}} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)} \]
                3. lower-+.f64N/A

                  \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + \color{blue}{z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)}} \]
                4. lower-*.f64N/A

                  \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \color{blue}{\left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)}} \]
                5. lower-+.f64N/A

                  \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + \color{blue}{z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)}\right)} \]
                6. lower-*.f64N/A

                  \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \color{blue}{\left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)}\right)} \]
                7. lower-+.f64N/A

                  \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + \color{blue}{z \cdot \left(\frac{15234687407}{1000000000} + z\right)}\right)\right)} \]
                8. lower-*.f64N/A

                  \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \color{blue}{\left(\frac{15234687407}{1000000000} + z\right)}\right)\right)} \]
                9. lower-+.f6421.7

                  \[\leadsto \frac{b \cdot y}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(15.234687407 + \color{blue}{z}\right)\right)\right)} \]
              4. Applied rewrites21.7%

                \[\leadsto \color{blue}{\frac{b \cdot y}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(15.234687407 + z\right)\right)\right)}} \]
              5. Taylor expanded in z around 0

                \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000}} \]
              6. Step-by-step derivation
                1. Applied rewrites21.5%

                  \[\leadsto \frac{b \cdot y}{0.607771387771} \]

                if -3.99999999999999982e127 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < 4.99999999999999973e65 or +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64)))

                1. Initial program 58.2%

                  \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
                2. Taylor expanded in z around inf

                  \[\leadsto x + \color{blue}{\frac{313060547623}{100000000000} \cdot y} \]
                3. Step-by-step derivation
                  1. lower-*.f6463.0

                    \[\leadsto x + 3.13060547623 \cdot \color{blue}{y} \]
                4. Applied rewrites63.0%

                  \[\leadsto x + \color{blue}{3.13060547623 \cdot y} \]

                if 4.99999999999999973e65 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0

                1. Initial program 58.2%

                  \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
                2. Taylor expanded in b around inf

                  \[\leadsto \color{blue}{\frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)}} \]
                3. Step-by-step derivation
                  1. lower-/.f64N/A

                    \[\leadsto \frac{b \cdot y}{\color{blue}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)}} \]
                  2. lower-*.f64N/A

                    \[\leadsto \frac{b \cdot y}{\color{blue}{\frac{607771387771}{1000000000000}} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)} \]
                  3. lower-+.f64N/A

                    \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + \color{blue}{z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)}} \]
                  4. lower-*.f64N/A

                    \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \color{blue}{\left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)}} \]
                  5. lower-+.f64N/A

                    \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + \color{blue}{z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)}\right)} \]
                  6. lower-*.f64N/A

                    \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \color{blue}{\left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)}\right)} \]
                  7. lower-+.f64N/A

                    \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + \color{blue}{z \cdot \left(\frac{15234687407}{1000000000} + z\right)}\right)\right)} \]
                  8. lower-*.f64N/A

                    \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \color{blue}{\left(\frac{15234687407}{1000000000} + z\right)}\right)\right)} \]
                  9. lower-+.f6421.7

                    \[\leadsto \frac{b \cdot y}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(15.234687407 + \color{blue}{z}\right)\right)\right)} \]
                4. Applied rewrites21.7%

                  \[\leadsto \color{blue}{\frac{b \cdot y}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(15.234687407 + z\right)\right)\right)}} \]
                5. Taylor expanded in z around 0

                  \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000}} \]
                6. Step-by-step derivation
                  1. Applied rewrites21.5%

                    \[\leadsto \frac{b \cdot y}{0.607771387771} \]
                  2. Step-by-step derivation
                    1. lift-/.f64N/A

                      \[\leadsto \frac{b \cdot y}{\color{blue}{\frac{607771387771}{1000000000000}}} \]
                    2. mult-flipN/A

                      \[\leadsto \left(b \cdot y\right) \cdot \color{blue}{\frac{1}{\frac{607771387771}{1000000000000}}} \]
                    3. lift-*.f64N/A

                      \[\leadsto \left(b \cdot y\right) \cdot \frac{\color{blue}{1}}{\frac{607771387771}{1000000000000}} \]
                    4. *-commutativeN/A

                      \[\leadsto \left(y \cdot b\right) \cdot \frac{\color{blue}{1}}{\frac{607771387771}{1000000000000}} \]
                    5. associate-*l*N/A

                      \[\leadsto y \cdot \color{blue}{\left(b \cdot \frac{1}{\frac{607771387771}{1000000000000}}\right)} \]
                    6. *-commutativeN/A

                      \[\leadsto \left(b \cdot \frac{1}{\frac{607771387771}{1000000000000}}\right) \cdot \color{blue}{y} \]
                    7. lower-*.f64N/A

                      \[\leadsto \left(b \cdot \frac{1}{\frac{607771387771}{1000000000000}}\right) \cdot \color{blue}{y} \]
                    8. mult-flip-revN/A

                      \[\leadsto \frac{b}{\frac{607771387771}{1000000000000}} \cdot y \]
                    9. lower-/.f6421.5

                      \[\leadsto \frac{b}{0.607771387771} \cdot y \]
                  3. Applied rewrites21.5%

                    \[\leadsto \color{blue}{\frac{b}{0.607771387771} \cdot y} \]
                7. Recombined 3 regimes into one program.
                8. Add Preprocessing

                Alternative 11: 71.1% accurate, 0.3× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}\\ t_2 := x + 3.13060547623 \cdot y\\ \mathbf{if}\;t\_1 \leq -4 \cdot 10^{+127}:\\ \;\;\;\;\frac{y}{0.607771387771} \cdot b\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+65}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_1 \leq \infty:\\ \;\;\;\;\frac{b}{0.607771387771} \cdot y\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                (FPCore (x y z t a b)
                 :precision binary64
                 (let* ((t_1
                         (/
                          (*
                           y
                           (+
                            (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
                            b))
                          (+
                           (*
                            (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721)
                            z)
                           0.607771387771)))
                        (t_2 (+ x (* 3.13060547623 y))))
                   (if (<= t_1 -4e+127)
                     (* (/ y 0.607771387771) b)
                     (if (<= t_1 5e+65)
                       t_2
                       (if (<= t_1 INFINITY) (* (/ b 0.607771387771) y) t_2)))))
                double code(double x, double y, double z, double t, double a, double b) {
                	double t_1 = (y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771);
                	double t_2 = x + (3.13060547623 * y);
                	double tmp;
                	if (t_1 <= -4e+127) {
                		tmp = (y / 0.607771387771) * b;
                	} else if (t_1 <= 5e+65) {
                		tmp = t_2;
                	} else if (t_1 <= ((double) INFINITY)) {
                		tmp = (b / 0.607771387771) * y;
                	} else {
                		tmp = t_2;
                	}
                	return tmp;
                }
                
                public static double code(double x, double y, double z, double t, double a, double b) {
                	double t_1 = (y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771);
                	double t_2 = x + (3.13060547623 * y);
                	double tmp;
                	if (t_1 <= -4e+127) {
                		tmp = (y / 0.607771387771) * b;
                	} else if (t_1 <= 5e+65) {
                		tmp = t_2;
                	} else if (t_1 <= Double.POSITIVE_INFINITY) {
                		tmp = (b / 0.607771387771) * y;
                	} else {
                		tmp = t_2;
                	}
                	return tmp;
                }
                
                def code(x, y, z, t, a, b):
                	t_1 = (y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)
                	t_2 = x + (3.13060547623 * y)
                	tmp = 0
                	if t_1 <= -4e+127:
                		tmp = (y / 0.607771387771) * b
                	elif t_1 <= 5e+65:
                		tmp = t_2
                	elif t_1 <= math.inf:
                		tmp = (b / 0.607771387771) * y
                	else:
                		tmp = t_2
                	return tmp
                
                function code(x, y, z, t, a, b)
                	t_1 = Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
                	t_2 = Float64(x + Float64(3.13060547623 * y))
                	tmp = 0.0
                	if (t_1 <= -4e+127)
                		tmp = Float64(Float64(y / 0.607771387771) * b);
                	elseif (t_1 <= 5e+65)
                		tmp = t_2;
                	elseif (t_1 <= Inf)
                		tmp = Float64(Float64(b / 0.607771387771) * y);
                	else
                		tmp = t_2;
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t, a, b)
                	t_1 = (y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771);
                	t_2 = x + (3.13060547623 * y);
                	tmp = 0.0;
                	if (t_1 <= -4e+127)
                		tmp = (y / 0.607771387771) * b;
                	elseif (t_1 <= 5e+65)
                		tmp = t_2;
                	elseif (t_1 <= Inf)
                		tmp = (b / 0.607771387771) * y;
                	else
                		tmp = t_2;
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(3.13060547623 * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -4e+127], N[(N[(y / 0.607771387771), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[t$95$1, 5e+65], t$95$2, If[LessEqual[t$95$1, Infinity], N[(N[(b / 0.607771387771), $MachinePrecision] * y), $MachinePrecision], t$95$2]]]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}\\
                t_2 := x + 3.13060547623 \cdot y\\
                \mathbf{if}\;t\_1 \leq -4 \cdot 10^{+127}:\\
                \;\;\;\;\frac{y}{0.607771387771} \cdot b\\
                
                \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+65}:\\
                \;\;\;\;t\_2\\
                
                \mathbf{elif}\;t\_1 \leq \infty:\\
                \;\;\;\;\frac{b}{0.607771387771} \cdot y\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_2\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 3 regimes
                2. if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < -3.99999999999999982e127

                  1. Initial program 58.2%

                    \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
                  2. Taylor expanded in b around inf

                    \[\leadsto \color{blue}{\frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)}} \]
                  3. Step-by-step derivation
                    1. lower-/.f64N/A

                      \[\leadsto \frac{b \cdot y}{\color{blue}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)}} \]
                    2. lower-*.f64N/A

                      \[\leadsto \frac{b \cdot y}{\color{blue}{\frac{607771387771}{1000000000000}} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)} \]
                    3. lower-+.f64N/A

                      \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + \color{blue}{z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)}} \]
                    4. lower-*.f64N/A

                      \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \color{blue}{\left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)}} \]
                    5. lower-+.f64N/A

                      \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + \color{blue}{z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)}\right)} \]
                    6. lower-*.f64N/A

                      \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \color{blue}{\left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)}\right)} \]
                    7. lower-+.f64N/A

                      \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + \color{blue}{z \cdot \left(\frac{15234687407}{1000000000} + z\right)}\right)\right)} \]
                    8. lower-*.f64N/A

                      \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \color{blue}{\left(\frac{15234687407}{1000000000} + z\right)}\right)\right)} \]
                    9. lower-+.f6421.7

                      \[\leadsto \frac{b \cdot y}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(15.234687407 + \color{blue}{z}\right)\right)\right)} \]
                  4. Applied rewrites21.7%

                    \[\leadsto \color{blue}{\frac{b \cdot y}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(15.234687407 + z\right)\right)\right)}} \]
                  5. Taylor expanded in z around 0

                    \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000}} \]
                  6. Step-by-step derivation
                    1. Applied rewrites21.5%

                      \[\leadsto \frac{b \cdot y}{0.607771387771} \]
                    2. Step-by-step derivation
                      1. lift-/.f64N/A

                        \[\leadsto \frac{b \cdot y}{\color{blue}{\frac{607771387771}{1000000000000}}} \]
                      2. lift-*.f64N/A

                        \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000}} \]
                      3. associate-/l*N/A

                        \[\leadsto b \cdot \color{blue}{\frac{y}{\frac{607771387771}{1000000000000}}} \]
                      4. *-commutativeN/A

                        \[\leadsto \frac{y}{\frac{607771387771}{1000000000000}} \cdot \color{blue}{b} \]
                      5. lower-*.f64N/A

                        \[\leadsto \frac{y}{\frac{607771387771}{1000000000000}} \cdot \color{blue}{b} \]
                      6. lower-/.f6421.5

                        \[\leadsto \frac{y}{0.607771387771} \cdot b \]
                    3. Applied rewrites21.5%

                      \[\leadsto \frac{y}{0.607771387771} \cdot \color{blue}{b} \]

                    if -3.99999999999999982e127 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < 4.99999999999999973e65 or +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64)))

                    1. Initial program 58.2%

                      \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
                    2. Taylor expanded in z around inf

                      \[\leadsto x + \color{blue}{\frac{313060547623}{100000000000} \cdot y} \]
                    3. Step-by-step derivation
                      1. lower-*.f6463.0

                        \[\leadsto x + 3.13060547623 \cdot \color{blue}{y} \]
                    4. Applied rewrites63.0%

                      \[\leadsto x + \color{blue}{3.13060547623 \cdot y} \]

                    if 4.99999999999999973e65 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0

                    1. Initial program 58.2%

                      \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
                    2. Taylor expanded in b around inf

                      \[\leadsto \color{blue}{\frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)}} \]
                    3. Step-by-step derivation
                      1. lower-/.f64N/A

                        \[\leadsto \frac{b \cdot y}{\color{blue}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)}} \]
                      2. lower-*.f64N/A

                        \[\leadsto \frac{b \cdot y}{\color{blue}{\frac{607771387771}{1000000000000}} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)} \]
                      3. lower-+.f64N/A

                        \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + \color{blue}{z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)}} \]
                      4. lower-*.f64N/A

                        \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \color{blue}{\left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)}} \]
                      5. lower-+.f64N/A

                        \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + \color{blue}{z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)}\right)} \]
                      6. lower-*.f64N/A

                        \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \color{blue}{\left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)}\right)} \]
                      7. lower-+.f64N/A

                        \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + \color{blue}{z \cdot \left(\frac{15234687407}{1000000000} + z\right)}\right)\right)} \]
                      8. lower-*.f64N/A

                        \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \color{blue}{\left(\frac{15234687407}{1000000000} + z\right)}\right)\right)} \]
                      9. lower-+.f6421.7

                        \[\leadsto \frac{b \cdot y}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(15.234687407 + \color{blue}{z}\right)\right)\right)} \]
                    4. Applied rewrites21.7%

                      \[\leadsto \color{blue}{\frac{b \cdot y}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(15.234687407 + z\right)\right)\right)}} \]
                    5. Taylor expanded in z around 0

                      \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000}} \]
                    6. Step-by-step derivation
                      1. Applied rewrites21.5%

                        \[\leadsto \frac{b \cdot y}{0.607771387771} \]
                      2. Step-by-step derivation
                        1. lift-/.f64N/A

                          \[\leadsto \frac{b \cdot y}{\color{blue}{\frac{607771387771}{1000000000000}}} \]
                        2. mult-flipN/A

                          \[\leadsto \left(b \cdot y\right) \cdot \color{blue}{\frac{1}{\frac{607771387771}{1000000000000}}} \]
                        3. lift-*.f64N/A

                          \[\leadsto \left(b \cdot y\right) \cdot \frac{\color{blue}{1}}{\frac{607771387771}{1000000000000}} \]
                        4. *-commutativeN/A

                          \[\leadsto \left(y \cdot b\right) \cdot \frac{\color{blue}{1}}{\frac{607771387771}{1000000000000}} \]
                        5. associate-*l*N/A

                          \[\leadsto y \cdot \color{blue}{\left(b \cdot \frac{1}{\frac{607771387771}{1000000000000}}\right)} \]
                        6. *-commutativeN/A

                          \[\leadsto \left(b \cdot \frac{1}{\frac{607771387771}{1000000000000}}\right) \cdot \color{blue}{y} \]
                        7. lower-*.f64N/A

                          \[\leadsto \left(b \cdot \frac{1}{\frac{607771387771}{1000000000000}}\right) \cdot \color{blue}{y} \]
                        8. mult-flip-revN/A

                          \[\leadsto \frac{b}{\frac{607771387771}{1000000000000}} \cdot y \]
                        9. lower-/.f6421.5

                          \[\leadsto \frac{b}{0.607771387771} \cdot y \]
                      3. Applied rewrites21.5%

                        \[\leadsto \color{blue}{\frac{b}{0.607771387771} \cdot y} \]
                    7. Recombined 3 regimes into one program.
                    8. Add Preprocessing

                    Alternative 12: 71.1% accurate, 0.3× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{b}{0.607771387771} \cdot y\\ t_2 := \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}\\ t_3 := x + 3.13060547623 \cdot y\\ \mathbf{if}\;t\_2 \leq -4 \cdot 10^{+127}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+65}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;t\_2 \leq \infty:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_3\\ \end{array} \end{array} \]
                    (FPCore (x y z t a b)
                     :precision binary64
                     (let* ((t_1 (* (/ b 0.607771387771) y))
                            (t_2
                             (/
                              (*
                               y
                               (+
                                (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
                                b))
                              (+
                               (*
                                (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721)
                                z)
                               0.607771387771)))
                            (t_3 (+ x (* 3.13060547623 y))))
                       (if (<= t_2 -4e+127)
                         t_1
                         (if (<= t_2 5e+65) t_3 (if (<= t_2 INFINITY) t_1 t_3)))))
                    double code(double x, double y, double z, double t, double a, double b) {
                    	double t_1 = (b / 0.607771387771) * y;
                    	double t_2 = (y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771);
                    	double t_3 = x + (3.13060547623 * y);
                    	double tmp;
                    	if (t_2 <= -4e+127) {
                    		tmp = t_1;
                    	} else if (t_2 <= 5e+65) {
                    		tmp = t_3;
                    	} else if (t_2 <= ((double) INFINITY)) {
                    		tmp = t_1;
                    	} else {
                    		tmp = t_3;
                    	}
                    	return tmp;
                    }
                    
                    public static double code(double x, double y, double z, double t, double a, double b) {
                    	double t_1 = (b / 0.607771387771) * y;
                    	double t_2 = (y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771);
                    	double t_3 = x + (3.13060547623 * y);
                    	double tmp;
                    	if (t_2 <= -4e+127) {
                    		tmp = t_1;
                    	} else if (t_2 <= 5e+65) {
                    		tmp = t_3;
                    	} else if (t_2 <= Double.POSITIVE_INFINITY) {
                    		tmp = t_1;
                    	} else {
                    		tmp = t_3;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y, z, t, a, b):
                    	t_1 = (b / 0.607771387771) * y
                    	t_2 = (y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)
                    	t_3 = x + (3.13060547623 * y)
                    	tmp = 0
                    	if t_2 <= -4e+127:
                    		tmp = t_1
                    	elif t_2 <= 5e+65:
                    		tmp = t_3
                    	elif t_2 <= math.inf:
                    		tmp = t_1
                    	else:
                    		tmp = t_3
                    	return tmp
                    
                    function code(x, y, z, t, a, b)
                    	t_1 = Float64(Float64(b / 0.607771387771) * y)
                    	t_2 = Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
                    	t_3 = Float64(x + Float64(3.13060547623 * y))
                    	tmp = 0.0
                    	if (t_2 <= -4e+127)
                    		tmp = t_1;
                    	elseif (t_2 <= 5e+65)
                    		tmp = t_3;
                    	elseif (t_2 <= Inf)
                    		tmp = t_1;
                    	else
                    		tmp = t_3;
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y, z, t, a, b)
                    	t_1 = (b / 0.607771387771) * y;
                    	t_2 = (y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771);
                    	t_3 = x + (3.13060547623 * y);
                    	tmp = 0.0;
                    	if (t_2 <= -4e+127)
                    		tmp = t_1;
                    	elseif (t_2 <= 5e+65)
                    		tmp = t_3;
                    	elseif (t_2 <= Inf)
                    		tmp = t_1;
                    	else
                    		tmp = t_3;
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b / 0.607771387771), $MachinePrecision] * y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x + N[(3.13060547623 * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -4e+127], t$95$1, If[LessEqual[t$95$2, 5e+65], t$95$3, If[LessEqual[t$95$2, Infinity], t$95$1, t$95$3]]]]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_1 := \frac{b}{0.607771387771} \cdot y\\
                    t_2 := \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}\\
                    t_3 := x + 3.13060547623 \cdot y\\
                    \mathbf{if}\;t\_2 \leq -4 \cdot 10^{+127}:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+65}:\\
                    \;\;\;\;t\_3\\
                    
                    \mathbf{elif}\;t\_2 \leq \infty:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;t\_3\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < -3.99999999999999982e127 or 4.99999999999999973e65 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0

                      1. Initial program 58.2%

                        \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
                      2. Taylor expanded in b around inf

                        \[\leadsto \color{blue}{\frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)}} \]
                      3. Step-by-step derivation
                        1. lower-/.f64N/A

                          \[\leadsto \frac{b \cdot y}{\color{blue}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)}} \]
                        2. lower-*.f64N/A

                          \[\leadsto \frac{b \cdot y}{\color{blue}{\frac{607771387771}{1000000000000}} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)} \]
                        3. lower-+.f64N/A

                          \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + \color{blue}{z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)}} \]
                        4. lower-*.f64N/A

                          \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \color{blue}{\left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)}} \]
                        5. lower-+.f64N/A

                          \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + \color{blue}{z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)}\right)} \]
                        6. lower-*.f64N/A

                          \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \color{blue}{\left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)}\right)} \]
                        7. lower-+.f64N/A

                          \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + \color{blue}{z \cdot \left(\frac{15234687407}{1000000000} + z\right)}\right)\right)} \]
                        8. lower-*.f64N/A

                          \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \color{blue}{\left(\frac{15234687407}{1000000000} + z\right)}\right)\right)} \]
                        9. lower-+.f6421.7

                          \[\leadsto \frac{b \cdot y}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(15.234687407 + \color{blue}{z}\right)\right)\right)} \]
                      4. Applied rewrites21.7%

                        \[\leadsto \color{blue}{\frac{b \cdot y}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(15.234687407 + z\right)\right)\right)}} \]
                      5. Taylor expanded in z around 0

                        \[\leadsto \frac{b \cdot y}{\frac{607771387771}{1000000000000}} \]
                      6. Step-by-step derivation
                        1. Applied rewrites21.5%

                          \[\leadsto \frac{b \cdot y}{0.607771387771} \]
                        2. Step-by-step derivation
                          1. lift-/.f64N/A

                            \[\leadsto \frac{b \cdot y}{\color{blue}{\frac{607771387771}{1000000000000}}} \]
                          2. mult-flipN/A

                            \[\leadsto \left(b \cdot y\right) \cdot \color{blue}{\frac{1}{\frac{607771387771}{1000000000000}}} \]
                          3. lift-*.f64N/A

                            \[\leadsto \left(b \cdot y\right) \cdot \frac{\color{blue}{1}}{\frac{607771387771}{1000000000000}} \]
                          4. *-commutativeN/A

                            \[\leadsto \left(y \cdot b\right) \cdot \frac{\color{blue}{1}}{\frac{607771387771}{1000000000000}} \]
                          5. associate-*l*N/A

                            \[\leadsto y \cdot \color{blue}{\left(b \cdot \frac{1}{\frac{607771387771}{1000000000000}}\right)} \]
                          6. *-commutativeN/A

                            \[\leadsto \left(b \cdot \frac{1}{\frac{607771387771}{1000000000000}}\right) \cdot \color{blue}{y} \]
                          7. lower-*.f64N/A

                            \[\leadsto \left(b \cdot \frac{1}{\frac{607771387771}{1000000000000}}\right) \cdot \color{blue}{y} \]
                          8. mult-flip-revN/A

                            \[\leadsto \frac{b}{\frac{607771387771}{1000000000000}} \cdot y \]
                          9. lower-/.f6421.5

                            \[\leadsto \frac{b}{0.607771387771} \cdot y \]
                        3. Applied rewrites21.5%

                          \[\leadsto \color{blue}{\frac{b}{0.607771387771} \cdot y} \]

                        if -3.99999999999999982e127 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < 4.99999999999999973e65 or +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64)))

                        1. Initial program 58.2%

                          \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
                        2. Taylor expanded in z around inf

                          \[\leadsto x + \color{blue}{\frac{313060547623}{100000000000} \cdot y} \]
                        3. Step-by-step derivation
                          1. lower-*.f6463.0

                            \[\leadsto x + 3.13060547623 \cdot \color{blue}{y} \]
                        4. Applied rewrites63.0%

                          \[\leadsto x + \color{blue}{3.13060547623 \cdot y} \]
                      7. Recombined 2 regimes into one program.
                      8. Add Preprocessing

                      Alternative 13: 63.0% accurate, 7.9× speedup?

                      \[\begin{array}{l} \\ x + 3.13060547623 \cdot y \end{array} \]
                      (FPCore (x y z t a b) :precision binary64 (+ x (* 3.13060547623 y)))
                      double code(double x, double y, double z, double t, double a, double b) {
                      	return x + (3.13060547623 * 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)
                      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
                          code = x + (3.13060547623d0 * y)
                      end function
                      
                      public static double code(double x, double y, double z, double t, double a, double b) {
                      	return x + (3.13060547623 * y);
                      }
                      
                      def code(x, y, z, t, a, b):
                      	return x + (3.13060547623 * y)
                      
                      function code(x, y, z, t, a, b)
                      	return Float64(x + Float64(3.13060547623 * y))
                      end
                      
                      function tmp = code(x, y, z, t, a, b)
                      	tmp = x + (3.13060547623 * y);
                      end
                      
                      code[x_, y_, z_, t_, a_, b_] := N[(x + N[(3.13060547623 * y), $MachinePrecision]), $MachinePrecision]
                      
                      \begin{array}{l}
                      
                      \\
                      x + 3.13060547623 \cdot y
                      \end{array}
                      
                      Derivation
                      1. Initial program 58.2%

                        \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
                      2. Taylor expanded in z around inf

                        \[\leadsto x + \color{blue}{\frac{313060547623}{100000000000} \cdot y} \]
                      3. Step-by-step derivation
                        1. lower-*.f6463.0

                          \[\leadsto x + 3.13060547623 \cdot \color{blue}{y} \]
                      4. Applied rewrites63.0%

                        \[\leadsto x + \color{blue}{3.13060547623 \cdot y} \]
                      5. Add Preprocessing

                      Reproduce

                      ?
                      herbie shell --seed 2025143 
                      (FPCore (x y z t a b)
                        :name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, D"
                        :precision binary64
                        (+ x (/ (* y (+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b)) (+ (* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z) 0.607771387771))))