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

Percentage Accurate: 59.1% → 97.9%
Time: 20.2s
Alternatives: 20
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 20 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: 59.1% 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.9% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.16 \cdot 10^{+64}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, y, x\right)\\

\mathbf{elif}\;z \leq 8800000000000:\\
\;\;\;\;\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)\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623 + \frac{\frac{\left(t + 457.9610022158428\right) + \frac{a + \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}}{z} - 36.52704169880642}{z}, y, x\right)\\


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

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

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

      \[\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} \]
      3. lift-/.f64N/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 \]
      4. lift-*.f64N/A

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

        \[\leadsto \color{blue}{y \cdot \frac{\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 \]
      6. *-commutativeN/A

        \[\leadsto \color{blue}{\frac{\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}} \cdot y} + x \]
    7. Applied rewrites30.8%

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

      \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} + -1 \cdot \frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
    9. Step-by-step derivation
      1. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}\right)\right)}, y, x\right) \]
      2. unsub-negN/A

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
      4. lower-/.f64N/A

        \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \color{blue}{\frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
      5. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}\right)\right)}}{z}, y, x\right) \]
      6. unsub-negN/A

        \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\color{blue}{\frac{3652704169880641883561}{100000000000000000000} - \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
      7. lower--.f64N/A

        \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\color{blue}{\frac{3652704169880641883561}{100000000000000000000} - \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
      8. lower-/.f64N/A

        \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} - \color{blue}{\frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
      9. +-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} - \frac{\color{blue}{t + \frac{45796100221584283915100827016327}{100000000000000000000000000000}}}{z}}{z}, y, x\right) \]
      10. lower-+.f6499.9

        \[\leadsto \mathsf{fma}\left(3.13060547623 - \frac{36.52704169880642 - \frac{\color{blue}{t + 457.9610022158428}}{z}}{z}, y, x\right) \]
    10. Applied rewrites99.9%

      \[\leadsto \mathsf{fma}\left(\color{blue}{3.13060547623 - \frac{36.52704169880642 - \frac{t + 457.9610022158428}{z}}{z}}, y, x\right) \]

    if -1.16e64 < z < 8.8e12

    1. Initial program 97.9%

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

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

    if 8.8e12 < z

    1. Initial program 15.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 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.f6426.7

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

      \[\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} \]
      3. lift-/.f64N/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 \]
      4. lift-*.f64N/A

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

        \[\leadsto \color{blue}{y \cdot \frac{\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 \]
      6. *-commutativeN/A

        \[\leadsto \color{blue}{\frac{\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}} \cdot y} + x \]
    7. Applied rewrites29.6%

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

      \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} + -1 \cdot \frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + \left(t + -1 \cdot \frac{-1 \cdot a - \left(\frac{1112090185084895700201045470302189}{1000000000000000000000000000000} + \frac{-15234687407}{1000000000} \cdot \left(\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t\right)\right)}{z}\right)}{z}}{z}}, y, x\right) \]
    9. Applied rewrites97.9%

      \[\leadsto \mathsf{fma}\left(\color{blue}{3.13060547623 - \frac{36.52704169880642 - \frac{\left(t + 457.9610022158428\right) - \frac{\left(-a\right) - \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}}{z}}{z}}, y, x\right) \]
  3. Recombined 3 regimes into one program.
  4. Final simplification98.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.16 \cdot 10^{+64}:\\ \;\;\;\;\mathsf{fma}\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, y, x\right)\\ \mathbf{elif}\;z \leq 8800000000000:\\ \;\;\;\;\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)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(3.13060547623 + \frac{\frac{\left(t + 457.9610022158428\right) + \frac{a + \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}}{z} - 36.52704169880642}{z}, y, x\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 69.4% accurate, 0.3× speedup?

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

\\
\begin{array}{l}
t_1 := 1.6453555072203998 \cdot \left(y \cdot b\right)\\
t_2 := \frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{if}\;t\_2 \leq -50000000:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+208}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\

