Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2

Percentage Accurate: 55.8% → 82.0%
Time: 12.8s
Alternatives: 12
Speedup: 2.0×

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 12 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: 82.0% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right)\\ t_2 := \frac{z - a \cdot x}{y} + x\\ \mathbf{if}\;y \leq -2 \cdot 10^{+98}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;y \leq -48000000:\\ \;\;\;\;\frac{\frac{\mathsf{fma}\left(\mathsf{fma}\left(t\_1, y, 230661.510616\right), y, t\right)}{y}}{\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right)}\\ \mathbf{elif}\;y \leq 2.1 \cdot 10^{+36}:\\ \;\;\;\;\frac{\mathsf{fma}\left(t\_1 \cdot y, y, 230661.510616 \cdot y\right) + t}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y}\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (let* ((t_1 (fma (fma y x z) y 27464.7644705))
        (t_2 (+ (/ (- z (* a x)) y) x)))
   (if (<= y -2e+98)
     t_2
     (if (<= y -48000000.0)
       (/
        (/ (fma (fma t_1 y 230661.510616) y t) y)
        (fma (fma (+ a y) y b) y c))
       (if (<= y 2.1e+36)
         (/
          (+ (fma (* t_1 y) y (* 230661.510616 y)) t)
          (+ i (* (+ c (* (+ b (* (+ a y) y)) y)) y)))
         t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double t_1 = fma(fma(y, x, z), y, 27464.7644705);
	double t_2 = ((z - (a * x)) / y) + x;
	double tmp;
	if (y <= -2e+98) {
		tmp = t_2;
	} else if (y <= -48000000.0) {
		tmp = (fma(fma(t_1, y, 230661.510616), y, t) / y) / fma(fma((a + y), y, b), y, c);
	} else if (y <= 2.1e+36) {
		tmp = (fma((t_1 * y), y, (230661.510616 * y)) + t) / (i + ((c + ((b + ((a + y) * y)) * y)) * y));
	} else {
		tmp = t_2;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i)
	t_1 = fma(fma(y, x, z), y, 27464.7644705)
	t_2 = Float64(Float64(Float64(z - Float64(a * x)) / y) + x)
	tmp = 0.0
	if (y <= -2e+98)
		tmp = t_2;
	elseif (y <= -48000000.0)
		tmp = Float64(Float64(fma(fma(t_1, y, 230661.510616), y, t) / y) / fma(fma(Float64(a + y), y, b), y, c));
	elseif (y <= 2.1e+36)
		tmp = Float64(Float64(fma(Float64(t_1 * y), y, Float64(230661.510616 * y)) + t) / Float64(i + Float64(Float64(c + Float64(Float64(b + Float64(Float64(a + y) * y)) * y)) * y)));
	else
		tmp = t_2;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(y * x + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(z - N[(a * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[y, -2e+98], t$95$2, If[LessEqual[y, -48000000.0], N[(N[(N[(N[(t$95$1 * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / y), $MachinePrecision] / N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.1e+36], N[(N[(N[(N[(t$95$1 * y), $MachinePrecision] * y + N[(230661.510616 * y), $MachinePrecision]), $MachinePrecision] + 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], t$95$2]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right)\\
t_2 := \frac{z - a \cdot x}{y} + x\\
\mathbf{if}\;y \leq -2 \cdot 10^{+98}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;y \leq -48000000:\\
\;\;\;\;\frac{\frac{\mathsf{fma}\left(\mathsf{fma}\left(t\_1, y, 230661.510616\right), y, t\right)}{y}}{\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right)}\\

\mathbf{elif}\;y \leq 2.1 \cdot 10^{+36}:\\
\;\;\;\;\frac{\mathsf{fma}\left(t\_1 \cdot y, y, 230661.510616 \cdot y\right) + t}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y}\\

\mathbf{else}:\\
\;\;\;\;t\_2\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -2e98 or 2.10000000000000004e36 < y

    1. Initial program 1.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 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 rewrites2.4%

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

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

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

      if -2e98 < y < -4.8e7

      1. Initial program 34.3%

        \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      2. Add Preprocessing
      3. Taylor expanded in 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 rewrites69.3%

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

      if -4.8e7 < y < 2.10000000000000004e36

      1. Initial program 98.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right) \cdot y, y, 230661.510616 \cdot y\right)} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    8. Recombined 3 regimes into one program.
    9. Final simplification90.0%

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

    Alternative 2: 68.4% accurate, 0.3× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\ t_2 := \frac{t + \left(230661.510616 + \left(27464.7644705 + \left(z + y \cdot x\right) \cdot y\right) \cdot y\right) \cdot y}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y}\\ \mathbf{if}\;t\_2 \leq -1 \cdot 10^{-26}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq 10^{-69}:\\ \;\;\;\;\frac{--1}{c \cdot y + i} \cdot \mathsf{fma}\left(\mathsf{fma}\left(27464.7644705, y, 230661.510616\right), y, t\right)\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+289}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\frac{z - a \cdot x}{y} + x\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i)
     :precision binary64
     (let* ((t_1 (/ t (fma (fma (fma (+ a y) y b) y c) y i)))
            (t_2
             (/
              (+
               t
               (* (+ 230661.510616 (* (+ 27464.7644705 (* (+ z (* y x)) y)) y)) y))
              (+ i (* (+ c (* (+ b (* (+ a y) y)) y)) y)))))
       (if (<= t_2 -1e-26)
         t_1
         (if (<= t_2 1e-69)
           (*
            (/ (- -1.0) (+ (* c y) i))
            (fma (fma 27464.7644705 y 230661.510616) y t))
           (if (<= t_2 5e+289) t_1 (+ (/ (- z (* a x)) y) x))))))
    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double t_1 = t / fma(fma(fma((a + y), y, b), y, c), y, i);
    	double t_2 = (t + ((230661.510616 + ((27464.7644705 + ((z + (y * x)) * y)) * y)) * y)) / (i + ((c + ((b + ((a + y) * y)) * y)) * y));
    	double tmp;
    	if (t_2 <= -1e-26) {
    		tmp = t_1;
    	} else if (t_2 <= 1e-69) {
    		tmp = (-(-1.0) / ((c * y) + i)) * fma(fma(27464.7644705, y, 230661.510616), y, t);
    	} else if (t_2 <= 5e+289) {
    		tmp = t_1;
    	} else {
    		tmp = ((z - (a * x)) / y) + x;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b, c, i)
    	t_1 = Float64(t / fma(fma(fma(Float64(a + y), y, b), y, c), y, i))
    	t_2 = Float64(Float64(t + Float64(Float64(230661.510616 + Float64(Float64(27464.7644705 + Float64(Float64(z + Float64(y * x)) * y)) * y)) * y)) / Float64(i + Float64(Float64(c + Float64(Float64(b + Float64(Float64(a + y) * y)) * y)) * y)))
    	tmp = 0.0
    	if (t_2 <= -1e-26)
    		tmp = t_1;
    	elseif (t_2 <= 1e-69)
    		tmp = Float64(Float64(Float64(-(-1.0)) / Float64(Float64(c * y) + i)) * fma(fma(27464.7644705, y, 230661.510616), y, t));
    	elseif (t_2 <= 5e+289)
    		tmp = t_1;
    	else
    		tmp = Float64(Float64(Float64(z - Float64(a * x)) / y) + x);
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(t / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t + N[(N[(230661.510616 + N[(N[(27464.7644705 + N[(N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $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$2, -1e-26], t$95$1, If[LessEqual[t$95$2, 1e-69], N[(N[((--1.0) / N[(N[(c * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision] * N[(N[(27464.7644705 * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 5e+289], t$95$1, N[(N[(N[(z - N[(a * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] + x), $MachinePrecision]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
    t_2 := \frac{t + \left(230661.510616 + \left(27464.7644705 + \left(z + y \cdot x\right) \cdot y\right) \cdot y\right) \cdot y}{i + \left(c + \left(b + \left(a + y\right) \cdot y\right) \cdot y\right) \cdot y}\\
    \mathbf{if}\;t\_2 \leq -1 \cdot 10^{-26}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t\_2 \leq 10^{-69}:\\
    \;\;\;\;\frac{--1}{c \cdot y + i} \cdot \mathsf{fma}\left(\mathsf{fma}\left(27464.7644705, y, 230661.510616\right), y, t\right)\\
    
    \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+289}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{z - a \cdot x}{y} + x\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 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)) < -1e-26 or 9.9999999999999996e-70 < (/.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)) < 5.00000000000000031e289

      1. Initial program 95.6%

        \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      2. Add Preprocessing
      3. Taylor expanded in 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-+.f6477.7

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

        \[\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 -1e-26 < (/.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)) < 9.9999999999999996e-70

      1. Initial program 87.4%

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

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

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

        \[\leadsto \left(-\mathsf{fma}\left(\color{blue}{\frac{28832688827}{125000} + \frac{54929528941}{2000000} \cdot y}, 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)} \]
      6. Step-by-step derivation
        1. +-commutativeN/A

          \[\leadsto \left(-\mathsf{fma}\left(\color{blue}{\frac{54929528941}{2000000} \cdot y + \frac{28832688827}{125000}}, 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)} \]
        2. lower-fma.f6480.6

          \[\leadsto \left(-\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(27464.7644705, 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)} \]
      7. Applied rewrites80.6%

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

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

          \[\leadsto \left(-\mathsf{fma}\left(\mathsf{fma}\left(\frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)\right) \cdot \frac{-1}{\color{blue}{i + c \cdot y}} \]
        2. lower-*.f6478.1

          \[\leadsto \left(-\mathsf{fma}\left(\mathsf{fma}\left(27464.7644705, y, 230661.510616\right), y, t\right)\right) \cdot \frac{-1}{i + \color{blue}{c \cdot y}} \]
      10. Applied rewrites78.1%

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

      if 5.00000000000000031e289 < (/.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 1.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 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 rewrites2.3%

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

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

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

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

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

        1. Initial program 89.5%

          \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
        2. Add Preprocessing
        3. Taylor expanded in t around 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 rewrites90.7%

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

        if +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 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 rewrites0.3%

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

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

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

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

        Alternative 4: 77.6% 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(230661.510616 + \left(27464.7644705 + \left(z + y \cdot x\right) \cdot y\right) \cdot y\right) \cdot y}{t\_1} \leq 5 \cdot 10^{+289}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{t\_1}\\ \mathbf{else}:\\ \;\;\;\;\frac{z - a \cdot x}{y} + x\\ \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
                  (* (+ 230661.510616 (* (+ 27464.7644705 (* (+ z (* y x)) y)) y)) y))
                 t_1)
                5e+289)
             (/ (fma (fma (fma z y 27464.7644705) y 230661.510616) y t) t_1)
             (+ (/ (- z (* a x)) y) x))))
        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 + ((230661.510616 + ((27464.7644705 + ((z + (y * x)) * y)) * y)) * y)) / t_1) <= 5e+289) {
        		tmp = fma(fma(fma(z, y, 27464.7644705), y, 230661.510616), y, t) / t_1;
        	} else {
        		tmp = ((z - (a * x)) / y) + x;
        	}
        	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(230661.510616 + Float64(Float64(27464.7644705 + Float64(Float64(z + Float64(y * x)) * y)) * y)) * y)) / t_1) <= 5e+289)
        		tmp = Float64(fma(fma(fma(z, y, 27464.7644705), y, 230661.510616), y, t) / t_1);
        	else
        		tmp = Float64(Float64(Float64(z - Float64(a * x)) / y) + x);
        	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[(230661.510616 + N[(N[(27464.7644705 + N[(N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], 5e+289], N[(N[(N[(N[(z * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / t$95$1), $MachinePrecision], N[(N[(N[(z - N[(a * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] + x), $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(230661.510616 + \left(27464.7644705 + \left(z + y \cdot x\right) \cdot y\right) \cdot y\right) \cdot y}{t\_1} \leq 5 \cdot 10^{+289}:\\
        \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{t\_1}\\
        
        \mathbf{else}:\\
        \;\;\;\;\frac{z - a \cdot x}{y} + x\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 5.00000000000000031e289

          1. Initial program 91.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 x around 0

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

              \[\leadsto \frac{\color{blue}{\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot z\right)\right) \cdot y} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
            3. 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)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
            4. +-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)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
            5. *-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)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
            6. 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)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
            7. +-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)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
            8. *-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)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
            9. lower-fma.f6487.9

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

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

          if 5.00000000000000031e289 < (/.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 1.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 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 rewrites2.3%

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

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

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

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

          Alternative 5: 77.6% accurate, 0.6× speedup?

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

            1. Initial program 91.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 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 rewrites87.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 5.00000000000000031e289 < (/.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 1.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 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 rewrites2.3%

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

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

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

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

            Alternative 6: 82.2% accurate, 0.9× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \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)\\ t_2 := \frac{z - a \cdot x}{y} + x\\ t_3 := \mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right)\\ \mathbf{if}\;y \leq -2 \cdot 10^{+98}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;y \leq -1050000000:\\ \;\;\;\;\frac{\frac{t\_1}{y}}{t\_3}\\ \mathbf{elif}\;y \leq 2.8 \cdot 10^{+46}:\\ \;\;\;\;\frac{-1}{\mathsf{fma}\left(t\_3, y, i\right)} \cdot \left(-t\_1\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
            (FPCore (x y z t a b c i)
             :precision binary64
             (let* ((t_1 (fma (fma (fma (fma y x z) y 27464.7644705) y 230661.510616) y t))
                    (t_2 (+ (/ (- z (* a x)) y) x))
                    (t_3 (fma (fma (+ a y) y b) y c)))
               (if (<= y -2e+98)
                 t_2
                 (if (<= y -1050000000.0)
                   (/ (/ t_1 y) t_3)
                   (if (<= y 2.8e+46) (* (/ -1.0 (fma t_3 y i)) (- 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 = fma(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616), y, t);
            	double t_2 = ((z - (a * x)) / y) + x;
            	double t_3 = fma(fma((a + y), y, b), y, c);
            	double tmp;
            	if (y <= -2e+98) {
            		tmp = t_2;
            	} else if (y <= -1050000000.0) {
            		tmp = (t_1 / y) / t_3;
            	} else if (y <= 2.8e+46) {
            		tmp = (-1.0 / fma(t_3, y, i)) * -t_1;
            	} else {
            		tmp = t_2;
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a, b, c, i)
            	t_1 = fma(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616), y, t)
            	t_2 = Float64(Float64(Float64(z - Float64(a * x)) / y) + x)
            	t_3 = fma(fma(Float64(a + y), y, b), y, c)
            	tmp = 0.0
            	if (y <= -2e+98)
            		tmp = t_2;
            	elseif (y <= -1050000000.0)
            		tmp = Float64(Float64(t_1 / y) / t_3);
            	elseif (y <= 2.8e+46)
            		tmp = Float64(Float64(-1.0 / fma(t_3, y, i)) * Float64(-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[(y * x + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(z - N[(a * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] + x), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision]}, If[LessEqual[y, -2e+98], t$95$2, If[LessEqual[y, -1050000000.0], N[(N[(t$95$1 / y), $MachinePrecision] / t$95$3), $MachinePrecision], If[LessEqual[y, 2.8e+46], N[(N[(-1.0 / N[(t$95$3 * y + i), $MachinePrecision]), $MachinePrecision] * (-t$95$1)), $MachinePrecision], t$95$2]]]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \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)\\
            t_2 := \frac{z - a \cdot x}{y} + x\\
            t_3 := \mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right)\\
            \mathbf{if}\;y \leq -2 \cdot 10^{+98}:\\
            \;\;\;\;t\_2\\
            
            \mathbf{elif}\;y \leq -1050000000:\\
            \;\;\;\;\frac{\frac{t\_1}{y}}{t\_3}\\
            
            \mathbf{elif}\;y \leq 2.8 \cdot 10^{+46}:\\
            \;\;\;\;\frac{-1}{\mathsf{fma}\left(t\_3, y, i\right)} \cdot \left(-t\_1\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_2\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if y < -2e98 or 2.80000000000000018e46 < y

              1. Initial program 0.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 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 rewrites1.4%

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

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

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

                if -2e98 < y < -1.05e9

                1. Initial program 34.3%

                  \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                2. Add Preprocessing
                3. Taylor expanded in 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 rewrites69.3%

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

                if -1.05e9 < y < 2.80000000000000018e46

                1. Initial program 97.6%

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

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

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

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

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

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

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

              Alternative 7: 78.9% accurate, 0.9× speedup?

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

                1. Initial program 2.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 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 rewrites3.4%

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

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

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

                  if -2e98 < y < -4.6e6

                  1. Initial program 34.3%

                    \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                  2. Add Preprocessing
                  3. Taylor expanded in 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 rewrites69.3%

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

                  if -4.6e6 < y < 2.9000000000000001e28

                  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 x around 0

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

                      \[\leadsto \frac{\color{blue}{\left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot z\right)\right) \cdot y} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                    3. 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)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                    4. +-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)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                    5. *-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)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                    6. 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)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                    7. +-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)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                    8. *-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)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                    9. lower-fma.f6498.0

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

                    \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right), 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 simplification89.1%

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

                Alternative 8: 73.7% accurate, 1.2× speedup?

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

                  1. Initial program 5.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 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 rewrites7.5%

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

                    \[\leadsto \left(x + \frac{z}{y}\right) - \color{blue}{\frac{a \cdot x}{y}} \]
                  7. Step-by-step derivation
                    1. Applied rewrites73.2%

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

                    if -9.5000000000000003e29 < y < 1.85e28

                    1. Initial program 99.0%

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

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

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

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

                      \[\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 2 regimes into one program.
                  9. Final simplification82.9%

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

                  Alternative 9: 66.2% accurate, 1.6× speedup?

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

                    1. Initial program 5.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 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 rewrites7.5%

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

                      \[\leadsto \left(x + \frac{z}{y}\right) - \color{blue}{\frac{a \cdot x}{y}} \]
                    7. Step-by-step derivation
                      1. Applied rewrites73.2%

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

                      if -8.6e30 < y < 1.85e28

                      1. Initial program 99.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \color{blue}{\frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}} \]
                    8. Recombined 2 regimes into one program.
                    9. Final simplification75.3%

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

                    Alternative 10: 57.8% accurate, 2.0× speedup?

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

                      1. Initial program 15.5%

                        \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                      2. Add Preprocessing
                      3. Taylor expanded in t around 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 rewrites17.1%

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

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

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

                        if -2.1499999999999999e-41 < y < 6e4

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{y \cdot x} + z, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i} \]
                          13. lower-fma.f6469.9

                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, z\right)}, y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{i} \]
                        5. Applied rewrites69.9%

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

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

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

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

                        Alternative 11: 31.1% accurate, 3.6× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{y \cdot x} + z, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{i} \]
                          13. lower-fma.f6435.4

                            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, z\right)}, y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{i} \]
                        5. Applied rewrites35.4%

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

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

                            \[\leadsto \frac{t + 230661.510616 \cdot y}{i} \]
                          2. Final simplification34.0%

                            \[\leadsto \frac{230661.510616 \cdot y + t}{i} \]
                          3. Add Preprocessing

                          Alternative 12: 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 55.6%

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

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

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

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

                          Reproduce

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