Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2

Percentage Accurate: 55.8% → 85.7%
Time: 17.3s
Alternatives: 14
Speedup: 0.9×

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 14 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.8% accurate, 1.0× speedup?

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

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

Alternative 1: 85.7% 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}\;\frac{t + \left(\left(\left(z + y \cdot x\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y} \leq \infty:\\ \;\;\;\;\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}:\\ \;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot z}{y}\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (let* ((t_1 (fma (fma (fma (+ a y) y b) y c) y i)))
   (if (<=
        (/
         (+
          t
          (* (+ (* (+ (* (+ z (* y x)) y) 27464.7644705) y) 230661.510616) y))
         (+ i (* (+ c (* (+ b (* (+ a y) y)) y)) y)))
        INFINITY)
     (fma
      y
      (/ (fma (fma z y 27464.7644705) y 230661.510616) t_1)
      (fma x (* (/ (* y y) t_1) (* y y)) (/ t t_1)))
     (- x (/ (* (- (/ a y) 1.0) z) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double t_1 = fma(fma(fma((a + y), y, b), y, c), y, i);
	double tmp;
	if (((t + ((((((z + (y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / (i + ((c + ((b + ((a + y) * y)) * y)) * y))) <= ((double) INFINITY)) {
		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 = x - ((((a / y) - 1.0) * z) / y);
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i)
	t_1 = fma(fma(fma(Float64(a + y), y, b), y, c), y, i)
	tmp = 0.0
	if (Float64(Float64(t + Float64(Float64(Float64(Float64(Float64(Float64(z + Float64(y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / Float64(i + Float64(Float64(c + Float64(Float64(b + Float64(Float64(a + y) * y)) * y)) * y))) <= Inf)
		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(x - Float64(Float64(Float64(Float64(a / y) - 1.0) * z) / y));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]}, If[LessEqual[N[(N[(t + N[(N[(N[(N[(N[(N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] / N[(i + N[(N[(c + N[(N[(b + N[(N[(a + y), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], 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[(x - N[(N[(N[(N[(a / y), $MachinePrecision] - 1.0), $MachinePrecision] * z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\
\mathbf{if}\;\frac{t + \left(\left(\left(z + y \cdot x\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y} \leq \infty:\\
\;\;\;\;\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}:\\
\;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot 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.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 x around 0

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

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

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

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

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

        \[\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 +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 y around -inf

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

          \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{\left(-1 \cdot z + -1 \cdot \frac{\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y}\right)\right)} \]
        2. unsub-negN/A

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

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

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

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

        \[\leadsto x - \frac{-1 \cdot \left(z \cdot \left(1 - \frac{a}{y}\right)\right)}{y} \]
      7. Step-by-step derivation
        1. Applied rewrites75.0%

          \[\leadsto x - \frac{-z \cdot \left(1 - \frac{a}{y}\right)}{y} \]
      8. Recombined 2 regimes into one program.
      9. Final simplification85.6%

        \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{t + \left(\left(\left(z + y \cdot x\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y} \leq \infty:\\ \;\;\;\;\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}:\\ \;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot z}{y}\\ \end{array} \]
      10. Add Preprocessing

      Alternative 2: 85.3% accurate, 0.4× speedup?

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

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

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

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

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

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

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

        if +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 y around -inf

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

            \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{\left(-1 \cdot z + -1 \cdot \frac{\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y}\right)\right)} \]
          2. unsub-negN/A

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

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

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

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

          \[\leadsto x - \frac{-1 \cdot \left(z \cdot \left(1 - \frac{a}{y}\right)\right)}{y} \]
        7. Step-by-step derivation
          1. Applied rewrites75.0%

            \[\leadsto x - \frac{-z \cdot \left(1 - \frac{a}{y}\right)}{y} \]
        8. Recombined 2 regimes into one program.
        9. Final simplification84.9%

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

        Alternative 3: 84.7% accurate, 0.5× speedup?

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{\left(\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right) \cdot y, y, 27464.7644705 \cdot y\right)} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + 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 y around -inf

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

              \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{\left(-1 \cdot z + -1 \cdot \frac{\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y}\right)\right)} \]
            2. unsub-negN/A

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

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

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

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

            \[\leadsto x - \frac{-1 \cdot \left(z \cdot \left(1 - \frac{a}{y}\right)\right)}{y} \]
          7. Step-by-step derivation
            1. Applied rewrites75.0%

              \[\leadsto x - \frac{-z \cdot \left(1 - \frac{a}{y}\right)}{y} \]
          8. Recombined 2 regimes into one program.
          9. Final simplification84.5%

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

          Alternative 4: 84.7% accurate, 0.5× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t + \left(\left(\left(z + y \cdot x\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y}\\ \mathbf{if}\;t\_1 \leq \infty:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot z}{y}\\ \end{array} \end{array} \]
          (FPCore (x y z t a b c i)
           :precision binary64
           (let* ((t_1
                   (/
                    (+
                     t
                     (* (+ (* (+ (* (+ z (* y x)) y) 27464.7644705) y) 230661.510616) y))
                    (+ i (* (+ c (* (+ b (* (+ a y) y)) y)) y)))))
             (if (<= t_1 INFINITY) t_1 (- x (/ (* (- (/ a y) 1.0) z) y)))))
          double code(double x, double y, double z, double t, double a, double b, double c, double i) {
          	double t_1 = (t + ((((((z + (y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / (i + ((c + ((b + ((a + y) * y)) * y)) * y));
          	double tmp;
          	if (t_1 <= ((double) INFINITY)) {
          		tmp = t_1;
          	} else {
          		tmp = x - ((((a / y) - 1.0) * 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 t_1 = (t + ((((((z + (y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / (i + ((c + ((b + ((a + y) * y)) * y)) * y));
          	double tmp;
          	if (t_1 <= Double.POSITIVE_INFINITY) {
          		tmp = t_1;
          	} else {
          		tmp = x - ((((a / y) - 1.0) * z) / y);
          	}
          	return tmp;
          }
          
          def code(x, y, z, t, a, b, c, i):
          	t_1 = (t + ((((((z + (y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / (i + ((c + ((b + ((a + y) * y)) * y)) * y))
          	tmp = 0
          	if t_1 <= math.inf:
          		tmp = t_1
          	else:
          		tmp = x - ((((a / y) - 1.0) * z) / y)
          	return tmp
          
          function code(x, y, z, t, a, b, c, i)
          	t_1 = Float64(Float64(t + Float64(Float64(Float64(Float64(Float64(Float64(z + Float64(y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / Float64(i + Float64(Float64(c + Float64(Float64(b + Float64(Float64(a + y) * y)) * y)) * y)))
          	tmp = 0.0
          	if (t_1 <= Inf)
          		tmp = t_1;
          	else
          		tmp = Float64(x - Float64(Float64(Float64(Float64(a / y) - 1.0) * z) / y));
          	end
          	return tmp
          end
          
          function tmp_2 = code(x, y, z, t, a, b, c, i)
          	t_1 = (t + ((((((z + (y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / (i + ((c + ((b + ((a + y) * y)) * y)) * y));
          	tmp = 0.0;
          	if (t_1 <= Inf)
          		tmp = t_1;
          	else
          		tmp = x - ((((a / y) - 1.0) * z) / y);
          	end
          	tmp_2 = tmp;
          end
          
          code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(t + N[(N[(N[(N[(N[(N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] / N[(i + N[(N[(c + N[(N[(b + N[(N[(a + y), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(x - N[(N[(N[(N[(a / y), $MachinePrecision] - 1.0), $MachinePrecision] * z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \frac{t + \left(\left(\left(z + y \cdot x\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y}\\
          \mathbf{if}\;t\_1 \leq \infty:\\
          \;\;\;\;t\_1\\
          
          \mathbf{else}:\\
          \;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot 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.0%

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

            if +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 y around -inf

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

                \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{\left(-1 \cdot z + -1 \cdot \frac{\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y}\right)\right)} \]
              2. unsub-negN/A

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

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

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

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

              \[\leadsto x - \frac{-1 \cdot \left(z \cdot \left(1 - \frac{a}{y}\right)\right)}{y} \]
            7. Step-by-step derivation
              1. Applied rewrites75.0%

                \[\leadsto x - \frac{-z \cdot \left(1 - \frac{a}{y}\right)}{y} \]
            8. Recombined 2 regimes into one program.
            9. Final simplification84.5%

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

            Alternative 5: 84.6% accurate, 0.5× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{t + \left(\left(\left(z + y \cdot x\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y} \leq \infty:\\ \;\;\;\;\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}:\\ \;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot z}{y}\\ \end{array} \end{array} \]
            (FPCore (x y z t a b c i)
             :precision binary64
             (if (<=
                  (/
                   (+
                    t
                    (* (+ (* (+ (* (+ z (* y x)) y) 27464.7644705) y) 230661.510616) y))
                   (+ i (* (+ c (* (+ b (* (+ a y) y)) y)) y)))
                  INFINITY)
               (*
                (/ -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)))
               (- x (/ (* (- (/ a y) 1.0) z) y))))
            double code(double x, double y, double z, double t, double a, double b, double c, double i) {
            	double tmp;
            	if (((t + ((((((z + (y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / (i + ((c + ((b + ((a + y) * y)) * y)) * y))) <= ((double) INFINITY)) {
            		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 = x - ((((a / y) - 1.0) * z) / y);
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a, b, c, i)
            	tmp = 0.0
            	if (Float64(Float64(t + Float64(Float64(Float64(Float64(Float64(Float64(z + Float64(y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / Float64(i + Float64(Float64(c + Float64(Float64(b + Float64(Float64(a + y) * y)) * y)) * y))) <= Inf)
            		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(x - Float64(Float64(Float64(Float64(a / y) - 1.0) * z) / y));
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(t + N[(N[(N[(N[(N[(N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] / N[(i + N[(N[(c + N[(N[(b + N[(N[(a + y), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], 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[(x - N[(N[(N[(N[(a / y), $MachinePrecision] - 1.0), $MachinePrecision] * z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;\frac{t + \left(\left(\left(z + y \cdot x\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y} \leq \infty:\\
            \;\;\;\;\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}:\\
            \;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot 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.0%

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

                  \[\leadsto \color{blue}{\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} \]
                2. 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 rewrites90.8%

                \[\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 +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 y around -inf

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

                  \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{\left(-1 \cdot z + -1 \cdot \frac{\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y}\right)\right)} \]
                2. unsub-negN/A

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

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

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

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

                \[\leadsto x - \frac{-1 \cdot \left(z \cdot \left(1 - \frac{a}{y}\right)\right)}{y} \]
              7. Step-by-step derivation
                1. Applied rewrites75.0%

                  \[\leadsto x - \frac{-z \cdot \left(1 - \frac{a}{y}\right)}{y} \]
              8. Recombined 2 regimes into one program.
              9. Final simplification84.4%

                \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{t + \left(\left(\left(z + y \cdot x\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y} \leq \infty:\\ \;\;\;\;\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}:\\ \;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot z}{y}\\ \end{array} \]
              10. Add Preprocessing

              Alternative 6: 80.7% accurate, 0.6× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{t + \left(\left(\left(z + y \cdot x\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y} \leq \infty:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot z}{y}\\ \end{array} \end{array} \]
              (FPCore (x y z t a b c i)
               :precision binary64
               (if (<=
                    (/
                     (+
                      t
                      (* (+ (* (+ (* (+ z (* y x)) y) 27464.7644705) y) 230661.510616) y))
                     (+ i (* (+ c (* (+ b (* (+ a y) y)) y)) y)))
                    INFINITY)
                 (/
                  (fma (fma (fma z y 27464.7644705) y 230661.510616) y t)
                  (fma (fma (fma (+ a y) y b) y c) y i))
                 (- x (/ (* (- (/ a y) 1.0) z) y))))
              double code(double x, double y, double z, double t, double a, double b, double c, double i) {
              	double tmp;
              	if (((t + ((((((z + (y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / (i + ((c + ((b + ((a + y) * y)) * y)) * y))) <= ((double) INFINITY)) {
              		tmp = fma(fma(fma(z, y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma((a + y), y, b), y, c), y, i);
              	} else {
              		tmp = x - ((((a / y) - 1.0) * z) / y);
              	}
              	return tmp;
              }
              
              function code(x, y, z, t, a, b, c, i)
              	tmp = 0.0
              	if (Float64(Float64(t + Float64(Float64(Float64(Float64(Float64(Float64(z + Float64(y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / Float64(i + Float64(Float64(c + Float64(Float64(b + Float64(Float64(a + y) * y)) * y)) * y))) <= Inf)
              		tmp = Float64(fma(fma(fma(z, y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma(Float64(a + y), y, b), y, c), y, i));
              	else
              		tmp = Float64(x - Float64(Float64(Float64(Float64(a / y) - 1.0) * z) / y));
              	end
              	return tmp
              end
              
              code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(t + N[(N[(N[(N[(N[(N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] / N[(i + N[(N[(c + N[(N[(b + N[(N[(a + y), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(N[(z * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(N[(a / y), $MachinePrecision] - 1.0), $MachinePrecision] * z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              \mathbf{if}\;\frac{t + \left(\left(\left(z + y \cdot x\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y} \leq \infty:\\
              \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
              
              \mathbf{else}:\\
              \;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot 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.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 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 rewrites85.9%

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

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

                1. Initial program 0.0%

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

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

                    \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{\left(-1 \cdot z + -1 \cdot \frac{\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y}\right)\right)} \]
                  2. unsub-negN/A

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

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

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

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

                  \[\leadsto x - \frac{-1 \cdot \left(z \cdot \left(1 - \frac{a}{y}\right)\right)}{y} \]
                7. Step-by-step derivation
                  1. Applied rewrites75.0%

                    \[\leadsto x - \frac{-z \cdot \left(1 - \frac{a}{y}\right)}{y} \]
                8. Recombined 2 regimes into one program.
                9. Final simplification81.5%

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

                Alternative 7: 75.4% accurate, 0.6× speedup?

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

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

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

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

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

                    \[\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 +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 y around -inf

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

                      \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{\left(-1 \cdot z + -1 \cdot \frac{\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y}\right)\right)} \]
                    2. unsub-negN/A

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

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

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

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

                    \[\leadsto x - \frac{-1 \cdot \left(z \cdot \left(1 - \frac{a}{y}\right)\right)}{y} \]
                  7. Step-by-step derivation
                    1. Applied rewrites75.0%

                      \[\leadsto x - \frac{-z \cdot \left(1 - \frac{a}{y}\right)}{y} \]
                  8. Recombined 2 regimes into one program.
                  9. Final simplification76.9%

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

                  Alternative 8: 68.1% accurate, 0.6× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{t + \left(\left(\left(z + y \cdot x\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y} \leq \infty:\\ \;\;\;\;\frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot z}{y}\\ \end{array} \end{array} \]
                  (FPCore (x y z t a b c i)
                   :precision binary64
                   (if (<=
                        (/
                         (+
                          t
                          (* (+ (* (+ (* (+ z (* y x)) y) 27464.7644705) y) 230661.510616) y))
                         (+ i (* (+ c (* (+ b (* (+ a y) y)) y)) y)))
                        INFINITY)
                     (/ t (fma (fma (fma (+ a y) y b) y c) y i))
                     (- x (/ (* (- (/ a y) 1.0) z) y))))
                  double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                  	double tmp;
                  	if (((t + ((((((z + (y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / (i + ((c + ((b + ((a + y) * y)) * y)) * y))) <= ((double) INFINITY)) {
                  		tmp = t / fma(fma(fma((a + y), y, b), y, c), y, i);
                  	} else {
                  		tmp = x - ((((a / y) - 1.0) * z) / y);
                  	}
                  	return tmp;
                  }
                  
                  function code(x, y, z, t, a, b, c, i)
                  	tmp = 0.0
                  	if (Float64(Float64(t + Float64(Float64(Float64(Float64(Float64(Float64(z + Float64(y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / Float64(i + Float64(Float64(c + Float64(Float64(b + Float64(Float64(a + y) * y)) * y)) * y))) <= Inf)
                  		tmp = Float64(t / fma(fma(fma(Float64(a + y), y, b), y, c), y, i));
                  	else
                  		tmp = Float64(x - Float64(Float64(Float64(Float64(a / y) - 1.0) * z) / y));
                  	end
                  	return tmp
                  end
                  
                  code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(t + N[(N[(N[(N[(N[(N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] / N[(i + N[(N[(c + N[(N[(b + N[(N[(a + y), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(t / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(N[(a / y), $MachinePrecision] - 1.0), $MachinePrecision] * z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  \mathbf{if}\;\frac{t + \left(\left(\left(z + y \cdot x\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y} \leq \infty:\\
                  \;\;\;\;\frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot 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.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    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 y around -inf

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

                        \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{\left(-1 \cdot z + -1 \cdot \frac{\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y}\right)\right)} \]
                      2. unsub-negN/A

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

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

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

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

                      \[\leadsto x - \frac{-1 \cdot \left(z \cdot \left(1 - \frac{a}{y}\right)\right)}{y} \]
                    7. Step-by-step derivation
                      1. Applied rewrites75.0%

                        \[\leadsto x - \frac{-z \cdot \left(1 - \frac{a}{y}\right)}{y} \]
                    8. Recombined 2 regimes into one program.
                    9. Final simplification70.2%

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

                    Alternative 9: 66.4% accurate, 0.7× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{t + \left(\left(\left(z + y \cdot x\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y} \leq \infty:\\ \;\;\;\;\frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{\mathsf{fma}\left(-1, z, a \cdot x\right)}{y}\\ \end{array} \end{array} \]
                    (FPCore (x y z t a b c i)
                     :precision binary64
                     (if (<=
                          (/
                           (+
                            t
                            (* (+ (* (+ (* (+ z (* y x)) y) 27464.7644705) y) 230661.510616) y))
                           (+ i (* (+ c (* (+ b (* (+ a y) y)) y)) y)))
                          INFINITY)
                       (/ t (fma (fma (fma (+ a y) y b) y c) y i))
                       (- x (/ (fma -1.0 z (* a x)) y))))
                    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                    	double tmp;
                    	if (((t + ((((((z + (y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / (i + ((c + ((b + ((a + y) * y)) * y)) * y))) <= ((double) INFINITY)) {
                    		tmp = t / fma(fma(fma((a + y), y, b), y, c), y, i);
                    	} else {
                    		tmp = x - (fma(-1.0, z, (a * x)) / y);
                    	}
                    	return tmp;
                    }
                    
                    function code(x, y, z, t, a, b, c, i)
                    	tmp = 0.0
                    	if (Float64(Float64(t + Float64(Float64(Float64(Float64(Float64(Float64(z + Float64(y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / Float64(i + Float64(Float64(c + Float64(Float64(b + Float64(Float64(a + y) * y)) * y)) * y))) <= Inf)
                    		tmp = Float64(t / fma(fma(fma(Float64(a + y), y, b), y, c), y, i));
                    	else
                    		tmp = Float64(x - Float64(fma(-1.0, z, Float64(a * x)) / y));
                    	end
                    	return tmp
                    end
                    
                    code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(t + N[(N[(N[(N[(N[(N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] / N[(i + N[(N[(c + N[(N[(b + N[(N[(a + y), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(t / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(-1.0 * z + N[(a * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;\frac{t + \left(\left(\left(z + y \cdot x\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y} \leq \infty:\\
                    \;\;\;\;\frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;x - \frac{\mathsf{fma}\left(-1, z, a \cdot x\right)}{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.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      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 y around -inf

                        \[\leadsto \color{blue}{x + -1 \cdot \frac{-1 \cdot z - -1 \cdot \left(a \cdot x\right)}{y}} \]
                      4. Step-by-step derivation
                        1. mul-1-negN/A

                          \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{-1 \cdot z - -1 \cdot \left(a \cdot x\right)}{y}\right)\right)} \]
                        2. unsub-negN/A

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

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

                          \[\leadsto x - \color{blue}{\frac{-1 \cdot z - -1 \cdot \left(a \cdot x\right)}{y}} \]
                        5. associate-*r*N/A

                          \[\leadsto x - \frac{-1 \cdot z - \color{blue}{\left(-1 \cdot a\right) \cdot x}}{y} \]
                        6. mul-1-negN/A

                          \[\leadsto x - \frac{-1 \cdot z - \color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot x}{y} \]
                        7. cancel-sign-subN/A

                          \[\leadsto x - \frac{\color{blue}{-1 \cdot z + a \cdot x}}{y} \]
                        8. lower-fma.f64N/A

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

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

                        \[\leadsto \color{blue}{x - \frac{\mathsf{fma}\left(-1, z, a \cdot x\right)}{y}} \]
                    3. Recombined 2 regimes into one program.
                    4. Final simplification67.6%

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

                    Alternative 10: 53.6% accurate, 0.7× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{t + \left(\left(\left(z + y \cdot x\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y} \leq \infty:\\ \;\;\;\;\frac{t}{i}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{\mathsf{fma}\left(-1, z, a \cdot x\right)}{y}\\ \end{array} \end{array} \]
                    (FPCore (x y z t a b c i)
                     :precision binary64
                     (if (<=
                          (/
                           (+
                            t
                            (* (+ (* (+ (* (+ z (* y x)) y) 27464.7644705) y) 230661.510616) y))
                           (+ i (* (+ c (* (+ b (* (+ a y) y)) y)) y)))
                          INFINITY)
                       (/ t i)
                       (- x (/ (fma -1.0 z (* a x)) y))))
                    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                    	double tmp;
                    	if (((t + ((((((z + (y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / (i + ((c + ((b + ((a + y) * y)) * y)) * y))) <= ((double) INFINITY)) {
                    		tmp = t / i;
                    	} else {
                    		tmp = x - (fma(-1.0, z, (a * x)) / y);
                    	}
                    	return tmp;
                    }
                    
                    function code(x, y, z, t, a, b, c, i)
                    	tmp = 0.0
                    	if (Float64(Float64(t + Float64(Float64(Float64(Float64(Float64(Float64(z + Float64(y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / Float64(i + Float64(Float64(c + Float64(Float64(b + Float64(Float64(a + y) * y)) * y)) * y))) <= Inf)
                    		tmp = Float64(t / i);
                    	else
                    		tmp = Float64(x - Float64(fma(-1.0, z, Float64(a * x)) / y));
                    	end
                    	return tmp
                    end
                    
                    code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(t + N[(N[(N[(N[(N[(N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] / N[(i + N[(N[(c + N[(N[(b + N[(N[(a + y), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(t / i), $MachinePrecision], N[(x - N[(N[(-1.0 * z + N[(a * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;\frac{t + \left(\left(\left(z + y \cdot x\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y} \leq \infty:\\
                    \;\;\;\;\frac{t}{i}\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;x - \frac{\mathsf{fma}\left(-1, z, a \cdot x\right)}{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.0%

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

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

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

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

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

                      1. Initial program 0.0%

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

                        \[\leadsto \color{blue}{x + -1 \cdot \frac{-1 \cdot z - -1 \cdot \left(a \cdot x\right)}{y}} \]
                      4. Step-by-step derivation
                        1. mul-1-negN/A

                          \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{-1 \cdot z - -1 \cdot \left(a \cdot x\right)}{y}\right)\right)} \]
                        2. unsub-negN/A

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

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

                          \[\leadsto x - \color{blue}{\frac{-1 \cdot z - -1 \cdot \left(a \cdot x\right)}{y}} \]
                        5. associate-*r*N/A

                          \[\leadsto x - \frac{-1 \cdot z - \color{blue}{\left(-1 \cdot a\right) \cdot x}}{y} \]
                        6. mul-1-negN/A

                          \[\leadsto x - \frac{-1 \cdot z - \color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot x}{y} \]
                        7. cancel-sign-subN/A

                          \[\leadsto x - \frac{\color{blue}{-1 \cdot z + a \cdot x}}{y} \]
                        8. lower-fma.f64N/A

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

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

                        \[\leadsto \color{blue}{x - \frac{\mathsf{fma}\left(-1, z, a \cdot x\right)}{y}} \]
                    3. Recombined 2 regimes into one program.
                    4. Final simplification54.7%

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

                    Alternative 11: 45.8% accurate, 0.7× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{t + \left(\left(\left(z + y \cdot x\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y} \leq \infty:\\ \;\;\;\;\frac{t}{i}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{b \cdot x}{y \cdot y}\\ \end{array} \end{array} \]
                    (FPCore (x y z t a b c i)
                     :precision binary64
                     (if (<=
                          (/
                           (+
                            t
                            (* (+ (* (+ (* (+ z (* y x)) y) 27464.7644705) y) 230661.510616) y))
                           (+ i (* (+ c (* (+ b (* (+ a y) y)) y)) y)))
                          INFINITY)
                       (/ t i)
                       (- x (/ (* b x) (* y y)))))
                    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                    	double tmp;
                    	if (((t + ((((((z + (y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / (i + ((c + ((b + ((a + y) * y)) * y)) * y))) <= ((double) INFINITY)) {
                    		tmp = t / i;
                    	} else {
                    		tmp = x - ((b * x) / (y * 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 (((t + ((((((z + (y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / (i + ((c + ((b + ((a + y) * y)) * y)) * y))) <= Double.POSITIVE_INFINITY) {
                    		tmp = t / i;
                    	} else {
                    		tmp = x - ((b * x) / (y * y));
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y, z, t, a, b, c, i):
                    	tmp = 0
                    	if ((t + ((((((z + (y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / (i + ((c + ((b + ((a + y) * y)) * y)) * y))) <= math.inf:
                    		tmp = t / i
                    	else:
                    		tmp = x - ((b * x) / (y * y))
                    	return tmp
                    
                    function code(x, y, z, t, a, b, c, i)
                    	tmp = 0.0
                    	if (Float64(Float64(t + Float64(Float64(Float64(Float64(Float64(Float64(z + Float64(y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / Float64(i + Float64(Float64(c + Float64(Float64(b + Float64(Float64(a + y) * y)) * y)) * y))) <= Inf)
                    		tmp = Float64(t / i);
                    	else
                    		tmp = Float64(x - Float64(Float64(b * x) / Float64(y * y)));
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y, z, t, a, b, c, i)
                    	tmp = 0.0;
                    	if (((t + ((((((z + (y * x)) * y) + 27464.7644705) * y) + 230661.510616) * y)) / (i + ((c + ((b + ((a + y) * y)) * y)) * y))) <= Inf)
                    		tmp = t / i;
                    	else
                    		tmp = x - ((b * x) / (y * y));
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(t + N[(N[(N[(N[(N[(N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] / N[(i + N[(N[(c + N[(N[(b + N[(N[(a + y), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(t / i), $MachinePrecision], N[(x - N[(N[(b * x), $MachinePrecision] / N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;\frac{t + \left(\left(\left(z + y \cdot x\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y} \leq \infty:\\
                    \;\;\;\;\frac{t}{i}\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;x - \frac{b \cdot x}{y \cdot 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.0%

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

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

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

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

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

                      1. Initial program 0.0%

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

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

                          \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{\left(-1 \cdot z + -1 \cdot \frac{\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y}\right)\right)} \]
                        2. unsub-negN/A

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

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

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

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

                        \[\leadsto x - \frac{b \cdot x}{\color{blue}{{y}^{2}}} \]
                      7. Step-by-step derivation
                        1. Applied rewrites46.2%

                          \[\leadsto x - \frac{b \cdot x}{\color{blue}{y \cdot y}} \]
                      8. Recombined 2 regimes into one program.
                      9. Final simplification45.8%

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

                      Alternative 12: 78.6% accurate, 0.9× speedup?

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

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

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

                            \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{\left(-1 \cdot z + -1 \cdot \frac{\frac{54929528941}{2000000} - \left(-1 \cdot \left(a \cdot \left(-1 \cdot z - -1 \cdot \left(a \cdot x\right)\right)\right) + b \cdot x\right)}{y}\right) - -1 \cdot \left(a \cdot x\right)}{y}\right)\right)} \]
                          2. unsub-negN/A

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

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

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

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

                          \[\leadsto x - \frac{-1 \cdot \left(z \cdot \left(1 - \frac{a}{y}\right)\right)}{y} \]
                        7. Step-by-step derivation
                          1. Applied rewrites76.8%

                            \[\leadsto x - \frac{-z \cdot \left(1 - \frac{a}{y}\right)}{y} \]

                          if -1.2e95 < y < -1.54999999999999995e-30 or 5.1e-13 < y < 9.59999999999999986e85

                          1. Initial program 52.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 i 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)}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
                          4. Step-by-step derivation
                            1. associate-/r*N/A

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

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

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

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

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

                            if -1.54999999999999995e-30 < y < 5.1e-13

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

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

                              \[\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} \]
                          8. Recombined 3 regimes into one program.
                          9. Final simplification82.7%

                            \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.2 \cdot 10^{+95}:\\ \;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot z}{y}\\ \mathbf{elif}\;y \leq -1.55 \cdot 10^{-30}:\\ \;\;\;\;\frac{\left(\left(z + y \cdot x\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616}{\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right)}\\ \mathbf{elif}\;y \leq 5.1 \cdot 10^{-13}:\\ \;\;\;\;\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y}\\ \mathbf{elif}\;y \leq 9.6 \cdot 10^{+85}:\\ \;\;\;\;\frac{\left(\left(z + y \cdot x\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616}{\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right)}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{\left(\frac{a}{y} - 1\right) \cdot z}{y}\\ \end{array} \]
                          10. Add Preprocessing

                          Alternative 13: 28.3% accurate, 3.1× speedup?

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

                            1. Initial program 51.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 i 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)}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
                            4. Step-by-step derivation
                              1. associate-/r*N/A

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

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

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

                              \[\leadsto \frac{t}{\color{blue}{c \cdot y}} \]
                            7. Step-by-step derivation
                              1. Applied rewrites28.2%

                                \[\leadsto \frac{t}{\color{blue}{c \cdot y}} \]

                              if -1.72e92 < c

                              1. Initial program 54.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 y around 0

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

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

                                \[\leadsto \color{blue}{\frac{t}{i}} \]
                            8. Recombined 2 regimes into one program.
                            9. Add Preprocessing

                            Alternative 14: 27.9% accurate, 5.9× speedup?

                            \[\begin{array}{l} \\ \frac{t}{i} \end{array} \]
                            (FPCore (x y z t a b c i) :precision binary64 (/ t i))
                            double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                            	return t / 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 = t / i
                            end function
                            
                            public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                            	return t / i;
                            }
                            
                            def code(x, y, z, t, a, b, c, i):
                            	return t / i
                            
                            function code(x, y, z, t, a, b, c, i)
                            	return Float64(t / i)
                            end
                            
                            function tmp = code(x, y, z, t, a, b, c, i)
                            	tmp = t / i;
                            end
                            
                            code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(t / i), $MachinePrecision]
                            
                            \begin{array}{l}
                            
                            \\
                            \frac{t}{i}
                            \end{array}
                            
                            Derivation
                            1. Initial program 54.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 y around 0

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

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

                              \[\leadsto \color{blue}{\frac{t}{i}} \]
                            6. Add Preprocessing

                            Reproduce

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