\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < -5e7 or 2e208 < (/.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 87.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 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.f6482.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 rewrites82.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} \]
      3. lift-/.f64N/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 \]
      4. lift-*.f64N/A

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

        \[\leadsto \color{blue}{y \cdot \frac{\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 \]
      6. *-commutativeN/A

        \[\leadsto \color{blue}{\frac{\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}} \cdot y} + x \]
    7. Applied rewrites84.4%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(z, a, 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)}, y, 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-*.f6469.9

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

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

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

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

      if -5e7 < (/.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))) < 2e208 or +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64)))

      1. Initial program 46.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.f6480.4

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right)} \]
    13. Recombined 2 regimes into one program.
    14. Final simplification75.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 -50000000:\\ \;\;\;\;1.6453555072203998 \cdot \left(y \cdot b\right)\\ \mathbf{elif}\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq 2 \cdot 10^{+208}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \mathbf{elif}\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq \infty:\\ \;\;\;\;1.6453555072203998 \cdot \left(y \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \end{array} \]
    15. Add Preprocessing

    Alternative 3: 98.7% accurate, 0.4× speedup?

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

      1. Initial program 93.9%

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

        \[\leadsto \color{blue}{x + \left(\frac{t \cdot \left(y \cdot {z}^{2}\right)}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)} + \frac{y \cdot \left(b + z \cdot \left(a + {z}^{2} \cdot \left(\frac{55833770631}{5000000000} + \frac{313060547623}{100000000000} \cdot z\right)\right)\right)}{\frac{607771387771}{1000000000000} + z \cdot \left(\frac{119400905721}{10000000000} + z \cdot \left(\frac{314690115749}{10000000000} + z \cdot \left(\frac{15234687407}{1000000000} + z\right)\right)\right)}\right)} \]
      4. Applied rewrites97.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)}, \mathsf{fma}\left(y, \frac{z \cdot z}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)} \cdot t, x\right)\right)} \]

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

      1. Initial program 0.0%

        \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
      2. Add Preprocessing
      3. Taylor expanded in z around 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.f6426.6

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

        \[\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} \]
        3. lift-/.f64N/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 \]
        4. lift-*.f64N/A

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

          \[\leadsto \color{blue}{y \cdot \frac{\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 \]
        6. *-commutativeN/A

          \[\leadsto \color{blue}{\frac{\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}} \cdot y} + x \]
      7. Applied rewrites29.0%

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} + -1 \cdot \frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + \left(t + -1 \cdot \frac{-1 \cdot a - \left(\frac{1112090185084895700201045470302189}{1000000000000000000000000000000} + \frac{-15234687407}{1000000000} \cdot \left(\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t\right)\right)}{z}\right)}{z}}{z}}, y, x\right) \]
      9. Applied rewrites99.9%

        \[\leadsto \mathsf{fma}\left(\color{blue}{3.13060547623 - \frac{36.52704169880642 - \frac{\left(t + 457.9610022158428\right) - \frac{\left(-a\right) - \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}}{z}}{z}}, y, x\right) \]
    3. Recombined 2 regimes into one program.
    4. Final simplification98.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)}, \mathsf{fma}\left(y, t \cdot \frac{z \cdot z}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}, x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(3.13060547623 + \frac{\frac{\left(t + 457.9610022158428\right) + \frac{a + \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}}{z} - 36.52704169880642}{z}, y, x\right)\\ \end{array} \]
    5. Add Preprocessing

    Alternative 4: 98.0% 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:\\ \;\;\;\;x + \frac{y}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(3.13060547623 + \frac{\frac{\left(t + 457.9610022158428\right) + \frac{a + \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}}{z} - 36.52704169880642}{z}, y, 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))
          INFINITY)
       (+
        x
        (/
         y
         (/
          (fma
           z
           (fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)
           0.607771387771)
          (fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b))))
       (fma
        (+
         3.13060547623
         (/
          (-
           (/
            (+
             (+ t 457.9610022158428)
             (/ (+ a (+ -5864.8025282699045 (* t -15.234687407))) z))
            z)
           36.52704169880642)
          z))
        y
        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 = x + (y / (fma(z, fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771) / fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b)));
    	} else {
    		tmp = fma((3.13060547623 + (((((t + 457.9610022158428) + ((a + (-5864.8025282699045 + (t * -15.234687407))) / z)) / z) - 36.52704169880642) / z)), y, 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 = Float64(x + Float64(y / Float64(fma(z, fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771) / fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b))));
    	else
    		tmp = fma(Float64(3.13060547623 + Float64(Float64(Float64(Float64(Float64(t + 457.9610022158428) + Float64(Float64(a + Float64(-5864.8025282699045 + Float64(t * -15.234687407))) / z)) / z) - 36.52704169880642) / z)), y, 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[(x + N[(y / N[(N[(z * N[(z * N[(z * N[(z + 15.234687407), $MachinePrecision] + 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision] + 0.607771387771), $MachinePrecision] / N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(3.13060547623 + N[(N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] + N[(N[(a + N[(-5864.8025282699045 + N[(t * -15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] * y + 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 \infty:\\
    \;\;\;\;x + \frac{y}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}}\\
    
    \mathbf{else}:\\
    \;\;\;\;\mathsf{fma}\left(3.13060547623 + \frac{\frac{\left(t + 457.9610022158428\right) + \frac{a + \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}}{z} - 36.52704169880642}{z}, y, 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))) < +inf.0

      1. Initial program 93.9%

        \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. lift-/.f64N/A

          \[\leadsto x + \color{blue}{\frac{y \cdot \left(\left(\left(\left(z \cdot \frac{313060547623}{100000000000} + \frac{55833770631}{5000000000}\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + \frac{15234687407}{1000000000}\right) \cdot z + \frac{314690115749}{10000000000}\right) \cdot z + \frac{119400905721}{10000000000}\right) \cdot z + \frac{607771387771}{1000000000000}}} \]
        2. lift-*.f64N/A

          \[\leadsto x + \frac{\color{blue}{y \cdot \left(\left(\left(\left(z \cdot \frac{313060547623}{100000000000} + \frac{55833770631}{5000000000}\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}}{\left(\left(\left(z + \frac{15234687407}{1000000000}\right) \cdot z + \frac{314690115749}{10000000000}\right) \cdot z + \frac{119400905721}{10000000000}\right) \cdot z + \frac{607771387771}{1000000000000}} \]
        3. associate-/l*N/A

          \[\leadsto x + \color{blue}{y \cdot \frac{\left(\left(\left(z \cdot \frac{313060547623}{100000000000} + \frac{55833770631}{5000000000}\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}{\left(\left(\left(z + \frac{15234687407}{1000000000}\right) \cdot z + \frac{314690115749}{10000000000}\right) \cdot z + \frac{119400905721}{10000000000}\right) \cdot z + \frac{607771387771}{1000000000000}}} \]
        4. clear-numN/A

          \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{\left(\left(\left(z + \frac{15234687407}{1000000000}\right) \cdot z + \frac{314690115749}{10000000000}\right) \cdot z + \frac{119400905721}{10000000000}\right) \cdot z + \frac{607771387771}{1000000000000}}{\left(\left(\left(z \cdot \frac{313060547623}{100000000000} + \frac{55833770631}{5000000000}\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}}} \]
        5. un-div-invN/A

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

          \[\leadsto x + \color{blue}{\frac{y}{\frac{\left(\left(\left(z + \frac{15234687407}{1000000000}\right) \cdot z + \frac{314690115749}{10000000000}\right) \cdot z + \frac{119400905721}{10000000000}\right) \cdot z + \frac{607771387771}{1000000000000}}{\left(\left(\left(z \cdot \frac{313060547623}{100000000000} + \frac{55833770631}{5000000000}\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}}} \]
        7. lower-/.f6496.7

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

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

      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 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.f6426.6

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

        \[\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} \]
        3. lift-/.f64N/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 \]
        4. lift-*.f64N/A

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

          \[\leadsto \color{blue}{y \cdot \frac{\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 \]
        6. *-commutativeN/A

          \[\leadsto \color{blue}{\frac{\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}} \cdot y} + x \]
      7. Applied rewrites29.0%

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} + -1 \cdot \frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + \left(t + -1 \cdot \frac{-1 \cdot a - \left(\frac{1112090185084895700201045470302189}{1000000000000000000000000000000} + \frac{-15234687407}{1000000000} \cdot \left(\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t\right)\right)}{z}\right)}{z}}{z}}, y, x\right) \]
      9. Applied rewrites99.9%

        \[\leadsto \mathsf{fma}\left(\color{blue}{3.13060547623 - \frac{36.52704169880642 - \frac{\left(t + 457.9610022158428\right) - \frac{\left(-a\right) - \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}}{z}}{z}}, y, x\right) \]
    3. Recombined 2 regimes into one program.
    4. Final simplification97.9%

      \[\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:\\ \;\;\;\;x + \frac{y}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(3.13060547623 + \frac{\frac{\left(t + 457.9610022158428\right) + \frac{a + \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}}{z} - 36.52704169880642}{z}, y, x\right)\\ \end{array} \]
    5. Add Preprocessing

    Alternative 5: 97.3% 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(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, y, 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))
          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
        (+ 3.13060547623 (/ (- (/ (+ t 457.9610022158428) z) 36.52704169880642) z))
        y
        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((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)), y, 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(3.13060547623 + Float64(Float64(Float64(Float64(t + 457.9610022158428) / z) - 36.52704169880642) / z)), y, 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[(3.13060547623 + N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] * y + 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 \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(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, y, 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))) < +inf.0

      1. Initial program 93.9%

        \[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 rewrites93.9%

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

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

        \[\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} \]
        3. lift-/.f64N/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 \]
        4. lift-*.f64N/A

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

          \[\leadsto \color{blue}{y \cdot \frac{\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 \]
        6. *-commutativeN/A

          \[\leadsto \color{blue}{\frac{\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}} \cdot y} + x \]
      7. Applied rewrites29.0%

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} + -1 \cdot \frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
      9. Step-by-step derivation
        1. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}\right)\right)}, y, x\right) \]
        2. unsub-negN/A

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
        4. lower-/.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \color{blue}{\frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
        5. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}\right)\right)}}{z}, y, x\right) \]
        6. unsub-negN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\color{blue}{\frac{3652704169880641883561}{100000000000000000000} - \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
        7. lower--.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\color{blue}{\frac{3652704169880641883561}{100000000000000000000} - \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
        8. lower-/.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} - \color{blue}{\frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
        9. +-commutativeN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} - \frac{\color{blue}{t + \frac{45796100221584283915100827016327}{100000000000000000000000000000}}}{z}}{z}, y, x\right) \]
        10. lower-+.f6498.9

          \[\leadsto \mathsf{fma}\left(3.13060547623 - \frac{36.52704169880642 - \frac{\color{blue}{t + 457.9610022158428}}{z}}{z}, y, x\right) \]
      10. Applied rewrites98.9%

        \[\leadsto \mathsf{fma}\left(\color{blue}{3.13060547623 - \frac{36.52704169880642 - \frac{t + 457.9610022158428}{z}}{z}}, y, x\right) \]
    3. Recombined 2 regimes into one program.
    4. Final simplification95.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(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, y, x\right)\\ \end{array} \]
    5. Add Preprocessing

    Alternative 6: 97.4% accurate, 1.1× speedup?

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

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

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

        \[\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} \]
        3. lift-/.f64N/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 \]
        4. lift-*.f64N/A

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

          \[\leadsto \color{blue}{y \cdot \frac{\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 \]
        6. *-commutativeN/A

          \[\leadsto \color{blue}{\frac{\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}} \cdot y} + x \]
      7. Applied rewrites30.8%

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} + -1 \cdot \frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
      9. Step-by-step derivation
        1. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}\right)\right)}, y, x\right) \]
        2. unsub-negN/A

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
        4. lower-/.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \color{blue}{\frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
        5. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}\right)\right)}}{z}, y, x\right) \]
        6. unsub-negN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\color{blue}{\frac{3652704169880641883561}{100000000000000000000} - \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
        7. lower--.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\color{blue}{\frac{3652704169880641883561}{100000000000000000000} - \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
        8. lower-/.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} - \color{blue}{\frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
        9. +-commutativeN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} - \frac{\color{blue}{t + \frac{45796100221584283915100827016327}{100000000000000000000000000000}}}{z}}{z}, y, x\right) \]
        10. lower-+.f6499.9

          \[\leadsto \mathsf{fma}\left(3.13060547623 - \frac{36.52704169880642 - \frac{\color{blue}{t + 457.9610022158428}}{z}}{z}, y, x\right) \]
      10. Applied rewrites99.9%

        \[\leadsto \mathsf{fma}\left(\color{blue}{3.13060547623 - \frac{36.52704169880642 - \frac{t + 457.9610022158428}{z}}{z}}, y, x\right) \]

      if -1.16e64 < z < 1.75e8

      1. Initial program 97.9%

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

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

        \[\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} \]
        3. lift-/.f64N/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 \]
        4. lift-*.f64N/A

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

          \[\leadsto \color{blue}{y \cdot \frac{\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 \]
        6. *-commutativeN/A

          \[\leadsto \color{blue}{\frac{\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}} \cdot y} + x \]
      7. Applied rewrites95.0%

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

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{b + z \cdot \left(a + t \cdot z\right)}}{\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)}, y, x\right) \]
      9. Step-by-step derivation
        1. +-commutativeN/A

          \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{z \cdot \left(a + t \cdot z\right) + b}}{\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)}, y, x\right) \]
        2. lower-fma.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\mathsf{fma}\left(z, a + t \cdot z, b\right)}}{\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)}, y, x\right) \]
        3. +-commutativeN/A

          \[\leadsto \mathsf{fma}\left(\frac{\mathsf{fma}\left(z, \color{blue}{t \cdot z + a}, b\right)}{\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)}, y, x\right) \]
        4. *-commutativeN/A

          \[\leadsto \mathsf{fma}\left(\frac{\mathsf{fma}\left(z, \color{blue}{z \cdot t} + a, b\right)}{\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)}, y, x\right) \]
        5. lower-fma.f6497.9

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

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

      if 1.75e8 < z

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

          \[\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 rewrites28.3%

        \[\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} \]
        3. lift-/.f64N/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 \]
        4. lift-*.f64N/A

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

          \[\leadsto \color{blue}{y \cdot \frac{\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 \]
        6. *-commutativeN/A

          \[\leadsto \color{blue}{\frac{\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}} \cdot y} + x \]
      7. Applied rewrites31.0%

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} + -1 \cdot \frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + \left(t + -1 \cdot \frac{-1 \cdot a - \left(\frac{1112090185084895700201045470302189}{1000000000000000000000000000000} + \frac{-15234687407}{1000000000} \cdot \left(\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t\right)\right)}{z}\right)}{z}}{z}}, y, x\right) \]
      9. Applied rewrites96.4%

        \[\leadsto \mathsf{fma}\left(\color{blue}{3.13060547623 - \frac{36.52704169880642 - \frac{\left(t + 457.9610022158428\right) - \frac{\left(-a\right) - \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}}{z}}{z}}, y, x\right) \]
    3. Recombined 3 regimes into one program.
    4. Final simplification98.0%

      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.16 \cdot 10^{+64}:\\ \;\;\;\;\mathsf{fma}\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, y, x\right)\\ \mathbf{elif}\;z \leq 175000000:\\ \;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, t, 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)}, y, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(3.13060547623 + \frac{\frac{\left(t + 457.9610022158428\right) + \frac{a + \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}}{z} - 36.52704169880642}{z}, y, x\right)\\ \end{array} \]
    5. Add Preprocessing

    Alternative 7: 97.0% accurate, 1.3× speedup?

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

      1. Initial program 7.4%

        \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
      2. Add Preprocessing
      3. Taylor expanded in z around 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.f6428.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 rewrites28.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} \]
        3. lift-/.f64N/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 \]
        4. lift-*.f64N/A

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

          \[\leadsto \color{blue}{y \cdot \frac{\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 \]
        6. *-commutativeN/A

          \[\leadsto \color{blue}{\frac{\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}} \cdot y} + x \]
      7. Applied rewrites30.3%

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} + -1 \cdot \frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
      9. Step-by-step derivation
        1. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}\right)\right)}, y, x\right) \]
        2. unsub-negN/A

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
        4. lower-/.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \color{blue}{\frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
        5. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}\right)\right)}}{z}, y, x\right) \]
        6. unsub-negN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\color{blue}{\frac{3652704169880641883561}{100000000000000000000} - \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
        7. lower--.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\color{blue}{\frac{3652704169880641883561}{100000000000000000000} - \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
        8. lower-/.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} - \color{blue}{\frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
        9. +-commutativeN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} - \frac{\color{blue}{t + \frac{45796100221584283915100827016327}{100000000000000000000000000000}}}{z}}{z}, y, x\right) \]
        10. lower-+.f6497.2

          \[\leadsto \mathsf{fma}\left(3.13060547623 - \frac{36.52704169880642 - \frac{\color{blue}{t + 457.9610022158428}}{z}}{z}, y, x\right) \]
      10. Applied rewrites97.2%

        \[\leadsto \mathsf{fma}\left(\color{blue}{3.13060547623 - \frac{36.52704169880642 - \frac{t + 457.9610022158428}{z}}{z}}, y, x\right) \]

      if -1.16e64 < z < 2.05e24

      1. Initial program 97.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 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.f6492.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 rewrites92.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} \]
        3. lift-/.f64N/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 \]
        4. lift-*.f64N/A

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

          \[\leadsto \color{blue}{y \cdot \frac{\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 \]
        6. *-commutativeN/A

          \[\leadsto \color{blue}{\frac{\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}} \cdot y} + x \]
      7. Applied rewrites92.9%

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

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{b + z \cdot \left(a + t \cdot z\right)}}{\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)}, y, x\right) \]
      9. Step-by-step derivation
        1. +-commutativeN/A

          \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{z \cdot \left(a + t \cdot z\right) + b}}{\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)}, y, x\right) \]
        2. lower-fma.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\mathsf{fma}\left(z, a + t \cdot z, b\right)}}{\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)}, y, x\right) \]
        3. +-commutativeN/A

          \[\leadsto \mathsf{fma}\left(\frac{\mathsf{fma}\left(z, \color{blue}{t \cdot z + a}, b\right)}{\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)}, y, x\right) \]
        4. *-commutativeN/A

          \[\leadsto \mathsf{fma}\left(\frac{\mathsf{fma}\left(z, \color{blue}{z \cdot t} + a, b\right)}{\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)}, y, x\right) \]
        5. lower-fma.f6496.6

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

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, t, 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)}, y, x\right) \]
    3. Recombined 2 regimes into one program.
    4. Final simplification96.9%

      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.16 \cdot 10^{+64}:\\ \;\;\;\;\mathsf{fma}\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, y, x\right)\\ \mathbf{elif}\;z \leq 2.05 \cdot 10^{+24}:\\ \;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, t, 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)}, y, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, y, x\right)\\ \end{array} \]
    5. Add Preprocessing

    Alternative 8: 93.8% accurate, 1.3× speedup?

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

      1. Initial program 14.9%

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

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

        \[\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} \]
        3. lift-/.f64N/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 \]
        4. lift-*.f64N/A

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

          \[\leadsto \color{blue}{y \cdot \frac{\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 \]
        6. *-commutativeN/A

          \[\leadsto \color{blue}{\frac{\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}} \cdot y} + x \]
      7. Applied rewrites32.4%

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} + -1 \cdot \frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
      9. Step-by-step derivation
        1. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}\right)\right)}, y, x\right) \]
        2. unsub-negN/A

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
        4. lower-/.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \color{blue}{\frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
        5. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}\right)\right)}}{z}, y, x\right) \]
        6. unsub-negN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\color{blue}{\frac{3652704169880641883561}{100000000000000000000} - \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
        7. lower--.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\color{blue}{\frac{3652704169880641883561}{100000000000000000000} - \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
        8. lower-/.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} - \color{blue}{\frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
        9. +-commutativeN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} - \frac{\color{blue}{t + \frac{45796100221584283915100827016327}{100000000000000000000000000000}}}{z}}{z}, y, x\right) \]
        10. lower-+.f6493.3

          \[\leadsto \mathsf{fma}\left(3.13060547623 - \frac{36.52704169880642 - \frac{\color{blue}{t + 457.9610022158428}}{z}}{z}, y, x\right) \]
      10. Applied rewrites93.3%

        \[\leadsto \mathsf{fma}\left(\color{blue}{3.13060547623 - \frac{36.52704169880642 - \frac{t + 457.9610022158428}{z}}{z}}, y, x\right) \]

      if -1.0499999999999999e35 < z < 1.6e8

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

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

        \[\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} \]
        3. lift-/.f64N/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 \]
        4. lift-*.f64N/A

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

          \[\leadsto \color{blue}{y \cdot \frac{\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 \]
        6. *-commutativeN/A

          \[\leadsto \color{blue}{\frac{\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}} \cdot y} + x \]
      7. Applied rewrites97.0%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(z, a, 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)}, y, x\right)} \]
      8. Step-by-step derivation
        1. lift-fma.f64N/A

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\frac{\mathsf{fma}\left(z, a, b\right)}{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z + 15.234687407, z \cdot z, \mathsf{fma}\left(z, 31.4690115749, 11.9400905721\right)\right)}, 0.607771387771\right)}, y, x\right) \]
    3. Recombined 2 regimes into one program.
    4. Final simplification95.2%

      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.05 \cdot 10^{+35}:\\ \;\;\;\;\mathsf{fma}\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, y, x\right)\\ \mathbf{elif}\;z \leq 160000000:\\ \;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(z, a, b\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z + 15.234687407, z \cdot z, \mathsf{fma}\left(z, 31.4690115749, 11.9400905721\right)\right), 0.607771387771\right)}, y, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, y, x\right)\\ \end{array} \]
    5. Add Preprocessing

    Alternative 9: 93.8% accurate, 1.4× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, y, x\right)\\ \mathbf{if}\;z \leq -1.05 \cdot 10^{+35}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 160000000:\\ \;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(z, a, 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)}, y, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t a b)
     :precision binary64
     (let* ((t_1
             (fma
              (+
               3.13060547623
               (/ (- (/ (+ t 457.9610022158428) z) 36.52704169880642) z))
              y
              x)))
       (if (<= z -1.05e+35)
         t_1
         (if (<= z 160000000.0)
           (fma
            (/
             (fma z a b)
             (fma
              z
              (fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)
              0.607771387771))
            y
            x)
           t_1))))
    double code(double x, double y, double z, double t, double a, double b) {
    	double t_1 = fma((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)), y, x);
    	double tmp;
    	if (z <= -1.05e+35) {
    		tmp = t_1;
    	} else if (z <= 160000000.0) {
    		tmp = fma((fma(z, a, b) / fma(z, fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), y, x);
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b)
    	t_1 = fma(Float64(3.13060547623 + Float64(Float64(Float64(Float64(t + 457.9610022158428) / z) - 36.52704169880642) / z)), y, x)
    	tmp = 0.0
    	if (z <= -1.05e+35)
    		tmp = t_1;
    	elseif (z <= 160000000.0)
    		tmp = fma(Float64(fma(z, a, b) / fma(z, fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), y, x);
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(3.13060547623 + N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]}, If[LessEqual[z, -1.05e+35], t$95$1, If[LessEqual[z, 160000000.0], N[(N[(N[(z * a + b), $MachinePrecision] / N[(z * N[(z * N[(z * N[(z + 15.234687407), $MachinePrecision] + 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], t$95$1]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \mathsf{fma}\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, y, x\right)\\
    \mathbf{if}\;z \leq -1.05 \cdot 10^{+35}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;z \leq 160000000:\\
    \;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(z, a, 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)}, y, x\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if z < -1.0499999999999999e35 or 1.6e8 < z

      1. Initial program 14.9%

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

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

        \[\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} \]
        3. lift-/.f64N/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 \]
        4. lift-*.f64N/A

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

          \[\leadsto \color{blue}{y \cdot \frac{\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 \]
        6. *-commutativeN/A

          \[\leadsto \color{blue}{\frac{\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}} \cdot y} + x \]
      7. Applied rewrites32.4%

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} + -1 \cdot \frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
      9. Step-by-step derivation
        1. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}\right)\right)}, y, x\right) \]
        2. unsub-negN/A

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
        4. lower-/.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \color{blue}{\frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
        5. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}\right)\right)}}{z}, y, x\right) \]
        6. unsub-negN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\color{blue}{\frac{3652704169880641883561}{100000000000000000000} - \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
        7. lower--.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\color{blue}{\frac{3652704169880641883561}{100000000000000000000} - \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
        8. lower-/.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} - \color{blue}{\frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
        9. +-commutativeN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} - \frac{\color{blue}{t + \frac{45796100221584283915100827016327}{100000000000000000000000000000}}}{z}}{z}, y, x\right) \]
        10. lower-+.f6493.3

          \[\leadsto \mathsf{fma}\left(3.13060547623 - \frac{36.52704169880642 - \frac{\color{blue}{t + 457.9610022158428}}{z}}{z}, y, x\right) \]
      10. Applied rewrites93.3%

        \[\leadsto \mathsf{fma}\left(\color{blue}{3.13060547623 - \frac{36.52704169880642 - \frac{t + 457.9610022158428}{z}}{z}}, y, x\right) \]

      if -1.0499999999999999e35 < z < 1.6e8

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

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

        \[\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} \]
        3. lift-/.f64N/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 \]
        4. lift-*.f64N/A

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

          \[\leadsto \color{blue}{y \cdot \frac{\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 \]
        6. *-commutativeN/A

          \[\leadsto \color{blue}{\frac{\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}} \cdot y} + x \]
      7. Applied rewrites97.0%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(z, a, 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)}, y, x\right)} \]
    3. Recombined 2 regimes into one program.
    4. Final simplification95.2%

      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.05 \cdot 10^{+35}:\\ \;\;\;\;\mathsf{fma}\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, y, x\right)\\ \mathbf{elif}\;z \leq 160000000:\\ \;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(z, a, 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)}, y, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, y, x\right)\\ \end{array} \]
    5. Add Preprocessing

    Alternative 10: 93.4% accurate, 1.4× speedup?

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

      1. Initial program 14.9%

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

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

        \[\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} \]
        3. lift-/.f64N/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 \]
        4. lift-*.f64N/A

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

          \[\leadsto \color{blue}{y \cdot \frac{\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 \]
        6. *-commutativeN/A

          \[\leadsto \color{blue}{\frac{\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}} \cdot y} + x \]
      7. Applied rewrites32.4%

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} + -1 \cdot \frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
      9. Step-by-step derivation
        1. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}\right)\right)}, y, x\right) \]
        2. unsub-negN/A

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
        4. lower-/.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \color{blue}{\frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
        5. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}\right)\right)}}{z}, y, x\right) \]
        6. unsub-negN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\color{blue}{\frac{3652704169880641883561}{100000000000000000000} - \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
        7. lower--.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\color{blue}{\frac{3652704169880641883561}{100000000000000000000} - \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
        8. lower-/.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} - \color{blue}{\frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
        9. +-commutativeN/A

          \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} - \frac{\color{blue}{t + \frac{45796100221584283915100827016327}{100000000000000000000000000000}}}{z}}{z}, y, x\right) \]
        10. lower-+.f6493.3

          \[\leadsto \mathsf{fma}\left(3.13060547623 - \frac{36.52704169880642 - \frac{\color{blue}{t + 457.9610022158428}}{z}}{z}, y, x\right) \]
      10. Applied rewrites93.3%

        \[\leadsto \mathsf{fma}\left(\color{blue}{3.13060547623 - \frac{36.52704169880642 - \frac{t + 457.9610022158428}{z}}{z}}, y, x\right) \]

      if -1.0499999999999999e35 < z < 1.7e7

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

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

        \[\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} \]
        3. lift-/.f64N/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 \]
        4. lift-*.f64N/A

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

          \[\leadsto \color{blue}{y \cdot \frac{\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 \]
        6. *-commutativeN/A

          \[\leadsto \color{blue}{\frac{\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}} \cdot y} + x \]
      7. Applied rewrites97.0%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(z, a, 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)}, y, x\right)} \]
      8. Step-by-step derivation
        1. lift-fma.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(\frac{\mathsf{fma}\left(z, a, b\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z + 15.234687407, z \cdot z, \color{blue}{11.9400905721}\right), 0.607771387771\right)}, y, x\right) \]
      12. Recombined 2 regimes into one program.
      13. Final simplification95.0%

        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.05 \cdot 10^{+35}:\\ \;\;\;\;\mathsf{fma}\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, y, x\right)\\ \mathbf{elif}\;z \leq 17000000:\\ \;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(z, a, b\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z + 15.234687407, z \cdot z, 11.9400905721\right), 0.607771387771\right)}, y, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, y, x\right)\\ \end{array} \]
      14. Add Preprocessing

      Alternative 11: 96.1% accurate, 1.6× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, y, x\right)\\ \mathbf{if}\;z \leq -3300000000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 6400000:\\ \;\;\;\;\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), y \cdot 1.6453555072203998, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
      (FPCore (x y z t a b)
       :precision binary64
       (let* ((t_1
               (fma
                (+
                 3.13060547623
                 (/ (- (/ (+ t 457.9610022158428) z) 36.52704169880642) z))
                y
                x)))
         (if (<= z -3300000000000.0)
           t_1
           (if (<= z 6400000.0)
             (fma
              (fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b)
              (* y 1.6453555072203998)
              x)
             t_1))))
      double code(double x, double y, double z, double t, double a, double b) {
      	double t_1 = fma((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)), y, x);
      	double tmp;
      	if (z <= -3300000000000.0) {
      		tmp = t_1;
      	} else if (z <= 6400000.0) {
      		tmp = fma(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b), (y * 1.6453555072203998), x);
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a, b)
      	t_1 = fma(Float64(3.13060547623 + Float64(Float64(Float64(Float64(t + 457.9610022158428) / z) - 36.52704169880642) / z)), y, x)
      	tmp = 0.0
      	if (z <= -3300000000000.0)
      		tmp = t_1;
      	elseif (z <= 6400000.0)
      		tmp = fma(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b), Float64(y * 1.6453555072203998), x);
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(3.13060547623 + N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]}, If[LessEqual[z, -3300000000000.0], t$95$1, If[LessEqual[z, 6400000.0], N[(N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision] * N[(y * 1.6453555072203998), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \mathsf{fma}\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, y, x\right)\\
      \mathbf{if}\;z \leq -3300000000000:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;z \leq 6400000:\\
      \;\;\;\;\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), y \cdot 1.6453555072203998, x\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if z < -3.3e12 or 6.4e6 < z

        1. Initial program 18.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 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.f6432.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 rewrites32.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} \]
          3. lift-/.f64N/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 \]
          4. lift-*.f64N/A

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

            \[\leadsto \color{blue}{y \cdot \frac{\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 \]
          6. *-commutativeN/A

            \[\leadsto \color{blue}{\frac{\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}} \cdot y} + x \]
        7. Applied rewrites35.0%

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} + -1 \cdot \frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
        9. Step-by-step derivation
          1. mul-1-negN/A

            \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}\right)\right)}, y, x\right) \]
          2. unsub-negN/A

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

            \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
          4. lower-/.f64N/A

            \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \color{blue}{\frac{\frac{3652704169880641883561}{100000000000000000000} + -1 \cdot \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}{z}}, y, x\right) \]
          5. mul-1-negN/A

            \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} + \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}\right)\right)}}{z}, y, x\right) \]
          6. unsub-negN/A

            \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\color{blue}{\frac{3652704169880641883561}{100000000000000000000} - \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
          7. lower--.f64N/A

            \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\color{blue}{\frac{3652704169880641883561}{100000000000000000000} - \frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
          8. lower-/.f64N/A

            \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} - \color{blue}{\frac{\frac{45796100221584283915100827016327}{100000000000000000000000000000} + t}{z}}}{z}, y, x\right) \]
          9. +-commutativeN/A

            \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} - \frac{\frac{3652704169880641883561}{100000000000000000000} - \frac{\color{blue}{t + \frac{45796100221584283915100827016327}{100000000000000000000000000000}}}{z}}{z}, y, x\right) \]
          10. lower-+.f6492.0

            \[\leadsto \mathsf{fma}\left(3.13060547623 - \frac{36.52704169880642 - \frac{\color{blue}{t + 457.9610022158428}}{z}}{z}, y, x\right) \]
        10. Applied rewrites92.0%

          \[\leadsto \mathsf{fma}\left(\color{blue}{3.13060547623 - \frac{36.52704169880642 - \frac{t + 457.9610022158428}{z}}{z}}, y, x\right) \]

        if -3.3e12 < z < 6.4e6

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

          \[\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)} \]
        5. Taylor expanded in z around 0

          \[\leadsto \mathsf{fma}\left(\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), \color{blue}{\frac{1000000000000}{607771387771} \cdot y}, x\right) \]
        6. Step-by-step derivation
          1. *-commutativeN/A

            \[\leadsto \mathsf{fma}\left(\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), \color{blue}{y \cdot \frac{1000000000000}{607771387771}}, x\right) \]
          2. lower-*.f6497.8

            \[\leadsto \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), \color{blue}{y \cdot 1.6453555072203998}, x\right) \]
        7. Applied rewrites97.8%

          \[\leadsto \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), \color{blue}{y \cdot 1.6453555072203998}, x\right) \]
      3. Recombined 2 regimes into one program.
      4. Final simplification94.9%

        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3300000000000:\\ \;\;\;\;\mathsf{fma}\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, y, x\right)\\ \mathbf{elif}\;z \leq 6400000:\\ \;\;\;\;\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), y \cdot 1.6453555072203998, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, y, x\right)\\ \end{array} \]
      5. Add Preprocessing

      Alternative 12: 93.2% accurate, 1.6× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -5.3 \cdot 10^{+17}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \mathbf{elif}\;z \leq 180000000:\\ \;\;\;\;\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), 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 -5.3e+17)
         (fma y 3.13060547623 x)
         (if (<= z 180000000.0)
           (fma
            (fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) 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 <= -5.3e+17) {
      		tmp = fma(y, 3.13060547623, x);
      	} else if (z <= 180000000.0) {
      		tmp = fma(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), 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 <= -5.3e+17)
      		tmp = fma(y, 3.13060547623, x);
      	elseif (z <= 180000000.0)
      		tmp = fma(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), 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, -5.3e+17], N[(y * 3.13060547623 + x), $MachinePrecision], If[LessEqual[z, 180000000.0], N[(N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + 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 -5.3 \cdot 10^{+17}:\\
      \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
      
      \mathbf{elif}\;z \leq 180000000:\\
      \;\;\;\;\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), 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 < -5.3e17

        1. Initial program 16.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.f6486.8

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

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

        if -5.3e17 < z < 1.8e8

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

          \[\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)} \]
        5. Taylor expanded in z around 0

          \[\leadsto \mathsf{fma}\left(\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), \color{blue}{\frac{1000000000000}{607771387771} \cdot y}, x\right) \]
        6. Step-by-step derivation
          1. *-commutativeN/A

            \[\leadsto \mathsf{fma}\left(\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), \color{blue}{y \cdot \frac{1000000000000}{607771387771}}, x\right) \]
          2. lower-*.f6497.8

            \[\leadsto \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), \color{blue}{y \cdot 1.6453555072203998}, x\right) \]
        7. Applied rewrites97.8%

          \[\leadsto \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), \color{blue}{y \cdot 1.6453555072203998}, x\right) \]

        if 1.8e8 < z

        1. Initial program 20.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}{\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 rewrites78.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 13: 90.0% accurate, 2.2× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.55 \cdot 10^{+26}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \mathbf{elif}\;z \leq 160000000:\\ \;\;\;\;\mathsf{fma}\left(1.6453555072203998, y \cdot \mathsf{fma}\left(z, a, 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.55e+26)
         (fma y 3.13060547623 x)
         (if (<= z 160000000.0)
           (fma 1.6453555072203998 (* y (fma z 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.55e+26) {
      		tmp = fma(y, 3.13060547623, x);
      	} else if (z <= 160000000.0) {
      		tmp = fma(1.6453555072203998, (y * fma(z, 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.55e+26)
      		tmp = fma(y, 3.13060547623, x);
      	elseif (z <= 160000000.0)
      		tmp = fma(1.6453555072203998, Float64(y * fma(z, 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.55e+26], N[(y * 3.13060547623 + x), $MachinePrecision], If[LessEqual[z, 160000000.0], N[(1.6453555072203998 * N[(y * N[(z * a + 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.55 \cdot 10^{+26}:\\
      \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
      
      \mathbf{elif}\;z \leq 160000000:\\
      \;\;\;\;\mathsf{fma}\left(1.6453555072203998, y \cdot \mathsf{fma}\left(z, a, 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.55e26

        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}{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.f6487.6

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

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

        if -1.55e26 < z < 1.6e8

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

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

          \[\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} \]
          3. lift-/.f64N/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 \]
          4. clear-numN/A

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

            \[\leadsto \color{blue}{\frac{1}{\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}} \cdot \left(y \cdot \mathsf{fma}\left(z, a, b\right)\right)} + x \]
          6. lower-fma.f64N/A

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

          \[\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, a, b\right), x\right)} \]
        8. Taylor expanded in z around 0

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

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

          if 1.6e8 < z

          1. Initial program 20.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}{\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 rewrites78.9%

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

        Alternative 14: 90.0% accurate, 2.4× speedup?

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

          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}{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.f6487.6

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

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

          if -1.55e26 < z < 1.6e8

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

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

            \[\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} \]
            3. lift-/.f64N/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 \]
            4. clear-numN/A

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

              \[\leadsto \color{blue}{\frac{1}{\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}} \cdot \left(y \cdot \mathsf{fma}\left(z, a, b\right)\right)} + x \]
            6. lower-fma.f64N/A

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

            \[\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, a, b\right), x\right)} \]
          8. Taylor expanded in z around 0

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

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

            if 1.6e8 < z

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

                \[\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 rewrites28.3%

              \[\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} \]
              3. lift-/.f64N/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 \]
              4. lift-*.f64N/A

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

                \[\leadsto \color{blue}{y \cdot \frac{\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 \]
              6. *-commutativeN/A

                \[\leadsto \color{blue}{\frac{\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}} \cdot y} + x \]
            7. Applied rewrites31.0%

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

              \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} - \frac{3652704169880641883561}{100000000000000000000} \cdot \frac{1}{z}}, y, x\right) \]
            9. Step-by-step derivation
              1. sub-negN/A

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

                \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{313060547623}{100000000000} + \left(\mathsf{neg}\left(\frac{3652704169880641883561}{100000000000000000000} \cdot \frac{1}{z}\right)\right)}, y, x\right) \]
              3. associate-*r/N/A

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

                \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} + \left(\mathsf{neg}\left(\frac{\color{blue}{\frac{3652704169880641883561}{100000000000000000000}}}{z}\right)\right), y, x\right) \]
              5. distribute-neg-fracN/A

                \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} + \color{blue}{\frac{\mathsf{neg}\left(\frac{3652704169880641883561}{100000000000000000000}\right)}{z}}, y, x\right) \]
              6. lower-/.f64N/A

                \[\leadsto \mathsf{fma}\left(\frac{313060547623}{100000000000} + \color{blue}{\frac{\mathsf{neg}\left(\frac{3652704169880641883561}{100000000000000000000}\right)}{z}}, y, x\right) \]
              7. metadata-eval78.9

                \[\leadsto \mathsf{fma}\left(3.13060547623 + \frac{\color{blue}{-36.52704169880642}}{z}, y, x\right) \]
            10. Applied rewrites78.9%

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

          Alternative 15: 90.0% accurate, 2.6× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.55 \cdot 10^{+26}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \mathbf{elif}\;z \leq 160000000:\\ \;\;\;\;\mathsf{fma}\left(1.6453555072203998, y \cdot \mathsf{fma}\left(z, a, b\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 -1.55e+26)
             (fma y 3.13060547623 x)
             (if (<= z 160000000.0)
               (fma 1.6453555072203998 (* y (fma z a b)) x)
               (fma y 3.13060547623 x))))
          double code(double x, double y, double z, double t, double a, double b) {
          	double tmp;
          	if (z <= -1.55e+26) {
          		tmp = fma(y, 3.13060547623, x);
          	} else if (z <= 160000000.0) {
          		tmp = fma(1.6453555072203998, (y * fma(z, a, b)), x);
          	} else {
          		tmp = fma(y, 3.13060547623, x);
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a, b)
          	tmp = 0.0
          	if (z <= -1.55e+26)
          		tmp = fma(y, 3.13060547623, x);
          	elseif (z <= 160000000.0)
          		tmp = fma(1.6453555072203998, Float64(y * fma(z, a, b)), x);
          	else
          		tmp = fma(y, 3.13060547623, x);
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.55e+26], N[(y * 3.13060547623 + x), $MachinePrecision], If[LessEqual[z, 160000000.0], N[(1.6453555072203998 * N[(y * N[(z * a + b), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;z \leq -1.55 \cdot 10^{+26}:\\
          \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
          
          \mathbf{elif}\;z \leq 160000000:\\
          \;\;\;\;\mathsf{fma}\left(1.6453555072203998, y \cdot \mathsf{fma}\left(z, a, b\right), 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.55e26 or 1.6e8 < z

            1. Initial program 16.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}{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.f6483.2

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

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

            if -1.55e26 < z < 1.6e8

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

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

              \[\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} \]
              3. lift-/.f64N/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 \]
              4. clear-numN/A

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

                \[\leadsto \color{blue}{\frac{1}{\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}} \cdot \left(y \cdot \mathsf{fma}\left(z, a, b\right)\right)} + x \]
              6. lower-fma.f64N/A

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

              \[\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, a, b\right), x\right)} \]
            8. Taylor expanded in z around 0

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

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

            Alternative 16: 82.6% accurate, 3.3× speedup?

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

              1. Initial program 11.4%

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

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

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

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

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

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

              if -1.16e64 < z < 1.6e7

              1. Initial program 97.9%

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

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

                \[\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} \]
                3. lift-/.f64N/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 \]
                4. lift-*.f64N/A

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

                  \[\leadsto \color{blue}{y \cdot \frac{\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 \]
                6. *-commutativeN/A

                  \[\leadsto \color{blue}{\frac{\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}} \cdot y} + x \]
              7. Applied rewrites95.0%

                \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(z, a, 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)}, y, 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-*.f6482.0

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

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

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

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

              Alternative 17: 82.6% accurate, 3.3× speedup?

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

                1. Initial program 11.4%

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

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

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

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

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

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

                if -1.16e64 < z < 1.6e7

                1. Initial program 97.9%

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

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

                  \[\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} \]
                  3. lift-/.f64N/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 \]
                  4. lift-*.f64N/A

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

                    \[\leadsto \color{blue}{y \cdot \frac{\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 \]
                  6. *-commutativeN/A

                    \[\leadsto \color{blue}{\frac{\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}} \cdot y} + x \]
                7. Applied rewrites95.0%

                  \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(z, a, 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)}, y, 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-*.f6482.0

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

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

                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.16 \cdot 10^{+64}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\ \mathbf{elif}\;z \leq 16000000:\\ \;\;\;\;\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 18: 82.6% accurate, 3.3× speedup?

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

                1. Initial program 11.4%

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

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

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

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

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

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

                if -1.16e64 < z < 1.6e7

                1. Initial program 97.9%

                  \[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-*.f6482.0

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

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

              Alternative 19: 61.6% 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 58.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.f6460.4

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

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

              Alternative 20: 21.7% 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 58.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.f6460.4

                  \[\leadsto \color{blue}{\mathsf{fma}\left(y, 3.13060547623, x\right)} \]
              5. Applied rewrites60.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.0%

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

                Developer Target 1: 98.5% 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 2024238 
                (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))))