Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2

Percentage Accurate: 55.0% → 84.8%
Time: 18.0s
Alternatives: 20
Speedup: 2.6×

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 20 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 55.0% 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: 84.8% 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)\\ \mathbf{if}\;y \leq -4.2 \cdot 10^{+74}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{b}{y} \cdot \frac{x}{y}\\ \mathbf{elif}\;y \leq 4.7 \cdot 10^{+73}:\\ \;\;\;\;\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}:\\ \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\ \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 (<= y -4.2e+74)
     (- (+ (/ z y) (+ (/ 27464.7644705 (* y y)) x)) (* (/ b y) (/ x y)))
     (if (<= y 4.7e+73)
       (fma
        y
        (/ (fma (fma z y 27464.7644705) y 230661.510616) t_1)
        (fma x (/ (pow y 4.0) t_1) (/ t t_1)))
       (/ 1.0 (/ (+ (/ a y) 1.0) x))))))
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 (y <= -4.2e+74) {
		tmp = ((z / y) + ((27464.7644705 / (y * y)) + x)) - ((b / y) * (x / y));
	} else if (y <= 4.7e+73) {
		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 = 1.0 / (((a / y) + 1.0) / x);
	}
	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 (y <= -4.2e+74)
		tmp = Float64(Float64(Float64(z / y) + Float64(Float64(27464.7644705 / Float64(y * y)) + x)) - Float64(Float64(b / y) * Float64(x / y)));
	elseif (y <= 4.7e+73)
		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(1.0 / Float64(Float64(Float64(a / y) + 1.0) / x));
	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[y, -4.2e+74], N[(N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / N[(y * y), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision] - N[(N[(b / y), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.7e+73], 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[(1.0 / N[(N[(N[(a / y), $MachinePrecision] + 1.0), $MachinePrecision] / x), $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}\;y \leq -4.2 \cdot 10^{+74}:\\
\;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{b}{y} \cdot \frac{x}{y}\\

\mathbf{elif}\;y \leq 4.7 \cdot 10^{+73}:\\
\;\;\;\;\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}:\\
\;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -4.1999999999999998e74

    1. Initial program 0.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. *-commutativeN/A

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

        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
      14. +-commutativeN/A

        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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.3%

      \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites79.7%

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

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

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

          if -4.1999999999999998e74 < y < 4.7000000000000002e73

          1. Initial program 91.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 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 rewrites93.9%

            \[\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 4.7000000000000002e73 < y

          1. Initial program 2.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. 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-/.f642.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 rewrites2.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-/.f6465.6

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

            \[\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)}} \]
          8. Taylor expanded in x around inf

            \[\leadsto \frac{1}{\frac{1 + \frac{a}{y}}{\color{blue}{x}}} \]
          9. Step-by-step derivation
            1. Applied rewrites80.4%

              \[\leadsto \frac{1}{\frac{\frac{a}{y} + 1}{\color{blue}{x}}} \]
          10. Recombined 3 regimes into one program.
          11. Final simplification89.5%

            \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -4.2 \cdot 10^{+74}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{b}{y} \cdot \frac{x}{y}\\ \mathbf{elif}\;y \leq 4.7 \cdot 10^{+73}:\\ \;\;\;\;\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}:\\ \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\ \end{array} \]
          12. Add Preprocessing

          Alternative 2: 84.8% accurate, 0.5× 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}\;y \leq -4.2 \cdot 10^{+74}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{b}{y} \cdot \frac{x}{y}\\ \mathbf{elif}\;y \leq 4.7 \cdot 10^{+73}:\\ \;\;\;\;\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 \cdot y}{t\_1} \cdot \left(y \cdot y\right), \frac{t}{t\_1}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\ \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 (<= y -4.2e+74)
               (- (+ (/ z y) (+ (/ 27464.7644705 (* y y)) x)) (* (/ b y) (/ x y)))
               (if (<= y 4.7e+73)
                 (fma
                  y
                  (/ (fma (fma z y 27464.7644705) y 230661.510616) t_1)
                  (fma x (* (/ (* y y) t_1) (* y y)) (/ t t_1)))
                 (/ 1.0 (/ (+ (/ a y) 1.0) x))))))
          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 (y <= -4.2e+74) {
          		tmp = ((z / y) + ((27464.7644705 / (y * y)) + x)) - ((b / y) * (x / y));
          	} else if (y <= 4.7e+73) {
          		tmp = fma(y, (fma(fma(z, y, 27464.7644705), y, 230661.510616) / t_1), fma(x, (((y * y) / t_1) * (y * y)), (t / t_1)));
          	} else {
          		tmp = 1.0 / (((a / y) + 1.0) / x);
          	}
          	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 (y <= -4.2e+74)
          		tmp = Float64(Float64(Float64(z / y) + Float64(Float64(27464.7644705 / Float64(y * y)) + x)) - Float64(Float64(b / y) * Float64(x / y)));
          	elseif (y <= 4.7e+73)
          		tmp = fma(y, Float64(fma(fma(z, y, 27464.7644705), y, 230661.510616) / t_1), fma(x, Float64(Float64(Float64(y * y) / t_1) * Float64(y * y)), Float64(t / t_1)));
          	else
          		tmp = Float64(1.0 / Float64(Float64(Float64(a / y) + 1.0) / x));
          	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[y, -4.2e+74], N[(N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / N[(y * y), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision] - N[(N[(b / y), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.7e+73], N[(y * N[(N[(N[(z * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(x * N[(N[(N[(y * y), $MachinePrecision] / t$95$1), $MachinePrecision] * N[(y * y), $MachinePrecision]), $MachinePrecision] + N[(t / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(N[(a / y), $MachinePrecision] + 1.0), $MachinePrecision] / x), $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}\;y \leq -4.2 \cdot 10^{+74}:\\
          \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{b}{y} \cdot \frac{x}{y}\\
          
          \mathbf{elif}\;y \leq 4.7 \cdot 10^{+73}:\\
          \;\;\;\;\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 \cdot y}{t\_1} \cdot \left(y \cdot y\right), \frac{t}{t\_1}\right)\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if y < -4.1999999999999998e74

            1. Initial program 0.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. *-commutativeN/A

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

                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
              14. +-commutativeN/A

                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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.3%

              \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites79.7%

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

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

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

                  if -4.1999999999999998e74 < y < 4.7000000000000002e73

                  1. Initial program 91.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 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 rewrites93.9%

                    \[\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)} \]
                  6. Step-by-step derivation
                    1. Applied rewrites93.9%

                      \[\leadsto \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, \left(y \cdot y\right) \cdot \frac{y \cdot y}{\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 4.7000000000000002e73 < y

                    1. Initial program 2.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. 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-/.f642.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 rewrites2.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-/.f6465.6

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

                      \[\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)}} \]
                    8. Taylor expanded in x around inf

                      \[\leadsto \frac{1}{\frac{1 + \frac{a}{y}}{\color{blue}{x}}} \]
                    9. Step-by-step derivation
                      1. Applied rewrites80.4%

                        \[\leadsto \frac{1}{\frac{\frac{a}{y} + 1}{\color{blue}{x}}} \]
                    10. Recombined 3 regimes into one program.
                    11. Final simplification89.5%

                      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -4.2 \cdot 10^{+74}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{b}{y} \cdot \frac{x}{y}\\ \mathbf{elif}\;y \leq 4.7 \cdot 10^{+73}:\\ \;\;\;\;\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 \cdot y}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)} \cdot \left(y \cdot y\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}:\\ \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\ \end{array} \]
                    12. Add Preprocessing

                    Alternative 3: 84.5% accurate, 0.7× 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}\;y \leq -5.6 \cdot 10^{+64}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{b}{y} \cdot \frac{x}{y}\\ \mathbf{elif}\;y \leq 4.7 \cdot 10^{+73}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{t\_1}, \frac{t}{t\_1}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\ \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 (<= y -5.6e+64)
                         (- (+ (/ z y) (+ (/ 27464.7644705 (* y y)) x)) (* (/ b y) (/ x y)))
                         (if (<= y 4.7e+73)
                           (fma
                            y
                            (/ (fma (fma (fma y x z) y 27464.7644705) y 230661.510616) t_1)
                            (/ t t_1))
                           (/ 1.0 (/ (+ (/ a y) 1.0) x))))))
                    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 (y <= -5.6e+64) {
                    		tmp = ((z / y) + ((27464.7644705 / (y * y)) + x)) - ((b / y) * (x / y));
                    	} else if (y <= 4.7e+73) {
                    		tmp = fma(y, (fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616) / t_1), (t / t_1));
                    	} else {
                    		tmp = 1.0 / (((a / y) + 1.0) / x);
                    	}
                    	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 (y <= -5.6e+64)
                    		tmp = Float64(Float64(Float64(z / y) + Float64(Float64(27464.7644705 / Float64(y * y)) + x)) - Float64(Float64(b / y) * Float64(x / y)));
                    	elseif (y <= 4.7e+73)
                    		tmp = fma(y, Float64(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616) / t_1), Float64(t / t_1));
                    	else
                    		tmp = Float64(1.0 / Float64(Float64(Float64(a / y) + 1.0) / x));
                    	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[y, -5.6e+64], N[(N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / N[(y * y), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision] - N[(N[(b / y), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.7e+73], N[(y * N[(N[(N[(N[(y * x + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(t / t$95$1), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(N[(a / y), $MachinePrecision] + 1.0), $MachinePrecision] / x), $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}\;y \leq -5.6 \cdot 10^{+64}:\\
                    \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{b}{y} \cdot \frac{x}{y}\\
                    
                    \mathbf{elif}\;y \leq 4.7 \cdot 10^{+73}:\\
                    \;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{t\_1}, \frac{t}{t\_1}\right)\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if y < -5.60000000000000047e64

                      1. Initial program 0.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. 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. *-commutativeN/A

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

                          \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                        14. +-commutativeN/A

                          \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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.6%

                        \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites75.6%

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

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

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

                            if -5.60000000000000047e64 < y < 4.7000000000000002e73

                            1. Initial program 93.8%

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

                              \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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 4.7000000000000002e73 < y

                            1. Initial program 2.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. 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-/.f642.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 rewrites2.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-/.f6465.6

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

                              \[\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)}} \]
                            8. Taylor expanded in x around inf

                              \[\leadsto \frac{1}{\frac{1 + \frac{a}{y}}{\color{blue}{x}}} \]
                            9. Step-by-step derivation
                              1. Applied rewrites80.4%

                                \[\leadsto \frac{1}{\frac{\frac{a}{y} + 1}{\color{blue}{x}}} \]
                            10. Recombined 3 regimes into one program.
                            11. Final simplification88.4%

                              \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -5.6 \cdot 10^{+64}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{b}{y} \cdot \frac{x}{y}\\ \mathbf{elif}\;y \leq 4.7 \cdot 10^{+73}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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}:\\ \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\ \end{array} \]
                            12. Add Preprocessing

                            Alternative 4: 83.9% accurate, 0.8× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2.45 \cdot 10^{+64}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{b}{y} \cdot \frac{x}{y}\\ \mathbf{elif}\;y \leq 1.32 \cdot 10^{+73}:\\ \;\;\;\;\frac{\frac{y}{\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}} + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\ \end{array} \end{array} \]
                            (FPCore (x y z t a b c i)
                             :precision binary64
                             (if (<= y -2.45e+64)
                               (- (+ (/ z y) (+ (/ 27464.7644705 (* y y)) x)) (* (/ b y) (/ x y)))
                               (if (<= y 1.32e+73)
                                 (/
                                  (+
                                   (/ y (/ 1.0 (fma (fma (fma y x z) y 27464.7644705) y 230661.510616)))
                                   t)
                                  (+ (* (+ (* (+ (* (+ a y) y) b) y) c) y) i))
                                 (/ 1.0 (/ (+ (/ a y) 1.0) x)))))
                            double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                            	double tmp;
                            	if (y <= -2.45e+64) {
                            		tmp = ((z / y) + ((27464.7644705 / (y * y)) + x)) - ((b / y) * (x / y));
                            	} else if (y <= 1.32e+73) {
                            		tmp = ((y / (1.0 / fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616))) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i);
                            	} else {
                            		tmp = 1.0 / (((a / y) + 1.0) / x);
                            	}
                            	return tmp;
                            }
                            
                            function code(x, y, z, t, a, b, c, i)
                            	tmp = 0.0
                            	if (y <= -2.45e+64)
                            		tmp = Float64(Float64(Float64(z / y) + Float64(Float64(27464.7644705 / Float64(y * y)) + x)) - Float64(Float64(b / y) * Float64(x / y)));
                            	elseif (y <= 1.32e+73)
                            		tmp = Float64(Float64(Float64(y / Float64(1.0 / fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616))) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(a + y) * y) + b) * y) + c) * y) + i));
                            	else
                            		tmp = Float64(1.0 / Float64(Float64(Float64(a / y) + 1.0) / x));
                            	end
                            	return tmp
                            end
                            
                            code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -2.45e+64], N[(N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / N[(y * y), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision] - N[(N[(b / y), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.32e+73], N[(N[(N[(y / N[(1.0 / N[(N[(N[(y * x + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision]), $MachinePrecision]), $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[(1.0 / N[(N[(N[(a / y), $MachinePrecision] + 1.0), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            \mathbf{if}\;y \leq -2.45 \cdot 10^{+64}:\\
                            \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{b}{y} \cdot \frac{x}{y}\\
                            
                            \mathbf{elif}\;y \leq 1.32 \cdot 10^{+73}:\\
                            \;\;\;\;\frac{\frac{y}{\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}} + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 3 regimes
                            2. if y < -2.4500000000000001e64

                              1. Initial program 0.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. 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. *-commutativeN/A

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

                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                14. +-commutativeN/A

                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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.6%

                                \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites75.6%

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

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

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

                                    if -2.4500000000000001e64 < y < 1.32e73

                                    1. Initial program 93.8%

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

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

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

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

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

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

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

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

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

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

                                    if 1.32e73 < y

                                    1. Initial program 2.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. 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-/.f642.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 rewrites2.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-/.f6465.6

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

                                      \[\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)}} \]
                                    8. Taylor expanded in x around inf

                                      \[\leadsto \frac{1}{\frac{1 + \frac{a}{y}}{\color{blue}{x}}} \]
                                    9. Step-by-step derivation
                                      1. Applied rewrites80.4%

                                        \[\leadsto \frac{1}{\frac{\frac{a}{y} + 1}{\color{blue}{x}}} \]
                                    10. Recombined 3 regimes into one program.
                                    11. Final simplification88.3%

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

                                    Alternative 5: 35.4% 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 91.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 0

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

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

                                        \[\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. *-commutativeN/A

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

                                          \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                        14. +-commutativeN/A

                                          \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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(y, x, 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 rewrites74.2%

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

                                            \[\leadsto \frac{z}{y} \]
                                        4. Recombined 2 regimes into one program.
                                        5. Final simplification35.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 6: 83.9% accurate, 0.9× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2.45 \cdot 10^{+64}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{b}{y} \cdot \frac{x}{y}\\ \mathbf{elif}\;y \leq 1.32 \cdot 10^{+73}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right) \cdot y, y, 230661.510616 \cdot y\right) + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a b c i)
                                         :precision binary64
                                         (if (<= y -2.45e+64)
                                           (- (+ (/ z y) (+ (/ 27464.7644705 (* y y)) x)) (* (/ b y) (/ x y)))
                                           (if (<= y 1.32e+73)
                                             (/
                                              (+ (fma (* (fma (fma y x z) y 27464.7644705) y) y (* 230661.510616 y)) t)
                                              (+ (* (+ (* (+ (* (+ a y) y) b) y) c) y) i))
                                             (/ 1.0 (/ (+ (/ a y) 1.0) x)))))
                                        double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                        	double tmp;
                                        	if (y <= -2.45e+64) {
                                        		tmp = ((z / y) + ((27464.7644705 / (y * y)) + x)) - ((b / y) * (x / y));
                                        	} else if (y <= 1.32e+73) {
                                        		tmp = (fma((fma(fma(y, x, z), y, 27464.7644705) * y), y, (230661.510616 * y)) + t) / (((((((a + y) * y) + b) * y) + c) * y) + i);
                                        	} else {
                                        		tmp = 1.0 / (((a / y) + 1.0) / x);
                                        	}
                                        	return tmp;
                                        }
                                        
                                        function code(x, y, z, t, a, b, c, i)
                                        	tmp = 0.0
                                        	if (y <= -2.45e+64)
                                        		tmp = Float64(Float64(Float64(z / y) + Float64(Float64(27464.7644705 / Float64(y * y)) + x)) - Float64(Float64(b / y) * Float64(x / y)));
                                        	elseif (y <= 1.32e+73)
                                        		tmp = Float64(Float64(fma(Float64(fma(fma(y, x, z), y, 27464.7644705) * y), y, Float64(230661.510616 * y)) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(a + y) * y) + b) * y) + c) * y) + i));
                                        	else
                                        		tmp = Float64(1.0 / Float64(Float64(Float64(a / y) + 1.0) / x));
                                        	end
                                        	return tmp
                                        end
                                        
                                        code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -2.45e+64], N[(N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / N[(y * y), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision] - N[(N[(b / y), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.32e+73], N[(N[(N[(N[(N[(N[(y * x + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] * y + N[(230661.510616 * y), $MachinePrecision]), $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[(1.0 / N[(N[(N[(a / y), $MachinePrecision] + 1.0), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        \mathbf{if}\;y \leq -2.45 \cdot 10^{+64}:\\
                                        \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{b}{y} \cdot \frac{x}{y}\\
                                        
                                        \mathbf{elif}\;y \leq 1.32 \cdot 10^{+73}:\\
                                        \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right) \cdot y, y, 230661.510616 \cdot y\right) + t}{\left(\left(\left(a + y\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 3 regimes
                                        2. if y < -2.4500000000000001e64

                                          1. Initial program 0.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. 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. *-commutativeN/A

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

                                              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                            14. +-commutativeN/A

                                              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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.6%

                                            \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites75.6%

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

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

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

                                                if -2.4500000000000001e64 < y < 1.32e73

                                                1. Initial program 93.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                if 1.32e73 < y

                                                1. Initial program 2.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. 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-/.f642.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 rewrites2.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-/.f6465.6

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

                                                  \[\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)}} \]
                                                8. Taylor expanded in x around inf

                                                  \[\leadsto \frac{1}{\frac{1 + \frac{a}{y}}{\color{blue}{x}}} \]
                                                9. Step-by-step derivation
                                                  1. Applied rewrites80.4%

                                                    \[\leadsto \frac{1}{\frac{\frac{a}{y} + 1}{\color{blue}{x}}} \]
                                                10. Recombined 3 regimes into one program.
                                                11. Final simplification88.3%

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

                                                Alternative 7: 83.8% accurate, 0.9× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2.45 \cdot 10^{+64}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{b}{y} \cdot \frac{x}{y}\\ \mathbf{elif}\;y \leq 1.32 \cdot 10^{+73}:\\ \;\;\;\;\frac{-1}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)} \cdot \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)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\ \end{array} \end{array} \]
                                                (FPCore (x y z t a b c i)
                                                 :precision binary64
                                                 (if (<= y -2.45e+64)
                                                   (- (+ (/ z y) (+ (/ 27464.7644705 (* y y)) x)) (* (/ b y) (/ x y)))
                                                   (if (<= y 1.32e+73)
                                                     (*
                                                      (/ -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)))
                                                     (/ 1.0 (/ (+ (/ a y) 1.0) x)))))
                                                double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                                	double tmp;
                                                	if (y <= -2.45e+64) {
                                                		tmp = ((z / y) + ((27464.7644705 / (y * y)) + x)) - ((b / y) * (x / y));
                                                	} else if (y <= 1.32e+73) {
                                                		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 = 1.0 / (((a / y) + 1.0) / x);
                                                	}
                                                	return tmp;
                                                }
                                                
                                                function code(x, y, z, t, a, b, c, i)
                                                	tmp = 0.0
                                                	if (y <= -2.45e+64)
                                                		tmp = Float64(Float64(Float64(z / y) + Float64(Float64(27464.7644705 / Float64(y * y)) + x)) - Float64(Float64(b / y) * Float64(x / y)));
                                                	elseif (y <= 1.32e+73)
                                                		tmp = Float64(Float64(-1.0 / fma(fma(fma(Float64(a + y), y, b), y, c), y, i)) * Float64(-fma(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616), y, t)));
                                                	else
                                                		tmp = Float64(1.0 / Float64(Float64(Float64(a / y) + 1.0) / x));
                                                	end
                                                	return tmp
                                                end
                                                
                                                code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -2.45e+64], N[(N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / N[(y * y), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision] - N[(N[(b / y), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.32e+73], 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[(1.0 / N[(N[(N[(a / y), $MachinePrecision] + 1.0), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                \mathbf{if}\;y \leq -2.45 \cdot 10^{+64}:\\
                                                \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{b}{y} \cdot \frac{x}{y}\\
                                                
                                                \mathbf{elif}\;y \leq 1.32 \cdot 10^{+73}:\\
                                                \;\;\;\;\frac{-1}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)} \cdot \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)\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 3 regimes
                                                2. if y < -2.4500000000000001e64

                                                  1. Initial program 0.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. 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. *-commutativeN/A

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

                                                      \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                    14. +-commutativeN/A

                                                      \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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.6%

                                                    \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites75.6%

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

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

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

                                                        if -2.4500000000000001e64 < y < 1.32e73

                                                        1. Initial program 93.8%

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

                                                          \[\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 1.32e73 < y

                                                        1. Initial program 2.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. 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-/.f642.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 rewrites2.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-/.f6465.6

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

                                                          \[\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)}} \]
                                                        8. Taylor expanded in x around inf

                                                          \[\leadsto \frac{1}{\frac{1 + \frac{a}{y}}{\color{blue}{x}}} \]
                                                        9. Step-by-step derivation
                                                          1. Applied rewrites80.4%

                                                            \[\leadsto \frac{1}{\frac{\frac{a}{y} + 1}{\color{blue}{x}}} \]
                                                        10. Recombined 3 regimes into one program.
                                                        11. Final simplification88.2%

                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.45 \cdot 10^{+64}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{b}{y} \cdot \frac{x}{y}\\ \mathbf{elif}\;y \leq 1.32 \cdot 10^{+73}:\\ \;\;\;\;\frac{-1}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)} \cdot \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)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\ \end{array} \]
                                                        12. Add Preprocessing

                                                        Alternative 8: 80.3% accurate, 1.0× speedup?

                                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -9.5 \cdot 10^{+58}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{b}{y} \cdot \frac{x}{y}\\ \mathbf{elif}\;y \leq 1.2 \cdot 10^{-52}:\\ \;\;\;\;\frac{\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)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{elif}\;y \leq 1.32 \cdot 10^{+73}:\\ \;\;\;\;\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(y \cdot y, a + y, c\right), y, i\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\ \end{array} \end{array} \]
                                                        (FPCore (x y z t a b c i)
                                                         :precision binary64
                                                         (if (<= y -9.5e+58)
                                                           (- (+ (/ z y) (+ (/ 27464.7644705 (* y y)) x)) (* (/ b y) (/ x y)))
                                                           (if (<= y 1.2e-52)
                                                             (/
                                                              (fma (fma (fma (fma y x z) y 27464.7644705) y 230661.510616) y t)
                                                              (fma (fma (fma y y b) y c) y i))
                                                             (if (<= y 1.32e+73)
                                                               (/
                                                                (fma (fma (fma (fma x y z) y 27464.7644705) y 230661.510616) y t)
                                                                (fma (fma (* y y) (+ a y) c) y i))
                                                               (/ 1.0 (/ (+ (/ a y) 1.0) x))))))
                                                        double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                                        	double tmp;
                                                        	if (y <= -9.5e+58) {
                                                        		tmp = ((z / y) + ((27464.7644705 / (y * y)) + x)) - ((b / y) * (x / y));
                                                        	} else if (y <= 1.2e-52) {
                                                        		tmp = fma(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma(y, y, b), y, c), y, i);
                                                        	} else if (y <= 1.32e+73) {
                                                        		tmp = fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma((y * y), (a + y), c), y, i);
                                                        	} else {
                                                        		tmp = 1.0 / (((a / y) + 1.0) / x);
                                                        	}
                                                        	return tmp;
                                                        }
                                                        
                                                        function code(x, y, z, t, a, b, c, i)
                                                        	tmp = 0.0
                                                        	if (y <= -9.5e+58)
                                                        		tmp = Float64(Float64(Float64(z / y) + Float64(Float64(27464.7644705 / Float64(y * y)) + x)) - Float64(Float64(b / y) * Float64(x / y)));
                                                        	elseif (y <= 1.2e-52)
                                                        		tmp = Float64(fma(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma(y, y, b), y, c), y, i));
                                                        	elseif (y <= 1.32e+73)
                                                        		tmp = Float64(fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(Float64(y * y), Float64(a + y), c), y, i));
                                                        	else
                                                        		tmp = Float64(1.0 / Float64(Float64(Float64(a / y) + 1.0) / x));
                                                        	end
                                                        	return tmp
                                                        end
                                                        
                                                        code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -9.5e+58], N[(N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / N[(y * y), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision] - N[(N[(b / y), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.2e-52], N[(N[(N[(N[(N[(y * x + 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], If[LessEqual[y, 1.32e+73], 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), $MachinePrecision] * N[(a + y), $MachinePrecision] + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(N[(a / y), $MachinePrecision] + 1.0), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]]
                                                        
                                                        \begin{array}{l}
                                                        
                                                        \\
                                                        \begin{array}{l}
                                                        \mathbf{if}\;y \leq -9.5 \cdot 10^{+58}:\\
                                                        \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{b}{y} \cdot \frac{x}{y}\\
                                                        
                                                        \mathbf{elif}\;y \leq 1.2 \cdot 10^{-52}:\\
                                                        \;\;\;\;\frac{\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)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}\\
                                                        
                                                        \mathbf{elif}\;y \leq 1.32 \cdot 10^{+73}:\\
                                                        \;\;\;\;\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(y \cdot y, a + y, c\right), y, i\right)}\\
                                                        
                                                        \mathbf{else}:\\
                                                        \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\
                                                        
                                                        
                                                        \end{array}
                                                        \end{array}
                                                        
                                                        Derivation
                                                        1. Split input into 4 regimes
                                                        2. if y < -9.5000000000000002e58

                                                          1. Initial program 2.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. *-commutativeN/A

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

                                                              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                            14. +-commutativeN/A

                                                              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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.8%

                                                            \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites74.5%

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

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

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

                                                                if -9.5000000000000002e58 < y < 1.2000000000000001e-52

                                                                1. Initial program 96.8%

                                                                  \[\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. *-commutativeN/A

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

                                                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                  14. +-commutativeN/A

                                                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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 rewrites94.6%

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

                                                                if 1.2000000000000001e-52 < y < 1.32e73

                                                                1. Initial program 82.8%

                                                                  \[\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. *-commutativeN/A

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

                                                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                  14. +-commutativeN/A

                                                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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 rewrites60.3%

                                                                  \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites3.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 rewrites4.0%

                                                                      \[\leadsto \frac{z}{y} \]
                                                                    2. Taylor expanded in b 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}^{2} \cdot \left(a + y\right)\right)}} \]
                                                                    3. 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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\right)\right) + i}} \]
                                                                    4. Applied rewrites79.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(y \cdot y, a + y, c\right), y, i\right)}} \]

                                                                    if 1.32e73 < y

                                                                    1. Initial program 2.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. 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-/.f642.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 rewrites2.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-/.f6465.6

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

                                                                      \[\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)}} \]
                                                                    8. Taylor expanded in x around inf

                                                                      \[\leadsto \frac{1}{\frac{1 + \frac{a}{y}}{\color{blue}{x}}} \]
                                                                    9. Step-by-step derivation
                                                                      1. Applied rewrites80.4%

                                                                        \[\leadsto \frac{1}{\frac{\frac{a}{y} + 1}{\color{blue}{x}}} \]
                                                                    10. Recombined 4 regimes into one program.
                                                                    11. Final simplification86.8%

                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -9.5 \cdot 10^{+58}:\\ \;\;\;\;\left(\frac{z}{y} + \left(\frac{27464.7644705}{y \cdot y} + x\right)\right) - \frac{b}{y} \cdot \frac{x}{y}\\ \mathbf{elif}\;y \leq 1.2 \cdot 10^{-52}:\\ \;\;\;\;\frac{\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)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{elif}\;y \leq 1.32 \cdot 10^{+73}:\\ \;\;\;\;\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(y \cdot y, a + y, c\right), y, i\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\ \end{array} \]
                                                                    12. Add Preprocessing

                                                                    Alternative 9: 80.1% accurate, 1.0× speedup?

                                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1 \cdot 10^{+59}:\\ \;\;\;\;\frac{z}{y} + x\\ \mathbf{elif}\;y \leq 1.2 \cdot 10^{-52}:\\ \;\;\;\;\frac{\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)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{elif}\;y \leq 1.32 \cdot 10^{+73}:\\ \;\;\;\;\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(y \cdot y, a + y, c\right), y, i\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\ \end{array} \end{array} \]
                                                                    (FPCore (x y z t a b c i)
                                                                     :precision binary64
                                                                     (if (<= y -1e+59)
                                                                       (+ (/ z y) x)
                                                                       (if (<= y 1.2e-52)
                                                                         (/
                                                                          (fma (fma (fma (fma y x z) y 27464.7644705) y 230661.510616) y t)
                                                                          (fma (fma (fma y y b) y c) y i))
                                                                         (if (<= y 1.32e+73)
                                                                           (/
                                                                            (fma (fma (fma (fma x y z) y 27464.7644705) y 230661.510616) y t)
                                                                            (fma (fma (* y y) (+ a y) c) y i))
                                                                           (/ 1.0 (/ (+ (/ a y) 1.0) x))))))
                                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                                                    	double tmp;
                                                                    	if (y <= -1e+59) {
                                                                    		tmp = (z / y) + x;
                                                                    	} else if (y <= 1.2e-52) {
                                                                    		tmp = fma(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma(y, y, b), y, c), y, i);
                                                                    	} else if (y <= 1.32e+73) {
                                                                    		tmp = fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma((y * y), (a + y), c), y, i);
                                                                    	} else {
                                                                    		tmp = 1.0 / (((a / y) + 1.0) / x);
                                                                    	}
                                                                    	return tmp;
                                                                    }
                                                                    
                                                                    function code(x, y, z, t, a, b, c, i)
                                                                    	tmp = 0.0
                                                                    	if (y <= -1e+59)
                                                                    		tmp = Float64(Float64(z / y) + x);
                                                                    	elseif (y <= 1.2e-52)
                                                                    		tmp = Float64(fma(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma(y, y, b), y, c), y, i));
                                                                    	elseif (y <= 1.32e+73)
                                                                    		tmp = Float64(fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(Float64(y * y), Float64(a + y), c), y, i));
                                                                    	else
                                                                    		tmp = Float64(1.0 / Float64(Float64(Float64(a / y) + 1.0) / x));
                                                                    	end
                                                                    	return tmp
                                                                    end
                                                                    
                                                                    code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1e+59], N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[y, 1.2e-52], N[(N[(N[(N[(N[(y * x + 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], If[LessEqual[y, 1.32e+73], 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), $MachinePrecision] * N[(a + y), $MachinePrecision] + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(N[(a / y), $MachinePrecision] + 1.0), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]]
                                                                    
                                                                    \begin{array}{l}
                                                                    
                                                                    \\
                                                                    \begin{array}{l}
                                                                    \mathbf{if}\;y \leq -1 \cdot 10^{+59}:\\
                                                                    \;\;\;\;\frac{z}{y} + x\\
                                                                    
                                                                    \mathbf{elif}\;y \leq 1.2 \cdot 10^{-52}:\\
                                                                    \;\;\;\;\frac{\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)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}\\
                                                                    
                                                                    \mathbf{elif}\;y \leq 1.32 \cdot 10^{+73}:\\
                                                                    \;\;\;\;\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(y \cdot y, a + y, c\right), y, i\right)}\\
                                                                    
                                                                    \mathbf{else}:\\
                                                                    \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\
                                                                    
                                                                    
                                                                    \end{array}
                                                                    \end{array}
                                                                    
                                                                    Derivation
                                                                    1. Split input into 4 regimes
                                                                    2. if y < -9.99999999999999972e58

                                                                      1. Initial program 2.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. *-commutativeN/A

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

                                                                          \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                        14. +-commutativeN/A

                                                                          \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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.8%

                                                                        \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites74.5%

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

                                                                        if -9.99999999999999972e58 < y < 1.2000000000000001e-52

                                                                        1. Initial program 96.8%

                                                                          \[\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. *-commutativeN/A

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

                                                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                          14. +-commutativeN/A

                                                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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 rewrites94.6%

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

                                                                        if 1.2000000000000001e-52 < y < 1.32e73

                                                                        1. Initial program 82.8%

                                                                          \[\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. *-commutativeN/A

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

                                                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                          14. +-commutativeN/A

                                                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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 rewrites60.3%

                                                                          \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites3.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 rewrites4.0%

                                                                              \[\leadsto \frac{z}{y} \]
                                                                            2. Taylor expanded in b 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}^{2} \cdot \left(a + y\right)\right)}} \]
                                                                            3. 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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\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}^{2} \cdot \left(a + y\right)\right) + i}} \]
                                                                            4. Applied rewrites79.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(y \cdot y, a + y, c\right), y, i\right)}} \]

                                                                            if 1.32e73 < y

                                                                            1. Initial program 2.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. 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-/.f642.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 rewrites2.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-/.f6465.6

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

                                                                              \[\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)}} \]
                                                                            8. Taylor expanded in x around inf

                                                                              \[\leadsto \frac{1}{\frac{1 + \frac{a}{y}}{\color{blue}{x}}} \]
                                                                            9. Step-by-step derivation
                                                                              1. Applied rewrites80.4%

                                                                                \[\leadsto \frac{1}{\frac{\frac{a}{y} + 1}{\color{blue}{x}}} \]
                                                                            10. Recombined 4 regimes into one program.
                                                                            11. Final simplification86.5%

                                                                              \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1 \cdot 10^{+59}:\\ \;\;\;\;\frac{z}{y} + x\\ \mathbf{elif}\;y \leq 1.2 \cdot 10^{-52}:\\ \;\;\;\;\frac{\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)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{elif}\;y \leq 1.32 \cdot 10^{+73}:\\ \;\;\;\;\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(y \cdot y, a + y, c\right), y, i\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\ \end{array} \]
                                                                            12. Add Preprocessing

                                                                            Alternative 10: 80.2% accurate, 1.1× speedup?

                                                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.65 \cdot 10^{+62}:\\ \;\;\;\;\frac{z}{y} + x\\ \mathbf{elif}\;y \leq 1.1 \cdot 10^{+73}:\\ \;\;\;\;\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{1}{\frac{\frac{a}{y} + 1}{x}}\\ \end{array} \end{array} \]
                                                                            (FPCore (x y z t a b c i)
                                                                             :precision binary64
                                                                             (if (<= y -1.65e+62)
                                                                               (+ (/ z y) x)
                                                                               (if (<= y 1.1e+73)
                                                                                 (/
                                                                                  (fma (fma (fma z y 27464.7644705) y 230661.510616) y t)
                                                                                  (fma (fma (fma (+ a y) y b) y c) y i))
                                                                                 (/ 1.0 (/ (+ (/ a y) 1.0) x)))))
                                                                            double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                                                            	double tmp;
                                                                            	if (y <= -1.65e+62) {
                                                                            		tmp = (z / y) + x;
                                                                            	} else if (y <= 1.1e+73) {
                                                                            		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 = 1.0 / (((a / y) + 1.0) / x);
                                                                            	}
                                                                            	return tmp;
                                                                            }
                                                                            
                                                                            function code(x, y, z, t, a, b, c, i)
                                                                            	tmp = 0.0
                                                                            	if (y <= -1.65e+62)
                                                                            		tmp = Float64(Float64(z / y) + x);
                                                                            	elseif (y <= 1.1e+73)
                                                                            		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(1.0 / Float64(Float64(Float64(a / y) + 1.0) / x));
                                                                            	end
                                                                            	return tmp
                                                                            end
                                                                            
                                                                            code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.65e+62], N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[y, 1.1e+73], 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[(1.0 / N[(N[(N[(a / y), $MachinePrecision] + 1.0), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]
                                                                            
                                                                            \begin{array}{l}
                                                                            
                                                                            \\
                                                                            \begin{array}{l}
                                                                            \mathbf{if}\;y \leq -1.65 \cdot 10^{+62}:\\
                                                                            \;\;\;\;\frac{z}{y} + x\\
                                                                            
                                                                            \mathbf{elif}\;y \leq 1.1 \cdot 10^{+73}:\\
                                                                            \;\;\;\;\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{1}{\frac{\frac{a}{y} + 1}{x}}\\
                                                                            
                                                                            
                                                                            \end{array}
                                                                            \end{array}
                                                                            
                                                                            Derivation
                                                                            1. Split input into 3 regimes
                                                                            2. if y < -1.65e62

                                                                              1. Initial program 0.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. 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. *-commutativeN/A

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

                                                                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                                14. +-commutativeN/A

                                                                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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.6%

                                                                                \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites75.6%

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

                                                                                if -1.65e62 < y < 1.1e73

                                                                                1. Initial program 93.8%

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

                                                                                  \[\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 1.1e73 < y

                                                                                1. Initial program 2.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. 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-/.f642.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 rewrites2.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-/.f6465.6

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

                                                                                  \[\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)}} \]
                                                                                8. Taylor expanded in x around inf

                                                                                  \[\leadsto \frac{1}{\frac{1 + \frac{a}{y}}{\color{blue}{x}}} \]
                                                                                9. Step-by-step derivation
                                                                                  1. Applied rewrites80.4%

                                                                                    \[\leadsto \frac{1}{\frac{\frac{a}{y} + 1}{\color{blue}{x}}} \]
                                                                                10. Recombined 3 regimes into one program.
                                                                                11. Final simplification84.5%

                                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.65 \cdot 10^{+62}:\\ \;\;\;\;\frac{z}{y} + x\\ \mathbf{elif}\;y \leq 1.1 \cdot 10^{+73}:\\ \;\;\;\;\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{1}{\frac{\frac{a}{y} + 1}{x}}\\ \end{array} \]
                                                                                12. Add Preprocessing

                                                                                Alternative 11: 77.8% accurate, 1.2× speedup?

                                                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2.25 \cdot 10^{+58}:\\ \;\;\;\;\frac{z}{y} + x\\ \mathbf{elif}\;y \leq 1.22 \cdot 10^{+48}:\\ \;\;\;\;\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(y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\ \end{array} \end{array} \]
                                                                                (FPCore (x y z t a b c i)
                                                                                 :precision binary64
                                                                                 (if (<= y -2.25e+58)
                                                                                   (+ (/ z y) x)
                                                                                   (if (<= y 1.22e+48)
                                                                                     (/
                                                                                      (fma (fma (fma z y 27464.7644705) y 230661.510616) y t)
                                                                                      (fma (fma (fma y y b) y c) y i))
                                                                                     (/ 1.0 (/ (+ (/ a y) 1.0) x)))))
                                                                                double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                                                                	double tmp;
                                                                                	if (y <= -2.25e+58) {
                                                                                		tmp = (z / y) + x;
                                                                                	} else if (y <= 1.22e+48) {
                                                                                		tmp = fma(fma(fma(z, y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma(y, y, b), y, c), y, i);
                                                                                	} else {
                                                                                		tmp = 1.0 / (((a / y) + 1.0) / x);
                                                                                	}
                                                                                	return tmp;
                                                                                }
                                                                                
                                                                                function code(x, y, z, t, a, b, c, i)
                                                                                	tmp = 0.0
                                                                                	if (y <= -2.25e+58)
                                                                                		tmp = Float64(Float64(z / y) + x);
                                                                                	elseif (y <= 1.22e+48)
                                                                                		tmp = Float64(fma(fma(fma(z, y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma(y, y, b), y, c), y, i));
                                                                                	else
                                                                                		tmp = Float64(1.0 / Float64(Float64(Float64(a / y) + 1.0) / x));
                                                                                	end
                                                                                	return tmp
                                                                                end
                                                                                
                                                                                code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -2.25e+58], N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[y, 1.22e+48], N[(N[(N[(N[(z * 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[(1.0 / N[(N[(N[(a / y), $MachinePrecision] + 1.0), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]
                                                                                
                                                                                \begin{array}{l}
                                                                                
                                                                                \\
                                                                                \begin{array}{l}
                                                                                \mathbf{if}\;y \leq -2.25 \cdot 10^{+58}:\\
                                                                                \;\;\;\;\frac{z}{y} + x\\
                                                                                
                                                                                \mathbf{elif}\;y \leq 1.22 \cdot 10^{+48}:\\
                                                                                \;\;\;\;\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(y, y, b\right), y, c\right), y, i\right)}\\
                                                                                
                                                                                \mathbf{else}:\\
                                                                                \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\
                                                                                
                                                                                
                                                                                \end{array}
                                                                                \end{array}
                                                                                
                                                                                Derivation
                                                                                1. Split input into 3 regimes
                                                                                2. if y < -2.2499999999999999e58

                                                                                  1. Initial program 2.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. *-commutativeN/A

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

                                                                                      \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                                    14. +-commutativeN/A

                                                                                      \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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.8%

                                                                                    \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites74.5%

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

                                                                                    if -2.2499999999999999e58 < y < 1.22000000000000004e48

                                                                                    1. Initial program 95.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. *-commutativeN/A

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

                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                                      14. +-commutativeN/A

                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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 rewrites90.6%

                                                                                      \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites74.8%

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

                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot z\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, y, b\right)}, y, c\right), y, i\right)} \]
                                                                                      3. Step-by-step derivation
                                                                                        1. Applied rewrites86.2%

                                                                                          \[\leadsto \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(\color{blue}{\mathsf{fma}\left(y, y, b\right)}, y, c\right), y, i\right)} \]

                                                                                        if 1.22000000000000004e48 < y

                                                                                        1. Initial program 4.8%

                                                                                          \[\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-/.f644.8

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

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

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

                                                                                          \[\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)}} \]
                                                                                        8. Taylor expanded in x around inf

                                                                                          \[\leadsto \frac{1}{\frac{1 + \frac{a}{y}}{\color{blue}{x}}} \]
                                                                                        9. Step-by-step derivation
                                                                                          1. Applied rewrites73.8%

                                                                                            \[\leadsto \frac{1}{\frac{\frac{a}{y} + 1}{\color{blue}{x}}} \]
                                                                                        10. Recombined 3 regimes into one program.
                                                                                        11. Final simplification81.6%

                                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.25 \cdot 10^{+58}:\\ \;\;\;\;\frac{z}{y} + x\\ \mathbf{elif}\;y \leq 1.22 \cdot 10^{+48}:\\ \;\;\;\;\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(y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\ \end{array} \]
                                                                                        12. Add Preprocessing

                                                                                        Alternative 12: 76.9% accurate, 1.2× speedup?

                                                                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -5.8 \cdot 10^{+38}:\\ \;\;\;\;\frac{z}{y} + x\\ \mathbf{elif}\;y \leq 1.65 \cdot 10^{+60}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(z \cdot y, 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{1}{\frac{\frac{a}{y} + 1}{x}}\\ \end{array} \end{array} \]
                                                                                        (FPCore (x y z t a b c i)
                                                                                         :precision binary64
                                                                                         (if (<= y -5.8e+38)
                                                                                           (+ (/ z y) x)
                                                                                           (if (<= y 1.65e+60)
                                                                                             (/
                                                                                              (fma (fma (* z y) y 230661.510616) y t)
                                                                                              (fma (fma (fma y y b) y c) y i))
                                                                                             (/ 1.0 (/ (+ (/ a y) 1.0) x)))))
                                                                                        double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                                                                        	double tmp;
                                                                                        	if (y <= -5.8e+38) {
                                                                                        		tmp = (z / y) + x;
                                                                                        	} else if (y <= 1.65e+60) {
                                                                                        		tmp = fma(fma((z * y), y, 230661.510616), y, t) / fma(fma(fma(y, y, b), y, c), y, i);
                                                                                        	} else {
                                                                                        		tmp = 1.0 / (((a / y) + 1.0) / x);
                                                                                        	}
                                                                                        	return tmp;
                                                                                        }
                                                                                        
                                                                                        function code(x, y, z, t, a, b, c, i)
                                                                                        	tmp = 0.0
                                                                                        	if (y <= -5.8e+38)
                                                                                        		tmp = Float64(Float64(z / y) + x);
                                                                                        	elseif (y <= 1.65e+60)
                                                                                        		tmp = Float64(fma(fma(Float64(z * y), y, 230661.510616), y, t) / fma(fma(fma(y, y, b), y, c), y, i));
                                                                                        	else
                                                                                        		tmp = Float64(1.0 / Float64(Float64(Float64(a / y) + 1.0) / x));
                                                                                        	end
                                                                                        	return tmp
                                                                                        end
                                                                                        
                                                                                        code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -5.8e+38], N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[y, 1.65e+60], N[(N[(N[(N[(z * y), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / N[(N[(N[(y * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(N[(a / y), $MachinePrecision] + 1.0), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]
                                                                                        
                                                                                        \begin{array}{l}
                                                                                        
                                                                                        \\
                                                                                        \begin{array}{l}
                                                                                        \mathbf{if}\;y \leq -5.8 \cdot 10^{+38}:\\
                                                                                        \;\;\;\;\frac{z}{y} + x\\
                                                                                        
                                                                                        \mathbf{elif}\;y \leq 1.65 \cdot 10^{+60}:\\
                                                                                        \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(z \cdot y, 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{1}{\frac{\frac{a}{y} + 1}{x}}\\
                                                                                        
                                                                                        
                                                                                        \end{array}
                                                                                        \end{array}
                                                                                        
                                                                                        Derivation
                                                                                        1. Split input into 3 regimes
                                                                                        2. if y < -5.80000000000000013e38

                                                                                          1. Initial program 4.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(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. *-commutativeN/A

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

                                                                                              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                                            14. +-commutativeN/A

                                                                                              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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 rewrites2.7%

                                                                                            \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites68.2%

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

                                                                                            if -5.80000000000000013e38 < y < 1.6499999999999999e60

                                                                                            1. Initial program 97.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 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. *-commutativeN/A

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

                                                                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                                              14. +-commutativeN/A

                                                                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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 rewrites91.1%

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

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

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

                                                                                              if 1.6499999999999999e60 < y

                                                                                              1. Initial program 2.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. 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-/.f642.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 rewrites2.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 -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.3

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

                                                                                                \[\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)}} \]
                                                                                              8. Taylor expanded in x around inf

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

                                                                                                  \[\leadsto \frac{1}{\frac{\frac{a}{y} + 1}{\color{blue}{x}}} \]
                                                                                              10. Recombined 3 regimes into one program.
                                                                                              11. Final simplification80.4%

                                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -5.8 \cdot 10^{+38}:\\ \;\;\;\;\frac{z}{y} + x\\ \mathbf{elif}\;y \leq 1.65 \cdot 10^{+60}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(z \cdot y, 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{1}{\frac{\frac{a}{y} + 1}{x}}\\ \end{array} \]
                                                                                              12. Add Preprocessing

                                                                                              Alternative 13: 75.6% accurate, 1.2× speedup?

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

                                                                                                1. Initial program 7.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. *-commutativeN/A

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

                                                                                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                                                  14. +-commutativeN/A

                                                                                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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.9%

                                                                                                  \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites66.1%

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

                                                                                                  if -7.2e17 < y < 0.23000000000000001

                                                                                                  1. Initial program 99.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 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.f6487.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 rewrites87.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} \]

                                                                                                  if 0.23000000000000001 < y

                                                                                                  1. Initial program 18.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-/.f6418.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 rewrites18.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 -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-/.f6450.8

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

                                                                                                    \[\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)}} \]
                                                                                                  8. Taylor expanded in x around inf

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

                                                                                                      \[\leadsto \frac{1}{\frac{\frac{a}{y} + 1}{\color{blue}{x}}} \]
                                                                                                  10. Recombined 3 regimes into one program.
                                                                                                  11. Final simplification76.8%

                                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -7.2 \cdot 10^{+17}:\\ \;\;\;\;\frac{z}{y} + x\\ \mathbf{elif}\;y \leq 0.23:\\ \;\;\;\;\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}:\\ \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\ \end{array} \]
                                                                                                  12. Add Preprocessing

                                                                                                  Alternative 14: 74.2% accurate, 1.3× speedup?

                                                                                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2.25 \cdot 10^{+58}:\\ \;\;\;\;\frac{z}{y} + x\\ \mathbf{elif}\;y \leq 1.8 \cdot 10^{+55}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(27464.7644705, 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{1}{\frac{\frac{a}{y} + 1}{x}}\\ \end{array} \end{array} \]
                                                                                                  (FPCore (x y z t a b c i)
                                                                                                   :precision binary64
                                                                                                   (if (<= y -2.25e+58)
                                                                                                     (+ (/ z y) x)
                                                                                                     (if (<= y 1.8e+55)
                                                                                                       (/
                                                                                                        (fma (fma 27464.7644705 y 230661.510616) y t)
                                                                                                        (fma (fma (fma y y b) y c) y i))
                                                                                                       (/ 1.0 (/ (+ (/ a y) 1.0) x)))))
                                                                                                  double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                                                                                  	double tmp;
                                                                                                  	if (y <= -2.25e+58) {
                                                                                                  		tmp = (z / y) + x;
                                                                                                  	} else if (y <= 1.8e+55) {
                                                                                                  		tmp = fma(fma(27464.7644705, y, 230661.510616), y, t) / fma(fma(fma(y, y, b), y, c), y, i);
                                                                                                  	} else {
                                                                                                  		tmp = 1.0 / (((a / y) + 1.0) / x);
                                                                                                  	}
                                                                                                  	return tmp;
                                                                                                  }
                                                                                                  
                                                                                                  function code(x, y, z, t, a, b, c, i)
                                                                                                  	tmp = 0.0
                                                                                                  	if (y <= -2.25e+58)
                                                                                                  		tmp = Float64(Float64(z / y) + x);
                                                                                                  	elseif (y <= 1.8e+55)
                                                                                                  		tmp = Float64(fma(fma(27464.7644705, y, 230661.510616), y, t) / fma(fma(fma(y, y, b), y, c), y, i));
                                                                                                  	else
                                                                                                  		tmp = Float64(1.0 / Float64(Float64(Float64(a / y) + 1.0) / x));
                                                                                                  	end
                                                                                                  	return tmp
                                                                                                  end
                                                                                                  
                                                                                                  code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -2.25e+58], N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[y, 1.8e+55], N[(N[(N[(27464.7644705 * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / N[(N[(N[(y * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(N[(a / y), $MachinePrecision] + 1.0), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]
                                                                                                  
                                                                                                  \begin{array}{l}
                                                                                                  
                                                                                                  \\
                                                                                                  \begin{array}{l}
                                                                                                  \mathbf{if}\;y \leq -2.25 \cdot 10^{+58}:\\
                                                                                                  \;\;\;\;\frac{z}{y} + x\\
                                                                                                  
                                                                                                  \mathbf{elif}\;y \leq 1.8 \cdot 10^{+55}:\\
                                                                                                  \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(27464.7644705, 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{1}{\frac{\frac{a}{y} + 1}{x}}\\
                                                                                                  
                                                                                                  
                                                                                                  \end{array}
                                                                                                  \end{array}
                                                                                                  
                                                                                                  Derivation
                                                                                                  1. Split input into 3 regimes
                                                                                                  2. if y < -2.2499999999999999e58

                                                                                                    1. Initial program 2.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. *-commutativeN/A

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

                                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                                                      14. +-commutativeN/A

                                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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.8%

                                                                                                      \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites74.5%

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

                                                                                                      if -2.2499999999999999e58 < y < 1.79999999999999994e55

                                                                                                      1. Initial program 95.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. 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. *-commutativeN/A

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

                                                                                                          \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                                                        14. +-commutativeN/A

                                                                                                          \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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 rewrites90.1%

                                                                                                        \[\leadsto \color{blue}{\frac{\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)}{\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(\mathsf{fma}\left(\frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{y}, y, b\right), y, c\right), y, i\right)} \]
                                                                                                      7. Step-by-step derivation
                                                                                                        1. Applied rewrites76.2%

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

                                                                                                        if 1.79999999999999994e55 < y

                                                                                                        1. Initial program 4.8%

                                                                                                          \[\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-/.f644.8

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

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

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

                                                                                                          \[\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)}} \]
                                                                                                        8. Taylor expanded in x around inf

                                                                                                          \[\leadsto \frac{1}{\frac{1 + \frac{a}{y}}{\color{blue}{x}}} \]
                                                                                                        9. Step-by-step derivation
                                                                                                          1. Applied rewrites75.4%

                                                                                                            \[\leadsto \frac{1}{\frac{\frac{a}{y} + 1}{\color{blue}{x}}} \]
                                                                                                        10. Recombined 3 regimes into one program.
                                                                                                        11. Final simplification75.7%

                                                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.25 \cdot 10^{+58}:\\ \;\;\;\;\frac{z}{y} + x\\ \mathbf{elif}\;y \leq 1.8 \cdot 10^{+55}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(27464.7644705, 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{1}{\frac{\frac{a}{y} + 1}{x}}\\ \end{array} \]
                                                                                                        12. Add Preprocessing

                                                                                                        Alternative 15: 74.1% accurate, 1.4× speedup?

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

                                                                                                          1. Initial program 7.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. *-commutativeN/A

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

                                                                                                              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                                                            14. +-commutativeN/A

                                                                                                              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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.9%

                                                                                                            \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites66.1%

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

                                                                                                            if -1.75e17 < y < 0.104999999999999996

                                                                                                            1. Initial program 99.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. *-commutativeN/A

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

                                                                                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                                                              14. +-commutativeN/A

                                                                                                                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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 rewrites94.3%

                                                                                                              \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites83.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)} \]

                                                                                                              if 0.104999999999999996 < y

                                                                                                              1. Initial program 18.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-/.f6418.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 rewrites18.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 -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-/.f6450.8

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

                                                                                                                \[\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)}} \]
                                                                                                              8. Taylor expanded in x around inf

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

                                                                                                                  \[\leadsto \frac{1}{\frac{\frac{a}{y} + 1}{\color{blue}{x}}} \]
                                                                                                              10. Recombined 3 regimes into one program.
                                                                                                              11. Final simplification74.7%

                                                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.75 \cdot 10^{+17}:\\ \;\;\;\;\frac{z}{y} + x\\ \mathbf{elif}\;y \leq 0.105:\\ \;\;\;\;\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}:\\ \;\;\;\;\frac{1}{\frac{\frac{a}{y} + 1}{x}}\\ \end{array} \]
                                                                                                              12. Add Preprocessing

                                                                                                              Alternative 16: 74.5% accurate, 1.5× speedup?

                                                                                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{z}{y} + x\\ \mathbf{if}\;y \leq -1.75 \cdot 10^{+17}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 1.8 \cdot 10^{+29}:\\ \;\;\;\;\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 (+ (/ z y) x)))
                                                                                                                 (if (<= y -1.75e+17)
                                                                                                                   t_1
                                                                                                                   (if (<= y 1.8e+29)
                                                                                                                     (/ (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 = (z / y) + x;
                                                                                                              	double tmp;
                                                                                                              	if (y <= -1.75e+17) {
                                                                                                              		tmp = t_1;
                                                                                                              	} else if (y <= 1.8e+29) {
                                                                                                              		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(Float64(z / y) + x)
                                                                                                              	tmp = 0.0
                                                                                                              	if (y <= -1.75e+17)
                                                                                                              		tmp = t_1;
                                                                                                              	elseif (y <= 1.8e+29)
                                                                                                              		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[(N[(z / y), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[y, -1.75e+17], t$95$1, If[LessEqual[y, 1.8e+29], 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 := \frac{z}{y} + x\\
                                                                                                              \mathbf{if}\;y \leq -1.75 \cdot 10^{+17}:\\
                                                                                                              \;\;\;\;t\_1\\
                                                                                                              
                                                                                                              \mathbf{elif}\;y \leq 1.8 \cdot 10^{+29}:\\
                                                                                                              \;\;\;\;\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 < -1.75e17 or 1.79999999999999988e29 < y

                                                                                                                1. Initial program 7.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. *-commutativeN/A

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

                                                                                                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                                                                  14. +-commutativeN/A

                                                                                                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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 rewrites6.3%

                                                                                                                  \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites65.2%

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

                                                                                                                  if -1.75e17 < y < 1.79999999999999988e29

                                                                                                                  1. Initial program 99.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. *-commutativeN/A

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

                                                                                                                      \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                                                                    14. +-commutativeN/A

                                                                                                                      \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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.8%

                                                                                                                    \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites80.2%

                                                                                                                      \[\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. Final simplification73.8%

                                                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.75 \cdot 10^{+17}:\\ \;\;\;\;\frac{z}{y} + x\\ \mathbf{elif}\;y \leq 1.8 \cdot 10^{+29}:\\ \;\;\;\;\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}:\\ \;\;\;\;\frac{z}{y} + x\\ \end{array} \]
                                                                                                                  10. Add Preprocessing

                                                                                                                  Alternative 17: 69.0% accurate, 1.6× speedup?

                                                                                                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{z}{y} + x\\ \mathbf{if}\;y \leq -2.05 \cdot 10^{+61}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 1.7 \cdot 10^{+30}:\\ \;\;\;\;\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 (+ (/ z y) x)))
                                                                                                                     (if (<= y -2.05e+61)
                                                                                                                       t_1
                                                                                                                       (if (<= y 1.7e+30) (/ 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 = (z / y) + x;
                                                                                                                  	double tmp;
                                                                                                                  	if (y <= -2.05e+61) {
                                                                                                                  		tmp = t_1;
                                                                                                                  	} else if (y <= 1.7e+30) {
                                                                                                                  		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(Float64(z / y) + x)
                                                                                                                  	tmp = 0.0
                                                                                                                  	if (y <= -2.05e+61)
                                                                                                                  		tmp = t_1;
                                                                                                                  	elseif (y <= 1.7e+30)
                                                                                                                  		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[(N[(z / y), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[y, -2.05e+61], t$95$1, If[LessEqual[y, 1.7e+30], 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 := \frac{z}{y} + x\\
                                                                                                                  \mathbf{if}\;y \leq -2.05 \cdot 10^{+61}:\\
                                                                                                                  \;\;\;\;t\_1\\
                                                                                                                  
                                                                                                                  \mathbf{elif}\;y \leq 1.7 \cdot 10^{+30}:\\
                                                                                                                  \;\;\;\;\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 < -2.04999999999999986e61 or 1.7000000000000001e30 < y

                                                                                                                    1. Initial program 4.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. *-commutativeN/A

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

                                                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                                                                      14. +-commutativeN/A

                                                                                                                        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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 rewrites3.6%

                                                                                                                      \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites69.9%

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

                                                                                                                      if -2.04999999999999986e61 < y < 1.7000000000000001e30

                                                                                                                      1. Initial program 96.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 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-+.f6465.1

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

                                                                                                                        \[\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)}} \]
                                                                                                                    8. Recombined 2 regimes into one program.
                                                                                                                    9. Final simplification67.0%

                                                                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.05 \cdot 10^{+61}:\\ \;\;\;\;\frac{z}{y} + x\\ \mathbf{elif}\;y \leq 1.7 \cdot 10^{+30}:\\ \;\;\;\;\frac{t}{\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 18: 68.1% accurate, 1.7× speedup?

                                                                                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{z}{y} + x\\ \mathbf{if}\;y \leq -2.15 \cdot 10^{+17}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 2.6 \cdot 10^{+28}:\\ \;\;\;\;\frac{t}{\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 (+ (/ z y) x)))
                                                                                                                       (if (<= y -2.15e+17)
                                                                                                                         t_1
                                                                                                                         (if (<= y 2.6e+28) (/ 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 = (z / y) + x;
                                                                                                                    	double tmp;
                                                                                                                    	if (y <= -2.15e+17) {
                                                                                                                    		tmp = t_1;
                                                                                                                    	} else if (y <= 2.6e+28) {
                                                                                                                    		tmp = 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(Float64(z / y) + x)
                                                                                                                    	tmp = 0.0
                                                                                                                    	if (y <= -2.15e+17)
                                                                                                                    		tmp = t_1;
                                                                                                                    	elseif (y <= 2.6e+28)
                                                                                                                    		tmp = Float64(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[(N[(z / y), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[y, -2.15e+17], t$95$1, If[LessEqual[y, 2.6e+28], N[(t / 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 := \frac{z}{y} + x\\
                                                                                                                    \mathbf{if}\;y \leq -2.15 \cdot 10^{+17}:\\
                                                                                                                    \;\;\;\;t\_1\\
                                                                                                                    
                                                                                                                    \mathbf{elif}\;y \leq 2.6 \cdot 10^{+28}:\\
                                                                                                                    \;\;\;\;\frac{t}{\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 < -2.15e17 or 2.6000000000000002e28 < y

                                                                                                                      1. Initial program 7.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. *-commutativeN/A

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

                                                                                                                          \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                                                                        14. +-commutativeN/A

                                                                                                                          \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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 rewrites6.3%

                                                                                                                        \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites65.2%

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

                                                                                                                        if -2.15e17 < y < 2.6000000000000002e28

                                                                                                                        1. Initial program 99.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. *-commutativeN/A

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

                                                                                                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                                                                          14. +-commutativeN/A

                                                                                                                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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.8%

                                                                                                                          \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites2.6%

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

                                                                                                                              \[\leadsto \frac{z}{y} \]
                                                                                                                            2. Taylor expanded in t around inf

                                                                                                                              \[\leadsto \frac{t}{\color{blue}{i + y \cdot \left(c + y \cdot \left(b + {y}^{2}\right)\right)}} \]
                                                                                                                            3. Step-by-step derivation
                                                                                                                              1. Applied rewrites66.4%

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

                                                                                                                              \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.15 \cdot 10^{+17}:\\ \;\;\;\;\frac{z}{y} + x\\ \mathbf{elif}\;y \leq 2.6 \cdot 10^{+28}:\\ \;\;\;\;\frac{t}{\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} \]
                                                                                                                            6. Add Preprocessing

                                                                                                                            Alternative 19: 58.4% accurate, 2.6× speedup?

                                                                                                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{z}{y} + x\\ \mathbf{if}\;y \leq -9.4 \cdot 10^{+56}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 6.5 \cdot 10^{+27}:\\ \;\;\;\;\frac{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 -9.4e+56) t_1 (if (<= y 6.5e+27) (/ 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 <= -9.4e+56) {
                                                                                                                            		tmp = t_1;
                                                                                                                            	} else if (y <= 6.5e+27) {
                                                                                                                            		tmp = 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 <= (-9.4d+56)) then
                                                                                                                                    tmp = t_1
                                                                                                                                else if (y <= 6.5d+27) then
                                                                                                                                    tmp = 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 <= -9.4e+56) {
                                                                                                                            		tmp = t_1;
                                                                                                                            	} else if (y <= 6.5e+27) {
                                                                                                                            		tmp = 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 <= -9.4e+56:
                                                                                                                            		tmp = t_1
                                                                                                                            	elif y <= 6.5e+27:
                                                                                                                            		tmp = 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 <= -9.4e+56)
                                                                                                                            		tmp = t_1;
                                                                                                                            	elseif (y <= 6.5e+27)
                                                                                                                            		tmp = Float64(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 <= -9.4e+56)
                                                                                                                            		tmp = t_1;
                                                                                                                            	elseif (y <= 6.5e+27)
                                                                                                                            		tmp = 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, -9.4e+56], t$95$1, If[LessEqual[y, 6.5e+27], N[(t / i), $MachinePrecision], t$95$1]]]
                                                                                                                            
                                                                                                                            \begin{array}{l}
                                                                                                                            
                                                                                                                            \\
                                                                                                                            \begin{array}{l}
                                                                                                                            t_1 := \frac{z}{y} + x\\
                                                                                                                            \mathbf{if}\;y \leq -9.4 \cdot 10^{+56}:\\
                                                                                                                            \;\;\;\;t\_1\\
                                                                                                                            
                                                                                                                            \mathbf{elif}\;y \leq 6.5 \cdot 10^{+27}:\\
                                                                                                                            \;\;\;\;\frac{t}{i}\\
                                                                                                                            
                                                                                                                            \mathbf{else}:\\
                                                                                                                            \;\;\;\;t\_1\\
                                                                                                                            
                                                                                                                            
                                                                                                                            \end{array}
                                                                                                                            \end{array}
                                                                                                                            
                                                                                                                            Derivation
                                                                                                                            1. Split input into 2 regimes
                                                                                                                            2. if y < -9.400000000000001e56 or 6.5000000000000005e27 < y

                                                                                                                              1. Initial program 5.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. 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. *-commutativeN/A

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

                                                                                                                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                                                                                14. +-commutativeN/A

                                                                                                                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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 rewrites3.6%

                                                                                                                                \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites69.5%

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

                                                                                                                                if -9.400000000000001e56 < y < 6.5000000000000005e27

                                                                                                                                1. Initial program 97.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(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-/.f6444.9

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

                                                                                                                                  \[\leadsto \color{blue}{\frac{t}{i}} \]
                                                                                                                              8. Recombined 2 regimes into one program.
                                                                                                                              9. Final simplification54.7%

                                                                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -9.4 \cdot 10^{+56}:\\ \;\;\;\;\frac{z}{y} + x\\ \mathbf{elif}\;y \leq 6.5 \cdot 10^{+27}:\\ \;\;\;\;\frac{t}{i}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{y} + x\\ \end{array} \]
                                                                                                                              10. Add Preprocessing

                                                                                                                              Alternative 20: 11.1% 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 60.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. *-commutativeN/A

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

                                                                                                                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, 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)} \]
                                                                                                                                14. +-commutativeN/A

                                                                                                                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, 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 rewrites56.6%

                                                                                                                                \[\leadsto \color{blue}{\frac{\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)}{\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 rewrites29.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 rewrites10.7%

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

                                                                                                                                  Reproduce

                                                                                                                                  ?
                                                                                                                                  herbie shell --seed 2024276 
                                                                                                                                  (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)))