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

Percentage Accurate: 58.4% → 98.4%
Time: 18.1s
Alternatives: 16
Speedup: 11.3×

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));
}
real(8) function code(x, y, z, t, a, b)
    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}

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 16 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.4% 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));
}
real(8) function code(x, y, z, t, a, b)
    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: 98.4% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y, 3.13060547623, x\right) - \left(-t \cdot \frac{y}{z \cdot z}\right)\\
\mathbf{if}\;z \leq -2.2 \cdot 10^{+50}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 1.5 \cdot 10^{+40}:\\
\;\;\;\;x + \frac{y}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -2.20000000000000017e50 or 1.5000000000000001e40 < z

    1. Initial program 4.8%

      \[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. Add Preprocessing
    3. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{x + \left(-1 \cdot \frac{\left(\frac{-55833770631}{5000000000} \cdot y + -1 \cdot \frac{t \cdot y - \left(\frac{-15234687407}{1000000000} \cdot \left(\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y\right) + \frac{98517059967927196814627}{1000000000000000000000} \cdot y\right)}{z}\right) - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z} + \frac{313060547623}{100000000000} \cdot y\right)} \]
    4. Applied rewrites88.5%

      \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right) - \frac{\frac{\mathsf{fma}\left(y, t, \mathsf{fma}\left(y, -98.5170599679272, y \cdot 556.47806218377\right)\right)}{-z} + y \cdot 36.52704169880642}{z}} \]
    5. Taylor expanded in t around inf

      \[\leadsto \mathsf{fma}\left(y, \frac{313060547623}{100000000000}, x\right) - -1 \cdot \color{blue}{\frac{t \cdot y}{{z}^{2}}} \]
    6. Step-by-step derivation
      1. Applied rewrites98.6%

        \[\leadsto \mathsf{fma}\left(y, 3.13060547623, x\right) - \left(-t \cdot \frac{y}{z \cdot z}\right) \]

      if -2.20000000000000017e50 < z < 1.5000000000000001e40

      1. Initial program 96.4%

        \[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. Add Preprocessing
      3. Step-by-step derivation
        1. lift-/.f64N/A

          \[\leadsto x + \color{blue}{\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)}{\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. lift-*.f64N/A

          \[\leadsto x + \frac{\color{blue}{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)}}{\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. associate-/l*N/A

          \[\leadsto x + \color{blue}{y \cdot \frac{\left(\left(\left(z \cdot \frac{313060547623}{100000000000} + \frac{55833770631}{5000000000}\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}{\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. clear-numN/A

          \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{\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}}{\left(\left(\left(z \cdot \frac{313060547623}{100000000000} + \frac{55833770631}{5000000000}\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}}} \]
        5. un-div-invN/A

          \[\leadsto x + \color{blue}{\frac{y}{\frac{\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}}{\left(\left(\left(z \cdot \frac{313060547623}{100000000000} + \frac{55833770631}{5000000000}\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}}} \]
        6. lower-/.f64N/A

          \[\leadsto x + \color{blue}{\frac{y}{\frac{\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}}{\left(\left(\left(z \cdot \frac{313060547623}{100000000000} + \frac{55833770631}{5000000000}\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}}} \]
        7. lower-/.f6498.4

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

        \[\leadsto x + \color{blue}{\frac{y}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}}} \]
    7. Recombined 2 regimes into one program.
    8. Add Preprocessing

    Alternative 2: 68.5% accurate, 0.3× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := 1.6453555072203998 \cdot \left(y \cdot b\right)\\ t_2 := \frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\ \mathbf{if}\;t\_2 \leq -1 \cdot 10^{+94}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+118}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+304}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \end{array} \end{array} \]
    (FPCore (x y z t a b)
     :precision binary64
     (let* ((t_1 (* 1.6453555072203998 (* y b)))
            (t_2
             (/
              (*
               y
               (+
                (* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
                b))
              (+
               (*
                z
                (+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
               0.607771387771))))
       (if (<= t_2 -1e+94)
         t_1
         (if (<= t_2 5e+118)
           (fma y 3.13060547623 x)
           (if (<= t_2 5e+304) t_1 (fma y 3.13060547623 x))))))
    double code(double x, double y, double z, double t, double a, double b) {
    	double t_1 = 1.6453555072203998 * (y * b);
    	double t_2 = (y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771);
    	double tmp;
    	if (t_2 <= -1e+94) {
    		tmp = t_1;
    	} else if (t_2 <= 5e+118) {
    		tmp = fma(y, 3.13060547623, x);
    	} else if (t_2 <= 5e+304) {
    		tmp = t_1;
    	} else {
    		tmp = fma(y, 3.13060547623, x);
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b)
    	t_1 = Float64(1.6453555072203998 * Float64(y * b))
    	t_2 = Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771))
    	tmp = 0.0
    	if (t_2 <= -1e+94)
    		tmp = t_1;
    	elseif (t_2 <= 5e+118)
    		tmp = fma(y, 3.13060547623, x);
    	elseif (t_2 <= 5e+304)
    		tmp = t_1;
    	else
    		tmp = fma(y, 3.13060547623, x);
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+94], t$95$1, If[LessEqual[t$95$2, 5e+118], N[(y * 3.13060547623 + x), $MachinePrecision], If[LessEqual[t$95$2, 5e+304], t$95$1, N[(y * 3.13060547623 + x), $MachinePrecision]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := 1.6453555072203998 \cdot \left(y \cdot b\right)\\
    t_2 := \frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
    \mathbf{if}\;t\_2 \leq -1 \cdot 10^{+94}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+118}:\\
    \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
    
    \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+304}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{else}:\\
    \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
    
    
    \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))) < -1e94 or 4.99999999999999972e118 < (/.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.9999999999999997e304

      1. Initial program 91.1%

        \[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. Add Preprocessing
      3. Applied rewrites91.2%

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

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

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

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

          \[\leadsto \color{blue}{\left(y \cdot b\right)} \cdot \frac{1000000000000}{607771387771} + x \]
        4. associate-*r*N/A

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

          \[\leadsto y \cdot \color{blue}{\left(\frac{1000000000000}{607771387771} \cdot b\right)} + x \]
        6. lower-fma.f64N/A

          \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{1000000000000}{607771387771} \cdot b, x\right)} \]
        7. *-commutativeN/A

          \[\leadsto \mathsf{fma}\left(y, \color{blue}{b \cdot \frac{1000000000000}{607771387771}}, x\right) \]
        8. lower-*.f6467.4

          \[\leadsto \mathsf{fma}\left(y, \color{blue}{b \cdot 1.6453555072203998}, x\right) \]
      6. Applied rewrites67.4%

        \[\leadsto \color{blue}{\mathsf{fma}\left(y, b \cdot 1.6453555072203998, x\right)} \]
      7. Taylor expanded in y around inf

        \[\leadsto \frac{1000000000000}{607771387771} \cdot \color{blue}{\left(b \cdot y\right)} \]
      8. Step-by-step derivation
        1. Applied rewrites55.4%

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

        if -1e94 < (/.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.99999999999999972e118 or 4.9999999999999997e304 < (/.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 46.4%

          \[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. Add Preprocessing
        3. Taylor expanded in z around inf

          \[\leadsto \color{blue}{x + \frac{313060547623}{100000000000} \cdot y} \]
        4. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \color{blue}{\frac{313060547623}{100000000000} \cdot y + x} \]
          2. *-commutativeN/A

            \[\leadsto \color{blue}{y \cdot \frac{313060547623}{100000000000}} + x \]
          3. lower-fma.f6479.8

            \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right)} \]
        5. Applied rewrites79.8%

          \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right)} \]
      9. Recombined 2 regimes into one program.
      10. Final simplification74.3%

        \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq -1 \cdot 10^{+94}:\\ \;\;\;\;1.6453555072203998 \cdot \left(y \cdot b\right)\\ \mathbf{elif}\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq 5 \cdot 10^{+118}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \mathbf{elif}\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq 5 \cdot 10^{+304}:\\ \;\;\;\;1.6453555072203998 \cdot \left(y \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \end{array} \]
      11. Add Preprocessing

      Alternative 3: 98.4% accurate, 0.4× speedup?

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

        1. Initial program 89.6%

          \[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. Add Preprocessing
        3. Taylor expanded in t around 0

          \[\leadsto \color{blue}{x + \left(\frac{t \cdot \left(y \cdot {z}^{2}\right)}{\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)} + \frac{y \cdot \left(b + z \cdot \left(a + {z}^{2} \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)\right)}{\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)}\right)} \]
        4. Applied rewrites96.7%

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

        if +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 0.0%

          \[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. Add Preprocessing
        3. Taylor expanded in z around -inf

          \[\leadsto \color{blue}{x + \left(-1 \cdot \frac{\left(\frac{-55833770631}{5000000000} \cdot y + -1 \cdot \frac{t \cdot y - \left(\frac{-15234687407}{1000000000} \cdot \left(\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y\right) + \frac{98517059967927196814627}{1000000000000000000000} \cdot y\right)}{z}\right) - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z} + \frac{313060547623}{100000000000} \cdot y\right)} \]
        4. Applied rewrites89.5%

          \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right) - \frac{\frac{\mathsf{fma}\left(y, t, \mathsf{fma}\left(y, -98.5170599679272, y \cdot 556.47806218377\right)\right)}{-z} + y \cdot 36.52704169880642}{z}} \]
        5. Taylor expanded in t around inf

          \[\leadsto \mathsf{fma}\left(y, \frac{313060547623}{100000000000}, x\right) - -1 \cdot \color{blue}{\frac{t \cdot y}{{z}^{2}}} \]
        6. Step-by-step derivation
          1. Applied rewrites99.4%

            \[\leadsto \mathsf{fma}\left(y, 3.13060547623, x\right) - \left(-t \cdot \frac{y}{z \cdot z}\right) \]
        7. Recombined 2 regimes into one program.
        8. Final simplification97.7%

          \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq \infty:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, z \cdot \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), a\right), b\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}, \mathsf{fma}\left(y, t \cdot \frac{z \cdot z}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}, x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right) - \left(-t \cdot \frac{y}{z \cdot z}\right)\\ \end{array} \]
        9. Add Preprocessing

        Alternative 4: 98.2% accurate, 1.1× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y, 3.13060547623, x\right) - \left(-t \cdot \frac{y}{z \cdot z}\right)\\ \mathbf{if}\;z \leq -2.1 \cdot 10^{+50}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.45 \cdot 10^{+40}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), \frac{y}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t a b)
         :precision binary64
         (let* ((t_1 (- (fma y 3.13060547623 x) (- (* t (/ y (* z z)))))))
           (if (<= z -2.1e+50)
             t_1
             (if (<= z 1.45e+40)
               (fma
                (fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b)
                (/
                 y
                 (fma
                  z
                  (fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)
                  0.607771387771))
                x)
               t_1))))
        double code(double x, double y, double z, double t, double a, double b) {
        	double t_1 = fma(y, 3.13060547623, x) - -(t * (y / (z * z)));
        	double tmp;
        	if (z <= -2.1e+50) {
        		tmp = t_1;
        	} else if (z <= 1.45e+40) {
        		tmp = fma(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b), (y / fma(z, fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x);
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a, b)
        	t_1 = Float64(fma(y, 3.13060547623, x) - Float64(-Float64(t * Float64(y / Float64(z * z)))))
        	tmp = 0.0
        	if (z <= -2.1e+50)
        		tmp = t_1;
        	elseif (z <= 1.45e+40)
        		tmp = fma(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b), Float64(y / fma(z, fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x);
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * 3.13060547623 + x), $MachinePrecision] - (-N[(t * N[(y / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[z, -2.1e+50], t$95$1, If[LessEqual[z, 1.45e+40], N[(N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision] * N[(y / N[(z * N[(z * N[(z * N[(z + 15.234687407), $MachinePrecision] + 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \mathsf{fma}\left(y, 3.13060547623, x\right) - \left(-t \cdot \frac{y}{z \cdot z}\right)\\
        \mathbf{if}\;z \leq -2.1 \cdot 10^{+50}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;z \leq 1.45 \cdot 10^{+40}:\\
        \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), \frac{y}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}, x\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if z < -2.1e50 or 1.45000000000000009e40 < z

          1. Initial program 4.8%

            \[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. Add Preprocessing
          3. Taylor expanded in z around -inf

            \[\leadsto \color{blue}{x + \left(-1 \cdot \frac{\left(\frac{-55833770631}{5000000000} \cdot y + -1 \cdot \frac{t \cdot y - \left(\frac{-15234687407}{1000000000} \cdot \left(\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y\right) + \frac{98517059967927196814627}{1000000000000000000000} \cdot y\right)}{z}\right) - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z} + \frac{313060547623}{100000000000} \cdot y\right)} \]
          4. Applied rewrites88.5%

            \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right) - \frac{\frac{\mathsf{fma}\left(y, t, \mathsf{fma}\left(y, -98.5170599679272, y \cdot 556.47806218377\right)\right)}{-z} + y \cdot 36.52704169880642}{z}} \]
          5. Taylor expanded in t around inf

            \[\leadsto \mathsf{fma}\left(y, \frac{313060547623}{100000000000}, x\right) - -1 \cdot \color{blue}{\frac{t \cdot y}{{z}^{2}}} \]
          6. Step-by-step derivation
            1. Applied rewrites98.6%

              \[\leadsto \mathsf{fma}\left(y, 3.13060547623, x\right) - \left(-t \cdot \frac{y}{z \cdot z}\right) \]

            if -2.1e50 < z < 1.45000000000000009e40

            1. Initial program 96.4%

              \[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. Add Preprocessing
            3. Step-by-step derivation
              1. lift-+.f64N/A

                \[\leadsto \color{blue}{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)}{\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. +-commutativeN/A

                \[\leadsto \color{blue}{\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)}{\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}} + x} \]
              3. lift-/.f64N/A

                \[\leadsto \color{blue}{\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)}{\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}}} + x \]
              4. lift-*.f64N/A

                \[\leadsto \frac{\color{blue}{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)}}{\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}} + x \]
              5. *-commutativeN/A

                \[\leadsto \frac{\color{blue}{\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) \cdot y}}{\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}} + x \]
              6. associate-/l*N/A

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

                \[\leadsto \color{blue}{\mathsf{fma}\left(\left(\left(\left(z \cdot \frac{313060547623}{100000000000} + \frac{55833770631}{5000000000}\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b, \frac{y}{\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}}, x\right)} \]
            4. Applied rewrites98.4%

              \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), \frac{y}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}, x\right)} \]
          7. Recombined 2 regimes into one program.
          8. Add Preprocessing

          Alternative 5: 96.0% accurate, 1.3× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y, 3.13060547623, x\right) - \left(-t \cdot \frac{y}{z \cdot z}\right)\\ \mathbf{if}\;z \leq -0.06:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 7.8:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(z, 549.8376187179895, -32.324150453290734\right), 1.6453555072203998\right), y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
          (FPCore (x y z t a b)
           :precision binary64
           (let* ((t_1 (- (fma y 3.13060547623 x) (- (* t (/ y (* z z)))))))
             (if (<= z -0.06)
               t_1
               (if (<= z 7.8)
                 (fma
                  (fma
                   z
                   (fma z 549.8376187179895 -32.324150453290734)
                   1.6453555072203998)
                  (* y (fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b))
                  x)
                 t_1))))
          double code(double x, double y, double z, double t, double a, double b) {
          	double t_1 = fma(y, 3.13060547623, x) - -(t * (y / (z * z)));
          	double tmp;
          	if (z <= -0.06) {
          		tmp = t_1;
          	} else if (z <= 7.8) {
          		tmp = fma(fma(z, fma(z, 549.8376187179895, -32.324150453290734), 1.6453555072203998), (y * fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b)), x);
          	} else {
          		tmp = t_1;
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a, b)
          	t_1 = Float64(fma(y, 3.13060547623, x) - Float64(-Float64(t * Float64(y / Float64(z * z)))))
          	tmp = 0.0
          	if (z <= -0.06)
          		tmp = t_1;
          	elseif (z <= 7.8)
          		tmp = fma(fma(z, fma(z, 549.8376187179895, -32.324150453290734), 1.6453555072203998), Float64(y * fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b)), x);
          	else
          		tmp = t_1;
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * 3.13060547623 + x), $MachinePrecision] - (-N[(t * N[(y / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[z, -0.06], t$95$1, If[LessEqual[z, 7.8], N[(N[(z * N[(z * 549.8376187179895 + -32.324150453290734), $MachinePrecision] + 1.6453555072203998), $MachinePrecision] * N[(y * N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \mathsf{fma}\left(y, 3.13060547623, x\right) - \left(-t \cdot \frac{y}{z \cdot z}\right)\\
          \mathbf{if}\;z \leq -0.06:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;z \leq 7.8:\\
          \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(z, 549.8376187179895, -32.324150453290734\right), 1.6453555072203998\right), y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), x\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if z < -0.059999999999999998 or 7.79999999999999982 < z

            1. Initial program 16.3%

              \[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. Add Preprocessing
            3. Taylor expanded in z around -inf

              \[\leadsto \color{blue}{x + \left(-1 \cdot \frac{\left(\frac{-55833770631}{5000000000} \cdot y + -1 \cdot \frac{t \cdot y - \left(\frac{-15234687407}{1000000000} \cdot \left(\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y\right) + \frac{98517059967927196814627}{1000000000000000000000} \cdot y\right)}{z}\right) - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z} + \frac{313060547623}{100000000000} \cdot y\right)} \]
            4. Applied rewrites86.9%

              \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right) - \frac{\frac{\mathsf{fma}\left(y, t, \mathsf{fma}\left(y, -98.5170599679272, y \cdot 556.47806218377\right)\right)}{-z} + y \cdot 36.52704169880642}{z}} \]
            5. Taylor expanded in t around inf

              \[\leadsto \mathsf{fma}\left(y, \frac{313060547623}{100000000000}, x\right) - -1 \cdot \color{blue}{\frac{t \cdot y}{{z}^{2}}} \]
            6. Step-by-step derivation
              1. Applied rewrites95.2%

                \[\leadsto \mathsf{fma}\left(y, 3.13060547623, x\right) - \left(-t \cdot \frac{y}{z \cdot z}\right) \]

              if -0.059999999999999998 < z < 7.79999999999999982

              1. Initial program 99.6%

                \[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. Add Preprocessing
              3. Applied rewrites99.7%

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

                \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{1000000000000}{607771387771} + z \cdot \left(\frac{123439798033292669987862100000000000000}{224502278183706222041215714334315011} \cdot z - \frac{11940090572100000000000000}{369386059793087248348441}\right)}, y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{313060547623}{100000000000}, \frac{55833770631}{5000000000}\right), t\right), a\right), b\right), x\right) \]
              5. Step-by-step derivation
                1. +-commutativeN/A

                  \[\leadsto \mathsf{fma}\left(\color{blue}{z \cdot \left(\frac{123439798033292669987862100000000000000}{224502278183706222041215714334315011} \cdot z - \frac{11940090572100000000000000}{369386059793087248348441}\right) + \frac{1000000000000}{607771387771}}, y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{313060547623}{100000000000}, \frac{55833770631}{5000000000}\right), t\right), a\right), b\right), x\right) \]
                2. lower-fma.f64N/A

                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, \frac{123439798033292669987862100000000000000}{224502278183706222041215714334315011} \cdot z - \frac{11940090572100000000000000}{369386059793087248348441}, \frac{1000000000000}{607771387771}\right)}, y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{313060547623}{100000000000}, \frac{55833770631}{5000000000}\right), t\right), a\right), b\right), x\right) \]
                3. sub-negN/A

                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, \color{blue}{\frac{123439798033292669987862100000000000000}{224502278183706222041215714334315011} \cdot z + \left(\mathsf{neg}\left(\frac{11940090572100000000000000}{369386059793087248348441}\right)\right)}, \frac{1000000000000}{607771387771}\right), y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{313060547623}{100000000000}, \frac{55833770631}{5000000000}\right), t\right), a\right), b\right), x\right) \]
                4. *-commutativeN/A

                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, \color{blue}{z \cdot \frac{123439798033292669987862100000000000000}{224502278183706222041215714334315011}} + \left(\mathsf{neg}\left(\frac{11940090572100000000000000}{369386059793087248348441}\right)\right), \frac{1000000000000}{607771387771}\right), y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{313060547623}{100000000000}, \frac{55833770631}{5000000000}\right), t\right), a\right), b\right), x\right) \]
                5. metadata-evalN/A

                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, z \cdot \frac{123439798033292669987862100000000000000}{224502278183706222041215714334315011} + \color{blue}{\frac{-11940090572100000000000000}{369386059793087248348441}}, \frac{1000000000000}{607771387771}\right), y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{313060547623}{100000000000}, \frac{55833770631}{5000000000}\right), t\right), a\right), b\right), x\right) \]
                6. lower-fma.f6499.3

                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, 549.8376187179895, -32.324150453290734\right)}, 1.6453555072203998\right), y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), x\right) \]
              6. Applied rewrites99.3%

                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 549.8376187179895, -32.324150453290734\right), 1.6453555072203998\right)}, y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), x\right) \]
            7. Recombined 2 regimes into one program.
            8. Add Preprocessing

            Alternative 6: 95.8% accurate, 1.5× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y, 3.13060547623, x\right) - \left(-t \cdot \frac{y}{z \cdot z}\right)\\ \mathbf{if}\;z \leq -0.06:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 0.05:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(z, -32.324150453290734, 1.6453555072203998\right), y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (let* ((t_1 (- (fma y 3.13060547623 x) (- (* t (/ y (* z z)))))))
               (if (<= z -0.06)
                 t_1
                 (if (<= z 0.05)
                   (fma
                    (fma z -32.324150453290734 1.6453555072203998)
                    (* y (fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b))
                    x)
                   t_1))))
            double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = fma(y, 3.13060547623, x) - -(t * (y / (z * z)));
            	double tmp;
            	if (z <= -0.06) {
            		tmp = t_1;
            	} else if (z <= 0.05) {
            		tmp = fma(fma(z, -32.324150453290734, 1.6453555072203998), (y * fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b)), x);
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a, b)
            	t_1 = Float64(fma(y, 3.13060547623, x) - Float64(-Float64(t * Float64(y / Float64(z * z)))))
            	tmp = 0.0
            	if (z <= -0.06)
            		tmp = t_1;
            	elseif (z <= 0.05)
            		tmp = fma(fma(z, -32.324150453290734, 1.6453555072203998), Float64(y * fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b)), x);
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * 3.13060547623 + x), $MachinePrecision] - (-N[(t * N[(y / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[z, -0.06], t$95$1, If[LessEqual[z, 0.05], N[(N[(z * -32.324150453290734 + 1.6453555072203998), $MachinePrecision] * N[(y * N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \mathsf{fma}\left(y, 3.13060547623, x\right) - \left(-t \cdot \frac{y}{z \cdot z}\right)\\
            \mathbf{if}\;z \leq -0.06:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;z \leq 0.05:\\
            \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(z, -32.324150453290734, 1.6453555072203998\right), y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), x\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if z < -0.059999999999999998 or 0.050000000000000003 < z

              1. Initial program 16.3%

                \[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. Add Preprocessing
              3. Taylor expanded in z around -inf

                \[\leadsto \color{blue}{x + \left(-1 \cdot \frac{\left(\frac{-55833770631}{5000000000} \cdot y + -1 \cdot \frac{t \cdot y - \left(\frac{-15234687407}{1000000000} \cdot \left(\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y\right) + \frac{98517059967927196814627}{1000000000000000000000} \cdot y\right)}{z}\right) - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z} + \frac{313060547623}{100000000000} \cdot y\right)} \]
              4. Applied rewrites86.9%

                \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right) - \frac{\frac{\mathsf{fma}\left(y, t, \mathsf{fma}\left(y, -98.5170599679272, y \cdot 556.47806218377\right)\right)}{-z} + y \cdot 36.52704169880642}{z}} \]
              5. Taylor expanded in t around inf

                \[\leadsto \mathsf{fma}\left(y, \frac{313060547623}{100000000000}, x\right) - -1 \cdot \color{blue}{\frac{t \cdot y}{{z}^{2}}} \]
              6. Step-by-step derivation
                1. Applied rewrites95.2%

                  \[\leadsto \mathsf{fma}\left(y, 3.13060547623, x\right) - \left(-t \cdot \frac{y}{z \cdot z}\right) \]

                if -0.059999999999999998 < z < 0.050000000000000003

                1. Initial program 99.6%

                  \[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. Add Preprocessing
                3. Applied rewrites99.7%

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

                  \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{1000000000000}{607771387771} + \frac{-11940090572100000000000000}{369386059793087248348441} \cdot z}, y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{313060547623}{100000000000}, \frac{55833770631}{5000000000}\right), t\right), a\right), b\right), x\right) \]
                5. Step-by-step derivation
                  1. +-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{-11940090572100000000000000}{369386059793087248348441} \cdot z + \frac{1000000000000}{607771387771}}, y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{313060547623}{100000000000}, \frac{55833770631}{5000000000}\right), t\right), a\right), b\right), x\right) \]
                  2. *-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(\color{blue}{z \cdot \frac{-11940090572100000000000000}{369386059793087248348441}} + \frac{1000000000000}{607771387771}, y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{313060547623}{100000000000}, \frac{55833770631}{5000000000}\right), t\right), a\right), b\right), x\right) \]
                  3. lower-fma.f6499.1

                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, -32.324150453290734, 1.6453555072203998\right)}, y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), x\right) \]
                6. Applied rewrites99.1%

                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, -32.324150453290734, 1.6453555072203998\right)}, y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), x\right) \]
              7. Recombined 2 regimes into one program.
              8. Add Preprocessing

              Alternative 7: 95.6% accurate, 1.6× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y, 3.13060547623, x\right) - \left(-t \cdot \frac{y}{z \cdot z}\right)\\ \mathbf{if}\;z \leq -0.06:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 7.8:\\ \;\;\;\;\mathsf{fma}\left(1.6453555072203998, y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
              (FPCore (x y z t a b)
               :precision binary64
               (let* ((t_1 (- (fma y 3.13060547623 x) (- (* t (/ y (* z z)))))))
                 (if (<= z -0.06)
                   t_1
                   (if (<= z 7.8)
                     (fma
                      1.6453555072203998
                      (* y (fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b))
                      x)
                     t_1))))
              double code(double x, double y, double z, double t, double a, double b) {
              	double t_1 = fma(y, 3.13060547623, x) - -(t * (y / (z * z)));
              	double tmp;
              	if (z <= -0.06) {
              		tmp = t_1;
              	} else if (z <= 7.8) {
              		tmp = fma(1.6453555072203998, (y * fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b)), x);
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              function code(x, y, z, t, a, b)
              	t_1 = Float64(fma(y, 3.13060547623, x) - Float64(-Float64(t * Float64(y / Float64(z * z)))))
              	tmp = 0.0
              	if (z <= -0.06)
              		tmp = t_1;
              	elseif (z <= 7.8)
              		tmp = fma(1.6453555072203998, Float64(y * fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b)), x);
              	else
              		tmp = t_1;
              	end
              	return tmp
              end
              
              code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * 3.13060547623 + x), $MachinePrecision] - (-N[(t * N[(y / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[z, -0.06], t$95$1, If[LessEqual[z, 7.8], N[(1.6453555072203998 * N[(y * N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := \mathsf{fma}\left(y, 3.13060547623, x\right) - \left(-t \cdot \frac{y}{z \cdot z}\right)\\
              \mathbf{if}\;z \leq -0.06:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;z \leq 7.8:\\
              \;\;\;\;\mathsf{fma}\left(1.6453555072203998, y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), x\right)\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if z < -0.059999999999999998 or 7.79999999999999982 < z

                1. Initial program 16.3%

                  \[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. Add Preprocessing
                3. Taylor expanded in z around -inf

                  \[\leadsto \color{blue}{x + \left(-1 \cdot \frac{\left(\frac{-55833770631}{5000000000} \cdot y + -1 \cdot \frac{t \cdot y - \left(\frac{-15234687407}{1000000000} \cdot \left(\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y\right) + \frac{98517059967927196814627}{1000000000000000000000} \cdot y\right)}{z}\right) - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z} + \frac{313060547623}{100000000000} \cdot y\right)} \]
                4. Applied rewrites86.9%

                  \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right) - \frac{\frac{\mathsf{fma}\left(y, t, \mathsf{fma}\left(y, -98.5170599679272, y \cdot 556.47806218377\right)\right)}{-z} + y \cdot 36.52704169880642}{z}} \]
                5. Taylor expanded in t around inf

                  \[\leadsto \mathsf{fma}\left(y, \frac{313060547623}{100000000000}, x\right) - -1 \cdot \color{blue}{\frac{t \cdot y}{{z}^{2}}} \]
                6. Step-by-step derivation
                  1. Applied rewrites95.2%

                    \[\leadsto \mathsf{fma}\left(y, 3.13060547623, x\right) - \left(-t \cdot \frac{y}{z \cdot z}\right) \]

                  if -0.059999999999999998 < z < 7.79999999999999982

                  1. Initial program 99.6%

                    \[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. Add Preprocessing
                  3. Applied rewrites99.7%

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

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

                      \[\leadsto \mathsf{fma}\left(\color{blue}{1.6453555072203998}, y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), x\right) \]
                  6. Recombined 2 regimes into one program.
                  7. Add Preprocessing

                  Alternative 8: 91.9% accurate, 1.8× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y, 3.13060547623, x\right) - \left(-t \cdot \frac{y}{z \cdot z}\right)\\ \mathbf{if}\;z \leq -1.45 \cdot 10^{+29}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 0.044:\\ \;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(z, \mathsf{fma}\left(b, -32.324150453290734, a \cdot 1.6453555072203998\right), b \cdot 1.6453555072203998\right), x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                  (FPCore (x y z t a b)
                   :precision binary64
                   (let* ((t_1 (- (fma y 3.13060547623 x) (- (* t (/ y (* z z)))))))
                     (if (<= z -1.45e+29)
                       t_1
                       (if (<= z 0.044)
                         (fma
                          y
                          (fma
                           z
                           (fma b -32.324150453290734 (* a 1.6453555072203998))
                           (* b 1.6453555072203998))
                          x)
                         t_1))))
                  double code(double x, double y, double z, double t, double a, double b) {
                  	double t_1 = fma(y, 3.13060547623, x) - -(t * (y / (z * z)));
                  	double tmp;
                  	if (z <= -1.45e+29) {
                  		tmp = t_1;
                  	} else if (z <= 0.044) {
                  		tmp = fma(y, fma(z, fma(b, -32.324150453290734, (a * 1.6453555072203998)), (b * 1.6453555072203998)), x);
                  	} else {
                  		tmp = t_1;
                  	}
                  	return tmp;
                  }
                  
                  function code(x, y, z, t, a, b)
                  	t_1 = Float64(fma(y, 3.13060547623, x) - Float64(-Float64(t * Float64(y / Float64(z * z)))))
                  	tmp = 0.0
                  	if (z <= -1.45e+29)
                  		tmp = t_1;
                  	elseif (z <= 0.044)
                  		tmp = fma(y, fma(z, fma(b, -32.324150453290734, Float64(a * 1.6453555072203998)), Float64(b * 1.6453555072203998)), x);
                  	else
                  		tmp = t_1;
                  	end
                  	return tmp
                  end
                  
                  code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * 3.13060547623 + x), $MachinePrecision] - (-N[(t * N[(y / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[z, -1.45e+29], t$95$1, If[LessEqual[z, 0.044], N[(y * N[(z * N[(b * -32.324150453290734 + N[(a * 1.6453555072203998), $MachinePrecision]), $MachinePrecision] + N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := \mathsf{fma}\left(y, 3.13060547623, x\right) - \left(-t \cdot \frac{y}{z \cdot z}\right)\\
                  \mathbf{if}\;z \leq -1.45 \cdot 10^{+29}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;z \leq 0.044:\\
                  \;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(z, \mathsf{fma}\left(b, -32.324150453290734, a \cdot 1.6453555072203998\right), b \cdot 1.6453555072203998\right), x\right)\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_1\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if z < -1.45e29 or 0.043999999999999997 < z

                    1. Initial program 13.7%

                      \[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. Add Preprocessing
                    3. Taylor expanded in z around -inf

                      \[\leadsto \color{blue}{x + \left(-1 \cdot \frac{\left(\frac{-55833770631}{5000000000} \cdot y + -1 \cdot \frac{t \cdot y - \left(\frac{-15234687407}{1000000000} \cdot \left(\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y\right) + \frac{98517059967927196814627}{1000000000000000000000} \cdot y\right)}{z}\right) - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z} + \frac{313060547623}{100000000000} \cdot y\right)} \]
                    4. Applied rewrites87.1%

                      \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right) - \frac{\frac{\mathsf{fma}\left(y, t, \mathsf{fma}\left(y, -98.5170599679272, y \cdot 556.47806218377\right)\right)}{-z} + y \cdot 36.52704169880642}{z}} \]
                    5. Taylor expanded in t around inf

                      \[\leadsto \mathsf{fma}\left(y, \frac{313060547623}{100000000000}, x\right) - -1 \cdot \color{blue}{\frac{t \cdot y}{{z}^{2}}} \]
                    6. Step-by-step derivation
                      1. Applied rewrites96.3%

                        \[\leadsto \mathsf{fma}\left(y, 3.13060547623, x\right) - \left(-t \cdot \frac{y}{z \cdot z}\right) \]

                      if -1.45e29 < z < 0.043999999999999997

                      1. Initial program 99.6%

                        \[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. Add Preprocessing
                      3. Applied rewrites99.7%

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

                        \[\leadsto \color{blue}{x + \left(\frac{1000000000000}{607771387771} \cdot \left(b \cdot y\right) + z \cdot \left(\frac{1000000000000}{607771387771} \cdot \left(a \cdot y\right) - \frac{11940090572100000000000000}{369386059793087248348441} \cdot \left(b \cdot y\right)\right)\right)} \]
                      5. Step-by-step derivation
                        1. +-commutativeN/A

                          \[\leadsto \color{blue}{\left(\frac{1000000000000}{607771387771} \cdot \left(b \cdot y\right) + z \cdot \left(\frac{1000000000000}{607771387771} \cdot \left(a \cdot y\right) - \frac{11940090572100000000000000}{369386059793087248348441} \cdot \left(b \cdot y\right)\right)\right) + x} \]
                        2. associate-*r*N/A

                          \[\leadsto \left(\color{blue}{\left(\frac{1000000000000}{607771387771} \cdot b\right) \cdot y} + z \cdot \left(\frac{1000000000000}{607771387771} \cdot \left(a \cdot y\right) - \frac{11940090572100000000000000}{369386059793087248348441} \cdot \left(b \cdot y\right)\right)\right) + x \]
                        3. cancel-sign-sub-invN/A

                          \[\leadsto \left(\left(\frac{1000000000000}{607771387771} \cdot b\right) \cdot y + z \cdot \color{blue}{\left(\frac{1000000000000}{607771387771} \cdot \left(a \cdot y\right) + \left(\mathsf{neg}\left(\frac{11940090572100000000000000}{369386059793087248348441}\right)\right) \cdot \left(b \cdot y\right)\right)}\right) + x \]
                        4. metadata-evalN/A

                          \[\leadsto \left(\left(\frac{1000000000000}{607771387771} \cdot b\right) \cdot y + z \cdot \left(\frac{1000000000000}{607771387771} \cdot \left(a \cdot y\right) + \color{blue}{\frac{-11940090572100000000000000}{369386059793087248348441}} \cdot \left(b \cdot y\right)\right)\right) + x \]
                        5. +-commutativeN/A

                          \[\leadsto \left(\left(\frac{1000000000000}{607771387771} \cdot b\right) \cdot y + z \cdot \color{blue}{\left(\frac{-11940090572100000000000000}{369386059793087248348441} \cdot \left(b \cdot y\right) + \frac{1000000000000}{607771387771} \cdot \left(a \cdot y\right)\right)}\right) + x \]
                        6. associate-*r*N/A

                          \[\leadsto \left(\left(\frac{1000000000000}{607771387771} \cdot b\right) \cdot y + z \cdot \left(\color{blue}{\left(\frac{-11940090572100000000000000}{369386059793087248348441} \cdot b\right) \cdot y} + \frac{1000000000000}{607771387771} \cdot \left(a \cdot y\right)\right)\right) + x \]
                        7. associate-*r*N/A

                          \[\leadsto \left(\left(\frac{1000000000000}{607771387771} \cdot b\right) \cdot y + z \cdot \left(\left(\frac{-11940090572100000000000000}{369386059793087248348441} \cdot b\right) \cdot y + \color{blue}{\left(\frac{1000000000000}{607771387771} \cdot a\right) \cdot y}\right)\right) + x \]
                        8. distribute-rgt-inN/A

                          \[\leadsto \left(\left(\frac{1000000000000}{607771387771} \cdot b\right) \cdot y + z \cdot \color{blue}{\left(y \cdot \left(\frac{-11940090572100000000000000}{369386059793087248348441} \cdot b + \frac{1000000000000}{607771387771} \cdot a\right)\right)}\right) + x \]
                        9. *-commutativeN/A

                          \[\leadsto \left(\left(\frac{1000000000000}{607771387771} \cdot b\right) \cdot y + z \cdot \color{blue}{\left(\left(\frac{-11940090572100000000000000}{369386059793087248348441} \cdot b + \frac{1000000000000}{607771387771} \cdot a\right) \cdot y\right)}\right) + x \]
                        10. associate-*r*N/A

                          \[\leadsto \left(\left(\frac{1000000000000}{607771387771} \cdot b\right) \cdot y + \color{blue}{\left(z \cdot \left(\frac{-11940090572100000000000000}{369386059793087248348441} \cdot b + \frac{1000000000000}{607771387771} \cdot a\right)\right) \cdot y}\right) + x \]
                        11. distribute-rgt-inN/A

                          \[\leadsto \color{blue}{y \cdot \left(\frac{1000000000000}{607771387771} \cdot b + z \cdot \left(\frac{-11940090572100000000000000}{369386059793087248348441} \cdot b + \frac{1000000000000}{607771387771} \cdot a\right)\right)} + x \]
                        12. lower-fma.f64N/A

                          \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{1000000000000}{607771387771} \cdot b + z \cdot \left(\frac{-11940090572100000000000000}{369386059793087248348441} \cdot b + \frac{1000000000000}{607771387771} \cdot a\right), x\right)} \]
                      6. Applied rewrites89.8%

                        \[\leadsto \color{blue}{\mathsf{fma}\left(y, \mathsf{fma}\left(z, \mathsf{fma}\left(b, -32.324150453290734, a \cdot 1.6453555072203998\right), b \cdot 1.6453555072203998\right), x\right)} \]
                    7. Recombined 2 regimes into one program.
                    8. Add Preprocessing

                    Alternative 9: 89.5% accurate, 1.9× speedup?

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

                      1. Initial program 9.7%

                        \[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. Add Preprocessing
                      3. Taylor expanded in z around inf

                        \[\leadsto \color{blue}{x + \frac{313060547623}{100000000000} \cdot y} \]
                      4. Step-by-step derivation
                        1. +-commutativeN/A

                          \[\leadsto \color{blue}{\frac{313060547623}{100000000000} \cdot y + x} \]
                        2. *-commutativeN/A

                          \[\leadsto \color{blue}{y \cdot \frac{313060547623}{100000000000}} + x \]
                        3. lower-fma.f6495.4

                          \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right)} \]
                      5. Applied rewrites95.4%

                        \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right)} \]

                      if -1.45e29 < z < 3e3

                      1. Initial program 99.6%

                        \[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. Add Preprocessing
                      3. Applied rewrites99.7%

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

                        \[\leadsto \color{blue}{x + \left(\frac{1000000000000}{607771387771} \cdot \left(b \cdot y\right) + z \cdot \left(\frac{1000000000000}{607771387771} \cdot \left(a \cdot y\right) - \frac{11940090572100000000000000}{369386059793087248348441} \cdot \left(b \cdot y\right)\right)\right)} \]
                      5. Step-by-step derivation
                        1. +-commutativeN/A

                          \[\leadsto \color{blue}{\left(\frac{1000000000000}{607771387771} \cdot \left(b \cdot y\right) + z \cdot \left(\frac{1000000000000}{607771387771} \cdot \left(a \cdot y\right) - \frac{11940090572100000000000000}{369386059793087248348441} \cdot \left(b \cdot y\right)\right)\right) + x} \]
                        2. associate-*r*N/A

                          \[\leadsto \left(\color{blue}{\left(\frac{1000000000000}{607771387771} \cdot b\right) \cdot y} + z \cdot \left(\frac{1000000000000}{607771387771} \cdot \left(a \cdot y\right) - \frac{11940090572100000000000000}{369386059793087248348441} \cdot \left(b \cdot y\right)\right)\right) + x \]
                        3. cancel-sign-sub-invN/A

                          \[\leadsto \left(\left(\frac{1000000000000}{607771387771} \cdot b\right) \cdot y + z \cdot \color{blue}{\left(\frac{1000000000000}{607771387771} \cdot \left(a \cdot y\right) + \left(\mathsf{neg}\left(\frac{11940090572100000000000000}{369386059793087248348441}\right)\right) \cdot \left(b \cdot y\right)\right)}\right) + x \]
                        4. metadata-evalN/A

                          \[\leadsto \left(\left(\frac{1000000000000}{607771387771} \cdot b\right) \cdot y + z \cdot \left(\frac{1000000000000}{607771387771} \cdot \left(a \cdot y\right) + \color{blue}{\frac{-11940090572100000000000000}{369386059793087248348441}} \cdot \left(b \cdot y\right)\right)\right) + x \]
                        5. +-commutativeN/A

                          \[\leadsto \left(\left(\frac{1000000000000}{607771387771} \cdot b\right) \cdot y + z \cdot \color{blue}{\left(\frac{-11940090572100000000000000}{369386059793087248348441} \cdot \left(b \cdot y\right) + \frac{1000000000000}{607771387771} \cdot \left(a \cdot y\right)\right)}\right) + x \]
                        6. associate-*r*N/A

                          \[\leadsto \left(\left(\frac{1000000000000}{607771387771} \cdot b\right) \cdot y + z \cdot \left(\color{blue}{\left(\frac{-11940090572100000000000000}{369386059793087248348441} \cdot b\right) \cdot y} + \frac{1000000000000}{607771387771} \cdot \left(a \cdot y\right)\right)\right) + x \]
                        7. associate-*r*N/A

                          \[\leadsto \left(\left(\frac{1000000000000}{607771387771} \cdot b\right) \cdot y + z \cdot \left(\left(\frac{-11940090572100000000000000}{369386059793087248348441} \cdot b\right) \cdot y + \color{blue}{\left(\frac{1000000000000}{607771387771} \cdot a\right) \cdot y}\right)\right) + x \]
                        8. distribute-rgt-inN/A

                          \[\leadsto \left(\left(\frac{1000000000000}{607771387771} \cdot b\right) \cdot y + z \cdot \color{blue}{\left(y \cdot \left(\frac{-11940090572100000000000000}{369386059793087248348441} \cdot b + \frac{1000000000000}{607771387771} \cdot a\right)\right)}\right) + x \]
                        9. *-commutativeN/A

                          \[\leadsto \left(\left(\frac{1000000000000}{607771387771} \cdot b\right) \cdot y + z \cdot \color{blue}{\left(\left(\frac{-11940090572100000000000000}{369386059793087248348441} \cdot b + \frac{1000000000000}{607771387771} \cdot a\right) \cdot y\right)}\right) + x \]
                        10. associate-*r*N/A

                          \[\leadsto \left(\left(\frac{1000000000000}{607771387771} \cdot b\right) \cdot y + \color{blue}{\left(z \cdot \left(\frac{-11940090572100000000000000}{369386059793087248348441} \cdot b + \frac{1000000000000}{607771387771} \cdot a\right)\right) \cdot y}\right) + x \]
                        11. distribute-rgt-inN/A

                          \[\leadsto \color{blue}{y \cdot \left(\frac{1000000000000}{607771387771} \cdot b + z \cdot \left(\frac{-11940090572100000000000000}{369386059793087248348441} \cdot b + \frac{1000000000000}{607771387771} \cdot a\right)\right)} + x \]
                        12. lower-fma.f64N/A

                          \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{1000000000000}{607771387771} \cdot b + z \cdot \left(\frac{-11940090572100000000000000}{369386059793087248348441} \cdot b + \frac{1000000000000}{607771387771} \cdot a\right), x\right)} \]
                      6. Applied rewrites89.9%

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

                      if 3e3 < z

                      1. Initial program 16.4%

                        \[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. Add Preprocessing
                      3. Applied rewrites16.4%

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

                        \[\leadsto \mathsf{fma}\left(\frac{1}{\mathsf{fma}\left(z, \color{blue}{\frac{119400905721}{10000000000}}, \frac{607771387771}{1000000000000}\right)}, y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{313060547623}{100000000000}, \frac{55833770631}{5000000000}\right), t\right), a\right), b\right), x\right) \]
                      5. Step-by-step derivation
                        1. Applied rewrites17.4%

                          \[\leadsto \mathsf{fma}\left(\frac{1}{\mathsf{fma}\left(z, \color{blue}{11.9400905721}, 0.607771387771\right)}, y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), x\right) \]
                        2. Taylor expanded in a around 0

                          \[\leadsto \color{blue}{x + \frac{y \cdot \left(b + {z}^{2} \cdot \left(t + z \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)\right)}{\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. +-commutativeN/A

                            \[\leadsto \color{blue}{\frac{y \cdot \left(b + {z}^{2} \cdot \left(t + z \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)\right)}{\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)} + x} \]
                          2. associate-/l*N/A

                            \[\leadsto \color{blue}{y \cdot \frac{b + {z}^{2} \cdot \left(t + z \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)}{\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)}} + x \]
                          3. lower-fma.f64N/A

                            \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{b + {z}^{2} \cdot \left(t + z \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)}{\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)}, x\right)} \]
                        4. Applied rewrites22.3%

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

                          \[\leadsto \mathsf{fma}\left(y, \frac{313060547623}{100000000000} - \color{blue}{\frac{3652704169880641883561}{100000000000000000000} \cdot \frac{1}{z}}, x\right) \]
                        6. Step-by-step derivation
                          1. Applied rewrites85.0%

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

                        Alternative 10: 82.7% accurate, 2.1× speedup?

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

                          1. Initial program 9.7%

                            \[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. Add Preprocessing
                          3. Taylor expanded in z around inf

                            \[\leadsto \color{blue}{x + \frac{313060547623}{100000000000} \cdot y} \]
                          4. Step-by-step derivation
                            1. +-commutativeN/A

                              \[\leadsto \color{blue}{\frac{313060547623}{100000000000} \cdot y + x} \]
                            2. *-commutativeN/A

                              \[\leadsto \color{blue}{y \cdot \frac{313060547623}{100000000000}} + x \]
                            3. lower-fma.f6495.4

                              \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right)} \]
                          5. Applied rewrites95.4%

                            \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right)} \]

                          if -2.65e29 < z < 4.3999999999999997e-18

                          1. Initial program 99.6%

                            \[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. Add Preprocessing
                          3. Taylor expanded in b around inf

                            \[\leadsto x + \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)}} \]
                          4. Step-by-step derivation
                            1. lower-/.f64N/A

                              \[\leadsto x + \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)}} \]
                            2. *-commutativeN/A

                              \[\leadsto x + \frac{\color{blue}{y \cdot b}}{\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 x + \frac{\color{blue}{y \cdot b}}{\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)} \]
                            4. +-commutativeN/A

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

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

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

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

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

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

                              \[\leadsto x + \frac{y \cdot b}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z + \frac{15234687407}{1000000000}}, \frac{314690115749}{10000000000}\right), \frac{119400905721}{10000000000}\right), \frac{607771387771}{1000000000000}\right)} \]
                            11. lower-+.f6483.6

                              \[\leadsto x + \frac{y \cdot b}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z + 15.234687407}, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)} \]
                          5. Applied rewrites83.6%

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

                            \[\leadsto x + \left(\frac{-11940090572100000000000000}{369386059793087248348441} \cdot \left(b \cdot \left(y \cdot z\right)\right) + \color{blue}{\frac{1000000000000}{607771387771} \cdot \left(b \cdot y\right)}\right) \]
                          7. Step-by-step derivation
                            1. Applied rewrites83.0%

                              \[\leadsto x + b \cdot \color{blue}{\mathsf{fma}\left(y, 1.6453555072203998, y \cdot \left(z \cdot -32.324150453290734\right)\right)} \]

                            if 4.3999999999999997e-18 < z

                            1. Initial program 24.6%

                              \[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. Add Preprocessing
                            3. Applied rewrites24.6%

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

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

                                \[\leadsto \mathsf{fma}\left(\frac{1}{\mathsf{fma}\left(z, \color{blue}{11.9400905721}, 0.607771387771\right)}, y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), x\right) \]
                              2. Taylor expanded in a around 0

                                \[\leadsto \color{blue}{x + \frac{y \cdot \left(b + {z}^{2} \cdot \left(t + z \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)\right)}{\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. +-commutativeN/A

                                  \[\leadsto \color{blue}{\frac{y \cdot \left(b + {z}^{2} \cdot \left(t + z \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)\right)}{\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)} + x} \]
                                2. associate-/l*N/A

                                  \[\leadsto \color{blue}{y \cdot \frac{b + {z}^{2} \cdot \left(t + z \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)}{\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)}} + x \]
                                3. lower-fma.f64N/A

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{b + {z}^{2} \cdot \left(t + z \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)}{\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)}, x\right)} \]
                              4. Applied rewrites27.1%

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

                                \[\leadsto \mathsf{fma}\left(y, \frac{313060547623}{100000000000} - \color{blue}{\frac{3652704169880641883561}{100000000000000000000} \cdot \frac{1}{z}}, x\right) \]
                              6. Step-by-step derivation
                                1. Applied rewrites81.1%

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

                              Alternative 11: 82.7% accurate, 2.3× speedup?

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

                                1. Initial program 9.7%

                                  \[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. Add Preprocessing
                                3. Taylor expanded in z around inf

                                  \[\leadsto \color{blue}{x + \frac{313060547623}{100000000000} \cdot y} \]
                                4. Step-by-step derivation
                                  1. +-commutativeN/A

                                    \[\leadsto \color{blue}{\frac{313060547623}{100000000000} \cdot y + x} \]
                                  2. *-commutativeN/A

                                    \[\leadsto \color{blue}{y \cdot \frac{313060547623}{100000000000}} + x \]
                                  3. lower-fma.f6495.4

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right)} \]
                                5. Applied rewrites95.4%

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right)} \]

                                if -1.45e29 < z < 4.3999999999999997e-18

                                1. Initial program 99.6%

                                  \[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. Add Preprocessing
                                3. Applied rewrites99.7%

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

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

                                    \[\leadsto \mathsf{fma}\left(\frac{1}{\mathsf{fma}\left(z, \color{blue}{11.9400905721}, 0.607771387771\right)}, y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), x\right) \]
                                  2. Taylor expanded in a around 0

                                    \[\leadsto \color{blue}{x + \frac{y \cdot \left(b + {z}^{2} \cdot \left(t + z \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)\right)}{\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. +-commutativeN/A

                                      \[\leadsto \color{blue}{\frac{y \cdot \left(b + {z}^{2} \cdot \left(t + z \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)\right)}{\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)} + x} \]
                                    2. associate-/l*N/A

                                      \[\leadsto \color{blue}{y \cdot \frac{b + {z}^{2} \cdot \left(t + z \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)}{\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)}} + x \]
                                    3. lower-fma.f64N/A

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{b + {z}^{2} \cdot \left(t + z \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)}{\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)}, x\right)} \]
                                  4. Applied rewrites90.8%

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

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

                                      \[\leadsto \mathsf{fma}\left(y, \mathsf{fma}\left(1.6453555072203998, \color{blue}{b}, b \cdot \left(z \cdot -32.324150453290734\right)\right), x\right) \]

                                    if 4.3999999999999997e-18 < z

                                    1. Initial program 24.6%

                                      \[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. Add Preprocessing
                                    3. Applied rewrites24.6%

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

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

                                        \[\leadsto \mathsf{fma}\left(\frac{1}{\mathsf{fma}\left(z, \color{blue}{11.9400905721}, 0.607771387771\right)}, y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), x\right) \]
                                      2. Taylor expanded in a around 0

                                        \[\leadsto \color{blue}{x + \frac{y \cdot \left(b + {z}^{2} \cdot \left(t + z \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)\right)}{\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. +-commutativeN/A

                                          \[\leadsto \color{blue}{\frac{y \cdot \left(b + {z}^{2} \cdot \left(t + z \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)\right)}{\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)} + x} \]
                                        2. associate-/l*N/A

                                          \[\leadsto \color{blue}{y \cdot \frac{b + {z}^{2} \cdot \left(t + z \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)}{\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)}} + x \]
                                        3. lower-fma.f64N/A

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{b + {z}^{2} \cdot \left(t + z \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)}{\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)}, x\right)} \]
                                      4. Applied rewrites27.1%

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

                                        \[\leadsto \mathsf{fma}\left(y, \frac{313060547623}{100000000000} - \color{blue}{\frac{3652704169880641883561}{100000000000000000000} \cdot \frac{1}{z}}, x\right) \]
                                      6. Step-by-step derivation
                                        1. Applied rewrites81.1%

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

                                      Alternative 12: 82.9% accurate, 2.4× speedup?

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

                                        1. Initial program 9.7%

                                          \[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. Add Preprocessing
                                        3. Taylor expanded in z around inf

                                          \[\leadsto \color{blue}{x + \frac{313060547623}{100000000000} \cdot y} \]
                                        4. Step-by-step derivation
                                          1. +-commutativeN/A

                                            \[\leadsto \color{blue}{\frac{313060547623}{100000000000} \cdot y + x} \]
                                          2. *-commutativeN/A

                                            \[\leadsto \color{blue}{y \cdot \frac{313060547623}{100000000000}} + x \]
                                          3. lower-fma.f6495.4

                                            \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right)} \]
                                        5. Applied rewrites95.4%

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right)} \]

                                        if -1.45e29 < z < 44

                                        1. Initial program 99.6%

                                          \[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. Add Preprocessing
                                        3. Applied rewrites99.7%

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

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

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

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

                                            \[\leadsto \color{blue}{\left(y \cdot b\right)} \cdot \frac{1000000000000}{607771387771} + x \]
                                          4. associate-*r*N/A

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

                                            \[\leadsto y \cdot \color{blue}{\left(\frac{1000000000000}{607771387771} \cdot b\right)} + x \]
                                          6. lower-fma.f64N/A

                                            \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{1000000000000}{607771387771} \cdot b, x\right)} \]
                                          7. *-commutativeN/A

                                            \[\leadsto \mathsf{fma}\left(y, \color{blue}{b \cdot \frac{1000000000000}{607771387771}}, x\right) \]
                                          8. lower-*.f6480.6

                                            \[\leadsto \mathsf{fma}\left(y, \color{blue}{b \cdot 1.6453555072203998}, x\right) \]
                                        6. Applied rewrites80.6%

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(y, b \cdot 1.6453555072203998, x\right)} \]
                                        7. Step-by-step derivation
                                          1. Applied rewrites80.7%

                                            \[\leadsto \mathsf{fma}\left(y \cdot 1.6453555072203998, \color{blue}{b}, x\right) \]

                                          if 44 < z

                                          1. Initial program 16.4%

                                            \[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. Add Preprocessing
                                          3. Applied rewrites16.4%

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

                                            \[\leadsto \mathsf{fma}\left(\frac{1}{\mathsf{fma}\left(z, \color{blue}{\frac{119400905721}{10000000000}}, \frac{607771387771}{1000000000000}\right)}, y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \frac{313060547623}{100000000000}, \frac{55833770631}{5000000000}\right), t\right), a\right), b\right), x\right) \]
                                          5. Step-by-step derivation
                                            1. Applied rewrites17.4%

                                              \[\leadsto \mathsf{fma}\left(\frac{1}{\mathsf{fma}\left(z, \color{blue}{11.9400905721}, 0.607771387771\right)}, y \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), x\right) \]
                                            2. Taylor expanded in a around 0

                                              \[\leadsto \color{blue}{x + \frac{y \cdot \left(b + {z}^{2} \cdot \left(t + z \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)\right)}{\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. +-commutativeN/A

                                                \[\leadsto \color{blue}{\frac{y \cdot \left(b + {z}^{2} \cdot \left(t + z \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)\right)}{\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)} + x} \]
                                              2. associate-/l*N/A

                                                \[\leadsto \color{blue}{y \cdot \frac{b + {z}^{2} \cdot \left(t + z \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)}{\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)}} + x \]
                                              3. lower-fma.f64N/A

                                                \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{b + {z}^{2} \cdot \left(t + z \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)}{\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)}, x\right)} \]
                                            4. Applied rewrites22.3%

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

                                              \[\leadsto \mathsf{fma}\left(y, \frac{313060547623}{100000000000} - \color{blue}{\frac{3652704169880641883561}{100000000000000000000} \cdot \frac{1}{z}}, x\right) \]
                                            6. Step-by-step derivation
                                              1. Applied rewrites85.0%

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

                                            Alternative 13: 82.9% accurate, 3.3× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.45 \cdot 10^{+29}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \mathbf{elif}\;z \leq 44:\\ \;\;\;\;\mathsf{fma}\left(y \cdot 1.6453555072203998, b, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \end{array} \end{array} \]
                                            (FPCore (x y z t a b)
                                             :precision binary64
                                             (if (<= z -1.45e+29)
                                               (fma y 3.13060547623 x)
                                               (if (<= z 44.0)
                                                 (fma (* y 1.6453555072203998) b x)
                                                 (fma y 3.13060547623 x))))
                                            double code(double x, double y, double z, double t, double a, double b) {
                                            	double tmp;
                                            	if (z <= -1.45e+29) {
                                            		tmp = fma(y, 3.13060547623, x);
                                            	} else if (z <= 44.0) {
                                            		tmp = fma((y * 1.6453555072203998), b, x);
                                            	} else {
                                            		tmp = fma(y, 3.13060547623, x);
                                            	}
                                            	return tmp;
                                            }
                                            
                                            function code(x, y, z, t, a, b)
                                            	tmp = 0.0
                                            	if (z <= -1.45e+29)
                                            		tmp = fma(y, 3.13060547623, x);
                                            	elseif (z <= 44.0)
                                            		tmp = fma(Float64(y * 1.6453555072203998), b, x);
                                            	else
                                            		tmp = fma(y, 3.13060547623, x);
                                            	end
                                            	return tmp
                                            end
                                            
                                            code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.45e+29], N[(y * 3.13060547623 + x), $MachinePrecision], If[LessEqual[z, 44.0], N[(N[(y * 1.6453555072203998), $MachinePrecision] * b + x), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            \mathbf{if}\;z \leq -1.45 \cdot 10^{+29}:\\
                                            \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
                                            
                                            \mathbf{elif}\;z \leq 44:\\
                                            \;\;\;\;\mathsf{fma}\left(y \cdot 1.6453555072203998, b, x\right)\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 2 regimes
                                            2. if z < -1.45e29 or 44 < z

                                              1. Initial program 13.1%

                                                \[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. Add Preprocessing
                                              3. Taylor expanded in z around inf

                                                \[\leadsto \color{blue}{x + \frac{313060547623}{100000000000} \cdot y} \]
                                              4. Step-by-step derivation
                                                1. +-commutativeN/A

                                                  \[\leadsto \color{blue}{\frac{313060547623}{100000000000} \cdot y + x} \]
                                                2. *-commutativeN/A

                                                  \[\leadsto \color{blue}{y \cdot \frac{313060547623}{100000000000}} + x \]
                                                3. lower-fma.f6489.9

                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right)} \]
                                              5. Applied rewrites89.9%

                                                \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right)} \]

                                              if -1.45e29 < z < 44

                                              1. Initial program 99.6%

                                                \[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. Add Preprocessing
                                              3. Applied rewrites99.7%

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

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

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

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

                                                  \[\leadsto \color{blue}{\left(y \cdot b\right)} \cdot \frac{1000000000000}{607771387771} + x \]
                                                4. associate-*r*N/A

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

                                                  \[\leadsto y \cdot \color{blue}{\left(\frac{1000000000000}{607771387771} \cdot b\right)} + x \]
                                                6. lower-fma.f64N/A

                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{1000000000000}{607771387771} \cdot b, x\right)} \]
                                                7. *-commutativeN/A

                                                  \[\leadsto \mathsf{fma}\left(y, \color{blue}{b \cdot \frac{1000000000000}{607771387771}}, x\right) \]
                                                8. lower-*.f6480.6

                                                  \[\leadsto \mathsf{fma}\left(y, \color{blue}{b \cdot 1.6453555072203998}, x\right) \]
                                              6. Applied rewrites80.6%

                                                \[\leadsto \color{blue}{\mathsf{fma}\left(y, b \cdot 1.6453555072203998, x\right)} \]
                                              7. Step-by-step derivation
                                                1. Applied rewrites80.7%

                                                  \[\leadsto \mathsf{fma}\left(y \cdot 1.6453555072203998, \color{blue}{b}, x\right) \]
                                              8. Recombined 2 regimes into one program.
                                              9. Add Preprocessing

                                              Alternative 14: 82.8% accurate, 3.3× speedup?

                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.45 \cdot 10^{+29}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \mathbf{elif}\;z \leq 44:\\ \;\;\;\;\mathsf{fma}\left(y, b \cdot 1.6453555072203998, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \end{array} \end{array} \]
                                              (FPCore (x y z t a b)
                                               :precision binary64
                                               (if (<= z -1.45e+29)
                                                 (fma y 3.13060547623 x)
                                                 (if (<= z 44.0)
                                                   (fma y (* b 1.6453555072203998) x)
                                                   (fma y 3.13060547623 x))))
                                              double code(double x, double y, double z, double t, double a, double b) {
                                              	double tmp;
                                              	if (z <= -1.45e+29) {
                                              		tmp = fma(y, 3.13060547623, x);
                                              	} else if (z <= 44.0) {
                                              		tmp = fma(y, (b * 1.6453555072203998), x);
                                              	} else {
                                              		tmp = fma(y, 3.13060547623, x);
                                              	}
                                              	return tmp;
                                              }
                                              
                                              function code(x, y, z, t, a, b)
                                              	tmp = 0.0
                                              	if (z <= -1.45e+29)
                                              		tmp = fma(y, 3.13060547623, x);
                                              	elseif (z <= 44.0)
                                              		tmp = fma(y, Float64(b * 1.6453555072203998), x);
                                              	else
                                              		tmp = fma(y, 3.13060547623, x);
                                              	end
                                              	return tmp
                                              end
                                              
                                              code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.45e+29], N[(y * 3.13060547623 + x), $MachinePrecision], If[LessEqual[z, 44.0], N[(y * N[(b * 1.6453555072203998), $MachinePrecision] + x), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]]
                                              
                                              \begin{array}{l}
                                              
                                              \\
                                              \begin{array}{l}
                                              \mathbf{if}\;z \leq -1.45 \cdot 10^{+29}:\\
                                              \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
                                              
                                              \mathbf{elif}\;z \leq 44:\\
                                              \;\;\;\;\mathsf{fma}\left(y, b \cdot 1.6453555072203998, x\right)\\
                                              
                                              \mathbf{else}:\\
                                              \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
                                              
                                              
                                              \end{array}
                                              \end{array}
                                              
                                              Derivation
                                              1. Split input into 2 regimes
                                              2. if z < -1.45e29 or 44 < z

                                                1. Initial program 13.1%

                                                  \[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. Add Preprocessing
                                                3. Taylor expanded in z around inf

                                                  \[\leadsto \color{blue}{x + \frac{313060547623}{100000000000} \cdot y} \]
                                                4. Step-by-step derivation
                                                  1. +-commutativeN/A

                                                    \[\leadsto \color{blue}{\frac{313060547623}{100000000000} \cdot y + x} \]
                                                  2. *-commutativeN/A

                                                    \[\leadsto \color{blue}{y \cdot \frac{313060547623}{100000000000}} + x \]
                                                  3. lower-fma.f6489.9

                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right)} \]
                                                5. Applied rewrites89.9%

                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right)} \]

                                                if -1.45e29 < z < 44

                                                1. Initial program 99.6%

                                                  \[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. Add Preprocessing
                                                3. Taylor expanded in z around 0

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

                                                    \[\leadsto \color{blue}{\frac{1000000000000}{607771387771} \cdot \left(b \cdot y\right) + x} \]
                                                  2. associate-*r*N/A

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

                                                    \[\leadsto \color{blue}{y \cdot \left(\frac{1000000000000}{607771387771} \cdot b\right)} + x \]
                                                  4. lower-fma.f64N/A

                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{1000000000000}{607771387771} \cdot b, x\right)} \]
                                                  5. *-commutativeN/A

                                                    \[\leadsto \mathsf{fma}\left(y, \color{blue}{b \cdot \frac{1000000000000}{607771387771}}, x\right) \]
                                                  6. lower-*.f6480.6

                                                    \[\leadsto \mathsf{fma}\left(y, \color{blue}{b \cdot 1.6453555072203998}, x\right) \]
                                                5. Applied rewrites80.6%

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

                                              Alternative 15: 62.8% accurate, 11.3× speedup?

                                              \[\begin{array}{l} \\ \mathsf{fma}\left(y, 3.13060547623, x\right) \end{array} \]
                                              (FPCore (x y z t a b) :precision binary64 (fma y 3.13060547623 x))
                                              double code(double x, double y, double z, double t, double a, double b) {
                                              	return fma(y, 3.13060547623, x);
                                              }
                                              
                                              function code(x, y, z, t, a, b)
                                              	return fma(y, 3.13060547623, x)
                                              end
                                              
                                              code[x_, y_, z_, t_, a_, b_] := N[(y * 3.13060547623 + x), $MachinePrecision]
                                              
                                              \begin{array}{l}
                                              
                                              \\
                                              \mathsf{fma}\left(y, 3.13060547623, x\right)
                                              \end{array}
                                              
                                              Derivation
                                              1. Initial program 56.4%

                                                \[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. Add Preprocessing
                                              3. Taylor expanded in z around inf

                                                \[\leadsto \color{blue}{x + \frac{313060547623}{100000000000} \cdot y} \]
                                              4. Step-by-step derivation
                                                1. +-commutativeN/A

                                                  \[\leadsto \color{blue}{\frac{313060547623}{100000000000} \cdot y + x} \]
                                                2. *-commutativeN/A

                                                  \[\leadsto \color{blue}{y \cdot \frac{313060547623}{100000000000}} + x \]
                                                3. lower-fma.f6466.0

                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right)} \]
                                              5. Applied rewrites66.0%

                                                \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right)} \]
                                              6. Add Preprocessing

                                              Alternative 16: 22.1% accurate, 13.2× speedup?

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

                                                \[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. Add Preprocessing
                                              3. Taylor expanded in z around inf

                                                \[\leadsto \color{blue}{x + \frac{313060547623}{100000000000} \cdot y} \]
                                              4. Step-by-step derivation
                                                1. +-commutativeN/A

                                                  \[\leadsto \color{blue}{\frac{313060547623}{100000000000} \cdot y + x} \]
                                                2. *-commutativeN/A

                                                  \[\leadsto \color{blue}{y \cdot \frac{313060547623}{100000000000}} + x \]
                                                3. lower-fma.f6466.0

                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right)} \]
                                              5. Applied rewrites66.0%

                                                \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right)} \]
                                              6. Taylor expanded in y around inf

                                                \[\leadsto \frac{313060547623}{100000000000} \cdot \color{blue}{y} \]
                                              7. Step-by-step derivation
                                                1. Applied rewrites20.9%

                                                  \[\leadsto y \cdot \color{blue}{3.13060547623} \]
                                                2. Add Preprocessing

                                                Developer Target 1: 98.6% accurate, 0.8× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \left(\left(3.13060547623 - \frac{36.527041698806414}{z}\right) + \frac{t}{z \cdot z}\right) \cdot \frac{y}{1}\\ \mathbf{if}\;z < -6.499344996252632 \cdot 10^{+53}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z < 7.066965436914287 \cdot 10^{+59}:\\ \;\;\;\;x + \frac{y}{\frac{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}{\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                (FPCore (x y z t a b)
                                                 :precision binary64
                                                 (let* ((t_1
                                                         (+
                                                          x
                                                          (*
                                                           (+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z)))
                                                           (/ y 1.0)))))
                                                   (if (< z -6.499344996252632e+53)
                                                     t_1
                                                     (if (< z 7.066965436914287e+59)
                                                       (+
                                                        x
                                                        (/
                                                         y
                                                         (/
                                                          (+
                                                           (*
                                                            (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721)
                                                            z)
                                                           0.607771387771)
                                                          (+
                                                           (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
                                                           b))))
                                                       t_1))))
                                                double code(double x, double y, double z, double t, double a, double b) {
                                                	double t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0));
                                                	double tmp;
                                                	if (z < -6.499344996252632e+53) {
                                                		tmp = t_1;
                                                	} else if (z < 7.066965436914287e+59) {
                                                		tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)));
                                                	} else {
                                                		tmp = t_1;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                real(8) function code(x, y, z, t, a, b)
                                                    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 - (36.527041698806414d0 / z)) + (t / (z * z))) * (y / 1.0d0))
                                                    if (z < (-6.499344996252632d+53)) then
                                                        tmp = t_1
                                                    else if (z < 7.066965436914287d+59) then
                                                        tmp = x + (y / ((((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0) / ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)))
                                                    else
                                                        tmp = t_1
                                                    end if
                                                    code = tmp
                                                end function
                                                
                                                public static double code(double x, double y, double z, double t, double a, double b) {
                                                	double t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0));
                                                	double tmp;
                                                	if (z < -6.499344996252632e+53) {
                                                		tmp = t_1;
                                                	} else if (z < 7.066965436914287e+59) {
                                                		tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)));
                                                	} else {
                                                		tmp = t_1;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                def code(x, y, z, t, a, b):
                                                	t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0))
                                                	tmp = 0
                                                	if z < -6.499344996252632e+53:
                                                		tmp = t_1
                                                	elif z < 7.066965436914287e+59:
                                                		tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)))
                                                	else:
                                                		tmp = t_1
                                                	return tmp
                                                
                                                function code(x, y, z, t, a, b)
                                                	t_1 = Float64(x + Float64(Float64(Float64(3.13060547623 - Float64(36.527041698806414 / z)) + Float64(t / Float64(z * z))) * Float64(y / 1.0)))
                                                	tmp = 0.0
                                                	if (z < -6.499344996252632e+53)
                                                		tmp = t_1;
                                                	elseif (z < 7.066965436914287e+59)
                                                		tmp = Float64(x + Float64(y / Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b))));
                                                	else
                                                		tmp = t_1;
                                                	end
                                                	return tmp
                                                end
                                                
                                                function tmp_2 = code(x, y, z, t, a, b)
                                                	t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0));
                                                	tmp = 0.0;
                                                	if (z < -6.499344996252632e+53)
                                                		tmp = t_1;
                                                	elseif (z < 7.066965436914287e+59)
                                                		tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)));
                                                	else
                                                		tmp = t_1;
                                                	end
                                                	tmp_2 = tmp;
                                                end
                                                
                                                code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(N[(N[(3.13060547623 - N[(36.527041698806414 / z), $MachinePrecision]), $MachinePrecision] + N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(y / 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -6.499344996252632e+53], t$95$1, If[Less[z, 7.066965436914287e+59], N[(x + N[(y / N[(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] / 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]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                t_1 := x + \left(\left(3.13060547623 - \frac{36.527041698806414}{z}\right) + \frac{t}{z \cdot z}\right) \cdot \frac{y}{1}\\
                                                \mathbf{if}\;z < -6.499344996252632 \cdot 10^{+53}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                \mathbf{elif}\;z < 7.066965436914287 \cdot 10^{+59}:\\
                                                \;\;\;\;x + \frac{y}{\frac{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}{\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}}\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                

                                                Reproduce

                                                ?
                                                herbie shell --seed 2024222 
                                                (FPCore (x y z t a b)
                                                  :name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, D"
                                                  :precision binary64
                                                
                                                  :alt
                                                  (! :herbie-platform default (if (< z -649934499625263200000000000000000000000000000000000000) (+ x (* (+ (- 313060547623/100000000000 (/ 18263520849403207/500000000000000 z)) (/ t (* z z))) (/ y 1))) (if (< z 706696543691428700000000000000000000000000000000000000000000) (+ x (/ y (/ (+ (* (+ (* (+ (* (+ z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000) (+ (* (+ (* (+ (* (+ (* z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)))) (+ x (* (+ (- 313060547623/100000000000 (/ 18263520849403207/500000000000000 z)) (/ t (* z z))) (/ y 1))))))
                                                
                                                  (+ 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))))