Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2

Percentage Accurate: 56.1% → 85.4%
Time: 18.9s
Alternatives: 19
Speedup: 2.2×

Specification

?
\[\begin{array}{l} \\ \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (/
  (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t)
  (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
real(8) function code(x, y, z, t, a, b, c, i)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    code = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
def code(x, y, z, t, a, b, c, i):
	return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
function code(x, y, z, t, a, b, c, i)
	return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i))
end
function tmp = code(x, y, z, t, a, b, c, i)
	tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}
\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 19 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: 56.1% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (/
  (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t)
  (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
real(8) function code(x, y, z, t, a, b, c, i)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    code = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
def code(x, y, z, t, a, b, c, i):
	return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
function code(x, y, z, t, a, b, c, i)
	return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i))
end
function tmp = code(x, y, z, t, a, b, c, i)
	tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}
\end{array}

Alternative 1: 85.4% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\ t_2 := \frac{z}{x \cdot x}\\ \mathbf{if}\;y \leq -2.8 \cdot 10^{+118}:\\ \;\;\;\;x - \frac{\frac{\mathsf{fma}\left(-27464.7644705, \frac{a}{y}, \frac{230661.510616}{y}\right) + 27464.7644705}{-y} - z}{y}\\ \mathbf{elif}\;y \leq -7.2 \cdot 10^{+55}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(-1, \frac{\mathsf{fma}\left(-1, \frac{a}{x}, \frac{\mathsf{fma}\left(-1, \frac{\left(t\_2 - \frac{a}{x}\right) \cdot z}{x}, \frac{1}{x \cdot x} \cdot 27464.7644705\right) - \frac{b}{x}}{y}\right) + t\_2}{y}, \frac{1}{x}\right)}\\ \mathbf{elif}\;y \leq 7.5 \cdot 10^{+75}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right)}{t\_1}, \mathsf{fma}\left(x, \frac{{y}^{4}}{t\_1}, \frac{t}{t\_1}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x - \frac{\frac{-27464.7644705}{y} - z}{y}\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (let* ((t_1 (fma (fma (fma (+ a y) y b) y c) y i)) (t_2 (/ z (* x x))))
   (if (<= y -2.8e+118)
     (-
      x
      (/
       (-
        (/
         (+ (fma -27464.7644705 (/ a y) (/ 230661.510616 y)) 27464.7644705)
         (- y))
        z)
       y))
     (if (<= y -7.2e+55)
       (/
        1.0
        (fma
         -1.0
         (/
          (+
           (fma
            -1.0
            (/ a x)
            (/
             (-
              (fma
               -1.0
               (/ (* (- t_2 (/ a x)) z) x)
               (* (/ 1.0 (* x x)) 27464.7644705))
              (/ b x))
             y))
           t_2)
          y)
         (/ 1.0 x)))
       (if (<= y 7.5e+75)
         (fma
          y
          (/ (fma (fma z y 27464.7644705) y 230661.510616) t_1)
          (fma x (/ (pow y 4.0) t_1) (/ t t_1)))
         (- x (/ (- (/ -27464.7644705 y) z) y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double t_1 = fma(fma(fma((a + y), y, b), y, c), y, i);
	double t_2 = z / (x * x);
	double tmp;
	if (y <= -2.8e+118) {
		tmp = x - ((((fma(-27464.7644705, (a / y), (230661.510616 / y)) + 27464.7644705) / -y) - z) / y);
	} else if (y <= -7.2e+55) {
		tmp = 1.0 / fma(-1.0, ((fma(-1.0, (a / x), ((fma(-1.0, (((t_2 - (a / x)) * z) / x), ((1.0 / (x * x)) * 27464.7644705)) - (b / x)) / y)) + t_2) / y), (1.0 / x));
	} else if (y <= 7.5e+75) {
		tmp = fma(y, (fma(fma(z, y, 27464.7644705), y, 230661.510616) / t_1), fma(x, (pow(y, 4.0) / t_1), (t / t_1)));
	} else {
		tmp = x - (((-27464.7644705 / y) - z) / y);
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i)
	t_1 = fma(fma(fma(Float64(a + y), y, b), y, c), y, i)
	t_2 = Float64(z / Float64(x * x))
	tmp = 0.0
	if (y <= -2.8e+118)
		tmp = Float64(x - Float64(Float64(Float64(Float64(fma(-27464.7644705, Float64(a / y), Float64(230661.510616 / y)) + 27464.7644705) / Float64(-y)) - z) / y));
	elseif (y <= -7.2e+55)
		tmp = Float64(1.0 / fma(-1.0, Float64(Float64(fma(-1.0, Float64(a / x), Float64(Float64(fma(-1.0, Float64(Float64(Float64(t_2 - Float64(a / x)) * z) / x), Float64(Float64(1.0 / Float64(x * x)) * 27464.7644705)) - Float64(b / x)) / y)) + t_2) / y), Float64(1.0 / x)));
	elseif (y <= 7.5e+75)
		tmp = fma(y, Float64(fma(fma(z, y, 27464.7644705), y, 230661.510616) / t_1), fma(x, Float64((y ^ 4.0) / t_1), Float64(t / t_1)));
	else
		tmp = Float64(x - Float64(Float64(Float64(-27464.7644705 / y) - z) / y));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]}, Block[{t$95$2 = N[(z / N[(x * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.8e+118], N[(x - N[(N[(N[(N[(N[(-27464.7644705 * N[(a / y), $MachinePrecision] + N[(230661.510616 / y), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision] / (-y)), $MachinePrecision] - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.2e+55], N[(1.0 / N[(-1.0 * N[(N[(N[(-1.0 * N[(a / x), $MachinePrecision] + N[(N[(N[(-1.0 * N[(N[(N[(t$95$2 - N[(a / x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision] / x), $MachinePrecision] + N[(N[(1.0 / N[(x * x), $MachinePrecision]), $MachinePrecision] * 27464.7644705), $MachinePrecision]), $MachinePrecision] - N[(b / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision] / y), $MachinePrecision] + N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.5e+75], N[(y * N[(N[(N[(z * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(x * N[(N[Power[y, 4.0], $MachinePrecision] / t$95$1), $MachinePrecision] + N[(t / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(-27464.7644705 / y), $MachinePrecision] - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\
t_2 := \frac{z}{x \cdot x}\\
\mathbf{if}\;y \leq -2.8 \cdot 10^{+118}:\\
\;\;\;\;x - \frac{\frac{\mathsf{fma}\left(-27464.7644705, \frac{a}{y}, \frac{230661.510616}{y}\right) + 27464.7644705}{-y} - z}{y}\\

\mathbf{elif}\;y \leq -7.2 \cdot 10^{+55}:\\
\;\;\;\;\frac{1}{\mathsf{fma}\left(-1, \frac{\mathsf{fma}\left(-1, \frac{a}{x}, \frac{\mathsf{fma}\left(-1, \frac{\left(t\_2 - \frac{a}{x}\right) \cdot z}{x}, \frac{1}{x \cdot x} \cdot 27464.7644705\right) - \frac{b}{x}}{y}\right) + t\_2}{y}, \frac{1}{x}\right)}\\

\mathbf{elif}\;y \leq 7.5 \cdot 10^{+75}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right)}{t\_1}, \mathsf{fma}\left(x, \frac{{y}^{4}}{t\_1}, \frac{t}{t\_1}\right)\right)\\

\mathbf{else}:\\
\;\;\;\;x - \frac{\frac{-27464.7644705}{y} - z}{y}\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -2.79999999999999986e118

    1. Initial program 0.5%

      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    2. Add Preprocessing
    3. Taylor expanded in y around -inf

      \[\leadsto \color{blue}{x + -1 \cdot \frac{\left(-1 \cdot z + -1 \cdot \frac{\left(\frac{54929528941}{2000000} + \left(-1 \cdot \frac{a \cdot \left(\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)\right)}{y} + \left(-1 \cdot \frac{c \cdot x}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{y} + \frac{b \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)}{y}\right)\right)\right)\right) - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y}} \]
    4. Applied rewrites57.9%

      \[\leadsto \color{blue}{x - \frac{\left(\frac{\left(\mathsf{fma}\left(-a, \frac{27464.7644705 - \mathsf{fma}\left(1 \cdot \left(z - a \cdot x\right), a, b \cdot x\right)}{y}, \mathsf{fma}\left(-c, \frac{x}{y}, \mathsf{fma}\left(b, \frac{\mathsf{fma}\left(-1, z, a \cdot x\right)}{y}, \frac{230661.510616}{y}\right)\right)\right) + 27464.7644705\right) - \mathsf{fma}\left(1 \cdot \left(z - a \cdot x\right), a, b \cdot x\right)}{-y} - z\right) + a \cdot x}{y}} \]
    5. Taylor expanded in x around 0

      \[\leadsto x - \frac{-1 \cdot \frac{\left(\frac{54929528941}{2000000} + \left(-1 \cdot \frac{a \cdot \left(\frac{54929528941}{2000000} - a \cdot z\right)}{y} + \left(-1 \cdot \frac{b \cdot z}{y} + \frac{28832688827}{125000} \cdot \frac{1}{y}\right)\right)\right) - a \cdot z}{y} - z}{y} \]
    6. Step-by-step derivation
      1. Applied rewrites75.9%

        \[\leadsto x - \frac{\left(-\frac{\left(27464.7644705 + \mathsf{fma}\left(-1, \frac{a \cdot \left(27464.7644705 - a \cdot z\right)}{y}, \mathsf{fma}\left(-1, \frac{b \cdot z}{y}, 230661.510616 \cdot \frac{1}{y}\right)\right)\right) - a \cdot z}{y}\right) - z}{y} \]
      2. Taylor expanded in z around 0

        \[\leadsto x - \frac{\left(-\frac{\frac{54929528941}{2000000} + \left(\frac{-54929528941}{2000000} \cdot \frac{a}{y} + \frac{28832688827}{125000} \cdot \frac{1}{y}\right)}{y}\right) - z}{y} \]
      3. Step-by-step derivation
        1. Applied rewrites85.1%

          \[\leadsto x - \frac{\left(-\frac{27464.7644705 + \mathsf{fma}\left(-27464.7644705, \frac{a}{y}, \frac{230661.510616}{y}\right)}{y}\right) - z}{y} \]

        if -2.79999999999999986e118 < y < -7.19999999999999975e55

        1. Initial program 6.2%

          \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
        2. Add Preprocessing
        3. Step-by-step derivation
          1. lift-/.f64N/A

            \[\leadsto \color{blue}{\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} \]
          2. clear-numN/A

            \[\leadsto \color{blue}{\frac{1}{\frac{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}}} \]
          3. lower-/.f64N/A

            \[\leadsto \color{blue}{\frac{1}{\frac{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}}} \]
          4. lower-/.f646.3

            \[\leadsto \frac{1}{\color{blue}{\frac{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}}} \]
        4. Applied rewrites6.3%

          \[\leadsto \color{blue}{\frac{1}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}}} \]
        5. Taylor expanded in y around 0

          \[\leadsto \frac{1}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}{\mathsf{fma}\left(\color{blue}{\frac{28832688827}{125000}}, y, t\right)}} \]
        6. Step-by-step derivation
          1. Applied rewrites3.3%

            \[\leadsto \frac{1}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}{\mathsf{fma}\left(\color{blue}{230661.510616}, y, t\right)}} \]
          2. Taylor expanded in y around -inf

            \[\leadsto \frac{1}{\color{blue}{-1 \cdot \frac{\left(-1 \cdot \frac{a}{x} + -1 \cdot \frac{\frac{b}{x} - \left(-1 \cdot \frac{z \cdot \left(-1 \cdot \frac{a}{x} - -1 \cdot \frac{z}{{x}^{2}}\right)}{x} + \frac{54929528941}{2000000} \cdot \frac{1}{{x}^{2}}\right)}{y}\right) - -1 \cdot \frac{z}{{x}^{2}}}{y} + \frac{1}{x}}} \]
          3. Step-by-step derivation
            1. lower-fma.f64N/A

              \[\leadsto \frac{1}{\color{blue}{\mathsf{fma}\left(-1, \frac{\left(-1 \cdot \frac{a}{x} + -1 \cdot \frac{\frac{b}{x} - \left(-1 \cdot \frac{z \cdot \left(-1 \cdot \frac{a}{x} - -1 \cdot \frac{z}{{x}^{2}}\right)}{x} + \frac{54929528941}{2000000} \cdot \frac{1}{{x}^{2}}\right)}{y}\right) - -1 \cdot \frac{z}{{x}^{2}}}{y}, \frac{1}{x}\right)}} \]
          4. Applied rewrites74.6%

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

          if -7.19999999999999975e55 < y < 7.4999999999999995e75

          1. Initial program 91.5%

            \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          2. Add Preprocessing
          3. Taylor expanded in x around 0

            \[\leadsto \color{blue}{\frac{t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} + \left(\frac{x \cdot {y}^{4}}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} + \frac{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot z\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}\right)} \]
          4. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \color{blue}{\left(\frac{x \cdot {y}^{4}}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} + \frac{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot z\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}\right) + \frac{t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
            2. +-commutativeN/A

              \[\leadsto \color{blue}{\left(\frac{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot z\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} + \frac{x \cdot {y}^{4}}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}\right)} + \frac{t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
            3. associate-+l+N/A

              \[\leadsto \color{blue}{\frac{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot z\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} + \left(\frac{x \cdot {y}^{4}}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} + \frac{t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}\right)} \]
          5. Applied rewrites92.7%

            \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \mathsf{fma}\left(x, \frac{{y}^{4}}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)\right)} \]

          if 7.4999999999999995e75 < y

          1. Initial program 0.6%

            \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          2. Add Preprocessing
          3. Taylor expanded in y around -inf

            \[\leadsto \color{blue}{x + -1 \cdot \frac{\left(-1 \cdot z + -1 \cdot \frac{\left(\frac{54929528941}{2000000} + \left(-1 \cdot \frac{a \cdot \left(\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)\right)}{y} + \left(-1 \cdot \frac{c \cdot x}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{y} + \frac{b \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)}{y}\right)\right)\right)\right) - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y}} \]
          4. Applied rewrites54.1%

            \[\leadsto \color{blue}{x - \frac{\left(\frac{\left(\mathsf{fma}\left(-a, \frac{27464.7644705 - \mathsf{fma}\left(1 \cdot \left(z - a \cdot x\right), a, b \cdot x\right)}{y}, \mathsf{fma}\left(-c, \frac{x}{y}, \mathsf{fma}\left(b, \frac{\mathsf{fma}\left(-1, z, a \cdot x\right)}{y}, \frac{230661.510616}{y}\right)\right)\right) + 27464.7644705\right) - \mathsf{fma}\left(1 \cdot \left(z - a \cdot x\right), a, b \cdot x\right)}{-y} - z\right) + a \cdot x}{y}} \]
          5. Taylor expanded in x around 0

            \[\leadsto x - \frac{-1 \cdot \frac{\left(\frac{54929528941}{2000000} + \left(-1 \cdot \frac{a \cdot \left(\frac{54929528941}{2000000} - a \cdot z\right)}{y} + \left(-1 \cdot \frac{b \cdot z}{y} + \frac{28832688827}{125000} \cdot \frac{1}{y}\right)\right)\right) - a \cdot z}{y} - z}{y} \]
          6. Step-by-step derivation
            1. Applied rewrites53.3%

              \[\leadsto x - \frac{\left(-\frac{\left(27464.7644705 + \mathsf{fma}\left(-1, \frac{a \cdot \left(27464.7644705 - a \cdot z\right)}{y}, \mathsf{fma}\left(-1, \frac{b \cdot z}{y}, 230661.510616 \cdot \frac{1}{y}\right)\right)\right) - a \cdot z}{y}\right) - z}{y} \]
            2. Taylor expanded in y around inf

              \[\leadsto x - \frac{\frac{a \cdot z - \frac{54929528941}{2000000}}{y} - z}{y} \]
            3. Step-by-step derivation
              1. Applied rewrites62.7%

                \[\leadsto x - \frac{\frac{\mathsf{fma}\left(a, z, -27464.7644705\right)}{y} - z}{y} \]
              2. Taylor expanded in a around 0

                \[\leadsto x - \frac{\frac{\frac{-54929528941}{2000000}}{y} - z}{y} \]
              3. Step-by-step derivation
                1. Applied rewrites70.0%

                  \[\leadsto x - \frac{\frac{-27464.7644705}{y} - z}{y} \]
              4. Recombined 4 regimes into one program.
              5. Final simplification85.7%

                \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.8 \cdot 10^{+118}:\\ \;\;\;\;x - \frac{\frac{\mathsf{fma}\left(-27464.7644705, \frac{a}{y}, \frac{230661.510616}{y}\right) + 27464.7644705}{-y} - z}{y}\\ \mathbf{elif}\;y \leq -7.2 \cdot 10^{+55}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(-1, \frac{\mathsf{fma}\left(-1, \frac{a}{x}, \frac{\mathsf{fma}\left(-1, \frac{\left(\frac{z}{x \cdot x} - \frac{a}{x}\right) \cdot z}{x}, \frac{1}{x \cdot x} \cdot 27464.7644705\right) - \frac{b}{x}}{y}\right) + \frac{z}{x \cdot x}}{y}, \frac{1}{x}\right)}\\ \mathbf{elif}\;y \leq 7.5 \cdot 10^{+75}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \mathsf{fma}\left(x, \frac{{y}^{4}}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x - \frac{\frac{-27464.7644705}{y} - z}{y}\\ \end{array} \]
              6. Add Preprocessing

              Alternative 2: 85.3% accurate, 0.4× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\ t_2 := \frac{z}{x \cdot x}\\ \mathbf{if}\;y \leq -2.8 \cdot 10^{+118}:\\ \;\;\;\;x - \frac{\frac{\mathsf{fma}\left(-27464.7644705, \frac{a}{y}, \frac{230661.510616}{y}\right) + 27464.7644705}{-y} - z}{y}\\ \mathbf{elif}\;y \leq -6.5 \cdot 10^{+55}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(-1, \frac{\mathsf{fma}\left(-1, \frac{a}{x}, \frac{\mathsf{fma}\left(-1, \frac{\left(t\_2 - \frac{a}{x}\right) \cdot z}{x}, \frac{1}{x \cdot x} \cdot 27464.7644705\right) - \frac{b}{x}}{y}\right) + t\_2}{y}, \frac{1}{x}\right)}\\ \mathbf{elif}\;y \leq 3.7 \cdot 10^{+71}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{t\_1}, \frac{t}{t\_1}\right)\\ \mathbf{else}:\\ \;\;\;\;x - \frac{\frac{-27464.7644705}{y} - z}{y}\\ \end{array} \end{array} \]
              (FPCore (x y z t a b c i)
               :precision binary64
               (let* ((t_1 (fma (fma (fma (+ a y) y b) y c) y i)) (t_2 (/ z (* x x))))
                 (if (<= y -2.8e+118)
                   (-
                    x
                    (/
                     (-
                      (/
                       (+ (fma -27464.7644705 (/ a y) (/ 230661.510616 y)) 27464.7644705)
                       (- y))
                      z)
                     y))
                   (if (<= y -6.5e+55)
                     (/
                      1.0
                      (fma
                       -1.0
                       (/
                        (+
                         (fma
                          -1.0
                          (/ a x)
                          (/
                           (-
                            (fma
                             -1.0
                             (/ (* (- t_2 (/ a x)) z) x)
                             (* (/ 1.0 (* x x)) 27464.7644705))
                            (/ b x))
                           y))
                         t_2)
                        y)
                       (/ 1.0 x)))
                     (if (<= y 3.7e+71)
                       (fma
                        y
                        (/ (fma (fma (fma x y z) y 27464.7644705) y 230661.510616) t_1)
                        (/ t t_1))
                       (- x (/ (- (/ -27464.7644705 y) z) y)))))))
              double code(double x, double y, double z, double t, double a, double b, double c, double i) {
              	double t_1 = fma(fma(fma((a + y), y, b), y, c), y, i);
              	double t_2 = z / (x * x);
              	double tmp;
              	if (y <= -2.8e+118) {
              		tmp = x - ((((fma(-27464.7644705, (a / y), (230661.510616 / y)) + 27464.7644705) / -y) - z) / y);
              	} else if (y <= -6.5e+55) {
              		tmp = 1.0 / fma(-1.0, ((fma(-1.0, (a / x), ((fma(-1.0, (((t_2 - (a / x)) * z) / x), ((1.0 / (x * x)) * 27464.7644705)) - (b / x)) / y)) + t_2) / y), (1.0 / x));
              	} else if (y <= 3.7e+71) {
              		tmp = fma(y, (fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616) / t_1), (t / t_1));
              	} else {
              		tmp = x - (((-27464.7644705 / y) - z) / y);
              	}
              	return tmp;
              }
              
              function code(x, y, z, t, a, b, c, i)
              	t_1 = fma(fma(fma(Float64(a + y), y, b), y, c), y, i)
              	t_2 = Float64(z / Float64(x * x))
              	tmp = 0.0
              	if (y <= -2.8e+118)
              		tmp = Float64(x - Float64(Float64(Float64(Float64(fma(-27464.7644705, Float64(a / y), Float64(230661.510616 / y)) + 27464.7644705) / Float64(-y)) - z) / y));
              	elseif (y <= -6.5e+55)
              		tmp = Float64(1.0 / fma(-1.0, Float64(Float64(fma(-1.0, Float64(a / x), Float64(Float64(fma(-1.0, Float64(Float64(Float64(t_2 - Float64(a / x)) * z) / x), Float64(Float64(1.0 / Float64(x * x)) * 27464.7644705)) - Float64(b / x)) / y)) + t_2) / y), Float64(1.0 / x)));
              	elseif (y <= 3.7e+71)
              		tmp = fma(y, Float64(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616) / t_1), Float64(t / t_1));
              	else
              		tmp = Float64(x - Float64(Float64(Float64(-27464.7644705 / y) - z) / y));
              	end
              	return tmp
              end
              
              code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]}, Block[{t$95$2 = N[(z / N[(x * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.8e+118], N[(x - N[(N[(N[(N[(N[(-27464.7644705 * N[(a / y), $MachinePrecision] + N[(230661.510616 / y), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision] / (-y)), $MachinePrecision] - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -6.5e+55], N[(1.0 / N[(-1.0 * N[(N[(N[(-1.0 * N[(a / x), $MachinePrecision] + N[(N[(N[(-1.0 * N[(N[(N[(t$95$2 - N[(a / x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision] / x), $MachinePrecision] + N[(N[(1.0 / N[(x * x), $MachinePrecision]), $MachinePrecision] * 27464.7644705), $MachinePrecision]), $MachinePrecision] - N[(b / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision] / y), $MachinePrecision] + N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.7e+71], N[(y * N[(N[(N[(N[(x * y + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(t / t$95$1), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(-27464.7644705 / y), $MachinePrecision] - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\
              t_2 := \frac{z}{x \cdot x}\\
              \mathbf{if}\;y \leq -2.8 \cdot 10^{+118}:\\
              \;\;\;\;x - \frac{\frac{\mathsf{fma}\left(-27464.7644705, \frac{a}{y}, \frac{230661.510616}{y}\right) + 27464.7644705}{-y} - z}{y}\\
              
              \mathbf{elif}\;y \leq -6.5 \cdot 10^{+55}:\\
              \;\;\;\;\frac{1}{\mathsf{fma}\left(-1, \frac{\mathsf{fma}\left(-1, \frac{a}{x}, \frac{\mathsf{fma}\left(-1, \frac{\left(t\_2 - \frac{a}{x}\right) \cdot z}{x}, \frac{1}{x \cdot x} \cdot 27464.7644705\right) - \frac{b}{x}}{y}\right) + t\_2}{y}, \frac{1}{x}\right)}\\
              
              \mathbf{elif}\;y \leq 3.7 \cdot 10^{+71}:\\
              \;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{t\_1}, \frac{t}{t\_1}\right)\\
              
              \mathbf{else}:\\
              \;\;\;\;x - \frac{\frac{-27464.7644705}{y} - z}{y}\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 4 regimes
              2. if y < -2.79999999999999986e118

                1. Initial program 0.5%

                  \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                2. Add Preprocessing
                3. Taylor expanded in y around -inf

                  \[\leadsto \color{blue}{x + -1 \cdot \frac{\left(-1 \cdot z + -1 \cdot \frac{\left(\frac{54929528941}{2000000} + \left(-1 \cdot \frac{a \cdot \left(\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)\right)}{y} + \left(-1 \cdot \frac{c \cdot x}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{y} + \frac{b \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)}{y}\right)\right)\right)\right) - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y}} \]
                4. Applied rewrites57.9%

                  \[\leadsto \color{blue}{x - \frac{\left(\frac{\left(\mathsf{fma}\left(-a, \frac{27464.7644705 - \mathsf{fma}\left(1 \cdot \left(z - a \cdot x\right), a, b \cdot x\right)}{y}, \mathsf{fma}\left(-c, \frac{x}{y}, \mathsf{fma}\left(b, \frac{\mathsf{fma}\left(-1, z, a \cdot x\right)}{y}, \frac{230661.510616}{y}\right)\right)\right) + 27464.7644705\right) - \mathsf{fma}\left(1 \cdot \left(z - a \cdot x\right), a, b \cdot x\right)}{-y} - z\right) + a \cdot x}{y}} \]
                5. Taylor expanded in x around 0

                  \[\leadsto x - \frac{-1 \cdot \frac{\left(\frac{54929528941}{2000000} + \left(-1 \cdot \frac{a \cdot \left(\frac{54929528941}{2000000} - a \cdot z\right)}{y} + \left(-1 \cdot \frac{b \cdot z}{y} + \frac{28832688827}{125000} \cdot \frac{1}{y}\right)\right)\right) - a \cdot z}{y} - z}{y} \]
                6. Step-by-step derivation
                  1. Applied rewrites75.9%

                    \[\leadsto x - \frac{\left(-\frac{\left(27464.7644705 + \mathsf{fma}\left(-1, \frac{a \cdot \left(27464.7644705 - a \cdot z\right)}{y}, \mathsf{fma}\left(-1, \frac{b \cdot z}{y}, 230661.510616 \cdot \frac{1}{y}\right)\right)\right) - a \cdot z}{y}\right) - z}{y} \]
                  2. Taylor expanded in z around 0

                    \[\leadsto x - \frac{\left(-\frac{\frac{54929528941}{2000000} + \left(\frac{-54929528941}{2000000} \cdot \frac{a}{y} + \frac{28832688827}{125000} \cdot \frac{1}{y}\right)}{y}\right) - z}{y} \]
                  3. Step-by-step derivation
                    1. Applied rewrites85.1%

                      \[\leadsto x - \frac{\left(-\frac{27464.7644705 + \mathsf{fma}\left(-27464.7644705, \frac{a}{y}, \frac{230661.510616}{y}\right)}{y}\right) - z}{y} \]

                    if -2.79999999999999986e118 < y < -6.50000000000000027e55

                    1. Initial program 6.2%

                      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                    2. Add Preprocessing
                    3. Step-by-step derivation
                      1. lift-/.f64N/A

                        \[\leadsto \color{blue}{\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} \]
                      2. clear-numN/A

                        \[\leadsto \color{blue}{\frac{1}{\frac{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}}} \]
                      3. lower-/.f64N/A

                        \[\leadsto \color{blue}{\frac{1}{\frac{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}}} \]
                      4. lower-/.f646.3

                        \[\leadsto \frac{1}{\color{blue}{\frac{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}}} \]
                    4. Applied rewrites6.3%

                      \[\leadsto \color{blue}{\frac{1}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}}} \]
                    5. Taylor expanded in y around 0

                      \[\leadsto \frac{1}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}{\mathsf{fma}\left(\color{blue}{\frac{28832688827}{125000}}, y, t\right)}} \]
                    6. Step-by-step derivation
                      1. Applied rewrites3.3%

                        \[\leadsto \frac{1}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}{\mathsf{fma}\left(\color{blue}{230661.510616}, y, t\right)}} \]
                      2. Taylor expanded in y around -inf

                        \[\leadsto \frac{1}{\color{blue}{-1 \cdot \frac{\left(-1 \cdot \frac{a}{x} + -1 \cdot \frac{\frac{b}{x} - \left(-1 \cdot \frac{z \cdot \left(-1 \cdot \frac{a}{x} - -1 \cdot \frac{z}{{x}^{2}}\right)}{x} + \frac{54929528941}{2000000} \cdot \frac{1}{{x}^{2}}\right)}{y}\right) - -1 \cdot \frac{z}{{x}^{2}}}{y} + \frac{1}{x}}} \]
                      3. Step-by-step derivation
                        1. lower-fma.f64N/A

                          \[\leadsto \frac{1}{\color{blue}{\mathsf{fma}\left(-1, \frac{\left(-1 \cdot \frac{a}{x} + -1 \cdot \frac{\frac{b}{x} - \left(-1 \cdot \frac{z \cdot \left(-1 \cdot \frac{a}{x} - -1 \cdot \frac{z}{{x}^{2}}\right)}{x} + \frac{54929528941}{2000000} \cdot \frac{1}{{x}^{2}}\right)}{y}\right) - -1 \cdot \frac{z}{{x}^{2}}}{y}, \frac{1}{x}\right)}} \]
                      4. Applied rewrites74.6%

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

                      if -6.50000000000000027e55 < y < 3.7e71

                      1. Initial program 92.0%

                        \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                      2. Add Preprocessing
                      3. Taylor expanded in t around 0

                        \[\leadsto \color{blue}{\frac{t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} + \frac{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
                      4. Step-by-step derivation
                        1. +-commutativeN/A

                          \[\leadsto \color{blue}{\frac{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} + \frac{t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
                        2. associate-/l*N/A

                          \[\leadsto \color{blue}{y \cdot \frac{\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} + \frac{t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
                        3. lower-fma.f64N/A

                          \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}, \frac{t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}\right)} \]
                      5. Applied rewrites92.6%

                        \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)} \]

                      if 3.7e71 < y

                      1. Initial program 0.7%

                        \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                      2. Add Preprocessing
                      3. Taylor expanded in y around -inf

                        \[\leadsto \color{blue}{x + -1 \cdot \frac{\left(-1 \cdot z + -1 \cdot \frac{\left(\frac{54929528941}{2000000} + \left(-1 \cdot \frac{a \cdot \left(\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)\right)}{y} + \left(-1 \cdot \frac{c \cdot x}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{y} + \frac{b \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)}{y}\right)\right)\right)\right) - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y}} \]
                      4. Applied rewrites53.1%

                        \[\leadsto \color{blue}{x - \frac{\left(\frac{\left(\mathsf{fma}\left(-a, \frac{27464.7644705 - \mathsf{fma}\left(1 \cdot \left(z - a \cdot x\right), a, b \cdot x\right)}{y}, \mathsf{fma}\left(-c, \frac{x}{y}, \mathsf{fma}\left(b, \frac{\mathsf{fma}\left(-1, z, a \cdot x\right)}{y}, \frac{230661.510616}{y}\right)\right)\right) + 27464.7644705\right) - \mathsf{fma}\left(1 \cdot \left(z - a \cdot x\right), a, b \cdot x\right)}{-y} - z\right) + a \cdot x}{y}} \]
                      5. Taylor expanded in x around 0

                        \[\leadsto x - \frac{-1 \cdot \frac{\left(\frac{54929528941}{2000000} + \left(-1 \cdot \frac{a \cdot \left(\frac{54929528941}{2000000} - a \cdot z\right)}{y} + \left(-1 \cdot \frac{b \cdot z}{y} + \frac{28832688827}{125000} \cdot \frac{1}{y}\right)\right)\right) - a \cdot z}{y} - z}{y} \]
                      6. Step-by-step derivation
                        1. Applied rewrites53.2%

                          \[\leadsto x - \frac{\left(-\frac{\left(27464.7644705 + \mathsf{fma}\left(-1, \frac{a \cdot \left(27464.7644705 - a \cdot z\right)}{y}, \mathsf{fma}\left(-1, \frac{b \cdot z}{y}, 230661.510616 \cdot \frac{1}{y}\right)\right)\right) - a \cdot z}{y}\right) - z}{y} \]
                        2. Taylor expanded in y around inf

                          \[\leadsto x - \frac{\frac{a \cdot z - \frac{54929528941}{2000000}}{y} - z}{y} \]
                        3. Step-by-step derivation
                          1. Applied rewrites62.4%

                            \[\leadsto x - \frac{\frac{\mathsf{fma}\left(a, z, -27464.7644705\right)}{y} - z}{y} \]
                          2. Taylor expanded in a around 0

                            \[\leadsto x - \frac{\frac{\frac{-54929528941}{2000000}}{y} - z}{y} \]
                          3. Step-by-step derivation
                            1. Applied rewrites69.6%

                              \[\leadsto x - \frac{\frac{-27464.7644705}{y} - z}{y} \]
                          4. Recombined 4 regimes into one program.
                          5. Final simplification85.4%

                            \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.8 \cdot 10^{+118}:\\ \;\;\;\;x - \frac{\frac{\mathsf{fma}\left(-27464.7644705, \frac{a}{y}, \frac{230661.510616}{y}\right) + 27464.7644705}{-y} - z}{y}\\ \mathbf{elif}\;y \leq -6.5 \cdot 10^{+55}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(-1, \frac{\mathsf{fma}\left(-1, \frac{a}{x}, \frac{\mathsf{fma}\left(-1, \frac{\left(\frac{z}{x \cdot x} - \frac{a}{x}\right) \cdot z}{x}, \frac{1}{x \cdot x} \cdot 27464.7644705\right) - \frac{b}{x}}{y}\right) + \frac{z}{x \cdot x}}{y}, \frac{1}{x}\right)}\\ \mathbf{elif}\;y \leq 3.7 \cdot 10^{+71}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)\\ \mathbf{else}:\\ \;\;\;\;x - \frac{\frac{-27464.7644705}{y} - z}{y}\\ \end{array} \]
                          6. Add Preprocessing

                          Alternative 3: 84.3% accurate, 0.4× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\ \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{t\_1}, \frac{t}{t\_1}\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{x}{y \cdot y} \cdot b\\ \end{array} \end{array} \]
                          (FPCore (x y z t a b c i)
                           :precision binary64
                           (let* ((t_1 (fma (fma (fma (+ a y) y b) y c) y i)))
                             (if (<=
                                  (/
                                   (+
                                    (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
                                    t)
                                   (+ (* (+ (* (+ (* (+ a y) y) b) y) c) y) i))
                                  INFINITY)
                               (fma
                                y
                                (/ (fma (fma (fma x y z) y 27464.7644705) y 230661.510616) t_1)
                                (/ t t_1))
                               (- (+ (/ z y) (+ (/ 27464.7644705 (* y y)) x)) (* (/ x (* y y)) b)))))
                          double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                          	double t_1 = fma(fma(fma((a + y), y, b), y, c), y, i);
                          	double tmp;
                          	if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= ((double) INFINITY)) {
                          		tmp = fma(y, (fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616) / t_1), (t / t_1));
                          	} else {
                          		tmp = ((z / y) + ((27464.7644705 / (y * y)) + x)) - ((x / (y * y)) * b);
                          	}
                          	return tmp;
                          }
                          
                          function code(x, y, z, t, a, b, c, i)
                          	t_1 = fma(fma(fma(Float64(a + y), y, b), y, c), y, i)
                          	tmp = 0.0
                          	if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(a + y) * y) + b) * y) + c) * y) + i)) <= Inf)
                          		tmp = fma(y, Float64(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616) / t_1), Float64(t / t_1));
                          	else
                          		tmp = Float64(Float64(Float64(z / y) + Float64(Float64(27464.7644705 / Float64(y * y)) + x)) - Float64(Float64(x / Float64(y * y)) * b));
                          	end
                          	return tmp
                          end
                          
                          code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(a + y), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], Infinity], N[(y * N[(N[(N[(N[(x * y + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(t / t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / N[(y * y), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision] - N[(N[(x / N[(y * y), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\
                          \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\
                          \;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{t\_1}, \frac{t}{t\_1}\right)\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{x}{y \cdot y} \cdot b\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0

                            1. Initial program 87.3%

                              \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                            2. Add Preprocessing
                            3. Taylor expanded in t around 0

                              \[\leadsto \color{blue}{\frac{t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} + \frac{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
                            4. Step-by-step derivation
                              1. +-commutativeN/A

                                \[\leadsto \color{blue}{\frac{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} + \frac{t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
                              2. associate-/l*N/A

                                \[\leadsto \color{blue}{y \cdot \frac{\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} + \frac{t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
                              3. lower-fma.f64N/A

                                \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}, \frac{t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}\right)} \]
                            5. Applied rewrites88.5%

                              \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)} \]

                            if +inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

                            1. Initial program 0.0%

                              \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                            2. Add Preprocessing
                            3. Taylor expanded in a around 0

                              \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                            4. Step-by-step derivation
                              1. lower-/.f64N/A

                                \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                              2. +-commutativeN/A

                                \[\leadsto \frac{\color{blue}{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) + t}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                              3. *-commutativeN/A

                                \[\leadsto \frac{\color{blue}{\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) \cdot y} + t}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                              4. lower-fma.f64N/A

                                \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right), y, t\right)}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                              5. +-commutativeN/A

                                \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) + \frac{28832688827}{125000}}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                              6. *-commutativeN/A

                                \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) \cdot y} + \frac{28832688827}{125000}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                              7. lower-fma.f64N/A

                                \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right), y, \frac{28832688827}{125000}\right)}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                              8. +-commutativeN/A

                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{y \cdot \left(z + x \cdot y\right) + \frac{54929528941}{2000000}}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                              9. *-commutativeN/A

                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(z + x \cdot y\right) \cdot y} + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                              10. lower-fma.f64N/A

                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z + x \cdot y, y, \frac{54929528941}{2000000}\right)}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                              11. +-commutativeN/A

                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{x \cdot y + z}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                              12. lower-fma.f64N/A

                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, y, z\right)}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                              13. +-commutativeN/A

                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right) + i}} \]
                            5. Applied rewrites0.1%

                              \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}} \]
                            6. Taylor expanded in y around inf

                              \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                            7. Step-by-step derivation
                              1. Applied rewrites70.3%

                                \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                              2. Taylor expanded in y around inf

                                \[\leadsto \left(x + \left(\frac{\frac{54929528941}{2000000}}{{y}^{2}} + \frac{z}{y}\right)\right) - \color{blue}{\frac{b \cdot x}{{y}^{2}}} \]
                              3. Step-by-step derivation
                                1. Applied rewrites70.5%

                                  \[\leadsto \left(\left(x + \frac{27464.7644705}{y \cdot y}\right) + \frac{z}{y}\right) - \color{blue}{b \cdot \frac{x}{y \cdot y}} \]
                              4. Recombined 2 regimes into one program.
                              5. Final simplification81.7%

                                \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{x}{y \cdot y} \cdot b\\ \end{array} \]
                              6. Add Preprocessing

                              Alternative 4: 83.0% accurate, 0.5× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\ \mathbf{if}\;t\_1 \leq 10^{+277}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{x}{y \cdot y} \cdot b\\ \end{array} \end{array} \]
                              (FPCore (x y z t a b c i)
                               :precision binary64
                               (let* ((t_1
                                       (/
                                        (+
                                         (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
                                         t)
                                        (+ (* (+ (* (+ (* (+ a y) y) b) y) c) y) i))))
                                 (if (<= t_1 1e+277)
                                   t_1
                                   (- (+ (/ z y) (+ (/ 27464.7644705 (* y y)) x)) (* (/ x (* y y)) b)))))
                              double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                              	double t_1 = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i);
                              	double tmp;
                              	if (t_1 <= 1e+277) {
                              		tmp = t_1;
                              	} else {
                              		tmp = ((z / y) + ((27464.7644705 / (y * y)) + x)) - ((x / (y * y)) * b);
                              	}
                              	return tmp;
                              }
                              
                              real(8) function code(x, y, z, t, a, b, c, i)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  real(8), intent (in) :: z
                                  real(8), intent (in) :: t
                                  real(8), intent (in) :: a
                                  real(8), intent (in) :: b
                                  real(8), intent (in) :: c
                                  real(8), intent (in) :: i
                                  real(8) :: t_1
                                  real(8) :: tmp
                                  t_1 = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)
                                  if (t_1 <= 1d+277) then
                                      tmp = t_1
                                  else
                                      tmp = ((z / y) + ((27464.7644705d0 / (y * y)) + x)) - ((x / (y * y)) * b)
                                  end if
                                  code = tmp
                              end function
                              
                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                              	double t_1 = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i);
                              	double tmp;
                              	if (t_1 <= 1e+277) {
                              		tmp = t_1;
                              	} else {
                              		tmp = ((z / y) + ((27464.7644705 / (y * y)) + x)) - ((x / (y * y)) * b);
                              	}
                              	return tmp;
                              }
                              
                              def code(x, y, z, t, a, b, c, i):
                              	t_1 = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)
                              	tmp = 0
                              	if t_1 <= 1e+277:
                              		tmp = t_1
                              	else:
                              		tmp = ((z / y) + ((27464.7644705 / (y * y)) + x)) - ((x / (y * y)) * b)
                              	return tmp
                              
                              function code(x, y, z, t, a, b, c, i)
                              	t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(a + y) * y) + b) * y) + c) * y) + i))
                              	tmp = 0.0
                              	if (t_1 <= 1e+277)
                              		tmp = t_1;
                              	else
                              		tmp = Float64(Float64(Float64(z / y) + Float64(Float64(27464.7644705 / Float64(y * y)) + x)) - Float64(Float64(x / Float64(y * y)) * b));
                              	end
                              	return tmp
                              end
                              
                              function tmp_2 = code(x, y, z, t, a, b, c, i)
                              	t_1 = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i);
                              	tmp = 0.0;
                              	if (t_1 <= 1e+277)
                              		tmp = t_1;
                              	else
                              		tmp = ((z / y) + ((27464.7644705 / (y * y)) + x)) - ((x / (y * y)) * b);
                              	end
                              	tmp_2 = tmp;
                              end
                              
                              code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(a + y), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 1e+277], t$95$1, N[(N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / N[(y * y), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision] - N[(N[(x / N[(y * y), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              t_1 := \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\
                              \mathbf{if}\;t\_1 \leq 10^{+277}:\\
                              \;\;\;\;t\_1\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{x}{y \cdot y} \cdot b\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 1e277

                                1. Initial program 88.6%

                                  \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                2. Add Preprocessing

                                if 1e277 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

                                1. Initial program 4.9%

                                  \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                2. Add Preprocessing
                                3. Taylor expanded in a around 0

                                  \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                4. Step-by-step derivation
                                  1. lower-/.f64N/A

                                    \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                  2. +-commutativeN/A

                                    \[\leadsto \frac{\color{blue}{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) + t}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                  3. *-commutativeN/A

                                    \[\leadsto \frac{\color{blue}{\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) \cdot y} + t}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                  4. lower-fma.f64N/A

                                    \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right), y, t\right)}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                  5. +-commutativeN/A

                                    \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) + \frac{28832688827}{125000}}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                  6. *-commutativeN/A

                                    \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) \cdot y} + \frac{28832688827}{125000}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                  7. lower-fma.f64N/A

                                    \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right), y, \frac{28832688827}{125000}\right)}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                  8. +-commutativeN/A

                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{y \cdot \left(z + x \cdot y\right) + \frac{54929528941}{2000000}}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                  9. *-commutativeN/A

                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(z + x \cdot y\right) \cdot y} + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                  10. lower-fma.f64N/A

                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z + x \cdot y, y, \frac{54929528941}{2000000}\right)}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                  11. +-commutativeN/A

                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{x \cdot y + z}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                  12. lower-fma.f64N/A

                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, y, z\right)}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                  13. +-commutativeN/A

                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right) + i}} \]
                                5. Applied rewrites5.0%

                                  \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}} \]
                                6. Taylor expanded in y around inf

                                  \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                                7. Step-by-step derivation
                                  1. Applied rewrites67.9%

                                    \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                                  2. Taylor expanded in y around inf

                                    \[\leadsto \left(x + \left(\frac{\frac{54929528941}{2000000}}{{y}^{2}} + \frac{z}{y}\right)\right) - \color{blue}{\frac{b \cdot x}{{y}^{2}}} \]
                                  3. Step-by-step derivation
                                    1. Applied rewrites70.0%

                                      \[\leadsto \left(\left(x + \frac{27464.7644705}{y \cdot y}\right) + \frac{z}{y}\right) - \color{blue}{b \cdot \frac{x}{y \cdot y}} \]
                                  4. Recombined 2 regimes into one program.
                                  5. Final simplification81.0%

                                    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq 10^{+277}:\\ \;\;\;\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\ \mathbf{else}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{x}{y \cdot y} \cdot b\\ \end{array} \]
                                  6. Add Preprocessing

                                  Alternative 5: 82.9% accurate, 0.5× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq 10^{+277}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)} \cdot \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{x}{y \cdot y} \cdot b\\ \end{array} \end{array} \]
                                  (FPCore (x y z t a b c i)
                                   :precision binary64
                                   (if (<=
                                        (/
                                         (+
                                          (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
                                          t)
                                         (+ (* (+ (* (+ (* (+ a y) y) b) y) c) y) i))
                                        1e+277)
                                     (*
                                      (/ 1.0 (fma (fma (fma (+ a y) y b) y c) y i))
                                      (fma (fma (fma (fma y x z) y 27464.7644705) y 230661.510616) y t))
                                     (- (+ (/ z y) (+ (/ 27464.7644705 (* y y)) x)) (* (/ x (* y y)) b))))
                                  double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                  	double tmp;
                                  	if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= 1e+277) {
                                  		tmp = (1.0 / fma(fma(fma((a + y), y, b), y, c), y, i)) * fma(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616), y, t);
                                  	} else {
                                  		tmp = ((z / y) + ((27464.7644705 / (y * y)) + x)) - ((x / (y * y)) * b);
                                  	}
                                  	return tmp;
                                  }
                                  
                                  function code(x, y, z, t, a, b, c, i)
                                  	tmp = 0.0
                                  	if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(a + y) * y) + b) * y) + c) * y) + i)) <= 1e+277)
                                  		tmp = Float64(Float64(1.0 / fma(fma(fma(Float64(a + y), y, b), y, c), y, i)) * fma(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616), y, t));
                                  	else
                                  		tmp = Float64(Float64(Float64(z / y) + Float64(Float64(27464.7644705 / Float64(y * y)) + x)) - Float64(Float64(x / Float64(y * y)) * b));
                                  	end
                                  	return tmp
                                  end
                                  
                                  code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(a + y), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], 1e+277], N[(N[(1.0 / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[(y * x + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision]), $MachinePrecision], N[(N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / N[(y * y), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision] - N[(N[(x / N[(y * y), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq 10^{+277}:\\
                                  \;\;\;\;\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)} \cdot \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{x}{y \cdot y} \cdot b\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 2 regimes
                                  2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 1e277

                                    1. Initial program 88.6%

                                      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                    2. Add Preprocessing
                                    3. Step-by-step derivation
                                      1. lift-/.f64N/A

                                        \[\leadsto \color{blue}{\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} \]
                                      2. frac-2negN/A

                                        \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(\left(\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t\right)\right)}{\mathsf{neg}\left(\left(\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i\right)\right)}} \]
                                      3. div-invN/A

                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t\right)\right)\right) \cdot \frac{1}{\mathsf{neg}\left(\left(\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i\right)\right)}} \]
                                      4. lower-*.f64N/A

                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t\right)\right)\right) \cdot \frac{1}{\mathsf{neg}\left(\left(\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i\right)\right)}} \]
                                    4. Applied rewrites88.3%

                                      \[\leadsto \color{blue}{\left(-\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)\right) \cdot \frac{-1}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}} \]

                                    if 1e277 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

                                    1. Initial program 4.9%

                                      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                    2. Add Preprocessing
                                    3. Taylor expanded in a around 0

                                      \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                    4. Step-by-step derivation
                                      1. lower-/.f64N/A

                                        \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                      2. +-commutativeN/A

                                        \[\leadsto \frac{\color{blue}{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) + t}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                      3. *-commutativeN/A

                                        \[\leadsto \frac{\color{blue}{\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) \cdot y} + t}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                      4. lower-fma.f64N/A

                                        \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right), y, t\right)}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                      5. +-commutativeN/A

                                        \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) + \frac{28832688827}{125000}}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                      6. *-commutativeN/A

                                        \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) \cdot y} + \frac{28832688827}{125000}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                      7. lower-fma.f64N/A

                                        \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right), y, \frac{28832688827}{125000}\right)}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                      8. +-commutativeN/A

                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{y \cdot \left(z + x \cdot y\right) + \frac{54929528941}{2000000}}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                      9. *-commutativeN/A

                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(z + x \cdot y\right) \cdot y} + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                      10. lower-fma.f64N/A

                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z + x \cdot y, y, \frac{54929528941}{2000000}\right)}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                      11. +-commutativeN/A

                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{x \cdot y + z}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                      12. lower-fma.f64N/A

                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, y, z\right)}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                      13. +-commutativeN/A

                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right) + i}} \]
                                    5. Applied rewrites5.0%

                                      \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}} \]
                                    6. Taylor expanded in y around inf

                                      \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                                    7. Step-by-step derivation
                                      1. Applied rewrites67.9%

                                        \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                                      2. Taylor expanded in y around inf

                                        \[\leadsto \left(x + \left(\frac{\frac{54929528941}{2000000}}{{y}^{2}} + \frac{z}{y}\right)\right) - \color{blue}{\frac{b \cdot x}{{y}^{2}}} \]
                                      3. Step-by-step derivation
                                        1. Applied rewrites70.0%

                                          \[\leadsto \left(\left(x + \frac{27464.7644705}{y \cdot y}\right) + \frac{z}{y}\right) - \color{blue}{b \cdot \frac{x}{y \cdot y}} \]
                                      4. Recombined 2 regimes into one program.
                                      5. Final simplification80.9%

                                        \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq 10^{+277}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)} \cdot \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{x}{y \cdot y} \cdot b\\ \end{array} \]
                                      6. Add Preprocessing

                                      Alternative 6: 79.6% accurate, 0.5× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq 10^{+277}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{x}{y \cdot y} \cdot b\\ \end{array} \end{array} \]
                                      (FPCore (x y z t a b c i)
                                       :precision binary64
                                       (if (<=
                                            (/
                                             (+
                                              (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
                                              t)
                                             (+ (* (+ (* (+ (* (+ a y) y) b) y) c) y) i))
                                            1e+277)
                                         (/
                                          (fma (fma (fma (fma x y z) y 27464.7644705) y 230661.510616) y t)
                                          (fma (fma (fma y y b) y c) y i))
                                         (- (+ (/ z y) (+ (/ 27464.7644705 (* y y)) x)) (* (/ x (* y y)) b))))
                                      double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                      	double tmp;
                                      	if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= 1e+277) {
                                      		tmp = fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma(y, y, b), y, c), y, i);
                                      	} else {
                                      		tmp = ((z / y) + ((27464.7644705 / (y * y)) + x)) - ((x / (y * y)) * b);
                                      	}
                                      	return tmp;
                                      }
                                      
                                      function code(x, y, z, t, a, b, c, i)
                                      	tmp = 0.0
                                      	if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(a + y) * y) + b) * y) + c) * y) + i)) <= 1e+277)
                                      		tmp = Float64(fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma(y, y, b), y, c), y, i));
                                      	else
                                      		tmp = Float64(Float64(Float64(z / y) + Float64(Float64(27464.7644705 / Float64(y * y)) + x)) - Float64(Float64(x / Float64(y * y)) * b));
                                      	end
                                      	return tmp
                                      end
                                      
                                      code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(a + y), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], 1e+277], N[(N[(N[(N[(N[(x * y + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / N[(N[(N[(y * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], N[(N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / N[(y * y), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision] - N[(N[(x / N[(y * y), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq 10^{+277}:\\
                                      \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{x}{y \cdot y} \cdot b\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 2 regimes
                                      2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 1e277

                                        1. Initial program 88.6%

                                          \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                        2. Add Preprocessing
                                        3. Taylor expanded in a around 0

                                          \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                        4. Step-by-step derivation
                                          1. lower-/.f64N/A

                                            \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                          2. +-commutativeN/A

                                            \[\leadsto \frac{\color{blue}{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) + t}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          3. *-commutativeN/A

                                            \[\leadsto \frac{\color{blue}{\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) \cdot y} + t}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          4. lower-fma.f64N/A

                                            \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right), y, t\right)}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          5. +-commutativeN/A

                                            \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) + \frac{28832688827}{125000}}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          6. *-commutativeN/A

                                            \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) \cdot y} + \frac{28832688827}{125000}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          7. lower-fma.f64N/A

                                            \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right), y, \frac{28832688827}{125000}\right)}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          8. +-commutativeN/A

                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{y \cdot \left(z + x \cdot y\right) + \frac{54929528941}{2000000}}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          9. *-commutativeN/A

                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(z + x \cdot y\right) \cdot y} + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          10. lower-fma.f64N/A

                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z + x \cdot y, y, \frac{54929528941}{2000000}\right)}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          11. +-commutativeN/A

                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{x \cdot y + z}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          12. lower-fma.f64N/A

                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, y, z\right)}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          13. +-commutativeN/A

                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right) + i}} \]
                                        5. Applied rewrites83.5%

                                          \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}} \]

                                        if 1e277 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

                                        1. Initial program 4.9%

                                          \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                        2. Add Preprocessing
                                        3. Taylor expanded in a around 0

                                          \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                        4. Step-by-step derivation
                                          1. lower-/.f64N/A

                                            \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                          2. +-commutativeN/A

                                            \[\leadsto \frac{\color{blue}{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) + t}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          3. *-commutativeN/A

                                            \[\leadsto \frac{\color{blue}{\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) \cdot y} + t}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          4. lower-fma.f64N/A

                                            \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right), y, t\right)}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          5. +-commutativeN/A

                                            \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) + \frac{28832688827}{125000}}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          6. *-commutativeN/A

                                            \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) \cdot y} + \frac{28832688827}{125000}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          7. lower-fma.f64N/A

                                            \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right), y, \frac{28832688827}{125000}\right)}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          8. +-commutativeN/A

                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{y \cdot \left(z + x \cdot y\right) + \frac{54929528941}{2000000}}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          9. *-commutativeN/A

                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(z + x \cdot y\right) \cdot y} + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          10. lower-fma.f64N/A

                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z + x \cdot y, y, \frac{54929528941}{2000000}\right)}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          11. +-commutativeN/A

                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{x \cdot y + z}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          12. lower-fma.f64N/A

                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, y, z\right)}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                          13. +-commutativeN/A

                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right) + i}} \]
                                        5. Applied rewrites5.0%

                                          \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}} \]
                                        6. Taylor expanded in y around inf

                                          \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                                        7. Step-by-step derivation
                                          1. Applied rewrites67.9%

                                            \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                                          2. Taylor expanded in y around inf

                                            \[\leadsto \left(x + \left(\frac{\frac{54929528941}{2000000}}{{y}^{2}} + \frac{z}{y}\right)\right) - \color{blue}{\frac{b \cdot x}{{y}^{2}}} \]
                                          3. Step-by-step derivation
                                            1. Applied rewrites70.0%

                                              \[\leadsto \left(\left(x + \frac{27464.7644705}{y \cdot y}\right) + \frac{z}{y}\right) - \color{blue}{b \cdot \frac{x}{y \cdot y}} \]
                                          4. Recombined 2 regimes into one program.
                                          5. Final simplification78.1%

                                            \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq 10^{+277}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{x}{y \cdot y} \cdot b\\ \end{array} \]
                                          6. Add Preprocessing

                                          Alternative 7: 80.2% accurate, 0.5× speedup?

                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{y} + x\\ \end{array} \end{array} \]
                                          (FPCore (x y z t a b c i)
                                           :precision binary64
                                           (if (<=
                                                (/
                                                 (+
                                                  (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
                                                  t)
                                                 (+ (* (+ (* (+ (* (+ a y) y) b) y) c) y) i))
                                                INFINITY)
                                             (/
                                              (fma (fma (fma (fma x y z) y 27464.7644705) y 230661.510616) y t)
                                              (fma (fma (fma y y b) y c) y i))
                                             (+ (/ z y) x)))
                                          double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                          	double tmp;
                                          	if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= ((double) INFINITY)) {
                                          		tmp = fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma(y, y, b), y, c), y, i);
                                          	} else {
                                          		tmp = (z / y) + x;
                                          	}
                                          	return tmp;
                                          }
                                          
                                          function code(x, y, z, t, a, b, c, i)
                                          	tmp = 0.0
                                          	if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(a + y) * y) + b) * y) + c) * y) + i)) <= Inf)
                                          		tmp = Float64(fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma(y, y, b), y, c), y, i));
                                          	else
                                          		tmp = Float64(Float64(z / y) + x);
                                          	end
                                          	return tmp
                                          end
                                          
                                          code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(a + y), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(N[(N[(x * y + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / N[(N[(N[(y * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision]]
                                          
                                          \begin{array}{l}
                                          
                                          \\
                                          \begin{array}{l}
                                          \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\
                                          \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}\\
                                          
                                          \mathbf{else}:\\
                                          \;\;\;\;\frac{z}{y} + x\\
                                          
                                          
                                          \end{array}
                                          \end{array}
                                          
                                          Derivation
                                          1. Split input into 2 regimes
                                          2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0

                                            1. Initial program 87.3%

                                              \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                            2. Add Preprocessing
                                            3. Taylor expanded in a around 0

                                              \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                            4. Step-by-step derivation
                                              1. lower-/.f64N/A

                                                \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                              2. +-commutativeN/A

                                                \[\leadsto \frac{\color{blue}{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) + t}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              3. *-commutativeN/A

                                                \[\leadsto \frac{\color{blue}{\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) \cdot y} + t}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              4. lower-fma.f64N/A

                                                \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right), y, t\right)}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              5. +-commutativeN/A

                                                \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) + \frac{28832688827}{125000}}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              6. *-commutativeN/A

                                                \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) \cdot y} + \frac{28832688827}{125000}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              7. lower-fma.f64N/A

                                                \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right), y, \frac{28832688827}{125000}\right)}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              8. +-commutativeN/A

                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{y \cdot \left(z + x \cdot y\right) + \frac{54929528941}{2000000}}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              9. *-commutativeN/A

                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(z + x \cdot y\right) \cdot y} + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              10. lower-fma.f64N/A

                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z + x \cdot y, y, \frac{54929528941}{2000000}\right)}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              11. +-commutativeN/A

                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{x \cdot y + z}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              12. lower-fma.f64N/A

                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, y, z\right)}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              13. +-commutativeN/A

                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right) + i}} \]
                                            5. Applied rewrites82.6%

                                              \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}} \]

                                            if +inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

                                            1. Initial program 0.0%

                                              \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                            2. Add Preprocessing
                                            3. Taylor expanded in a around 0

                                              \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                            4. Step-by-step derivation
                                              1. lower-/.f64N/A

                                                \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                              2. +-commutativeN/A

                                                \[\leadsto \frac{\color{blue}{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) + t}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              3. *-commutativeN/A

                                                \[\leadsto \frac{\color{blue}{\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) \cdot y} + t}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              4. lower-fma.f64N/A

                                                \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right), y, t\right)}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              5. +-commutativeN/A

                                                \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) + \frac{28832688827}{125000}}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              6. *-commutativeN/A

                                                \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) \cdot y} + \frac{28832688827}{125000}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              7. lower-fma.f64N/A

                                                \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right), y, \frac{28832688827}{125000}\right)}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              8. +-commutativeN/A

                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{y \cdot \left(z + x \cdot y\right) + \frac{54929528941}{2000000}}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              9. *-commutativeN/A

                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(z + x \cdot y\right) \cdot y} + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              10. lower-fma.f64N/A

                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z + x \cdot y, y, \frac{54929528941}{2000000}\right)}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              11. +-commutativeN/A

                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{x \cdot y + z}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              12. lower-fma.f64N/A

                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, y, z\right)}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                              13. +-commutativeN/A

                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right) + i}} \]
                                            5. Applied rewrites0.1%

                                              \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}} \]
                                            6. Taylor expanded in y around inf

                                              \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                                            7. Step-by-step derivation
                                              1. Applied rewrites70.3%

                                                \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                                            8. Recombined 2 regimes into one program.
                                            9. Final simplification78.0%

                                              \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{y} + x\\ \end{array} \]
                                            10. Add Preprocessing

                                            Alternative 8: 79.9% accurate, 0.6× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{y} + x\\ \end{array} \end{array} \]
                                            (FPCore (x y z t a b c i)
                                             :precision binary64
                                             (if (<=
                                                  (/
                                                   (+
                                                    (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
                                                    t)
                                                   (+ (* (+ (* (+ (* (+ a y) y) b) y) c) y) i))
                                                  INFINITY)
                                               (/
                                                (fma (fma (fma z y 27464.7644705) y 230661.510616) y t)
                                                (fma (fma (fma (+ a y) y b) y c) y i))
                                               (+ (/ z y) x)))
                                            double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                            	double tmp;
                                            	if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= ((double) INFINITY)) {
                                            		tmp = fma(fma(fma(z, y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma((a + y), y, b), y, c), y, i);
                                            	} else {
                                            		tmp = (z / y) + x;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            function code(x, y, z, t, a, b, c, i)
                                            	tmp = 0.0
                                            	if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(a + y) * y) + b) * y) + c) * y) + i)) <= Inf)
                                            		tmp = Float64(fma(fma(fma(z, y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma(Float64(a + y), y, b), y, c), y, i));
                                            	else
                                            		tmp = Float64(Float64(z / y) + x);
                                            	end
                                            	return tmp
                                            end
                                            
                                            code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(a + y), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(N[(z * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\
                                            \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;\frac{z}{y} + x\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 2 regimes
                                            2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0

                                              1. Initial program 87.3%

                                                \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                              2. Add Preprocessing
                                              3. Taylor expanded in x around 0

                                                \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot z\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
                                              4. Step-by-step derivation
                                                1. lower-/.f64N/A

                                                  \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot z\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
                                                2. +-commutativeN/A

                                                  \[\leadsto \frac{\color{blue}{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot z\right)\right) + t}}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
                                                3. *-commutativeN/A

                                                  \[\leadsto \frac{\color{blue}{\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot z\right)\right) \cdot y} + t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
                                                4. lower-fma.f64N/A

                                                  \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot z\right), y, t\right)}}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
                                                5. +-commutativeN/A

                                                  \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{y \cdot \left(\frac{54929528941}{2000000} + y \cdot z\right) + \frac{28832688827}{125000}}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
                                                6. *-commutativeN/A

                                                  \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\frac{54929528941}{2000000} + y \cdot z\right) \cdot y} + \frac{28832688827}{125000}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
                                                7. lower-fma.f64N/A

                                                  \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\frac{54929528941}{2000000} + y \cdot z, y, \frac{28832688827}{125000}\right)}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
                                                8. +-commutativeN/A

                                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{y \cdot z + \frac{54929528941}{2000000}}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
                                                9. *-commutativeN/A

                                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{z \cdot y} + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
                                                10. lower-fma.f64N/A

                                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, y, \frac{54929528941}{2000000}\right)}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
                                                11. +-commutativeN/A

                                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right) + i}} \]
                                                12. *-commutativeN/A

                                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{\left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right) \cdot y} + i} \]
                                                13. lower-fma.f64N/A

                                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{\mathsf{fma}\left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right), y, i\right)}} \]
                                              5. Applied rewrites80.0%

                                                \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}} \]

                                              if +inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

                                              1. Initial program 0.0%

                                                \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                              2. Add Preprocessing
                                              3. Taylor expanded in a around 0

                                                \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                              4. Step-by-step derivation
                                                1. lower-/.f64N/A

                                                  \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                                2. +-commutativeN/A

                                                  \[\leadsto \frac{\color{blue}{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) + t}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                3. *-commutativeN/A

                                                  \[\leadsto \frac{\color{blue}{\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) \cdot y} + t}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                4. lower-fma.f64N/A

                                                  \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right), y, t\right)}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                5. +-commutativeN/A

                                                  \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) + \frac{28832688827}{125000}}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                6. *-commutativeN/A

                                                  \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) \cdot y} + \frac{28832688827}{125000}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                7. lower-fma.f64N/A

                                                  \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right), y, \frac{28832688827}{125000}\right)}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                8. +-commutativeN/A

                                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{y \cdot \left(z + x \cdot y\right) + \frac{54929528941}{2000000}}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                9. *-commutativeN/A

                                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(z + x \cdot y\right) \cdot y} + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                10. lower-fma.f64N/A

                                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z + x \cdot y, y, \frac{54929528941}{2000000}\right)}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                11. +-commutativeN/A

                                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{x \cdot y + z}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                12. lower-fma.f64N/A

                                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, y, z\right)}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                13. +-commutativeN/A

                                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right) + i}} \]
                                              5. Applied rewrites0.1%

                                                \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}} \]
                                              6. Taylor expanded in y around inf

                                                \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                                              7. Step-by-step derivation
                                                1. Applied rewrites70.3%

                                                  \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                                              8. Recombined 2 regimes into one program.
                                              9. Final simplification76.4%

                                                \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{y} + x\\ \end{array} \]
                                              10. Add Preprocessing

                                              Alternative 9: 55.3% accurate, 0.8× speedup?

                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\ \;\;\;\;\frac{t}{i}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{y} + x\\ \end{array} \end{array} \]
                                              (FPCore (x y z t a b c i)
                                               :precision binary64
                                               (if (<=
                                                    (/
                                                     (+
                                                      (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
                                                      t)
                                                     (+ (* (+ (* (+ (* (+ a y) y) b) y) c) y) i))
                                                    INFINITY)
                                                 (/ t i)
                                                 (+ (/ z y) x)))
                                              double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                              	double tmp;
                                              	if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= ((double) INFINITY)) {
                                              		tmp = t / i;
                                              	} else {
                                              		tmp = (z / y) + x;
                                              	}
                                              	return tmp;
                                              }
                                              
                                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                              	double tmp;
                                              	if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= Double.POSITIVE_INFINITY) {
                                              		tmp = t / i;
                                              	} else {
                                              		tmp = (z / y) + x;
                                              	}
                                              	return tmp;
                                              }
                                              
                                              def code(x, y, z, t, a, b, c, i):
                                              	tmp = 0
                                              	if (((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= math.inf:
                                              		tmp = t / i
                                              	else:
                                              		tmp = (z / y) + x
                                              	return tmp
                                              
                                              function code(x, y, z, t, a, b, c, i)
                                              	tmp = 0.0
                                              	if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(a + y) * y) + b) * y) + c) * y) + i)) <= Inf)
                                              		tmp = Float64(t / i);
                                              	else
                                              		tmp = Float64(Float64(z / y) + x);
                                              	end
                                              	return tmp
                                              end
                                              
                                              function tmp_2 = code(x, y, z, t, a, b, c, i)
                                              	tmp = 0.0;
                                              	if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= Inf)
                                              		tmp = t / i;
                                              	else
                                              		tmp = (z / y) + x;
                                              	end
                                              	tmp_2 = tmp;
                                              end
                                              
                                              code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(a + y), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], Infinity], N[(t / i), $MachinePrecision], N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision]]
                                              
                                              \begin{array}{l}
                                              
                                              \\
                                              \begin{array}{l}
                                              \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\
                                              \;\;\;\;\frac{t}{i}\\
                                              
                                              \mathbf{else}:\\
                                              \;\;\;\;\frac{z}{y} + x\\
                                              
                                              
                                              \end{array}
                                              \end{array}
                                              
                                              Derivation
                                              1. Split input into 2 regimes
                                              2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0

                                                1. Initial program 87.3%

                                                  \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                2. Add Preprocessing
                                                3. Taylor expanded in y around 0

                                                  \[\leadsto \color{blue}{\frac{t}{i}} \]
                                                4. Step-by-step derivation
                                                  1. lower-/.f6449.5

                                                    \[\leadsto \color{blue}{\frac{t}{i}} \]
                                                5. Applied rewrites49.5%

                                                  \[\leadsto \color{blue}{\frac{t}{i}} \]

                                                if +inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

                                                1. Initial program 0.0%

                                                  \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                2. Add Preprocessing
                                                3. Taylor expanded in a around 0

                                                  \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                                4. Step-by-step derivation
                                                  1. lower-/.f64N/A

                                                    \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                                  2. +-commutativeN/A

                                                    \[\leadsto \frac{\color{blue}{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) + t}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                  3. *-commutativeN/A

                                                    \[\leadsto \frac{\color{blue}{\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) \cdot y} + t}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                  4. lower-fma.f64N/A

                                                    \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right), y, t\right)}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                  5. +-commutativeN/A

                                                    \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) + \frac{28832688827}{125000}}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                  6. *-commutativeN/A

                                                    \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) \cdot y} + \frac{28832688827}{125000}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                  7. lower-fma.f64N/A

                                                    \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right), y, \frac{28832688827}{125000}\right)}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                  8. +-commutativeN/A

                                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{y \cdot \left(z + x \cdot y\right) + \frac{54929528941}{2000000}}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                  9. *-commutativeN/A

                                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(z + x \cdot y\right) \cdot y} + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                  10. lower-fma.f64N/A

                                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z + x \cdot y, y, \frac{54929528941}{2000000}\right)}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                  11. +-commutativeN/A

                                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{x \cdot y + z}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                  12. lower-fma.f64N/A

                                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, y, z\right)}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                  13. +-commutativeN/A

                                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right) + i}} \]
                                                5. Applied rewrites0.1%

                                                  \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}} \]
                                                6. Taylor expanded in y around inf

                                                  \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                                                7. Step-by-step derivation
                                                  1. Applied rewrites70.3%

                                                    \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                                                8. Recombined 2 regimes into one program.
                                                9. Final simplification57.3%

                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\ \;\;\;\;\frac{t}{i}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{y} + x\\ \end{array} \]
                                                10. Add Preprocessing

                                                Alternative 10: 84.6% accurate, 0.8× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2.6 \cdot 10^{+104}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{x}{y \cdot y} \cdot b\\ \mathbf{elif}\;y \leq -5.8 \cdot 10^{+55}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(-1, \frac{\frac{z}{x \cdot x} - \frac{a}{x}}{y}, \frac{1}{x}\right)}\\ \mathbf{elif}\;y \leq 1.62 \cdot 10^{+63}:\\ \;\;\;\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{\frac{-27464.7644705}{y} - z}{y}\\ \end{array} \end{array} \]
                                                (FPCore (x y z t a b c i)
                                                 :precision binary64
                                                 (if (<= y -2.6e+104)
                                                   (- (+ (/ z y) (+ (/ 27464.7644705 (* y y)) x)) (* (/ x (* y y)) b))
                                                   (if (<= y -5.8e+55)
                                                     (/ 1.0 (fma -1.0 (/ (- (/ z (* x x)) (/ a x)) y) (/ 1.0 x)))
                                                     (if (<= y 1.62e+63)
                                                       (/
                                                        (+
                                                         (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
                                                         t)
                                                        (+ (* (+ (* (+ (* (+ a y) y) b) y) c) y) i))
                                                       (- x (/ (- (/ -27464.7644705 y) z) y))))))
                                                double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                                	double tmp;
                                                	if (y <= -2.6e+104) {
                                                		tmp = ((z / y) + ((27464.7644705 / (y * y)) + x)) - ((x / (y * y)) * b);
                                                	} else if (y <= -5.8e+55) {
                                                		tmp = 1.0 / fma(-1.0, (((z / (x * x)) - (a / x)) / y), (1.0 / x));
                                                	} else if (y <= 1.62e+63) {
                                                		tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i);
                                                	} else {
                                                		tmp = x - (((-27464.7644705 / y) - z) / y);
                                                	}
                                                	return tmp;
                                                }
                                                
                                                function code(x, y, z, t, a, b, c, i)
                                                	tmp = 0.0
                                                	if (y <= -2.6e+104)
                                                		tmp = Float64(Float64(Float64(z / y) + Float64(Float64(27464.7644705 / Float64(y * y)) + x)) - Float64(Float64(x / Float64(y * y)) * b));
                                                	elseif (y <= -5.8e+55)
                                                		tmp = Float64(1.0 / fma(-1.0, Float64(Float64(Float64(z / Float64(x * x)) - Float64(a / x)) / y), Float64(1.0 / x)));
                                                	elseif (y <= 1.62e+63)
                                                		tmp = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(a + y) * y) + b) * y) + c) * y) + i));
                                                	else
                                                		tmp = Float64(x - Float64(Float64(Float64(-27464.7644705 / y) - z) / y));
                                                	end
                                                	return tmp
                                                end
                                                
                                                code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -2.6e+104], N[(N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / N[(y * y), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision] - N[(N[(x / N[(y * y), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -5.8e+55], N[(1.0 / N[(-1.0 * N[(N[(N[(z / N[(x * x), $MachinePrecision]), $MachinePrecision] - N[(a / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] + N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.62e+63], N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(a + y), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(-27464.7644705 / y), $MachinePrecision] - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                \mathbf{if}\;y \leq -2.6 \cdot 10^{+104}:\\
                                                \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{x}{y \cdot y} \cdot b\\
                                                
                                                \mathbf{elif}\;y \leq -5.8 \cdot 10^{+55}:\\
                                                \;\;\;\;\frac{1}{\mathsf{fma}\left(-1, \frac{\frac{z}{x \cdot x} - \frac{a}{x}}{y}, \frac{1}{x}\right)}\\
                                                
                                                \mathbf{elif}\;y \leq 1.62 \cdot 10^{+63}:\\
                                                \;\;\;\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;x - \frac{\frac{-27464.7644705}{y} - z}{y}\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 4 regimes
                                                2. if y < -2.6e104

                                                  1. Initial program 0.5%

                                                    \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                  2. Add Preprocessing
                                                  3. Taylor expanded in a around 0

                                                    \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                                  4. Step-by-step derivation
                                                    1. lower-/.f64N/A

                                                      \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                                    2. +-commutativeN/A

                                                      \[\leadsto \frac{\color{blue}{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) + t}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                    3. *-commutativeN/A

                                                      \[\leadsto \frac{\color{blue}{\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) \cdot y} + t}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                    4. lower-fma.f64N/A

                                                      \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right), y, t\right)}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                    5. +-commutativeN/A

                                                      \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) + \frac{28832688827}{125000}}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                    6. *-commutativeN/A

                                                      \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) \cdot y} + \frac{28832688827}{125000}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                    7. lower-fma.f64N/A

                                                      \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right), y, \frac{28832688827}{125000}\right)}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                    8. +-commutativeN/A

                                                      \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{y \cdot \left(z + x \cdot y\right) + \frac{54929528941}{2000000}}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                    9. *-commutativeN/A

                                                      \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(z + x \cdot y\right) \cdot y} + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                    10. lower-fma.f64N/A

                                                      \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z + x \cdot y, y, \frac{54929528941}{2000000}\right)}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                    11. +-commutativeN/A

                                                      \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{x \cdot y + z}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                    12. lower-fma.f64N/A

                                                      \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, y, z\right)}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                    13. +-commutativeN/A

                                                      \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right) + i}} \]
                                                  5. Applied rewrites0.5%

                                                    \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}} \]
                                                  6. Taylor expanded in y around inf

                                                    \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                                                  7. Step-by-step derivation
                                                    1. Applied rewrites81.2%

                                                      \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                                                    2. Taylor expanded in y around inf

                                                      \[\leadsto \left(x + \left(\frac{\frac{54929528941}{2000000}}{{y}^{2}} + \frac{z}{y}\right)\right) - \color{blue}{\frac{b \cdot x}{{y}^{2}}} \]
                                                    3. Step-by-step derivation
                                                      1. Applied rewrites83.5%

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

                                                      if -2.6e104 < y < -5.7999999999999997e55

                                                      1. Initial program 7.4%

                                                        \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                      2. Add Preprocessing
                                                      3. Step-by-step derivation
                                                        1. lift-/.f64N/A

                                                          \[\leadsto \color{blue}{\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} \]
                                                        2. clear-numN/A

                                                          \[\leadsto \color{blue}{\frac{1}{\frac{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}}} \]
                                                        3. lower-/.f64N/A

                                                          \[\leadsto \color{blue}{\frac{1}{\frac{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}}} \]
                                                        4. lower-/.f647.5

                                                          \[\leadsto \frac{1}{\color{blue}{\frac{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}}} \]
                                                      4. Applied rewrites7.5%

                                                        \[\leadsto \color{blue}{\frac{1}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}}} \]
                                                      5. Taylor expanded in y around -inf

                                                        \[\leadsto \frac{1}{\color{blue}{-1 \cdot \frac{-1 \cdot \frac{a}{x} - -1 \cdot \frac{z}{{x}^{2}}}{y} + \frac{1}{x}}} \]
                                                      6. Step-by-step derivation
                                                        1. lower-fma.f64N/A

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

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

                                                          \[\leadsto \frac{1}{\mathsf{fma}\left(-1, \frac{\color{blue}{-1 \cdot \frac{a}{x} - -1 \cdot \frac{z}{{x}^{2}}}}{y}, \frac{1}{x}\right)} \]
                                                        4. mul-1-negN/A

                                                          \[\leadsto \frac{1}{\mathsf{fma}\left(-1, \frac{\color{blue}{\left(\mathsf{neg}\left(\frac{a}{x}\right)\right)} - -1 \cdot \frac{z}{{x}^{2}}}{y}, \frac{1}{x}\right)} \]
                                                        5. lower-neg.f64N/A

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

                                                          \[\leadsto \frac{1}{\mathsf{fma}\left(-1, \frac{\left(-\color{blue}{\frac{a}{x}}\right) - -1 \cdot \frac{z}{{x}^{2}}}{y}, \frac{1}{x}\right)} \]
                                                        7. mul-1-negN/A

                                                          \[\leadsto \frac{1}{\mathsf{fma}\left(-1, \frac{\left(-\frac{a}{x}\right) - \color{blue}{\left(\mathsf{neg}\left(\frac{z}{{x}^{2}}\right)\right)}}{y}, \frac{1}{x}\right)} \]
                                                        8. lower-neg.f64N/A

                                                          \[\leadsto \frac{1}{\mathsf{fma}\left(-1, \frac{\left(-\frac{a}{x}\right) - \color{blue}{\left(-\frac{z}{{x}^{2}}\right)}}{y}, \frac{1}{x}\right)} \]
                                                        9. lower-/.f64N/A

                                                          \[\leadsto \frac{1}{\mathsf{fma}\left(-1, \frac{\left(-\frac{a}{x}\right) - \left(-\color{blue}{\frac{z}{{x}^{2}}}\right)}{y}, \frac{1}{x}\right)} \]
                                                        10. unpow2N/A

                                                          \[\leadsto \frac{1}{\mathsf{fma}\left(-1, \frac{\left(-\frac{a}{x}\right) - \left(-\frac{z}{\color{blue}{x \cdot x}}\right)}{y}, \frac{1}{x}\right)} \]
                                                        11. lower-*.f64N/A

                                                          \[\leadsto \frac{1}{\mathsf{fma}\left(-1, \frac{\left(-\frac{a}{x}\right) - \left(-\frac{z}{\color{blue}{x \cdot x}}\right)}{y}, \frac{1}{x}\right)} \]
                                                        12. lower-/.f6464.1

                                                          \[\leadsto \frac{1}{\mathsf{fma}\left(-1, \frac{\left(-\frac{a}{x}\right) - \left(-\frac{z}{x \cdot x}\right)}{y}, \color{blue}{\frac{1}{x}}\right)} \]
                                                      7. Applied rewrites64.1%

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

                                                      if -5.7999999999999997e55 < y < 1.62e63

                                                      1. Initial program 92.0%

                                                        \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                      2. Add Preprocessing

                                                      if 1.62e63 < y

                                                      1. Initial program 0.7%

                                                        \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                      2. Add Preprocessing
                                                      3. Taylor expanded in y around -inf

                                                        \[\leadsto \color{blue}{x + -1 \cdot \frac{\left(-1 \cdot z + -1 \cdot \frac{\left(\frac{54929528941}{2000000} + \left(-1 \cdot \frac{a \cdot \left(\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)\right)}{y} + \left(-1 \cdot \frac{c \cdot x}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{y} + \frac{b \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)}{y}\right)\right)\right)\right) - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y}} \]
                                                      4. Applied rewrites53.1%

                                                        \[\leadsto \color{blue}{x - \frac{\left(\frac{\left(\mathsf{fma}\left(-a, \frac{27464.7644705 - \mathsf{fma}\left(1 \cdot \left(z - a \cdot x\right), a, b \cdot x\right)}{y}, \mathsf{fma}\left(-c, \frac{x}{y}, \mathsf{fma}\left(b, \frac{\mathsf{fma}\left(-1, z, a \cdot x\right)}{y}, \frac{230661.510616}{y}\right)\right)\right) + 27464.7644705\right) - \mathsf{fma}\left(1 \cdot \left(z - a \cdot x\right), a, b \cdot x\right)}{-y} - z\right) + a \cdot x}{y}} \]
                                                      5. Taylor expanded in x around 0

                                                        \[\leadsto x - \frac{-1 \cdot \frac{\left(\frac{54929528941}{2000000} + \left(-1 \cdot \frac{a \cdot \left(\frac{54929528941}{2000000} - a \cdot z\right)}{y} + \left(-1 \cdot \frac{b \cdot z}{y} + \frac{28832688827}{125000} \cdot \frac{1}{y}\right)\right)\right) - a \cdot z}{y} - z}{y} \]
                                                      6. Step-by-step derivation
                                                        1. Applied rewrites53.2%

                                                          \[\leadsto x - \frac{\left(-\frac{\left(27464.7644705 + \mathsf{fma}\left(-1, \frac{a \cdot \left(27464.7644705 - a \cdot z\right)}{y}, \mathsf{fma}\left(-1, \frac{b \cdot z}{y}, 230661.510616 \cdot \frac{1}{y}\right)\right)\right) - a \cdot z}{y}\right) - z}{y} \]
                                                        2. Taylor expanded in y around inf

                                                          \[\leadsto x - \frac{\frac{a \cdot z - \frac{54929528941}{2000000}}{y} - z}{y} \]
                                                        3. Step-by-step derivation
                                                          1. Applied rewrites62.4%

                                                            \[\leadsto x - \frac{\frac{\mathsf{fma}\left(a, z, -27464.7644705\right)}{y} - z}{y} \]
                                                          2. Taylor expanded in a around 0

                                                            \[\leadsto x - \frac{\frac{\frac{-54929528941}{2000000}}{y} - z}{y} \]
                                                          3. Step-by-step derivation
                                                            1. Applied rewrites69.6%

                                                              \[\leadsto x - \frac{\frac{-27464.7644705}{y} - z}{y} \]
                                                          4. Recombined 4 regimes into one program.
                                                          5. Final simplification84.3%

                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.6 \cdot 10^{+104}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{x}{y \cdot y} \cdot b\\ \mathbf{elif}\;y \leq -5.8 \cdot 10^{+55}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(-1, \frac{\frac{z}{x \cdot x} - \frac{a}{x}}{y}, \frac{1}{x}\right)}\\ \mathbf{elif}\;y \leq 1.62 \cdot 10^{+63}:\\ \;\;\;\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{\frac{-27464.7644705}{y} - z}{y}\\ \end{array} \]
                                                          6. Add Preprocessing

                                                          Alternative 11: 34.7% accurate, 0.8× speedup?

                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\ \;\;\;\;\frac{t}{i}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{y}\\ \end{array} \end{array} \]
                                                          (FPCore (x y z t a b c i)
                                                           :precision binary64
                                                           (if (<=
                                                                (/
                                                                 (+
                                                                  (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
                                                                  t)
                                                                 (+ (* (+ (* (+ (* (+ a y) y) b) y) c) y) i))
                                                                INFINITY)
                                                             (/ t i)
                                                             (/ z y)))
                                                          double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                                          	double tmp;
                                                          	if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= ((double) INFINITY)) {
                                                          		tmp = t / i;
                                                          	} else {
                                                          		tmp = z / y;
                                                          	}
                                                          	return tmp;
                                                          }
                                                          
                                                          public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                                          	double tmp;
                                                          	if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= Double.POSITIVE_INFINITY) {
                                                          		tmp = t / i;
                                                          	} else {
                                                          		tmp = z / y;
                                                          	}
                                                          	return tmp;
                                                          }
                                                          
                                                          def code(x, y, z, t, a, b, c, i):
                                                          	tmp = 0
                                                          	if (((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= math.inf:
                                                          		tmp = t / i
                                                          	else:
                                                          		tmp = z / y
                                                          	return tmp
                                                          
                                                          function code(x, y, z, t, a, b, c, i)
                                                          	tmp = 0.0
                                                          	if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(a + y) * y) + b) * y) + c) * y) + i)) <= Inf)
                                                          		tmp = Float64(t / i);
                                                          	else
                                                          		tmp = Float64(z / y);
                                                          	end
                                                          	return tmp
                                                          end
                                                          
                                                          function tmp_2 = code(x, y, z, t, a, b, c, i)
                                                          	tmp = 0.0;
                                                          	if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i)) <= Inf)
                                                          		tmp = t / i;
                                                          	else
                                                          		tmp = z / y;
                                                          	end
                                                          	tmp_2 = tmp;
                                                          end
                                                          
                                                          code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(a + y), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], Infinity], N[(t / i), $MachinePrecision], N[(z / y), $MachinePrecision]]
                                                          
                                                          \begin{array}{l}
                                                          
                                                          \\
                                                          \begin{array}{l}
                                                          \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\
                                                          \;\;\;\;\frac{t}{i}\\
                                                          
                                                          \mathbf{else}:\\
                                                          \;\;\;\;\frac{z}{y}\\
                                                          
                                                          
                                                          \end{array}
                                                          \end{array}
                                                          
                                                          Derivation
                                                          1. Split input into 2 regimes
                                                          2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0

                                                            1. Initial program 87.3%

                                                              \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                            2. Add Preprocessing
                                                            3. Taylor expanded in y around 0

                                                              \[\leadsto \color{blue}{\frac{t}{i}} \]
                                                            4. Step-by-step derivation
                                                              1. lower-/.f6449.5

                                                                \[\leadsto \color{blue}{\frac{t}{i}} \]
                                                            5. Applied rewrites49.5%

                                                              \[\leadsto \color{blue}{\frac{t}{i}} \]

                                                            if +inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

                                                            1. Initial program 0.0%

                                                              \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                            2. Add Preprocessing
                                                            3. Taylor expanded in a around 0

                                                              \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                                            4. Step-by-step derivation
                                                              1. lower-/.f64N/A

                                                                \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                                              2. +-commutativeN/A

                                                                \[\leadsto \frac{\color{blue}{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) + t}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                              3. *-commutativeN/A

                                                                \[\leadsto \frac{\color{blue}{\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) \cdot y} + t}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                              4. lower-fma.f64N/A

                                                                \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right), y, t\right)}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                              5. +-commutativeN/A

                                                                \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) + \frac{28832688827}{125000}}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                              6. *-commutativeN/A

                                                                \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) \cdot y} + \frac{28832688827}{125000}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                              7. lower-fma.f64N/A

                                                                \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right), y, \frac{28832688827}{125000}\right)}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                              8. +-commutativeN/A

                                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{y \cdot \left(z + x \cdot y\right) + \frac{54929528941}{2000000}}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                              9. *-commutativeN/A

                                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(z + x \cdot y\right) \cdot y} + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                              10. lower-fma.f64N/A

                                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z + x \cdot y, y, \frac{54929528941}{2000000}\right)}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                              11. +-commutativeN/A

                                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{x \cdot y + z}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                              12. lower-fma.f64N/A

                                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, y, z\right)}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                              13. +-commutativeN/A

                                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right) + i}} \]
                                                            5. Applied rewrites0.1%

                                                              \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}} \]
                                                            6. Taylor expanded in y around inf

                                                              \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                                                            7. Step-by-step derivation
                                                              1. Applied rewrites70.3%

                                                                \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                                                              2. Taylor expanded in z around inf

                                                                \[\leadsto \frac{z}{y} \]
                                                              3. Step-by-step derivation
                                                                1. Applied rewrites20.3%

                                                                  \[\leadsto \frac{z}{y} \]
                                                              4. Recombined 2 regimes into one program.
                                                              5. Final simplification38.5%

                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\ \;\;\;\;\frac{t}{i}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{y}\\ \end{array} \]
                                                              6. Add Preprocessing

                                                              Alternative 12: 76.3% accurate, 1.2× speedup?

                                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := x - \frac{\frac{-27464.7644705}{y} - z}{y}\\ \mathbf{if}\;y \leq -6.8 \cdot 10^{+34}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 6.7 \cdot 10^{+16}:\\ \;\;\;\;\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                              (FPCore (x y z t a b c i)
                                                               :precision binary64
                                                               (let* ((t_1 (- x (/ (- (/ -27464.7644705 y) z) y))))
                                                                 (if (<= y -6.8e+34)
                                                                   t_1
                                                                   (if (<= y 6.7e+16)
                                                                     (/ (fma 230661.510616 y t) (+ (* (+ (* (+ (* (+ a y) y) b) y) c) y) i))
                                                                     t_1))))
                                                              double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                                              	double t_1 = x - (((-27464.7644705 / y) - z) / y);
                                                              	double tmp;
                                                              	if (y <= -6.8e+34) {
                                                              		tmp = t_1;
                                                              	} else if (y <= 6.7e+16) {
                                                              		tmp = fma(230661.510616, y, t) / (((((((a + y) * y) + b) * y) + c) * y) + i);
                                                              	} else {
                                                              		tmp = t_1;
                                                              	}
                                                              	return tmp;
                                                              }
                                                              
                                                              function code(x, y, z, t, a, b, c, i)
                                                              	t_1 = Float64(x - Float64(Float64(Float64(-27464.7644705 / y) - z) / y))
                                                              	tmp = 0.0
                                                              	if (y <= -6.8e+34)
                                                              		tmp = t_1;
                                                              	elseif (y <= 6.7e+16)
                                                              		tmp = Float64(fma(230661.510616, y, t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(a + y) * y) + b) * y) + c) * y) + i));
                                                              	else
                                                              		tmp = t_1;
                                                              	end
                                                              	return tmp
                                                              end
                                                              
                                                              code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x - N[(N[(N[(-27464.7644705 / y), $MachinePrecision] - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.8e+34], t$95$1, If[LessEqual[y, 6.7e+16], N[(N[(230661.510616 * y + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(a + y), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                              
                                                              \begin{array}{l}
                                                              
                                                              \\
                                                              \begin{array}{l}
                                                              t_1 := x - \frac{\frac{-27464.7644705}{y} - z}{y}\\
                                                              \mathbf{if}\;y \leq -6.8 \cdot 10^{+34}:\\
                                                              \;\;\;\;t\_1\\
                                                              
                                                              \mathbf{elif}\;y \leq 6.7 \cdot 10^{+16}:\\
                                                              \;\;\;\;\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\
                                                              
                                                              \mathbf{else}:\\
                                                              \;\;\;\;t\_1\\
                                                              
                                                              
                                                              \end{array}
                                                              \end{array}
                                                              
                                                              Derivation
                                                              1. Split input into 2 regimes
                                                              2. if y < -6.7999999999999999e34 or 6.7e16 < y

                                                                1. Initial program 4.2%

                                                                  \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                                2. Add Preprocessing
                                                                3. Taylor expanded in y around -inf

                                                                  \[\leadsto \color{blue}{x + -1 \cdot \frac{\left(-1 \cdot z + -1 \cdot \frac{\left(\frac{54929528941}{2000000} + \left(-1 \cdot \frac{a \cdot \left(\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)\right)}{y} + \left(-1 \cdot \frac{c \cdot x}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{y} + \frac{b \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)}{y}\right)\right)\right)\right) - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y}} \]
                                                                4. Applied rewrites45.9%

                                                                  \[\leadsto \color{blue}{x - \frac{\left(\frac{\left(\mathsf{fma}\left(-a, \frac{27464.7644705 - \mathsf{fma}\left(1 \cdot \left(z - a \cdot x\right), a, b \cdot x\right)}{y}, \mathsf{fma}\left(-c, \frac{x}{y}, \mathsf{fma}\left(b, \frac{\mathsf{fma}\left(-1, z, a \cdot x\right)}{y}, \frac{230661.510616}{y}\right)\right)\right) + 27464.7644705\right) - \mathsf{fma}\left(1 \cdot \left(z - a \cdot x\right), a, b \cdot x\right)}{-y} - z\right) + a \cdot x}{y}} \]
                                                                5. Taylor expanded in x around 0

                                                                  \[\leadsto x - \frac{-1 \cdot \frac{\left(\frac{54929528941}{2000000} + \left(-1 \cdot \frac{a \cdot \left(\frac{54929528941}{2000000} - a \cdot z\right)}{y} + \left(-1 \cdot \frac{b \cdot z}{y} + \frac{28832688827}{125000} \cdot \frac{1}{y}\right)\right)\right) - a \cdot z}{y} - z}{y} \]
                                                                6. Step-by-step derivation
                                                                  1. Applied rewrites50.0%

                                                                    \[\leadsto x - \frac{\left(-\frac{\left(27464.7644705 + \mathsf{fma}\left(-1, \frac{a \cdot \left(27464.7644705 - a \cdot z\right)}{y}, \mathsf{fma}\left(-1, \frac{b \cdot z}{y}, 230661.510616 \cdot \frac{1}{y}\right)\right)\right) - a \cdot z}{y}\right) - z}{y} \]
                                                                  2. Taylor expanded in y around inf

                                                                    \[\leadsto x - \frac{\frac{a \cdot z - \frac{54929528941}{2000000}}{y} - z}{y} \]
                                                                  3. Step-by-step derivation
                                                                    1. Applied rewrites57.1%

                                                                      \[\leadsto x - \frac{\frac{\mathsf{fma}\left(a, z, -27464.7644705\right)}{y} - z}{y} \]
                                                                    2. Taylor expanded in a around 0

                                                                      \[\leadsto x - \frac{\frac{\frac{-54929528941}{2000000}}{y} - z}{y} \]
                                                                    3. Step-by-step derivation
                                                                      1. Applied rewrites61.3%

                                                                        \[\leadsto x - \frac{\frac{-27464.7644705}{y} - z}{y} \]

                                                                      if -6.7999999999999999e34 < y < 6.7e16

                                                                      1. Initial program 99.0%

                                                                        \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                                      2. Add Preprocessing
                                                                      3. Taylor expanded in y around 0

                                                                        \[\leadsto \frac{\color{blue}{t + \frac{28832688827}{125000} \cdot y}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                                      4. Step-by-step derivation
                                                                        1. +-commutativeN/A

                                                                          \[\leadsto \frac{\color{blue}{\frac{28832688827}{125000} \cdot y + t}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                                        2. lower-fma.f6485.1

                                                                          \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(230661.510616, y, t\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                                      5. Applied rewrites85.1%

                                                                        \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(230661.510616, y, t\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                                    4. Recombined 2 regimes into one program.
                                                                    5. Final simplification74.0%

                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -6.8 \cdot 10^{+34}:\\ \;\;\;\;x - \frac{\frac{-27464.7644705}{y} - z}{y}\\ \mathbf{elif}\;y \leq 6.7 \cdot 10^{+16}:\\ \;\;\;\;\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{\frac{-27464.7644705}{y} - z}{y}\\ \end{array} \]
                                                                    6. Add Preprocessing

                                                                    Alternative 13: 76.3% accurate, 1.4× speedup?

                                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := x - \frac{\frac{-27464.7644705}{y} - z}{y}\\ \mathbf{if}\;y \leq -6.8 \cdot 10^{+34}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 6.7 \cdot 10^{+16}:\\ \;\;\;\;\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                    (FPCore (x y z t a b c i)
                                                                     :precision binary64
                                                                     (let* ((t_1 (- x (/ (- (/ -27464.7644705 y) z) y))))
                                                                       (if (<= y -6.8e+34)
                                                                         t_1
                                                                         (if (<= y 6.7e+16)
                                                                           (/ (fma 230661.510616 y t) (fma (fma (fma (+ a y) y b) y c) y i))
                                                                           t_1))))
                                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                                                    	double t_1 = x - (((-27464.7644705 / y) - z) / y);
                                                                    	double tmp;
                                                                    	if (y <= -6.8e+34) {
                                                                    		tmp = t_1;
                                                                    	} else if (y <= 6.7e+16) {
                                                                    		tmp = fma(230661.510616, y, t) / fma(fma(fma((a + y), y, b), y, c), y, i);
                                                                    	} else {
                                                                    		tmp = t_1;
                                                                    	}
                                                                    	return tmp;
                                                                    }
                                                                    
                                                                    function code(x, y, z, t, a, b, c, i)
                                                                    	t_1 = Float64(x - Float64(Float64(Float64(-27464.7644705 / y) - z) / y))
                                                                    	tmp = 0.0
                                                                    	if (y <= -6.8e+34)
                                                                    		tmp = t_1;
                                                                    	elseif (y <= 6.7e+16)
                                                                    		tmp = Float64(fma(230661.510616, y, t) / fma(fma(fma(Float64(a + y), y, b), y, c), y, i));
                                                                    	else
                                                                    		tmp = t_1;
                                                                    	end
                                                                    	return tmp
                                                                    end
                                                                    
                                                                    code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x - N[(N[(N[(-27464.7644705 / y), $MachinePrecision] - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.8e+34], t$95$1, If[LessEqual[y, 6.7e+16], N[(N[(230661.510616 * y + t), $MachinePrecision] / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                                    
                                                                    \begin{array}{l}
                                                                    
                                                                    \\
                                                                    \begin{array}{l}
                                                                    t_1 := x - \frac{\frac{-27464.7644705}{y} - z}{y}\\
                                                                    \mathbf{if}\;y \leq -6.8 \cdot 10^{+34}:\\
                                                                    \;\;\;\;t\_1\\
                                                                    
                                                                    \mathbf{elif}\;y \leq 6.7 \cdot 10^{+16}:\\
                                                                    \;\;\;\;\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
                                                                    
                                                                    \mathbf{else}:\\
                                                                    \;\;\;\;t\_1\\
                                                                    
                                                                    
                                                                    \end{array}
                                                                    \end{array}
                                                                    
                                                                    Derivation
                                                                    1. Split input into 2 regimes
                                                                    2. if y < -6.7999999999999999e34 or 6.7e16 < y

                                                                      1. Initial program 4.2%

                                                                        \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                                      2. Add Preprocessing
                                                                      3. Taylor expanded in y around -inf

                                                                        \[\leadsto \color{blue}{x + -1 \cdot \frac{\left(-1 \cdot z + -1 \cdot \frac{\left(\frac{54929528941}{2000000} + \left(-1 \cdot \frac{a \cdot \left(\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)\right)}{y} + \left(-1 \cdot \frac{c \cdot x}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{y} + \frac{b \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)}{y}\right)\right)\right)\right) - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y}} \]
                                                                      4. Applied rewrites45.9%

                                                                        \[\leadsto \color{blue}{x - \frac{\left(\frac{\left(\mathsf{fma}\left(-a, \frac{27464.7644705 - \mathsf{fma}\left(1 \cdot \left(z - a \cdot x\right), a, b \cdot x\right)}{y}, \mathsf{fma}\left(-c, \frac{x}{y}, \mathsf{fma}\left(b, \frac{\mathsf{fma}\left(-1, z, a \cdot x\right)}{y}, \frac{230661.510616}{y}\right)\right)\right) + 27464.7644705\right) - \mathsf{fma}\left(1 \cdot \left(z - a \cdot x\right), a, b \cdot x\right)}{-y} - z\right) + a \cdot x}{y}} \]
                                                                      5. Taylor expanded in x around 0

                                                                        \[\leadsto x - \frac{-1 \cdot \frac{\left(\frac{54929528941}{2000000} + \left(-1 \cdot \frac{a \cdot \left(\frac{54929528941}{2000000} - a \cdot z\right)}{y} + \left(-1 \cdot \frac{b \cdot z}{y} + \frac{28832688827}{125000} \cdot \frac{1}{y}\right)\right)\right) - a \cdot z}{y} - z}{y} \]
                                                                      6. Step-by-step derivation
                                                                        1. Applied rewrites50.0%

                                                                          \[\leadsto x - \frac{\left(-\frac{\left(27464.7644705 + \mathsf{fma}\left(-1, \frac{a \cdot \left(27464.7644705 - a \cdot z\right)}{y}, \mathsf{fma}\left(-1, \frac{b \cdot z}{y}, 230661.510616 \cdot \frac{1}{y}\right)\right)\right) - a \cdot z}{y}\right) - z}{y} \]
                                                                        2. Taylor expanded in y around inf

                                                                          \[\leadsto x - \frac{\frac{a \cdot z - \frac{54929528941}{2000000}}{y} - z}{y} \]
                                                                        3. Step-by-step derivation
                                                                          1. Applied rewrites57.1%

                                                                            \[\leadsto x - \frac{\frac{\mathsf{fma}\left(a, z, -27464.7644705\right)}{y} - z}{y} \]
                                                                          2. Taylor expanded in a around 0

                                                                            \[\leadsto x - \frac{\frac{\frac{-54929528941}{2000000}}{y} - z}{y} \]
                                                                          3. Step-by-step derivation
                                                                            1. Applied rewrites61.3%

                                                                              \[\leadsto x - \frac{\frac{-27464.7644705}{y} - z}{y} \]

                                                                            if -6.7999999999999999e34 < y < 6.7e16

                                                                            1. Initial program 99.0%

                                                                              \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                                            2. Add Preprocessing
                                                                            3. Step-by-step derivation
                                                                              1. lift-/.f64N/A

                                                                                \[\leadsto \color{blue}{\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} \]
                                                                              2. clear-numN/A

                                                                                \[\leadsto \color{blue}{\frac{1}{\frac{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}}} \]
                                                                              3. lower-/.f64N/A

                                                                                \[\leadsto \color{blue}{\frac{1}{\frac{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}}} \]
                                                                              4. lower-/.f6498.6

                                                                                \[\leadsto \frac{1}{\color{blue}{\frac{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}}} \]
                                                                            4. Applied rewrites98.6%

                                                                              \[\leadsto \color{blue}{\frac{1}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}}} \]
                                                                            5. Taylor expanded in y around 0

                                                                              \[\leadsto \frac{1}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}{\mathsf{fma}\left(\color{blue}{\frac{28832688827}{125000}}, y, t\right)}} \]
                                                                            6. Step-by-step derivation
                                                                              1. Applied rewrites84.7%

                                                                                \[\leadsto \frac{1}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}{\mathsf{fma}\left(\color{blue}{230661.510616}, y, t\right)}} \]
                                                                              2. Step-by-step derivation
                                                                                1. lift-/.f64N/A

                                                                                  \[\leadsto \color{blue}{\frac{1}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}{\mathsf{fma}\left(\frac{28832688827}{125000}, y, t\right)}}} \]
                                                                                2. lift-/.f64N/A

                                                                                  \[\leadsto \frac{1}{\color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}{\mathsf{fma}\left(\frac{28832688827}{125000}, y, t\right)}}} \]
                                                                                3. clear-numN/A

                                                                                  \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\frac{28832688827}{125000}, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}} \]
                                                                                4. lower-/.f6485.1

                                                                                  \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}} \]
                                                                              3. Applied rewrites85.1%

                                                                                \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}} \]
                                                                            7. Recombined 2 regimes into one program.
                                                                            8. Add Preprocessing

                                                                            Alternative 14: 74.7% accurate, 1.5× speedup?

                                                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := x - \frac{\frac{-27464.7644705}{y} - z}{y}\\ \mathbf{if}\;y \leq -6.5 \cdot 10^{+34}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 6.7 \cdot 10^{+16}:\\ \;\;\;\;\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                            (FPCore (x y z t a b c i)
                                                                             :precision binary64
                                                                             (let* ((t_1 (- x (/ (- (/ -27464.7644705 y) z) y))))
                                                                               (if (<= y -6.5e+34)
                                                                                 t_1
                                                                                 (if (<= y 6.7e+16)
                                                                                   (/ (fma 230661.510616 y t) (fma (fma (fma y y b) y c) y i))
                                                                                   t_1))))
                                                                            double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                                                            	double t_1 = x - (((-27464.7644705 / y) - z) / y);
                                                                            	double tmp;
                                                                            	if (y <= -6.5e+34) {
                                                                            		tmp = t_1;
                                                                            	} else if (y <= 6.7e+16) {
                                                                            		tmp = fma(230661.510616, y, t) / fma(fma(fma(y, y, b), y, c), y, i);
                                                                            	} else {
                                                                            		tmp = t_1;
                                                                            	}
                                                                            	return tmp;
                                                                            }
                                                                            
                                                                            function code(x, y, z, t, a, b, c, i)
                                                                            	t_1 = Float64(x - Float64(Float64(Float64(-27464.7644705 / y) - z) / y))
                                                                            	tmp = 0.0
                                                                            	if (y <= -6.5e+34)
                                                                            		tmp = t_1;
                                                                            	elseif (y <= 6.7e+16)
                                                                            		tmp = Float64(fma(230661.510616, y, t) / fma(fma(fma(y, y, b), y, c), y, i));
                                                                            	else
                                                                            		tmp = t_1;
                                                                            	end
                                                                            	return tmp
                                                                            end
                                                                            
                                                                            code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x - N[(N[(N[(-27464.7644705 / y), $MachinePrecision] - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.5e+34], t$95$1, If[LessEqual[y, 6.7e+16], N[(N[(230661.510616 * y + t), $MachinePrecision] / N[(N[(N[(y * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                                            
                                                                            \begin{array}{l}
                                                                            
                                                                            \\
                                                                            \begin{array}{l}
                                                                            t_1 := x - \frac{\frac{-27464.7644705}{y} - z}{y}\\
                                                                            \mathbf{if}\;y \leq -6.5 \cdot 10^{+34}:\\
                                                                            \;\;\;\;t\_1\\
                                                                            
                                                                            \mathbf{elif}\;y \leq 6.7 \cdot 10^{+16}:\\
                                                                            \;\;\;\;\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}\\
                                                                            
                                                                            \mathbf{else}:\\
                                                                            \;\;\;\;t\_1\\
                                                                            
                                                                            
                                                                            \end{array}
                                                                            \end{array}
                                                                            
                                                                            Derivation
                                                                            1. Split input into 2 regimes
                                                                            2. if y < -6.50000000000000017e34 or 6.7e16 < y

                                                                              1. Initial program 4.2%

                                                                                \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                                              2. Add Preprocessing
                                                                              3. Taylor expanded in y around -inf

                                                                                \[\leadsto \color{blue}{x + -1 \cdot \frac{\left(-1 \cdot z + -1 \cdot \frac{\left(\frac{54929528941}{2000000} + \left(-1 \cdot \frac{a \cdot \left(\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)\right)}{y} + \left(-1 \cdot \frac{c \cdot x}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{y} + \frac{b \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)}{y}\right)\right)\right)\right) - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y}} \]
                                                                              4. Applied rewrites45.9%

                                                                                \[\leadsto \color{blue}{x - \frac{\left(\frac{\left(\mathsf{fma}\left(-a, \frac{27464.7644705 - \mathsf{fma}\left(1 \cdot \left(z - a \cdot x\right), a, b \cdot x\right)}{y}, \mathsf{fma}\left(-c, \frac{x}{y}, \mathsf{fma}\left(b, \frac{\mathsf{fma}\left(-1, z, a \cdot x\right)}{y}, \frac{230661.510616}{y}\right)\right)\right) + 27464.7644705\right) - \mathsf{fma}\left(1 \cdot \left(z - a \cdot x\right), a, b \cdot x\right)}{-y} - z\right) + a \cdot x}{y}} \]
                                                                              5. Taylor expanded in x around 0

                                                                                \[\leadsto x - \frac{-1 \cdot \frac{\left(\frac{54929528941}{2000000} + \left(-1 \cdot \frac{a \cdot \left(\frac{54929528941}{2000000} - a \cdot z\right)}{y} + \left(-1 \cdot \frac{b \cdot z}{y} + \frac{28832688827}{125000} \cdot \frac{1}{y}\right)\right)\right) - a \cdot z}{y} - z}{y} \]
                                                                              6. Step-by-step derivation
                                                                                1. Applied rewrites50.0%

                                                                                  \[\leadsto x - \frac{\left(-\frac{\left(27464.7644705 + \mathsf{fma}\left(-1, \frac{a \cdot \left(27464.7644705 - a \cdot z\right)}{y}, \mathsf{fma}\left(-1, \frac{b \cdot z}{y}, 230661.510616 \cdot \frac{1}{y}\right)\right)\right) - a \cdot z}{y}\right) - z}{y} \]
                                                                                2. Taylor expanded in y around inf

                                                                                  \[\leadsto x - \frac{\frac{a \cdot z - \frac{54929528941}{2000000}}{y} - z}{y} \]
                                                                                3. Step-by-step derivation
                                                                                  1. Applied rewrites57.1%

                                                                                    \[\leadsto x - \frac{\frac{\mathsf{fma}\left(a, z, -27464.7644705\right)}{y} - z}{y} \]
                                                                                  2. Taylor expanded in a around 0

                                                                                    \[\leadsto x - \frac{\frac{\frac{-54929528941}{2000000}}{y} - z}{y} \]
                                                                                  3. Step-by-step derivation
                                                                                    1. Applied rewrites61.3%

                                                                                      \[\leadsto x - \frac{\frac{-27464.7644705}{y} - z}{y} \]

                                                                                    if -6.50000000000000017e34 < y < 6.7e16

                                                                                    1. Initial program 99.0%

                                                                                      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                                                    2. Add Preprocessing
                                                                                    3. Taylor expanded in a around 0

                                                                                      \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                                                                    4. Step-by-step derivation
                                                                                      1. lower-/.f64N/A

                                                                                        \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                                                                      2. +-commutativeN/A

                                                                                        \[\leadsto \frac{\color{blue}{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) + t}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                      3. *-commutativeN/A

                                                                                        \[\leadsto \frac{\color{blue}{\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) \cdot y} + t}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                      4. lower-fma.f64N/A

                                                                                        \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right), y, t\right)}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                      5. +-commutativeN/A

                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) + \frac{28832688827}{125000}}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                      6. *-commutativeN/A

                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) \cdot y} + \frac{28832688827}{125000}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                      7. lower-fma.f64N/A

                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right), y, \frac{28832688827}{125000}\right)}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                      8. +-commutativeN/A

                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{y \cdot \left(z + x \cdot y\right) + \frac{54929528941}{2000000}}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                      9. *-commutativeN/A

                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(z + x \cdot y\right) \cdot y} + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                      10. lower-fma.f64N/A

                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z + x \cdot y, y, \frac{54929528941}{2000000}\right)}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                      11. +-commutativeN/A

                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{x \cdot y + z}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                      12. lower-fma.f64N/A

                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, y, z\right)}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                      13. +-commutativeN/A

                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right) + i}} \]
                                                                                    5. Applied rewrites93.4%

                                                                                      \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}} \]
                                                                                    6. Taylor expanded in y around 0

                                                                                      \[\leadsto \frac{\mathsf{fma}\left(\frac{28832688827}{125000}, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, y, b\right)}, y, c\right), y, i\right)} \]
                                                                                    7. Step-by-step derivation
                                                                                      1. Applied rewrites81.3%

                                                                                        \[\leadsto \frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, y, b\right)}, y, c\right), y, i\right)} \]
                                                                                    8. Recombined 2 regimes into one program.
                                                                                    9. Add Preprocessing

                                                                                    Alternative 15: 69.2% accurate, 1.6× speedup?

                                                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := x - \frac{\frac{-27464.7644705}{y} - z}{y}\\ \mathbf{if}\;y \leq -6.8 \cdot 10^{+34}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 6.7 \cdot 10^{+16}:\\ \;\;\;\;\frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                    (FPCore (x y z t a b c i)
                                                                                     :precision binary64
                                                                                     (let* ((t_1 (- x (/ (- (/ -27464.7644705 y) z) y))))
                                                                                       (if (<= y -6.8e+34)
                                                                                         t_1
                                                                                         (if (<= y 6.7e+16) (/ t (fma (fma (fma (+ a y) y b) y c) y i)) t_1))))
                                                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                                                                    	double t_1 = x - (((-27464.7644705 / y) - z) / y);
                                                                                    	double tmp;
                                                                                    	if (y <= -6.8e+34) {
                                                                                    		tmp = t_1;
                                                                                    	} else if (y <= 6.7e+16) {
                                                                                    		tmp = t / fma(fma(fma((a + y), y, b), y, c), y, i);
                                                                                    	} else {
                                                                                    		tmp = t_1;
                                                                                    	}
                                                                                    	return tmp;
                                                                                    }
                                                                                    
                                                                                    function code(x, y, z, t, a, b, c, i)
                                                                                    	t_1 = Float64(x - Float64(Float64(Float64(-27464.7644705 / y) - z) / y))
                                                                                    	tmp = 0.0
                                                                                    	if (y <= -6.8e+34)
                                                                                    		tmp = t_1;
                                                                                    	elseif (y <= 6.7e+16)
                                                                                    		tmp = Float64(t / fma(fma(fma(Float64(a + y), y, b), y, c), y, i));
                                                                                    	else
                                                                                    		tmp = t_1;
                                                                                    	end
                                                                                    	return tmp
                                                                                    end
                                                                                    
                                                                                    code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x - N[(N[(N[(-27464.7644705 / y), $MachinePrecision] - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.8e+34], t$95$1, If[LessEqual[y, 6.7e+16], N[(t / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                                                    
                                                                                    \begin{array}{l}
                                                                                    
                                                                                    \\
                                                                                    \begin{array}{l}
                                                                                    t_1 := x - \frac{\frac{-27464.7644705}{y} - z}{y}\\
                                                                                    \mathbf{if}\;y \leq -6.8 \cdot 10^{+34}:\\
                                                                                    \;\;\;\;t\_1\\
                                                                                    
                                                                                    \mathbf{elif}\;y \leq 6.7 \cdot 10^{+16}:\\
                                                                                    \;\;\;\;\frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
                                                                                    
                                                                                    \mathbf{else}:\\
                                                                                    \;\;\;\;t\_1\\
                                                                                    
                                                                                    
                                                                                    \end{array}
                                                                                    \end{array}
                                                                                    
                                                                                    Derivation
                                                                                    1. Split input into 2 regimes
                                                                                    2. if y < -6.7999999999999999e34 or 6.7e16 < y

                                                                                      1. Initial program 4.2%

                                                                                        \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                                                      2. Add Preprocessing
                                                                                      3. Taylor expanded in y around -inf

                                                                                        \[\leadsto \color{blue}{x + -1 \cdot \frac{\left(-1 \cdot z + -1 \cdot \frac{\left(\frac{54929528941}{2000000} + \left(-1 \cdot \frac{a \cdot \left(\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)\right)}{y} + \left(-1 \cdot \frac{c \cdot x}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{y} + \frac{b \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)}{y}\right)\right)\right)\right) - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y}} \]
                                                                                      4. Applied rewrites45.9%

                                                                                        \[\leadsto \color{blue}{x - \frac{\left(\frac{\left(\mathsf{fma}\left(-a, \frac{27464.7644705 - \mathsf{fma}\left(1 \cdot \left(z - a \cdot x\right), a, b \cdot x\right)}{y}, \mathsf{fma}\left(-c, \frac{x}{y}, \mathsf{fma}\left(b, \frac{\mathsf{fma}\left(-1, z, a \cdot x\right)}{y}, \frac{230661.510616}{y}\right)\right)\right) + 27464.7644705\right) - \mathsf{fma}\left(1 \cdot \left(z - a \cdot x\right), a, b \cdot x\right)}{-y} - z\right) + a \cdot x}{y}} \]
                                                                                      5. Taylor expanded in x around 0

                                                                                        \[\leadsto x - \frac{-1 \cdot \frac{\left(\frac{54929528941}{2000000} + \left(-1 \cdot \frac{a \cdot \left(\frac{54929528941}{2000000} - a \cdot z\right)}{y} + \left(-1 \cdot \frac{b \cdot z}{y} + \frac{28832688827}{125000} \cdot \frac{1}{y}\right)\right)\right) - a \cdot z}{y} - z}{y} \]
                                                                                      6. Step-by-step derivation
                                                                                        1. Applied rewrites50.0%

                                                                                          \[\leadsto x - \frac{\left(-\frac{\left(27464.7644705 + \mathsf{fma}\left(-1, \frac{a \cdot \left(27464.7644705 - a \cdot z\right)}{y}, \mathsf{fma}\left(-1, \frac{b \cdot z}{y}, 230661.510616 \cdot \frac{1}{y}\right)\right)\right) - a \cdot z}{y}\right) - z}{y} \]
                                                                                        2. Taylor expanded in y around inf

                                                                                          \[\leadsto x - \frac{\frac{a \cdot z - \frac{54929528941}{2000000}}{y} - z}{y} \]
                                                                                        3. Step-by-step derivation
                                                                                          1. Applied rewrites57.1%

                                                                                            \[\leadsto x - \frac{\frac{\mathsf{fma}\left(a, z, -27464.7644705\right)}{y} - z}{y} \]
                                                                                          2. Taylor expanded in a around 0

                                                                                            \[\leadsto x - \frac{\frac{\frac{-54929528941}{2000000}}{y} - z}{y} \]
                                                                                          3. Step-by-step derivation
                                                                                            1. Applied rewrites61.3%

                                                                                              \[\leadsto x - \frac{\frac{-27464.7644705}{y} - z}{y} \]

                                                                                            if -6.7999999999999999e34 < y < 6.7e16

                                                                                            1. Initial program 99.0%

                                                                                              \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                                                            2. Add Preprocessing
                                                                                            3. Taylor expanded in t around inf

                                                                                              \[\leadsto \color{blue}{\frac{t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
                                                                                            4. Step-by-step derivation
                                                                                              1. lower-/.f64N/A

                                                                                                \[\leadsto \color{blue}{\frac{t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
                                                                                              2. +-commutativeN/A

                                                                                                \[\leadsto \frac{t}{\color{blue}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right) + i}} \]
                                                                                              3. *-commutativeN/A

                                                                                                \[\leadsto \frac{t}{\color{blue}{\left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right) \cdot y} + i} \]
                                                                                              4. lower-fma.f64N/A

                                                                                                \[\leadsto \frac{t}{\color{blue}{\mathsf{fma}\left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right), y, i\right)}} \]
                                                                                              5. +-commutativeN/A

                                                                                                \[\leadsto \frac{t}{\mathsf{fma}\left(\color{blue}{y \cdot \left(b + y \cdot \left(a + y\right)\right) + c}, y, i\right)} \]
                                                                                              6. *-commutativeN/A

                                                                                                \[\leadsto \frac{t}{\mathsf{fma}\left(\color{blue}{\left(b + y \cdot \left(a + y\right)\right) \cdot y} + c, y, i\right)} \]
                                                                                              7. lower-fma.f64N/A

                                                                                                \[\leadsto \frac{t}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(b + y \cdot \left(a + y\right), y, c\right)}, y, i\right)} \]
                                                                                              8. +-commutativeN/A

                                                                                                \[\leadsto \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{y \cdot \left(a + y\right) + b}, y, c\right), y, i\right)} \]
                                                                                              9. *-commutativeN/A

                                                                                                \[\leadsto \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(a + y\right) \cdot y} + b, y, c\right), y, i\right)} \]
                                                                                              10. lower-fma.f64N/A

                                                                                                \[\leadsto \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(a + y, y, b\right)}, y, c\right), y, i\right)} \]
                                                                                              11. lower-+.f6475.3

                                                                                                \[\leadsto \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{a + y}, y, b\right), y, c\right), y, i\right)} \]
                                                                                            5. Applied rewrites75.3%

                                                                                              \[\leadsto \color{blue}{\frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}} \]
                                                                                          4. Recombined 2 regimes into one program.
                                                                                          5. Add Preprocessing

                                                                                          Alternative 16: 61.1% accurate, 1.7× speedup?

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

                                                                                            1. Initial program 8.0%

                                                                                              \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                                                            2. Add Preprocessing
                                                                                            3. Taylor expanded in y around -inf

                                                                                              \[\leadsto \color{blue}{x + -1 \cdot \frac{\left(-1 \cdot z + -1 \cdot \frac{\left(\frac{54929528941}{2000000} + \left(-1 \cdot \frac{a \cdot \left(\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)\right)}{y} + \left(-1 \cdot \frac{c \cdot x}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{y} + \frac{b \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)}{y}\right)\right)\right)\right) - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y}} \]
                                                                                            4. Applied rewrites44.2%

                                                                                              \[\leadsto \color{blue}{x - \frac{\left(\frac{\left(\mathsf{fma}\left(-a, \frac{27464.7644705 - \mathsf{fma}\left(1 \cdot \left(z - a \cdot x\right), a, b \cdot x\right)}{y}, \mathsf{fma}\left(-c, \frac{x}{y}, \mathsf{fma}\left(b, \frac{\mathsf{fma}\left(-1, z, a \cdot x\right)}{y}, \frac{230661.510616}{y}\right)\right)\right) + 27464.7644705\right) - \mathsf{fma}\left(1 \cdot \left(z - a \cdot x\right), a, b \cdot x\right)}{-y} - z\right) + a \cdot x}{y}} \]
                                                                                            5. Taylor expanded in x around 0

                                                                                              \[\leadsto x - \frac{-1 \cdot \frac{\left(\frac{54929528941}{2000000} + \left(-1 \cdot \frac{a \cdot \left(\frac{54929528941}{2000000} - a \cdot z\right)}{y} + \left(-1 \cdot \frac{b \cdot z}{y} + \frac{28832688827}{125000} \cdot \frac{1}{y}\right)\right)\right) - a \cdot z}{y} - z}{y} \]
                                                                                            6. Step-by-step derivation
                                                                                              1. Applied rewrites48.1%

                                                                                                \[\leadsto x - \frac{\left(-\frac{\left(27464.7644705 + \mathsf{fma}\left(-1, \frac{a \cdot \left(27464.7644705 - a \cdot z\right)}{y}, \mathsf{fma}\left(-1, \frac{b \cdot z}{y}, 230661.510616 \cdot \frac{1}{y}\right)\right)\right) - a \cdot z}{y}\right) - z}{y} \]
                                                                                              2. Taylor expanded in y around inf

                                                                                                \[\leadsto x - \frac{\frac{a \cdot z - \frac{54929528941}{2000000}}{y} - z}{y} \]
                                                                                              3. Step-by-step derivation
                                                                                                1. Applied rewrites55.0%

                                                                                                  \[\leadsto x - \frac{\frac{\mathsf{fma}\left(a, z, -27464.7644705\right)}{y} - z}{y} \]
                                                                                                2. Taylor expanded in a around 0

                                                                                                  \[\leadsto x - \frac{\frac{\frac{-54929528941}{2000000}}{y} - z}{y} \]
                                                                                                3. Step-by-step derivation
                                                                                                  1. Applied rewrites59.0%

                                                                                                    \[\leadsto x - \frac{\frac{-27464.7644705}{y} - z}{y} \]

                                                                                                  if -7900 < y < 2.3e14

                                                                                                  1. Initial program 99.0%

                                                                                                    \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                                                                  2. Add Preprocessing
                                                                                                  3. Taylor expanded in y around 0

                                                                                                    \[\leadsto \color{blue}{y \cdot \left(\frac{28832688827}{125000} \cdot \frac{1}{i} - \frac{c \cdot t}{{i}^{2}}\right) + \frac{t}{i}} \]
                                                                                                  4. Step-by-step derivation
                                                                                                    1. *-commutativeN/A

                                                                                                      \[\leadsto \color{blue}{\left(\frac{28832688827}{125000} \cdot \frac{1}{i} - \frac{c \cdot t}{{i}^{2}}\right) \cdot y} + \frac{t}{i} \]
                                                                                                    2. lower-fma.f64N/A

                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{28832688827}{125000} \cdot \frac{1}{i} - \frac{c \cdot t}{{i}^{2}}, y, \frac{t}{i}\right)} \]
                                                                                                    3. lower--.f64N/A

                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{28832688827}{125000} \cdot \frac{1}{i} - \frac{c \cdot t}{{i}^{2}}}, y, \frac{t}{i}\right) \]
                                                                                                    4. associate-*r/N/A

                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{\frac{28832688827}{125000} \cdot 1}{i}} - \frac{c \cdot t}{{i}^{2}}, y, \frac{t}{i}\right) \]
                                                                                                    5. metadata-evalN/A

                                                                                                      \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\frac{28832688827}{125000}}}{i} - \frac{c \cdot t}{{i}^{2}}, y, \frac{t}{i}\right) \]
                                                                                                    6. lower-/.f64N/A

                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{\frac{28832688827}{125000}}{i}} - \frac{c \cdot t}{{i}^{2}}, y, \frac{t}{i}\right) \]
                                                                                                    7. unpow2N/A

                                                                                                      \[\leadsto \mathsf{fma}\left(\frac{\frac{28832688827}{125000}}{i} - \frac{c \cdot t}{\color{blue}{i \cdot i}}, y, \frac{t}{i}\right) \]
                                                                                                    8. times-fracN/A

                                                                                                      \[\leadsto \mathsf{fma}\left(\frac{\frac{28832688827}{125000}}{i} - \color{blue}{\frac{c}{i} \cdot \frac{t}{i}}, y, \frac{t}{i}\right) \]
                                                                                                    9. lower-*.f64N/A

                                                                                                      \[\leadsto \mathsf{fma}\left(\frac{\frac{28832688827}{125000}}{i} - \color{blue}{\frac{c}{i} \cdot \frac{t}{i}}, y, \frac{t}{i}\right) \]
                                                                                                    10. lower-/.f64N/A

                                                                                                      \[\leadsto \mathsf{fma}\left(\frac{\frac{28832688827}{125000}}{i} - \color{blue}{\frac{c}{i}} \cdot \frac{t}{i}, y, \frac{t}{i}\right) \]
                                                                                                    11. lower-/.f64N/A

                                                                                                      \[\leadsto \mathsf{fma}\left(\frac{\frac{28832688827}{125000}}{i} - \frac{c}{i} \cdot \color{blue}{\frac{t}{i}}, y, \frac{t}{i}\right) \]
                                                                                                    12. lower-/.f6457.0

                                                                                                      \[\leadsto \mathsf{fma}\left(\frac{230661.510616}{i} - \frac{c}{i} \cdot \frac{t}{i}, y, \color{blue}{\frac{t}{i}}\right) \]
                                                                                                  5. Applied rewrites57.0%

                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{230661.510616}{i} - \frac{c}{i} \cdot \frac{t}{i}, y, \frac{t}{i}\right)} \]
                                                                                                  6. Taylor expanded in c around 0

                                                                                                    \[\leadsto \frac{28832688827}{125000} \cdot \frac{y}{i} + \color{blue}{\frac{t}{i}} \]
                                                                                                  7. Step-by-step derivation
                                                                                                    1. Applied rewrites63.5%

                                                                                                      \[\leadsto \mathsf{fma}\left(230661.510616, \color{blue}{\frac{y}{i}}, \frac{t}{i}\right) \]
                                                                                                  8. Recombined 2 regimes into one program.
                                                                                                  9. Add Preprocessing

                                                                                                  Alternative 17: 60.6% accurate, 1.7× speedup?

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

                                                                                                    1. Initial program 5.0%

                                                                                                      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                                                                    2. Add Preprocessing
                                                                                                    3. Taylor expanded in a around 0

                                                                                                      \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                                                                                    4. Step-by-step derivation
                                                                                                      1. lower-/.f64N/A

                                                                                                        \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                                                                                      2. +-commutativeN/A

                                                                                                        \[\leadsto \frac{\color{blue}{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) + t}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                      3. *-commutativeN/A

                                                                                                        \[\leadsto \frac{\color{blue}{\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) \cdot y} + t}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                      4. lower-fma.f64N/A

                                                                                                        \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right), y, t\right)}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                      5. +-commutativeN/A

                                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) + \frac{28832688827}{125000}}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                      6. *-commutativeN/A

                                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) \cdot y} + \frac{28832688827}{125000}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                      7. lower-fma.f64N/A

                                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right), y, \frac{28832688827}{125000}\right)}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                      8. +-commutativeN/A

                                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{y \cdot \left(z + x \cdot y\right) + \frac{54929528941}{2000000}}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                      9. *-commutativeN/A

                                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(z + x \cdot y\right) \cdot y} + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                      10. lower-fma.f64N/A

                                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z + x \cdot y, y, \frac{54929528941}{2000000}\right)}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                      11. +-commutativeN/A

                                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{x \cdot y + z}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                      12. lower-fma.f64N/A

                                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, y, z\right)}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                      13. +-commutativeN/A

                                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right) + i}} \]
                                                                                                    5. Applied rewrites4.3%

                                                                                                      \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}} \]
                                                                                                    6. Taylor expanded in y around inf

                                                                                                      \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                                                                                                    7. Step-by-step derivation
                                                                                                      1. Applied rewrites59.8%

                                                                                                        \[\leadsto x + \color{blue}{\frac{z}{y}} \]

                                                                                                      if -1.5e22 < y < 2.3e14

                                                                                                      1. Initial program 99.0%

                                                                                                        \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                                                                      2. Add Preprocessing
                                                                                                      3. Taylor expanded in y around 0

                                                                                                        \[\leadsto \color{blue}{y \cdot \left(\frac{28832688827}{125000} \cdot \frac{1}{i} - \frac{c \cdot t}{{i}^{2}}\right) + \frac{t}{i}} \]
                                                                                                      4. Step-by-step derivation
                                                                                                        1. *-commutativeN/A

                                                                                                          \[\leadsto \color{blue}{\left(\frac{28832688827}{125000} \cdot \frac{1}{i} - \frac{c \cdot t}{{i}^{2}}\right) \cdot y} + \frac{t}{i} \]
                                                                                                        2. lower-fma.f64N/A

                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{28832688827}{125000} \cdot \frac{1}{i} - \frac{c \cdot t}{{i}^{2}}, y, \frac{t}{i}\right)} \]
                                                                                                        3. lower--.f64N/A

                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{28832688827}{125000} \cdot \frac{1}{i} - \frac{c \cdot t}{{i}^{2}}}, y, \frac{t}{i}\right) \]
                                                                                                        4. associate-*r/N/A

                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{\frac{28832688827}{125000} \cdot 1}{i}} - \frac{c \cdot t}{{i}^{2}}, y, \frac{t}{i}\right) \]
                                                                                                        5. metadata-evalN/A

                                                                                                          \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\frac{28832688827}{125000}}}{i} - \frac{c \cdot t}{{i}^{2}}, y, \frac{t}{i}\right) \]
                                                                                                        6. lower-/.f64N/A

                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{\frac{28832688827}{125000}}{i}} - \frac{c \cdot t}{{i}^{2}}, y, \frac{t}{i}\right) \]
                                                                                                        7. unpow2N/A

                                                                                                          \[\leadsto \mathsf{fma}\left(\frac{\frac{28832688827}{125000}}{i} - \frac{c \cdot t}{\color{blue}{i \cdot i}}, y, \frac{t}{i}\right) \]
                                                                                                        8. times-fracN/A

                                                                                                          \[\leadsto \mathsf{fma}\left(\frac{\frac{28832688827}{125000}}{i} - \color{blue}{\frac{c}{i} \cdot \frac{t}{i}}, y, \frac{t}{i}\right) \]
                                                                                                        9. lower-*.f64N/A

                                                                                                          \[\leadsto \mathsf{fma}\left(\frac{\frac{28832688827}{125000}}{i} - \color{blue}{\frac{c}{i} \cdot \frac{t}{i}}, y, \frac{t}{i}\right) \]
                                                                                                        10. lower-/.f64N/A

                                                                                                          \[\leadsto \mathsf{fma}\left(\frac{\frac{28832688827}{125000}}{i} - \color{blue}{\frac{c}{i}} \cdot \frac{t}{i}, y, \frac{t}{i}\right) \]
                                                                                                        11. lower-/.f64N/A

                                                                                                          \[\leadsto \mathsf{fma}\left(\frac{\frac{28832688827}{125000}}{i} - \frac{c}{i} \cdot \color{blue}{\frac{t}{i}}, y, \frac{t}{i}\right) \]
                                                                                                        12. lower-/.f6455.4

                                                                                                          \[\leadsto \mathsf{fma}\left(\frac{230661.510616}{i} - \frac{c}{i} \cdot \frac{t}{i}, y, \color{blue}{\frac{t}{i}}\right) \]
                                                                                                      5. Applied rewrites55.4%

                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{230661.510616}{i} - \frac{c}{i} \cdot \frac{t}{i}, y, \frac{t}{i}\right)} \]
                                                                                                      6. Taylor expanded in c around 0

                                                                                                        \[\leadsto \frac{28832688827}{125000} \cdot \frac{y}{i} + \color{blue}{\frac{t}{i}} \]
                                                                                                      7. Step-by-step derivation
                                                                                                        1. Applied rewrites61.8%

                                                                                                          \[\leadsto \mathsf{fma}\left(230661.510616, \color{blue}{\frac{y}{i}}, \frac{t}{i}\right) \]
                                                                                                      8. Recombined 2 regimes into one program.
                                                                                                      9. Final simplification60.8%

                                                                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.5 \cdot 10^{+22}:\\ \;\;\;\;\frac{z}{y} + x\\ \mathbf{elif}\;y \leq 2.3 \cdot 10^{+14}:\\ \;\;\;\;\mathsf{fma}\left(230661.510616, \frac{y}{i}, \frac{t}{i}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{y} + x\\ \end{array} \]
                                                                                                      10. Add Preprocessing

                                                                                                      Alternative 18: 60.6% accurate, 2.2× speedup?

                                                                                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{z}{y} + x\\ \mathbf{if}\;y \leq -1.5 \cdot 10^{+22}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 2.3 \cdot 10^{+14}:\\ \;\;\;\;\frac{230661.510616 \cdot y + t}{i}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                      (FPCore (x y z t a b c i)
                                                                                                       :precision binary64
                                                                                                       (let* ((t_1 (+ (/ z y) x)))
                                                                                                         (if (<= y -1.5e+22)
                                                                                                           t_1
                                                                                                           (if (<= y 2.3e+14) (/ (+ (* 230661.510616 y) t) i) t_1))))
                                                                                                      double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                                                                                      	double t_1 = (z / y) + x;
                                                                                                      	double tmp;
                                                                                                      	if (y <= -1.5e+22) {
                                                                                                      		tmp = t_1;
                                                                                                      	} else if (y <= 2.3e+14) {
                                                                                                      		tmp = ((230661.510616 * y) + t) / i;
                                                                                                      	} else {
                                                                                                      		tmp = t_1;
                                                                                                      	}
                                                                                                      	return tmp;
                                                                                                      }
                                                                                                      
                                                                                                      real(8) function code(x, y, z, t, a, b, c, i)
                                                                                                          real(8), intent (in) :: x
                                                                                                          real(8), intent (in) :: y
                                                                                                          real(8), intent (in) :: z
                                                                                                          real(8), intent (in) :: t
                                                                                                          real(8), intent (in) :: a
                                                                                                          real(8), intent (in) :: b
                                                                                                          real(8), intent (in) :: c
                                                                                                          real(8), intent (in) :: i
                                                                                                          real(8) :: t_1
                                                                                                          real(8) :: tmp
                                                                                                          t_1 = (z / y) + x
                                                                                                          if (y <= (-1.5d+22)) then
                                                                                                              tmp = t_1
                                                                                                          else if (y <= 2.3d+14) then
                                                                                                              tmp = ((230661.510616d0 * y) + t) / i
                                                                                                          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 c, double i) {
                                                                                                      	double t_1 = (z / y) + x;
                                                                                                      	double tmp;
                                                                                                      	if (y <= -1.5e+22) {
                                                                                                      		tmp = t_1;
                                                                                                      	} else if (y <= 2.3e+14) {
                                                                                                      		tmp = ((230661.510616 * y) + t) / i;
                                                                                                      	} else {
                                                                                                      		tmp = t_1;
                                                                                                      	}
                                                                                                      	return tmp;
                                                                                                      }
                                                                                                      
                                                                                                      def code(x, y, z, t, a, b, c, i):
                                                                                                      	t_1 = (z / y) + x
                                                                                                      	tmp = 0
                                                                                                      	if y <= -1.5e+22:
                                                                                                      		tmp = t_1
                                                                                                      	elif y <= 2.3e+14:
                                                                                                      		tmp = ((230661.510616 * y) + t) / i
                                                                                                      	else:
                                                                                                      		tmp = t_1
                                                                                                      	return tmp
                                                                                                      
                                                                                                      function code(x, y, z, t, a, b, c, i)
                                                                                                      	t_1 = Float64(Float64(z / y) + x)
                                                                                                      	tmp = 0.0
                                                                                                      	if (y <= -1.5e+22)
                                                                                                      		tmp = t_1;
                                                                                                      	elseif (y <= 2.3e+14)
                                                                                                      		tmp = Float64(Float64(Float64(230661.510616 * y) + t) / i);
                                                                                                      	else
                                                                                                      		tmp = t_1;
                                                                                                      	end
                                                                                                      	return tmp
                                                                                                      end
                                                                                                      
                                                                                                      function tmp_2 = code(x, y, z, t, a, b, c, i)
                                                                                                      	t_1 = (z / y) + x;
                                                                                                      	tmp = 0.0;
                                                                                                      	if (y <= -1.5e+22)
                                                                                                      		tmp = t_1;
                                                                                                      	elseif (y <= 2.3e+14)
                                                                                                      		tmp = ((230661.510616 * y) + t) / i;
                                                                                                      	else
                                                                                                      		tmp = t_1;
                                                                                                      	end
                                                                                                      	tmp_2 = tmp;
                                                                                                      end
                                                                                                      
                                                                                                      code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[y, -1.5e+22], t$95$1, If[LessEqual[y, 2.3e+14], N[(N[(N[(230661.510616 * y), $MachinePrecision] + t), $MachinePrecision] / i), $MachinePrecision], t$95$1]]]
                                                                                                      
                                                                                                      \begin{array}{l}
                                                                                                      
                                                                                                      \\
                                                                                                      \begin{array}{l}
                                                                                                      t_1 := \frac{z}{y} + x\\
                                                                                                      \mathbf{if}\;y \leq -1.5 \cdot 10^{+22}:\\
                                                                                                      \;\;\;\;t\_1\\
                                                                                                      
                                                                                                      \mathbf{elif}\;y \leq 2.3 \cdot 10^{+14}:\\
                                                                                                      \;\;\;\;\frac{230661.510616 \cdot y + t}{i}\\
                                                                                                      
                                                                                                      \mathbf{else}:\\
                                                                                                      \;\;\;\;t\_1\\
                                                                                                      
                                                                                                      
                                                                                                      \end{array}
                                                                                                      \end{array}
                                                                                                      
                                                                                                      Derivation
                                                                                                      1. Split input into 2 regimes
                                                                                                      2. if y < -1.5e22 or 2.3e14 < y

                                                                                                        1. Initial program 5.0%

                                                                                                          \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                                                                        2. Add Preprocessing
                                                                                                        3. Taylor expanded in a around 0

                                                                                                          \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                                                                                        4. Step-by-step derivation
                                                                                                          1. lower-/.f64N/A

                                                                                                            \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                                                                                          2. +-commutativeN/A

                                                                                                            \[\leadsto \frac{\color{blue}{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) + t}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                          3. *-commutativeN/A

                                                                                                            \[\leadsto \frac{\color{blue}{\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) \cdot y} + t}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                          4. lower-fma.f64N/A

                                                                                                            \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right), y, t\right)}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                          5. +-commutativeN/A

                                                                                                            \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) + \frac{28832688827}{125000}}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                          6. *-commutativeN/A

                                                                                                            \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) \cdot y} + \frac{28832688827}{125000}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                          7. lower-fma.f64N/A

                                                                                                            \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right), y, \frac{28832688827}{125000}\right)}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                          8. +-commutativeN/A

                                                                                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{y \cdot \left(z + x \cdot y\right) + \frac{54929528941}{2000000}}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                          9. *-commutativeN/A

                                                                                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(z + x \cdot y\right) \cdot y} + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                          10. lower-fma.f64N/A

                                                                                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z + x \cdot y, y, \frac{54929528941}{2000000}\right)}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                          11. +-commutativeN/A

                                                                                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{x \cdot y + z}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                          12. lower-fma.f64N/A

                                                                                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, y, z\right)}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                          13. +-commutativeN/A

                                                                                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right) + i}} \]
                                                                                                        5. Applied rewrites4.3%

                                                                                                          \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}} \]
                                                                                                        6. Taylor expanded in y around inf

                                                                                                          \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                                                                                                        7. Step-by-step derivation
                                                                                                          1. Applied rewrites59.8%

                                                                                                            \[\leadsto x + \color{blue}{\frac{z}{y}} \]

                                                                                                          if -1.5e22 < y < 2.3e14

                                                                                                          1. Initial program 99.0%

                                                                                                            \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                                                                          2. Add Preprocessing
                                                                                                          3. Taylor expanded in y around 0

                                                                                                            \[\leadsto \color{blue}{y \cdot \left(\frac{28832688827}{125000} \cdot \frac{1}{i} - \frac{c \cdot t}{{i}^{2}}\right) + \frac{t}{i}} \]
                                                                                                          4. Step-by-step derivation
                                                                                                            1. *-commutativeN/A

                                                                                                              \[\leadsto \color{blue}{\left(\frac{28832688827}{125000} \cdot \frac{1}{i} - \frac{c \cdot t}{{i}^{2}}\right) \cdot y} + \frac{t}{i} \]
                                                                                                            2. lower-fma.f64N/A

                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{28832688827}{125000} \cdot \frac{1}{i} - \frac{c \cdot t}{{i}^{2}}, y, \frac{t}{i}\right)} \]
                                                                                                            3. lower--.f64N/A

                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{28832688827}{125000} \cdot \frac{1}{i} - \frac{c \cdot t}{{i}^{2}}}, y, \frac{t}{i}\right) \]
                                                                                                            4. associate-*r/N/A

                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{\frac{28832688827}{125000} \cdot 1}{i}} - \frac{c \cdot t}{{i}^{2}}, y, \frac{t}{i}\right) \]
                                                                                                            5. metadata-evalN/A

                                                                                                              \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\frac{28832688827}{125000}}}{i} - \frac{c \cdot t}{{i}^{2}}, y, \frac{t}{i}\right) \]
                                                                                                            6. lower-/.f64N/A

                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{\frac{28832688827}{125000}}{i}} - \frac{c \cdot t}{{i}^{2}}, y, \frac{t}{i}\right) \]
                                                                                                            7. unpow2N/A

                                                                                                              \[\leadsto \mathsf{fma}\left(\frac{\frac{28832688827}{125000}}{i} - \frac{c \cdot t}{\color{blue}{i \cdot i}}, y, \frac{t}{i}\right) \]
                                                                                                            8. times-fracN/A

                                                                                                              \[\leadsto \mathsf{fma}\left(\frac{\frac{28832688827}{125000}}{i} - \color{blue}{\frac{c}{i} \cdot \frac{t}{i}}, y, \frac{t}{i}\right) \]
                                                                                                            9. lower-*.f64N/A

                                                                                                              \[\leadsto \mathsf{fma}\left(\frac{\frac{28832688827}{125000}}{i} - \color{blue}{\frac{c}{i} \cdot \frac{t}{i}}, y, \frac{t}{i}\right) \]
                                                                                                            10. lower-/.f64N/A

                                                                                                              \[\leadsto \mathsf{fma}\left(\frac{\frac{28832688827}{125000}}{i} - \color{blue}{\frac{c}{i}} \cdot \frac{t}{i}, y, \frac{t}{i}\right) \]
                                                                                                            11. lower-/.f64N/A

                                                                                                              \[\leadsto \mathsf{fma}\left(\frac{\frac{28832688827}{125000}}{i} - \frac{c}{i} \cdot \color{blue}{\frac{t}{i}}, y, \frac{t}{i}\right) \]
                                                                                                            12. lower-/.f6455.4

                                                                                                              \[\leadsto \mathsf{fma}\left(\frac{230661.510616}{i} - \frac{c}{i} \cdot \frac{t}{i}, y, \color{blue}{\frac{t}{i}}\right) \]
                                                                                                          5. Applied rewrites55.4%

                                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{230661.510616}{i} - \frac{c}{i} \cdot \frac{t}{i}, y, \frac{t}{i}\right)} \]
                                                                                                          6. Taylor expanded in i around inf

                                                                                                            \[\leadsto \frac{t + \frac{28832688827}{125000} \cdot y}{\color{blue}{i}} \]
                                                                                                          7. Step-by-step derivation
                                                                                                            1. Applied rewrites61.8%

                                                                                                              \[\leadsto \frac{t + 230661.510616 \cdot y}{\color{blue}{i}} \]
                                                                                                          8. Recombined 2 regimes into one program.
                                                                                                          9. Final simplification60.8%

                                                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.5 \cdot 10^{+22}:\\ \;\;\;\;\frac{z}{y} + x\\ \mathbf{elif}\;y \leq 2.3 \cdot 10^{+14}:\\ \;\;\;\;\frac{230661.510616 \cdot y + t}{i}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{y} + x\\ \end{array} \]
                                                                                                          10. Add Preprocessing

                                                                                                          Alternative 19: 10.4% accurate, 5.9× speedup?

                                                                                                          \[\begin{array}{l} \\ \frac{z}{y} \end{array} \]
                                                                                                          (FPCore (x y z t a b c i) :precision binary64 (/ z y))
                                                                                                          double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                                                                                          	return z / y;
                                                                                                          }
                                                                                                          
                                                                                                          real(8) function code(x, y, z, t, a, b, c, i)
                                                                                                              real(8), intent (in) :: x
                                                                                                              real(8), intent (in) :: y
                                                                                                              real(8), intent (in) :: z
                                                                                                              real(8), intent (in) :: t
                                                                                                              real(8), intent (in) :: a
                                                                                                              real(8), intent (in) :: b
                                                                                                              real(8), intent (in) :: c
                                                                                                              real(8), intent (in) :: i
                                                                                                              code = z / y
                                                                                                          end function
                                                                                                          
                                                                                                          public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                                                                                          	return z / y;
                                                                                                          }
                                                                                                          
                                                                                                          def code(x, y, z, t, a, b, c, i):
                                                                                                          	return z / y
                                                                                                          
                                                                                                          function code(x, y, z, t, a, b, c, i)
                                                                                                          	return Float64(z / y)
                                                                                                          end
                                                                                                          
                                                                                                          function tmp = code(x, y, z, t, a, b, c, i)
                                                                                                          	tmp = z / y;
                                                                                                          end
                                                                                                          
                                                                                                          code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(z / y), $MachinePrecision]
                                                                                                          
                                                                                                          \begin{array}{l}
                                                                                                          
                                                                                                          \\
                                                                                                          \frac{z}{y}
                                                                                                          \end{array}
                                                                                                          
                                                                                                          Derivation
                                                                                                          1. Initial program 54.6%

                                                                                                            \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                                                                                          2. Add Preprocessing
                                                                                                          3. Taylor expanded in a around 0

                                                                                                            \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                                                                                          4. Step-by-step derivation
                                                                                                            1. lower-/.f64N/A

                                                                                                              \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                                                                                            2. +-commutativeN/A

                                                                                                              \[\leadsto \frac{\color{blue}{y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) + t}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                            3. *-commutativeN/A

                                                                                                              \[\leadsto \frac{\color{blue}{\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right) \cdot y} + t}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                            4. lower-fma.f64N/A

                                                                                                              \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right), y, t\right)}}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                            5. +-commutativeN/A

                                                                                                              \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) + \frac{28832688827}{125000}}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                            6. *-commutativeN/A

                                                                                                              \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right) \cdot y} + \frac{28832688827}{125000}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                            7. lower-fma.f64N/A

                                                                                                              \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right), y, \frac{28832688827}{125000}\right)}, y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                            8. +-commutativeN/A

                                                                                                              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{y \cdot \left(z + x \cdot y\right) + \frac{54929528941}{2000000}}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                            9. *-commutativeN/A

                                                                                                              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(z + x \cdot y\right) \cdot y} + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                            10. lower-fma.f64N/A

                                                                                                              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z + x \cdot y, y, \frac{54929528941}{2000000}\right)}, y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                            11. +-commutativeN/A

                                                                                                              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{x \cdot y + z}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                            12. lower-fma.f64N/A

                                                                                                              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, y, z\right)}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)} \]
                                                                                                            13. +-commutativeN/A

                                                                                                              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right) + i}} \]
                                                                                                          5. Applied rewrites51.6%

                                                                                                            \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}} \]
                                                                                                          6. Taylor expanded in y around inf

                                                                                                            \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                                                                                                          7. Step-by-step derivation
                                                                                                            1. Applied rewrites30.9%

                                                                                                              \[\leadsto x + \color{blue}{\frac{z}{y}} \]
                                                                                                            2. Taylor expanded in z around inf

                                                                                                              \[\leadsto \frac{z}{y} \]
                                                                                                            3. Step-by-step derivation
                                                                                                              1. Applied rewrites11.5%

                                                                                                                \[\leadsto \frac{z}{y} \]
                                                                                                              2. Add Preprocessing

                                                                                                              Reproduce

                                                                                                              ?
                                                                                                              herbie shell --seed 2024244 
                                                                                                              (FPCore (x y z t a b c i)
                                                                                                                :name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2"
                                                                                                                :precision binary64
                                                                                                                (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))