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

Percentage Accurate: 57.7% → 97.1%
Time: 19.7s
Alternatives: 17
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 17 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: 57.7% 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: 97.1% accurate, 0.4× speedup?

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

\\
\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(\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}:\\
\;\;\;\;x + \left(\mathsf{fma}\left(y, \frac{11.1667541262}{z}, \mathsf{fma}\left(y, 3.13060547623, t \cdot \frac{y}{z \cdot z}\right)\right) - \mathsf{fma}\left(y, \frac{47.69379582500642}{z}, \mathsf{fma}\left(y, \frac{98.5170599679272}{z \cdot z}, \frac{y \cdot -556.47806218377}{z \cdot z}\right)\right)\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 90.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. 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 rewrites97.8%

      \[\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)} \]

    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 x + \color{blue}{\left(\left(\frac{313060547623}{100000000000} \cdot y + \left(\frac{55833770631}{5000000000} \cdot \frac{y}{z} + \frac{t \cdot y}{{z}^{2}}\right)\right) - \left(\frac{15234687407}{1000000000} \cdot \frac{\frac{55833770631}{5000000000} \cdot y - \frac{4769379582500641883561}{100000000000000000000} \cdot y}{{z}^{2}} + \left(\frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z} + \frac{98517059967927196814627}{1000000000000000000000} \cdot \frac{y}{{z}^{2}}\right)\right)\right)} \]
    4. Applied rewrites96.1%

      \[\leadsto x + \color{blue}{\left(\mathsf{fma}\left(y, \frac{11.1667541262}{z}, \mathsf{fma}\left(y, 3.13060547623, t \cdot \frac{y}{z \cdot z}\right)\right) - \mathsf{fma}\left(y, \frac{47.69379582500642}{z}, \mathsf{fma}\left(y, \frac{98.5170599679272}{z \cdot z}, \frac{y \cdot -556.47806218377}{z \cdot z}\right)\right)\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification97.1%

    \[\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(\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}:\\ \;\;\;\;x + \left(\mathsf{fma}\left(y, \frac{11.1667541262}{z}, \mathsf{fma}\left(y, 3.13060547623, t \cdot \frac{y}{z \cdot z}\right)\right) - \mathsf{fma}\left(y, \frac{47.69379582500642}{z}, \mathsf{fma}\left(y, \frac{98.5170599679272}{z \cdot z}, \frac{y \cdot -556.47806218377}{z \cdot z}\right)\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 96.4% accurate, 0.5× speedup?

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

\\
\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(\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}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y}{z}, -36.52704169880642, \mathsf{fma}\left(y, 3.13060547623, x\right)\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 90.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. 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 rewrites97.8%

      \[\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)} \]

    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}{\left(x + \left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right)\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}} \]
    4. Step-by-step derivation
      1. associate--l+N/A

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

        \[\leadsto \color{blue}{\left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) + x} \]
      3. associate--l+N/A

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

        \[\leadsto \color{blue}{\left(\left(\frac{55833770631}{5000000000} \cdot \frac{y}{z} - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) + \frac{313060547623}{100000000000} \cdot y\right)} + x \]
      5. distribute-rgt-out--N/A

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

        \[\leadsto \left(\frac{y}{z} \cdot \color{blue}{\frac{-3652704169880641883561}{100000000000000000000}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
      7. metadata-evalN/A

        \[\leadsto \left(\frac{y}{z} \cdot \color{blue}{\frac{\frac{3652704169880641883561}{100000000000000000000}}{-1}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
      8. metadata-evalN/A

        \[\leadsto \left(\frac{y}{z} \cdot \frac{\color{blue}{\frac{-55833770631}{5000000000} - \frac{-4769379582500641883561}{100000000000000000000}}}{-1} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
      9. times-fracN/A

        \[\leadsto \left(\color{blue}{\frac{y \cdot \left(\frac{-55833770631}{5000000000} - \frac{-4769379582500641883561}{100000000000000000000}\right)}{z \cdot -1}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
      10. distribute-rgt-out--N/A

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

        \[\leadsto \left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{-1 \cdot z}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
      12. mul-1-negN/A

        \[\leadsto \left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{\mathsf{neg}\left(z\right)}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
      13. distribute-neg-frac2N/A

        \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}\right)\right)} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
      14. mul-1-negN/A

        \[\leadsto \left(\color{blue}{-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
      15. associate-+l+N/A

        \[\leadsto \color{blue}{-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z} + \left(\frac{313060547623}{100000000000} \cdot y + x\right)} \]
    5. Applied rewrites95.2%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{z}, -36.52704169880642, \mathsf{fma}\left(y, 3.13060547623, x\right)\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification96.8%

    \[\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(\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}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{z}, -36.52704169880642, \mathsf{fma}\left(y, 3.13060547623, x\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 93.1% accurate, 0.6× speedup?

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

\\
\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)}, x\right)\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y}{z}, -36.52704169880642, \mathsf{fma}\left(y, 3.13060547623, x\right)\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 90.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 + \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)}} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

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

        \[\leadsto \color{blue}{y \cdot \frac{b + z \cdot \left(a + {z}^{2} \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 \cdot \left(a + {z}^{2} \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)} \]
    5. Applied rewrites95.2%

      \[\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)}, x\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}{\left(x + \left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right)\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}} \]
    4. Step-by-step derivation
      1. associate--l+N/A

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

        \[\leadsto \color{blue}{\left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) + x} \]
      3. associate--l+N/A

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

        \[\leadsto \color{blue}{\left(\left(\frac{55833770631}{5000000000} \cdot \frac{y}{z} - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) + \frac{313060547623}{100000000000} \cdot y\right)} + x \]
      5. distribute-rgt-out--N/A

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

        \[\leadsto \left(\frac{y}{z} \cdot \color{blue}{\frac{-3652704169880641883561}{100000000000000000000}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
      7. metadata-evalN/A

        \[\leadsto \left(\frac{y}{z} \cdot \color{blue}{\frac{\frac{3652704169880641883561}{100000000000000000000}}{-1}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
      8. metadata-evalN/A

        \[\leadsto \left(\frac{y}{z} \cdot \frac{\color{blue}{\frac{-55833770631}{5000000000} - \frac{-4769379582500641883561}{100000000000000000000}}}{-1} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
      9. times-fracN/A

        \[\leadsto \left(\color{blue}{\frac{y \cdot \left(\frac{-55833770631}{5000000000} - \frac{-4769379582500641883561}{100000000000000000000}\right)}{z \cdot -1}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
      10. distribute-rgt-out--N/A

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

        \[\leadsto \left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{-1 \cdot z}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
      12. mul-1-negN/A

        \[\leadsto \left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{\mathsf{neg}\left(z\right)}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
      13. distribute-neg-frac2N/A

        \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}\right)\right)} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
      14. mul-1-negN/A

        \[\leadsto \left(\color{blue}{-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
      15. associate-+l+N/A

        \[\leadsto \color{blue}{-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z} + \left(\frac{313060547623}{100000000000} \cdot y + x\right)} \]
    5. Applied rewrites95.2%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{z}, -36.52704169880642, \mathsf{fma}\left(y, 3.13060547623, x\right)\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification95.2%

    \[\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)}, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{z}, -36.52704169880642, \mathsf{fma}\left(y, 3.13060547623, x\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 66.2% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \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^{+31}:\\ \;\;\;\;b \cdot \left(y \cdot 1.6453555072203998\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 (<=
      (/
       (*
        y
        (+
         (* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
         b))
       (+
        (*
         z
         (+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
        0.607771387771))
      -1e+31)
   (* b (* y 1.6453555072203998))
   (fma y 3.13060547623 x)))
double code(double x, double y, double z, double t, double a, double b) {
	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)) <= -1e+31) {
		tmp = b * (y * 1.6453555072203998);
	} else {
		tmp = fma(y, 3.13060547623, x);
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	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)) <= -1e+31)
		tmp = Float64(b * Float64(y * 1.6453555072203998));
	else
		tmp = fma(y, 3.13060547623, x);
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := 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], -1e+31], N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]
\begin{array}{l}

\\
\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^{+31}:\\
\;\;\;\;b \cdot \left(y \cdot 1.6453555072203998\right)\\

\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))) < -9.9999999999999996e30

    1. Initial program 84.2%

      \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
    2. Add Preprocessing
    3. 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)} \]
    4. Step-by-step derivation
      1. associate-+r+N/A

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

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

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

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

        \[\leadsto \mathsf{fma}\left(z, \left(\frac{1000000000000}{607771387771} \cdot a\right) \cdot y - \color{blue}{\left(\frac{11940090572100000000000000}{369386059793087248348441} \cdot b\right) \cdot y}, x + \frac{1000000000000}{607771387771} \cdot \left(b \cdot y\right)\right) \]
      6. distribute-rgt-out--N/A

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

        \[\leadsto \mathsf{fma}\left(z, \color{blue}{y \cdot \left(\frac{1000000000000}{607771387771} \cdot a - \frac{11940090572100000000000000}{369386059793087248348441} \cdot b\right)}, x + \frac{1000000000000}{607771387771} \cdot \left(b \cdot y\right)\right) \]
      8. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(z, y \cdot \mathsf{fma}\left(a, \frac{1000000000000}{607771387771}, b \cdot \frac{-11940090572100000000000000}{369386059793087248348441}\right), \mathsf{fma}\left(y, \color{blue}{b \cdot \frac{1000000000000}{607771387771}}, x\right)\right) \]
      20. lower-*.f6457.8

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

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

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

        \[\leadsto b \cdot \color{blue}{\mathsf{fma}\left(y, 1.6453555072203998, \left(y \cdot z\right) \cdot -32.324150453290734\right)} \]
      2. Taylor expanded in z around 0

        \[\leadsto b \cdot \left(\frac{1000000000000}{607771387771} \cdot y\right) \]
      3. Step-by-step derivation
        1. Applied rewrites50.3%

          \[\leadsto b \cdot \left(1.6453555072203998 \cdot y\right) \]

        if -9.9999999999999996e30 < (/.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.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 + \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.f6471.7

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

          \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right)} \]
      4. Recombined 2 regimes into one program.
      5. Final simplification67.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 -1 \cdot 10^{+31}:\\ \;\;\;\;b \cdot \left(y \cdot 1.6453555072203998\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \end{array} \]
      6. Add Preprocessing

      Alternative 5: 95.3% accurate, 1.3× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -9 \cdot 10^{+34}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \mathbf{elif}\;z \leq 9.2 \cdot 10^{+60}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(z, t, 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}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{z}, -36.52704169880642, \mathsf{fma}\left(y, 3.13060547623, x\right)\right)\\ \end{array} \end{array} \]
      (FPCore (x y z t a b)
       :precision binary64
       (if (<= z -9e+34)
         (fma y 3.13060547623 x)
         (if (<= z 9.2e+60)
           (fma
            (fma z (fma z t a) b)
            (/
             y
             (fma
              z
              (fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)
              0.607771387771))
            x)
           (fma (/ y z) -36.52704169880642 (fma y 3.13060547623 x)))))
      double code(double x, double y, double z, double t, double a, double b) {
      	double tmp;
      	if (z <= -9e+34) {
      		tmp = fma(y, 3.13060547623, x);
      	} else if (z <= 9.2e+60) {
      		tmp = fma(fma(z, fma(z, t, a), b), (y / fma(z, fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x);
      	} else {
      		tmp = fma((y / z), -36.52704169880642, fma(y, 3.13060547623, x));
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a, b)
      	tmp = 0.0
      	if (z <= -9e+34)
      		tmp = fma(y, 3.13060547623, x);
      	elseif (z <= 9.2e+60)
      		tmp = fma(fma(z, fma(z, t, a), b), Float64(y / fma(z, fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x);
      	else
      		tmp = fma(Float64(y / z), -36.52704169880642, fma(y, 3.13060547623, x));
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -9e+34], N[(y * 3.13060547623 + x), $MachinePrecision], If[LessEqual[z, 9.2e+60], N[(N[(z * N[(z * t + 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], N[(N[(y / z), $MachinePrecision] * -36.52704169880642 + N[(y * 3.13060547623 + x), $MachinePrecision]), $MachinePrecision]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;z \leq -9 \cdot 10^{+34}:\\
      \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
      
      \mathbf{elif}\;z \leq 9.2 \cdot 10^{+60}:\\
      \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(z, t, 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}:\\
      \;\;\;\;\mathsf{fma}\left(\frac{y}{z}, -36.52704169880642, \mathsf{fma}\left(y, 3.13060547623, x\right)\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if z < -9.0000000000000001e34

        1. Initial program 6.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 + \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.f6490.9

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

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

        if -9.0000000000000001e34 < z < 9.20000000000000068e60

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

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

            \[\leadsto x + \frac{y \cdot \color{blue}{\left(a \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 x + \frac{y \cdot \left(\color{blue}{z \cdot a} + 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. lower-fma.f6491.4

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

          \[\leadsto x + \frac{y \cdot \color{blue}{\mathsf{fma}\left(z, a, b\right)}}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
        6. Step-by-step derivation
          1. lift-+.f64N/A

            \[\leadsto \color{blue}{x + \frac{y \cdot \mathsf{fma}\left(z, a, 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 \mathsf{fma}\left(z, a, 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} \]
        7. Applied rewrites93.4%

          \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(z, a, 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)} \]
        8. Taylor expanded in z around 0

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, t, 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) \]
        10. Applied rewrites97.7%

          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, t, 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) \]

        if 9.20000000000000068e60 < z

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

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

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

            \[\leadsto \color{blue}{\left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) + x} \]
          3. associate--l+N/A

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

            \[\leadsto \color{blue}{\left(\left(\frac{55833770631}{5000000000} \cdot \frac{y}{z} - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) + \frac{313060547623}{100000000000} \cdot y\right)} + x \]
          5. distribute-rgt-out--N/A

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

            \[\leadsto \left(\frac{y}{z} \cdot \color{blue}{\frac{-3652704169880641883561}{100000000000000000000}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          7. metadata-evalN/A

            \[\leadsto \left(\frac{y}{z} \cdot \color{blue}{\frac{\frac{3652704169880641883561}{100000000000000000000}}{-1}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          8. metadata-evalN/A

            \[\leadsto \left(\frac{y}{z} \cdot \frac{\color{blue}{\frac{-55833770631}{5000000000} - \frac{-4769379582500641883561}{100000000000000000000}}}{-1} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          9. times-fracN/A

            \[\leadsto \left(\color{blue}{\frac{y \cdot \left(\frac{-55833770631}{5000000000} - \frac{-4769379582500641883561}{100000000000000000000}\right)}{z \cdot -1}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          10. distribute-rgt-out--N/A

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

            \[\leadsto \left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{-1 \cdot z}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          12. mul-1-negN/A

            \[\leadsto \left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{\mathsf{neg}\left(z\right)}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          13. distribute-neg-frac2N/A

            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}\right)\right)} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          14. mul-1-negN/A

            \[\leadsto \left(\color{blue}{-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          15. associate-+l+N/A

            \[\leadsto \color{blue}{-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z} + \left(\frac{313060547623}{100000000000} \cdot y + x\right)} \]
        5. Applied rewrites97.5%

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

      Alternative 6: 94.2% accurate, 1.4× speedup?

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

        1. Initial program 6.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 + \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.f6490.9

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

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

        if -9.0000000000000001e34 < z < 9.20000000000000068e60

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

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

            \[\leadsto x + \frac{y \cdot \color{blue}{\left(a \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 x + \frac{y \cdot \left(\color{blue}{z \cdot a} + 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. lower-fma.f6491.4

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

          \[\leadsto x + \frac{y \cdot \color{blue}{\mathsf{fma}\left(z, a, b\right)}}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
        6. Step-by-step derivation
          1. lift-+.f64N/A

            \[\leadsto \color{blue}{x + \frac{y \cdot \mathsf{fma}\left(z, a, 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 \mathsf{fma}\left(z, a, 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} \]
        7. Applied rewrites93.4%

          \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(z, a, 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)} \]
        8. Taylor expanded in z around inf

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), \frac{y}{\mathsf{fma}\left(z, \color{blue}{{z}^{3}}, \frac{607771387771}{1000000000000}\right)}, x\right) \]
        9. Step-by-step derivation
          1. cube-multN/A

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), \frac{y}{\mathsf{fma}\left(z, \color{blue}{z \cdot \left(z \cdot z\right)}, \frac{607771387771}{1000000000000}\right)}, x\right) \]
          2. unpow2N/A

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), \frac{y}{\mathsf{fma}\left(z, z \cdot \color{blue}{{z}^{2}}, \frac{607771387771}{1000000000000}\right)}, x\right) \]
          3. lower-*.f64N/A

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), \frac{y}{\mathsf{fma}\left(z, \color{blue}{z \cdot {z}^{2}}, \frac{607771387771}{1000000000000}\right)}, x\right) \]
          4. unpow2N/A

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), \frac{y}{\mathsf{fma}\left(z, z \cdot \color{blue}{\left(z \cdot z\right)}, \frac{607771387771}{1000000000000}\right)}, x\right) \]
          5. lower-*.f6492.9

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), \frac{y}{\mathsf{fma}\left(z, z \cdot \color{blue}{\left(z \cdot z\right)}, 0.607771387771\right)}, x\right) \]
        10. Applied rewrites92.9%

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

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

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

            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, a + t \cdot z, b\right)}, \frac{y}{\mathsf{fma}\left(z, z \cdot \left(z \cdot z\right), \frac{607771387771}{1000000000000}\right)}, x\right) \]
          3. +-commutativeN/A

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

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, \color{blue}{z \cdot t} + a, b\right), \frac{y}{\mathsf{fma}\left(z, z \cdot \left(z \cdot z\right), \frac{607771387771}{1000000000000}\right)}, x\right) \]
          5. lower-fma.f6496.2

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, t, a\right)}, b\right), \frac{y}{\mathsf{fma}\left(z, z \cdot \left(z \cdot z\right), 0.607771387771\right)}, x\right) \]
        13. Applied rewrites96.2%

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

        if 9.20000000000000068e60 < z

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

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

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

            \[\leadsto \color{blue}{\left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) + x} \]
          3. associate--l+N/A

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

            \[\leadsto \color{blue}{\left(\left(\frac{55833770631}{5000000000} \cdot \frac{y}{z} - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) + \frac{313060547623}{100000000000} \cdot y\right)} + x \]
          5. distribute-rgt-out--N/A

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

            \[\leadsto \left(\frac{y}{z} \cdot \color{blue}{\frac{-3652704169880641883561}{100000000000000000000}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          7. metadata-evalN/A

            \[\leadsto \left(\frac{y}{z} \cdot \color{blue}{\frac{\frac{3652704169880641883561}{100000000000000000000}}{-1}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          8. metadata-evalN/A

            \[\leadsto \left(\frac{y}{z} \cdot \frac{\color{blue}{\frac{-55833770631}{5000000000} - \frac{-4769379582500641883561}{100000000000000000000}}}{-1} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          9. times-fracN/A

            \[\leadsto \left(\color{blue}{\frac{y \cdot \left(\frac{-55833770631}{5000000000} - \frac{-4769379582500641883561}{100000000000000000000}\right)}{z \cdot -1}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          10. distribute-rgt-out--N/A

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

            \[\leadsto \left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{-1 \cdot z}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          12. mul-1-negN/A

            \[\leadsto \left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{\mathsf{neg}\left(z\right)}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          13. distribute-neg-frac2N/A

            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}\right)\right)} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          14. mul-1-negN/A

            \[\leadsto \left(\color{blue}{-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          15. associate-+l+N/A

            \[\leadsto \color{blue}{-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z} + \left(\frac{313060547623}{100000000000} \cdot y + x\right)} \]
        5. Applied rewrites97.5%

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

      Alternative 7: 93.1% accurate, 1.5× speedup?

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

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

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

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

        if -1.12e15 < z < 0.0509999999999999967

        1. Initial program 99.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. Applied rewrites99.8%

          \[\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.f6498.6

            \[\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 rewrites98.6%

          \[\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) \]

        if 0.0509999999999999967 < z

        1. Initial program 12.2%

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

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

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

            \[\leadsto \color{blue}{\left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) + x} \]
          3. associate--l+N/A

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

            \[\leadsto \color{blue}{\left(\left(\frac{55833770631}{5000000000} \cdot \frac{y}{z} - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) + \frac{313060547623}{100000000000} \cdot y\right)} + x \]
          5. distribute-rgt-out--N/A

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

            \[\leadsto \left(\frac{y}{z} \cdot \color{blue}{\frac{-3652704169880641883561}{100000000000000000000}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          7. metadata-evalN/A

            \[\leadsto \left(\frac{y}{z} \cdot \color{blue}{\frac{\frac{3652704169880641883561}{100000000000000000000}}{-1}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          8. metadata-evalN/A

            \[\leadsto \left(\frac{y}{z} \cdot \frac{\color{blue}{\frac{-55833770631}{5000000000} - \frac{-4769379582500641883561}{100000000000000000000}}}{-1} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          9. times-fracN/A

            \[\leadsto \left(\color{blue}{\frac{y \cdot \left(\frac{-55833770631}{5000000000} - \frac{-4769379582500641883561}{100000000000000000000}\right)}{z \cdot -1}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          10. distribute-rgt-out--N/A

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

            \[\leadsto \left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{-1 \cdot z}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          12. mul-1-negN/A

            \[\leadsto \left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{\mathsf{neg}\left(z\right)}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          13. distribute-neg-frac2N/A

            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}\right)\right)} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          14. mul-1-negN/A

            \[\leadsto \left(\color{blue}{-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
          15. associate-+l+N/A

            \[\leadsto \color{blue}{-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z} + \left(\frac{313060547623}{100000000000} \cdot y + x\right)} \]
        5. Applied rewrites91.9%

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

      Alternative 8: 93.0% accurate, 1.6× speedup?

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

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

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

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

        if -1e17 < z < 5.6e12

        1. Initial program 99.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. Applied rewrites99.8%

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

            \[\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) \]

          if 5.6e12 < z

          1. Initial program 12.2%

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

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

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

              \[\leadsto \color{blue}{\left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) + x} \]
            3. associate--l+N/A

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

              \[\leadsto \color{blue}{\left(\left(\frac{55833770631}{5000000000} \cdot \frac{y}{z} - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) + \frac{313060547623}{100000000000} \cdot y\right)} + x \]
            5. distribute-rgt-out--N/A

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

              \[\leadsto \left(\frac{y}{z} \cdot \color{blue}{\frac{-3652704169880641883561}{100000000000000000000}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            7. metadata-evalN/A

              \[\leadsto \left(\frac{y}{z} \cdot \color{blue}{\frac{\frac{3652704169880641883561}{100000000000000000000}}{-1}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            8. metadata-evalN/A

              \[\leadsto \left(\frac{y}{z} \cdot \frac{\color{blue}{\frac{-55833770631}{5000000000} - \frac{-4769379582500641883561}{100000000000000000000}}}{-1} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            9. times-fracN/A

              \[\leadsto \left(\color{blue}{\frac{y \cdot \left(\frac{-55833770631}{5000000000} - \frac{-4769379582500641883561}{100000000000000000000}\right)}{z \cdot -1}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            10. distribute-rgt-out--N/A

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

              \[\leadsto \left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{-1 \cdot z}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            12. mul-1-negN/A

              \[\leadsto \left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{\mathsf{neg}\left(z\right)}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            13. distribute-neg-frac2N/A

              \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}\right)\right)} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            14. mul-1-negN/A

              \[\leadsto \left(\color{blue}{-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            15. associate-+l+N/A

              \[\leadsto \color{blue}{-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z} + \left(\frac{313060547623}{100000000000} \cdot y + x\right)} \]
          5. Applied rewrites91.9%

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

        Alternative 9: 90.4% accurate, 1.6× speedup?

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

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

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

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

          if -1e17 < z < 1.8e12

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

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

              \[\leadsto x + \frac{y \cdot \color{blue}{\left(a \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 x + \frac{y \cdot \left(\color{blue}{z \cdot a} + 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. lower-fma.f6495.1

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

            \[\leadsto x + \frac{y \cdot \color{blue}{\mathsf{fma}\left(z, a, b\right)}}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
          6. Step-by-step derivation
            1. lift-+.f64N/A

              \[\leadsto \color{blue}{x + \frac{y \cdot \mathsf{fma}\left(z, a, 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 \mathsf{fma}\left(z, a, 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} \]
          7. Applied rewrites95.1%

            \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(z, a, 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)} \]
          8. Taylor expanded in z around 0

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), \frac{y}{\mathsf{fma}\left(z, \color{blue}{\frac{119400905721}{10000000000} + \frac{314690115749}{10000000000} \cdot z}, \frac{607771387771}{1000000000000}\right)}, x\right) \]
          9. Step-by-step derivation
            1. +-commutativeN/A

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

              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), \frac{y}{\mathsf{fma}\left(z, \color{blue}{z \cdot \frac{314690115749}{10000000000}} + \frac{119400905721}{10000000000}, \frac{607771387771}{1000000000000}\right)}, x\right) \]
            3. lower-fma.f6495.0

              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), \frac{y}{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, 31.4690115749, 11.9400905721\right)}, 0.607771387771\right)}, x\right) \]
          10. Applied rewrites95.0%

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

          if 1.8e12 < z

          1. Initial program 12.2%

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

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

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

              \[\leadsto \color{blue}{\left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) + x} \]
            3. associate--l+N/A

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

              \[\leadsto \color{blue}{\left(\left(\frac{55833770631}{5000000000} \cdot \frac{y}{z} - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) + \frac{313060547623}{100000000000} \cdot y\right)} + x \]
            5. distribute-rgt-out--N/A

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

              \[\leadsto \left(\frac{y}{z} \cdot \color{blue}{\frac{-3652704169880641883561}{100000000000000000000}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            7. metadata-evalN/A

              \[\leadsto \left(\frac{y}{z} \cdot \color{blue}{\frac{\frac{3652704169880641883561}{100000000000000000000}}{-1}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            8. metadata-evalN/A

              \[\leadsto \left(\frac{y}{z} \cdot \frac{\color{blue}{\frac{-55833770631}{5000000000} - \frac{-4769379582500641883561}{100000000000000000000}}}{-1} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            9. times-fracN/A

              \[\leadsto \left(\color{blue}{\frac{y \cdot \left(\frac{-55833770631}{5000000000} - \frac{-4769379582500641883561}{100000000000000000000}\right)}{z \cdot -1}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            10. distribute-rgt-out--N/A

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

              \[\leadsto \left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{-1 \cdot z}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            12. mul-1-negN/A

              \[\leadsto \left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{\mathsf{neg}\left(z\right)}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            13. distribute-neg-frac2N/A

              \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}\right)\right)} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            14. mul-1-negN/A

              \[\leadsto \left(\color{blue}{-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            15. associate-+l+N/A

              \[\leadsto \color{blue}{-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z} + \left(\frac{313060547623}{100000000000} \cdot y + x\right)} \]
          5. Applied rewrites91.9%

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

        Alternative 10: 90.1% accurate, 2.2× speedup?

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

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

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

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

          if -3.7e15 < z < 27

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

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

              \[\leadsto x + \frac{y \cdot \color{blue}{\left(a \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 x + \frac{y \cdot \left(\color{blue}{z \cdot a} + 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. lower-fma.f6495.1

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

            \[\leadsto x + \frac{y \cdot \color{blue}{\mathsf{fma}\left(z, a, b\right)}}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
          6. Step-by-step derivation
            1. lift-+.f64N/A

              \[\leadsto \color{blue}{x + \frac{y \cdot \mathsf{fma}\left(z, a, 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 \mathsf{fma}\left(z, a, 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} \]
          7. Applied rewrites95.1%

            \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(z, a, 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)} \]
          8. Taylor expanded in z around inf

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), \frac{y}{\mathsf{fma}\left(z, \color{blue}{{z}^{3}}, \frac{607771387771}{1000000000000}\right)}, x\right) \]
          9. Step-by-step derivation
            1. cube-multN/A

              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), \frac{y}{\mathsf{fma}\left(z, \color{blue}{z \cdot \left(z \cdot z\right)}, \frac{607771387771}{1000000000000}\right)}, x\right) \]
            2. unpow2N/A

              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), \frac{y}{\mathsf{fma}\left(z, z \cdot \color{blue}{{z}^{2}}, \frac{607771387771}{1000000000000}\right)}, x\right) \]
            3. lower-*.f64N/A

              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), \frac{y}{\mathsf{fma}\left(z, \color{blue}{z \cdot {z}^{2}}, \frac{607771387771}{1000000000000}\right)}, x\right) \]
            4. unpow2N/A

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

              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), \frac{y}{\mathsf{fma}\left(z, z \cdot \color{blue}{\left(z \cdot z\right)}, 0.607771387771\right)}, x\right) \]
          10. Applied rewrites94.6%

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

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

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

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

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

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

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

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

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

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

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

          if 27 < z

          1. Initial program 12.2%

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

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

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

              \[\leadsto \color{blue}{\left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) + x} \]
            3. associate--l+N/A

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

              \[\leadsto \color{blue}{\left(\left(\frac{55833770631}{5000000000} \cdot \frac{y}{z} - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) + \frac{313060547623}{100000000000} \cdot y\right)} + x \]
            5. distribute-rgt-out--N/A

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

              \[\leadsto \left(\frac{y}{z} \cdot \color{blue}{\frac{-3652704169880641883561}{100000000000000000000}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            7. metadata-evalN/A

              \[\leadsto \left(\frac{y}{z} \cdot \color{blue}{\frac{\frac{3652704169880641883561}{100000000000000000000}}{-1}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            8. metadata-evalN/A

              \[\leadsto \left(\frac{y}{z} \cdot \frac{\color{blue}{\frac{-55833770631}{5000000000} - \frac{-4769379582500641883561}{100000000000000000000}}}{-1} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            9. times-fracN/A

              \[\leadsto \left(\color{blue}{\frac{y \cdot \left(\frac{-55833770631}{5000000000} - \frac{-4769379582500641883561}{100000000000000000000}\right)}{z \cdot -1}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            10. distribute-rgt-out--N/A

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

              \[\leadsto \left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{-1 \cdot z}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            12. mul-1-negN/A

              \[\leadsto \left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{\mathsf{neg}\left(z\right)}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            13. distribute-neg-frac2N/A

              \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}\right)\right)} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            14. mul-1-negN/A

              \[\leadsto \left(\color{blue}{-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            15. associate-+l+N/A

              \[\leadsto \color{blue}{-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z} + \left(\frac{313060547623}{100000000000} \cdot y + x\right)} \]
          5. Applied rewrites91.9%

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

        Alternative 11: 90.1% accurate, 2.2× speedup?

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

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

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

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

          if -1.5e16 < z < 1.55e12

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

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

              \[\leadsto x + \frac{y \cdot \color{blue}{\left(a \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 x + \frac{y \cdot \left(\color{blue}{z \cdot a} + 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. lower-fma.f6495.1

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

            \[\leadsto x + \frac{y \cdot \color{blue}{\mathsf{fma}\left(z, a, b\right)}}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
          6. Step-by-step derivation
            1. lift-+.f64N/A

              \[\leadsto \color{blue}{x + \frac{y \cdot \mathsf{fma}\left(z, a, 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 \mathsf{fma}\left(z, a, 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} \]
          7. Applied rewrites95.1%

            \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(z, a, 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)} \]
          8. Taylor expanded in z around 0

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), \color{blue}{\frac{1000000000000}{607771387771} \cdot y}, x\right) \]
          9. Step-by-step derivation
            1. lower-*.f6494.7

              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), \color{blue}{1.6453555072203998 \cdot y}, x\right) \]
          10. Applied rewrites94.7%

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

          if 1.55e12 < z

          1. Initial program 12.2%

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

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

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

              \[\leadsto \color{blue}{\left(\left(\frac{313060547623}{100000000000} \cdot y + \frac{55833770631}{5000000000} \cdot \frac{y}{z}\right) - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) + x} \]
            3. associate--l+N/A

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

              \[\leadsto \color{blue}{\left(\left(\frac{55833770631}{5000000000} \cdot \frac{y}{z} - \frac{4769379582500641883561}{100000000000000000000} \cdot \frac{y}{z}\right) + \frac{313060547623}{100000000000} \cdot y\right)} + x \]
            5. distribute-rgt-out--N/A

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

              \[\leadsto \left(\frac{y}{z} \cdot \color{blue}{\frac{-3652704169880641883561}{100000000000000000000}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            7. metadata-evalN/A

              \[\leadsto \left(\frac{y}{z} \cdot \color{blue}{\frac{\frac{3652704169880641883561}{100000000000000000000}}{-1}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            8. metadata-evalN/A

              \[\leadsto \left(\frac{y}{z} \cdot \frac{\color{blue}{\frac{-55833770631}{5000000000} - \frac{-4769379582500641883561}{100000000000000000000}}}{-1} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            9. times-fracN/A

              \[\leadsto \left(\color{blue}{\frac{y \cdot \left(\frac{-55833770631}{5000000000} - \frac{-4769379582500641883561}{100000000000000000000}\right)}{z \cdot -1}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            10. distribute-rgt-out--N/A

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

              \[\leadsto \left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{-1 \cdot z}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            12. mul-1-negN/A

              \[\leadsto \left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{\color{blue}{\mathsf{neg}\left(z\right)}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            13. distribute-neg-frac2N/A

              \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(\frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}\right)\right)} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            14. mul-1-negN/A

              \[\leadsto \left(\color{blue}{-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z}} + \frac{313060547623}{100000000000} \cdot y\right) + x \]
            15. associate-+l+N/A

              \[\leadsto \color{blue}{-1 \cdot \frac{\frac{-55833770631}{5000000000} \cdot y - \frac{-4769379582500641883561}{100000000000000000000} \cdot y}{z} + \left(\frac{313060547623}{100000000000} \cdot y + x\right)} \]
          5. Applied rewrites91.9%

            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{z}, -36.52704169880642, \mathsf{fma}\left(y, 3.13060547623, x\right)\right)} \]
        3. Recombined 3 regimes into one program.
        4. Final simplification92.4%

          \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.5 \cdot 10^{+16}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \mathbf{elif}\;z \leq 1550000000000:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), y \cdot 1.6453555072203998, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{z}, -36.52704169880642, \mathsf{fma}\left(y, 3.13060547623, x\right)\right)\\ \end{array} \]
        5. Add Preprocessing

        Alternative 12: 82.4% accurate, 2.3× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -80000000:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \mathbf{elif}\;z \leq 2.4 \cdot 10^{-109}:\\ \;\;\;\;\mathsf{fma}\left(1.6453555072203998, y \cdot b, x\right)\\ \mathbf{elif}\;z \leq 41000000000:\\ \;\;\;\;\mathsf{fma}\left(1.6453555072203998, y \cdot \left(z \cdot a\right), 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 -80000000.0)
           (fma y 3.13060547623 x)
           (if (<= z 2.4e-109)
             (fma 1.6453555072203998 (* y b) x)
             (if (<= z 41000000000.0)
               (fma 1.6453555072203998 (* y (* z a)) x)
               (fma y 3.13060547623 x)))))
        double code(double x, double y, double z, double t, double a, double b) {
        	double tmp;
        	if (z <= -80000000.0) {
        		tmp = fma(y, 3.13060547623, x);
        	} else if (z <= 2.4e-109) {
        		tmp = fma(1.6453555072203998, (y * b), x);
        	} else if (z <= 41000000000.0) {
        		tmp = fma(1.6453555072203998, (y * (z * a)), x);
        	} else {
        		tmp = fma(y, 3.13060547623, x);
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a, b)
        	tmp = 0.0
        	if (z <= -80000000.0)
        		tmp = fma(y, 3.13060547623, x);
        	elseif (z <= 2.4e-109)
        		tmp = fma(1.6453555072203998, Float64(y * b), x);
        	elseif (z <= 41000000000.0)
        		tmp = fma(1.6453555072203998, Float64(y * Float64(z * a)), x);
        	else
        		tmp = fma(y, 3.13060547623, x);
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -80000000.0], N[(y * 3.13060547623 + x), $MachinePrecision], If[LessEqual[z, 2.4e-109], N[(1.6453555072203998 * N[(y * b), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 41000000000.0], N[(1.6453555072203998 * N[(y * N[(z * a), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;z \leq -80000000:\\
        \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
        
        \mathbf{elif}\;z \leq 2.4 \cdot 10^{-109}:\\
        \;\;\;\;\mathsf{fma}\left(1.6453555072203998, y \cdot b, x\right)\\
        
        \mathbf{elif}\;z \leq 41000000000:\\
        \;\;\;\;\mathsf{fma}\left(1.6453555072203998, y \cdot \left(z \cdot a\right), x\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if z < -8e7 or 4.1e10 < z

          1. Initial program 11.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 + \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.4

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

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

          if -8e7 < z < 2.39999999999999989e-109

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

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

              \[\leadsto x + \frac{y \cdot \color{blue}{\left(a \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 x + \frac{y \cdot \left(\color{blue}{z \cdot a} + 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. lower-fma.f6495.9

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

            \[\leadsto x + \frac{y \cdot \color{blue}{\mathsf{fma}\left(z, a, b\right)}}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
          6. Step-by-step derivation
            1. lift-+.f64N/A

              \[\leadsto \color{blue}{x + \frac{y \cdot \mathsf{fma}\left(z, a, 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 \mathsf{fma}\left(z, a, 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} \]
          7. Applied rewrites95.8%

            \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(z, a, 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)} \]
          8. Taylor expanded in z around 0

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

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

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

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

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

          if 2.39999999999999989e-109 < z < 4.1e10

          1. Initial program 99.5%

            \[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 + \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)} \]
          4. Step-by-step derivation
            1. associate-+r+N/A

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

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

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

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

              \[\leadsto \mathsf{fma}\left(z, \left(\frac{1000000000000}{607771387771} \cdot a\right) \cdot y - \color{blue}{\left(\frac{11940090572100000000000000}{369386059793087248348441} \cdot b\right) \cdot y}, x + \frac{1000000000000}{607771387771} \cdot \left(b \cdot y\right)\right) \]
            6. distribute-rgt-out--N/A

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

              \[\leadsto \mathsf{fma}\left(z, \color{blue}{y \cdot \left(\frac{1000000000000}{607771387771} \cdot a - \frac{11940090572100000000000000}{369386059793087248348441} \cdot b\right)}, x + \frac{1000000000000}{607771387771} \cdot \left(b \cdot y\right)\right) \]
            8. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(z, y \cdot \mathsf{fma}\left(a, \frac{1000000000000}{607771387771}, b \cdot \frac{-11940090572100000000000000}{369386059793087248348441}\right), \mathsf{fma}\left(y, \color{blue}{b \cdot \frac{1000000000000}{607771387771}}, x\right)\right) \]
            20. lower-*.f6477.3

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

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

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

              \[\leadsto b \cdot \color{blue}{\mathsf{fma}\left(y, 1.6453555072203998, \left(y \cdot z\right) \cdot -32.324150453290734\right)} \]
            2. Taylor expanded in b around 0

              \[\leadsto x + \color{blue}{\frac{1000000000000}{607771387771} \cdot \left(a \cdot \left(y \cdot z\right)\right)} \]
            3. Step-by-step derivation
              1. Applied rewrites69.6%

                \[\leadsto \mathsf{fma}\left(1.6453555072203998, \color{blue}{y \cdot \left(z \cdot a\right)}, x\right) \]
            4. Recombined 3 regimes into one program.
            5. Final simplification85.1%

              \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -80000000:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \mathbf{elif}\;z \leq 2.4 \cdot 10^{-109}:\\ \;\;\;\;\mathsf{fma}\left(1.6453555072203998, y \cdot b, x\right)\\ \mathbf{elif}\;z \leq 41000000000:\\ \;\;\;\;\mathsf{fma}\left(1.6453555072203998, y \cdot \left(z \cdot a\right), x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \end{array} \]
            6. Add Preprocessing

            Alternative 13: 90.1% accurate, 2.6× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.5 \cdot 10^{+16}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \mathbf{elif}\;z \leq 1800000000000:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), y \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.5e+16)
               (fma y 3.13060547623 x)
               (if (<= z 1800000000000.0)
                 (fma (fma z a b) (* y 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.5e+16) {
            		tmp = fma(y, 3.13060547623, x);
            	} else if (z <= 1800000000000.0) {
            		tmp = fma(fma(z, a, b), (y * 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.5e+16)
            		tmp = fma(y, 3.13060547623, x);
            	elseif (z <= 1800000000000.0)
            		tmp = fma(fma(z, a, b), Float64(y * 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.5e+16], N[(y * 3.13060547623 + x), $MachinePrecision], If[LessEqual[z, 1800000000000.0], N[(N[(z * a + b), $MachinePrecision] * N[(y * 1.6453555072203998), $MachinePrecision] + x), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;z \leq -1.5 \cdot 10^{+16}:\\
            \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
            
            \mathbf{elif}\;z \leq 1800000000000:\\
            \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), y \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.5e16 or 1.8e12 < z

              1. Initial program 10.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 + \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.f6490.0

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

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

              if -1.5e16 < z < 1.8e12

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

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

                  \[\leadsto x + \frac{y \cdot \color{blue}{\left(a \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 x + \frac{y \cdot \left(\color{blue}{z \cdot a} + 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. lower-fma.f6495.1

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

                \[\leadsto x + \frac{y \cdot \color{blue}{\mathsf{fma}\left(z, a, b\right)}}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
              6. Step-by-step derivation
                1. lift-+.f64N/A

                  \[\leadsto \color{blue}{x + \frac{y \cdot \mathsf{fma}\left(z, a, 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 \mathsf{fma}\left(z, a, 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} \]
              7. Applied rewrites95.1%

                \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(z, a, 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)} \]
              8. Taylor expanded in z around 0

                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), \color{blue}{\frac{1000000000000}{607771387771} \cdot y}, x\right) \]
              9. Step-by-step derivation
                1. lower-*.f6494.7

                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), \color{blue}{1.6453555072203998 \cdot y}, x\right) \]
              10. Applied rewrites94.7%

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

              \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.5 \cdot 10^{+16}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \mathbf{elif}\;z \leq 1800000000000:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(z, a, b\right), y \cdot 1.6453555072203998, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \end{array} \]
            5. Add Preprocessing

            Alternative 14: 83.4% accurate, 3.3× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -80000000:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \mathbf{elif}\;z \leq 8.6 \cdot 10^{-6}:\\ \;\;\;\;\mathsf{fma}\left(1.6453555072203998, y \cdot 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 -80000000.0)
               (fma y 3.13060547623 x)
               (if (<= z 8.6e-6)
                 (fma 1.6453555072203998 (* y 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 <= -80000000.0) {
            		tmp = fma(y, 3.13060547623, x);
            	} else if (z <= 8.6e-6) {
            		tmp = fma(1.6453555072203998, (y * b), x);
            	} else {
            		tmp = fma(y, 3.13060547623, x);
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a, b)
            	tmp = 0.0
            	if (z <= -80000000.0)
            		tmp = fma(y, 3.13060547623, x);
            	elseif (z <= 8.6e-6)
            		tmp = fma(1.6453555072203998, Float64(y * b), x);
            	else
            		tmp = fma(y, 3.13060547623, x);
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -80000000.0], N[(y * 3.13060547623 + x), $MachinePrecision], If[LessEqual[z, 8.6e-6], N[(1.6453555072203998 * N[(y * b), $MachinePrecision] + x), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;z \leq -80000000:\\
            \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
            
            \mathbf{elif}\;z \leq 8.6 \cdot 10^{-6}:\\
            \;\;\;\;\mathsf{fma}\left(1.6453555072203998, y \cdot 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 < -8e7 or 8.60000000000000067e-6 < z

              1. Initial program 12.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 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.f6488.2

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

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

              if -8e7 < z < 8.60000000000000067e-6

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

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

                  \[\leadsto x + \frac{y \cdot \color{blue}{\left(a \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 x + \frac{y \cdot \left(\color{blue}{z \cdot a} + 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. lower-fma.f6495.8

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

                \[\leadsto x + \frac{y \cdot \color{blue}{\mathsf{fma}\left(z, a, b\right)}}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
              6. Step-by-step derivation
                1. lift-+.f64N/A

                  \[\leadsto \color{blue}{x + \frac{y \cdot \mathsf{fma}\left(z, a, 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 \mathsf{fma}\left(z, a, 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} \]
              7. Applied rewrites95.7%

                \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(z, a, 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)} \]
              8. Taylor expanded in z around 0

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

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

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

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

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

              \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -80000000:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \mathbf{elif}\;z \leq 8.6 \cdot 10^{-6}:\\ \;\;\;\;\mathsf{fma}\left(1.6453555072203998, y \cdot b, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \end{array} \]
            5. Add Preprocessing

            Alternative 15: 83.4% accurate, 3.3× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -80000000:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \mathbf{elif}\;z \leq 8.6 \cdot 10^{-6}:\\ \;\;\;\;\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 -80000000.0)
               (fma y 3.13060547623 x)
               (if (<= z 8.6e-6)
                 (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 <= -80000000.0) {
            		tmp = fma(y, 3.13060547623, x);
            	} else if (z <= 8.6e-6) {
            		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 <= -80000000.0)
            		tmp = fma(y, 3.13060547623, x);
            	elseif (z <= 8.6e-6)
            		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, -80000000.0], N[(y * 3.13060547623 + x), $MachinePrecision], If[LessEqual[z, 8.6e-6], 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 -80000000:\\
            \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
            
            \mathbf{elif}\;z \leq 8.6 \cdot 10^{-6}:\\
            \;\;\;\;\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 < -8e7 or 8.60000000000000067e-6 < z

              1. Initial program 12.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 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.f6488.2

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

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

              if -8e7 < z < 8.60000000000000067e-6

              1. Initial program 99.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 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-*.f6477.3

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

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

            Alternative 16: 62.2% 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 53.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 + \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.f6461.4

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

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

            Alternative 17: 22.5% 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 53.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 + \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.f6461.4

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

              \[\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 rewrites24.4%

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

              Developer Target 1: 98.3% 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 2024219 
              (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))))