Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2

Percentage Accurate: 55.5% → 83.5%
Time: 18.7s
Alternatives: 17
Speedup: 1.2×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 17 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.5% 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: 83.5% accurate, 0.3× speedup?

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

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

\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(\frac{y \cdot \left(y \cdot \left(y \cdot y\right)\right)}{t\_2}, x, \frac{t}{t\_2}\right)\\

\mathbf{else}:\\
\;\;\;\;x + \frac{z - x \cdot a}{y}\\


\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)) < 9.99999999999999907e186

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

    if 9.99999999999999907e186 < (/.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 69.9%

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

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

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

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

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

      \[\leadsto \mathsf{fma}\left(y, \color{blue}{x \cdot {y}^{3}}, t\right) \cdot \frac{1}{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, y + a, b\right), c\right), i\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \mathsf{fma}\left(y, \color{blue}{x \cdot {y}^{3}}, t\right) \cdot \frac{1}{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, y + a, b\right), c\right), i\right)} \]
      2. cube-multN/A

        \[\leadsto \mathsf{fma}\left(y, x \cdot \color{blue}{\left(y \cdot \left(y \cdot y\right)\right)}, t\right) \cdot \frac{1}{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, y + a, b\right), c\right), i\right)} \]
      3. unpow2N/A

        \[\leadsto \mathsf{fma}\left(y, x \cdot \left(y \cdot \color{blue}{{y}^{2}}\right), t\right) \cdot \frac{1}{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, y + a, b\right), c\right), i\right)} \]
      4. *-lowering-*.f64N/A

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

        \[\leadsto \mathsf{fma}\left(y, x \cdot \left(y \cdot \color{blue}{\left(y \cdot y\right)}\right), t\right) \cdot \frac{1}{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, y + a, b\right), c\right), i\right)} \]
      6. *-lowering-*.f6469.9

        \[\leadsto \mathsf{fma}\left(y, x \cdot \left(y \cdot \color{blue}{\left(y \cdot y\right)}\right), t\right) \cdot \frac{1}{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, y + a, b\right), c\right), i\right)} \]
    8. Simplified69.9%

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

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

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

        \[\leadsto \color{blue}{\left(\left(x \cdot \left(y \cdot \left(y \cdot y\right)\right)\right) \cdot y\right)} \cdot \frac{1}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} + t \cdot \frac{1}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} \]
      4. associate-*l*N/A

        \[\leadsto \color{blue}{\left(x \cdot \left(\left(y \cdot \left(y \cdot y\right)\right) \cdot y\right)\right)} \cdot \frac{1}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} + t \cdot \frac{1}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} \]
      5. cube-unmultN/A

        \[\leadsto \left(x \cdot \left(\color{blue}{{y}^{3}} \cdot y\right)\right) \cdot \frac{1}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} + t \cdot \frac{1}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} \]
      6. pow-plusN/A

        \[\leadsto \left(x \cdot \color{blue}{{y}^{\left(3 + 1\right)}}\right) \cdot \frac{1}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} + t \cdot \frac{1}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} \]
      7. metadata-evalN/A

        \[\leadsto \left(x \cdot {y}^{\color{blue}{4}}\right) \cdot \frac{1}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} + t \cdot \frac{1}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} \]
      8. div-invN/A

        \[\leadsto \color{blue}{\frac{x \cdot {y}^{4}}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}} + t \cdot \frac{1}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} \]
      9. associate-*r/N/A

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

        \[\leadsto \color{blue}{\frac{{y}^{4}}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} \cdot x} + t \cdot \frac{1}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} \]
      11. div-invN/A

        \[\leadsto \frac{{y}^{4}}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} \cdot x + \color{blue}{\frac{t}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}} \]
    10. Applied egg-rr99.5%

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

      \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
    7. Step-by-step derivation
      1. --lowering--.f64N/A

        \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
      2. *-lowering-*.f6473.4

        \[\leadsto x - \frac{\color{blue}{a \cdot x} - z}{y} \]
    8. Simplified73.4%

      \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification86.7%

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

Alternative 2: 83.1% accurate, 0.4× speedup?

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

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, y + a, b\right), c\right), i\right)\\
\mathbf{if}\;\frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, x, z\right), 27464.7644705\right), 230661.510616\right)}{t\_1}, \frac{t}{t\_1}\right)\\

\mathbf{else}:\\
\;\;\;\;x + \frac{z - x \cdot a}{y}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0

    1. Initial program 91.9%

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

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

      \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
    7. Step-by-step derivation
      1. --lowering--.f64N/A

        \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
      2. *-lowering-*.f6473.4

        \[\leadsto x - \frac{\color{blue}{a \cdot x} - z}{y} \]
    8. Simplified73.4%

      \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification85.5%

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

Alternative 3: 82.6% accurate, 0.5× speedup?

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

\\
\begin{array}{l}
t_1 := \frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;x + \frac{z - x \cdot a}{y}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0

    1. Initial program 91.9%

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

      \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
    7. Step-by-step derivation
      1. --lowering--.f64N/A

        \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
      2. *-lowering-*.f6473.4

        \[\leadsto x - \frac{\color{blue}{a \cdot x} - z}{y} \]
    8. Simplified73.4%

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

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

Alternative 4: 82.5% accurate, 0.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(x, y, z\right), 27464.7644705\right), 230661.510616\right), t\right) \cdot \frac{1}{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, y + a, b\right), c\right), i\right)}\\

\mathbf{else}:\\
\;\;\;\;x + \frac{z - x \cdot a}{y}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0

    1. Initial program 91.9%

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

        \[\leadsto \color{blue}{\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) \cdot \frac{1}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} \]
      2. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{\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) \cdot \frac{1}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} \]
      3. *-commutativeN/A

        \[\leadsto \left(\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\right) \cdot \frac{1}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      4. accelerator-lowering-fma.f64N/A

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

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

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

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

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

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

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

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

      \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
    7. Step-by-step derivation
      1. --lowering--.f64N/A

        \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
      2. *-lowering-*.f6473.4

        \[\leadsto x - \frac{\color{blue}{a \cdot x} - z}{y} \]
    8. Simplified73.4%

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

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

Alternative 5: 77.7% accurate, 0.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} \leq \infty:\\
\;\;\;\;\frac{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(x, y \cdot y, 27464.7644705\right), 230661.510616\right), t\right)}{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, y + a, b\right), c\right), i\right)}\\

\mathbf{else}:\\
\;\;\;\;x + \frac{z - x \cdot a}{y}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0

    1. Initial program 91.9%

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

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

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

      \[\leadsto \frac{\color{blue}{\frac{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(x, y, z\right), 27464.7644705\right) \cdot \left(y \cdot \mathsf{fma}\left(y, \mathsf{fma}\left(x, y, z\right), 27464.7644705\right)\right), -53204732479.65508\right)}{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(x, y, z\right), 27464.7644705\right), -230661.510616\right)}} \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    5. Applied egg-rr91.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

      \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
    7. Step-by-step derivation
      1. --lowering--.f64N/A

        \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
      2. *-lowering-*.f6473.4

        \[\leadsto x - \frac{\color{blue}{a \cdot x} - z}{y} \]
    8. Simplified73.4%

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

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

Alternative 6: 79.4% accurate, 0.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} \leq \infty:\\
\;\;\;\;\frac{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, x, z\right), 27464.7644705\right), 230661.510616\right), t\right)}{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, y, b\right), c\right), i\right)}\\

\mathbf{else}:\\
\;\;\;\;x + \frac{z - x \cdot a}{y}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0

    1. Initial program 91.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, x, z\right), \frac{54929528941}{2000000}\right), \frac{28832688827}{125000}\right), t\right)}{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \color{blue}{y \cdot y} + b, c\right), i\right)} \]
      17. accelerator-lowering-fma.f6484.4

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

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

      \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
    7. Step-by-step derivation
      1. --lowering--.f64N/A

        \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
      2. *-lowering-*.f6473.4

        \[\leadsto x - \frac{\color{blue}{a \cdot x} - z}{y} \]
    8. Simplified73.4%

      \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification80.2%

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

Alternative 7: 65.9% accurate, 0.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} \leq \infty:\\
\;\;\;\;\frac{t}{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, y + a, b\right), c\right), i\right)}\\

\mathbf{else}:\\
\;\;\;\;x + \frac{z - x \cdot a}{y}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0

    1. Initial program 91.9%

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

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

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

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

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

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

        \[\leadsto \frac{t}{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, \color{blue}{y + a}, b\right), c\right), i\right)} \]
      9. +-lowering-+.f6469.7

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

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

      \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
    7. Step-by-step derivation
      1. --lowering--.f64N/A

        \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
      2. *-lowering-*.f6473.4

        \[\leadsto x - \frac{\color{blue}{a \cdot x} - z}{y} \]
    8. Simplified73.4%

      \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification71.1%

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

Alternative 8: 54.1% accurate, 0.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} \leq \infty:\\
\;\;\;\;\frac{t}{i}\\

\mathbf{else}:\\
\;\;\;\;x + \frac{z - x \cdot a}{y}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0

    1. Initial program 91.9%

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

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

        \[\leadsto \color{blue}{\frac{t}{i}} \]
    5. Simplified53.8%

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

      \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
    7. Step-by-step derivation
      1. --lowering--.f64N/A

        \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
      2. *-lowering-*.f6473.4

        \[\leadsto x - \frac{\color{blue}{a \cdot x} - z}{y} \]
    8. Simplified73.4%

      \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification61.3%

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

Alternative 9: 49.6% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i} \leq \infty:\\
\;\;\;\;\frac{t}{i}\\

\mathbf{else}:\\
\;\;\;\;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 91.9%

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

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

        \[\leadsto \color{blue}{\frac{t}{i}} \]
    5. Simplified53.8%

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

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

    1. Initial program 0.0%

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

      \[\leadsto \color{blue}{x} \]
    4. Step-by-step derivation
      1. Simplified56.7%

        \[\leadsto \color{blue}{x} \]
    5. Recombined 2 regimes into one program.
    6. Final simplification54.9%

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

    Alternative 10: 74.6% accurate, 1.1× speedup?

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

      1. Initial program 2.7%

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto x - \frac{\frac{b \cdot x}{y} - \left(z + \color{blue}{\frac{54929528941}{2000000} \cdot \frac{1}{y}}\right)}{y} \]
        6. /-lowering-/.f6490.0

          \[\leadsto x - \frac{\frac{b \cdot x}{y} - \left(z + 27464.7644705 \cdot \color{blue}{\frac{1}{y}}\right)}{y} \]
      8. Simplified90.0%

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

      if -8.1999999999999996e73 < y < -2.2000000000000002 or 3.7000000000000002 < y < 1.01999999999999996e86

      1. Initial program 37.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. accelerator-lowering-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. Simplified44.1%

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

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

          \[\leadsto \color{blue}{\frac{z + \left(\frac{54929528941}{2000000} \cdot \frac{1}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{{y}^{2}} + \left(x \cdot y + \frac{t}{{y}^{3}}\right)\right)\right)}{a}} \]
      8. Simplified52.9%

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

        \[\leadsto \frac{z + \mathsf{fma}\left(\frac{54929528941}{2000000}, \frac{1}{y}, \color{blue}{x \cdot y}\right)}{a} \]
      10. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \frac{z + \mathsf{fma}\left(\frac{54929528941}{2000000}, \frac{1}{y}, \color{blue}{y \cdot x}\right)}{a} \]
        2. *-lowering-*.f6452.9

          \[\leadsto \frac{z + \mathsf{fma}\left(27464.7644705, \frac{1}{y}, \color{blue}{y \cdot x}\right)}{a} \]
      11. Simplified52.9%

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

      if -2.2000000000000002 < y < 3.7000000000000002

      1. Initial program 99.7%

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

        \[\leadsto \frac{\color{blue}{\frac{28832688827}{125000} \cdot y} + t}{\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 \frac{28832688827}{125000}} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
        2. *-lowering-*.f6493.3

          \[\leadsto \frac{\color{blue}{y \cdot 230661.510616} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      5. Simplified93.3%

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

      if 1.01999999999999996e86 < y

      1. Initial program 0.1%

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

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

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

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

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

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

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

        \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
      7. Step-by-step derivation
        1. --lowering--.f64N/A

          \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
        2. *-lowering-*.f6470.9

          \[\leadsto x - \frac{\color{blue}{a \cdot x} - z}{y} \]
      8. Simplified70.9%

        \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
    3. Recombined 4 regimes into one program.
    4. Final simplification83.0%

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

    Alternative 11: 74.9% accurate, 1.1× speedup?

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

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

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

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

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

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

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

        \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
      7. Step-by-step derivation
        1. --lowering--.f64N/A

          \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
        2. *-lowering-*.f6478.8

          \[\leadsto x - \frac{\color{blue}{a \cdot x} - z}{y} \]
      8. Simplified78.8%

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

      if -2.3e72 < y < -1.25 or 3.2999999999999998 < y < 8.4999999999999994e85

      1. Initial program 37.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. accelerator-lowering-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. Simplified44.1%

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

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

          \[\leadsto \color{blue}{\frac{z + \left(\frac{54929528941}{2000000} \cdot \frac{1}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{{y}^{2}} + \left(x \cdot y + \frac{t}{{y}^{3}}\right)\right)\right)}{a}} \]
      8. Simplified52.9%

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

        \[\leadsto \frac{z + \mathsf{fma}\left(\frac{54929528941}{2000000}, \frac{1}{y}, \color{blue}{x \cdot y}\right)}{a} \]
      10. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \frac{z + \mathsf{fma}\left(\frac{54929528941}{2000000}, \frac{1}{y}, \color{blue}{y \cdot x}\right)}{a} \]
        2. *-lowering-*.f6452.9

          \[\leadsto \frac{z + \mathsf{fma}\left(27464.7644705, \frac{1}{y}, \color{blue}{y \cdot x}\right)}{a} \]
      11. Simplified52.9%

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

      if -1.25 < y < 3.2999999999999998

      1. Initial program 99.7%

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

        \[\leadsto \frac{\color{blue}{\frac{28832688827}{125000} \cdot y} + t}{\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 \frac{28832688827}{125000}} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
        2. *-lowering-*.f6493.3

          \[\leadsto \frac{\color{blue}{y \cdot 230661.510616} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      5. Simplified93.3%

        \[\leadsto \frac{\color{blue}{y \cdot 230661.510616} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    3. Recombined 3 regimes into one program.
    4. Final simplification82.9%

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

    Alternative 12: 74.9% accurate, 1.1× speedup?

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

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

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

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

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

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

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

        \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
      7. Step-by-step derivation
        1. --lowering--.f64N/A

          \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
        2. *-lowering-*.f6478.8

          \[\leadsto x - \frac{\color{blue}{a \cdot x} - z}{y} \]
      8. Simplified78.8%

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

      if -1.50000000000000001e72 < y < -1.6499999999999999 or 1.80000000000000004 < y < 2.1500000000000001e86

      1. Initial program 37.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. accelerator-lowering-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. Simplified44.1%

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

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

          \[\leadsto \color{blue}{\frac{z + \left(\frac{54929528941}{2000000} \cdot \frac{1}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{{y}^{2}} + \left(x \cdot y + \frac{t}{{y}^{3}}\right)\right)\right)}{a}} \]
      8. Simplified52.9%

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

        \[\leadsto \frac{z + \mathsf{fma}\left(\frac{54929528941}{2000000}, \frac{1}{y}, \color{blue}{x \cdot y}\right)}{a} \]
      10. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \frac{z + \mathsf{fma}\left(\frac{54929528941}{2000000}, \frac{1}{y}, \color{blue}{y \cdot x}\right)}{a} \]
        2. *-lowering-*.f6452.9

          \[\leadsto \frac{z + \mathsf{fma}\left(27464.7644705, \frac{1}{y}, \color{blue}{y \cdot x}\right)}{a} \]
      11. Simplified52.9%

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

      if -1.6499999999999999 < y < 1.80000000000000004

      1. Initial program 99.7%

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

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

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

          \[\leadsto \frac{\color{blue}{y \cdot \frac{28832688827}{125000}} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
        3. accelerator-lowering-fma.f6493.3

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

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

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

    Alternative 13: 74.8% accurate, 1.1× speedup?

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

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

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

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

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

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

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

        \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
      7. Step-by-step derivation
        1. --lowering--.f64N/A

          \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
        2. *-lowering-*.f6478.8

          \[\leadsto x - \frac{\color{blue}{a \cdot x} - z}{y} \]
      8. Simplified78.8%

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

      if -1.3e74 < y < -2.7000000000000002 or 3.7000000000000002 < y < 1.6e86

      1. Initial program 37.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. accelerator-lowering-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. Simplified44.1%

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

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

          \[\leadsto \color{blue}{\frac{z + \left(\frac{54929528941}{2000000} \cdot \frac{1}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{{y}^{2}} + \left(x \cdot y + \frac{t}{{y}^{3}}\right)\right)\right)}{a}} \]
      8. Simplified52.9%

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

        \[\leadsto \frac{z + \mathsf{fma}\left(\frac{54929528941}{2000000}, \frac{1}{y}, \color{blue}{x \cdot y}\right)}{a} \]
      10. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \frac{z + \mathsf{fma}\left(\frac{54929528941}{2000000}, \frac{1}{y}, \color{blue}{y \cdot x}\right)}{a} \]
        2. *-lowering-*.f6452.9

          \[\leadsto \frac{z + \mathsf{fma}\left(27464.7644705, \frac{1}{y}, \color{blue}{y \cdot x}\right)}{a} \]
      11. Simplified52.9%

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

      if -2.7000000000000002 < y < 3.7000000000000002

      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. Step-by-step derivation
        1. flip-+N/A

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

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

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

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

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

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

          \[\leadsto \left(\color{blue}{y \cdot \frac{28832688827}{125000}} + t\right) \cdot \frac{1}{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, y + a, b\right), c\right), i\right)} \]
        3. accelerator-lowering-fma.f6493.1

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

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

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

    Alternative 14: 67.9% accurate, 1.2× speedup?

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

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

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

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

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

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

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

        \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
      7. Step-by-step derivation
        1. --lowering--.f64N/A

          \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
        2. *-lowering-*.f6478.8

          \[\leadsto x - \frac{\color{blue}{a \cdot x} - z}{y} \]
      8. Simplified78.8%

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

      if -5.5999999999999998e72 < y < -2.7000000000000002 or 2 < y < 9.00000000000000013e85

      1. Initial program 37.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. accelerator-lowering-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. Simplified44.1%

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

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

          \[\leadsto \color{blue}{\frac{z + \left(\frac{54929528941}{2000000} \cdot \frac{1}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{{y}^{2}} + \left(x \cdot y + \frac{t}{{y}^{3}}\right)\right)\right)}{a}} \]
      8. Simplified52.9%

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

        \[\leadsto \frac{z + \mathsf{fma}\left(\frac{54929528941}{2000000}, \frac{1}{y}, \color{blue}{x \cdot y}\right)}{a} \]
      10. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \frac{z + \mathsf{fma}\left(\frac{54929528941}{2000000}, \frac{1}{y}, \color{blue}{y \cdot x}\right)}{a} \]
        2. *-lowering-*.f6452.9

          \[\leadsto \frac{z + \mathsf{fma}\left(27464.7644705, \frac{1}{y}, \color{blue}{y \cdot x}\right)}{a} \]
      11. Simplified52.9%

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

      if -2.7000000000000002 < y < 2

      1. Initial program 99.7%

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

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

          \[\leadsto \frac{\color{blue}{t}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      5. Recombined 3 regimes into one program.
      6. Final simplification76.0%

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

      Alternative 15: 67.9% accurate, 1.2× speedup?

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

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

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

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

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

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

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

          \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
        7. Step-by-step derivation
          1. --lowering--.f64N/A

            \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
          2. *-lowering-*.f6478.8

            \[\leadsto x - \frac{\color{blue}{a \cdot x} - z}{y} \]
        8. Simplified78.8%

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

        if -1.29999999999999991e72 < y < -2.5499999999999998 or 0.35999999999999999 < y < 1.2499999999999999e86

        1. Initial program 37.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. accelerator-lowering-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. Simplified44.1%

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

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

            \[\leadsto \color{blue}{\frac{z + \left(\frac{54929528941}{2000000} \cdot \frac{1}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{{y}^{2}} + \left(x \cdot y + \frac{t}{{y}^{3}}\right)\right)\right)}{a}} \]
        8. Simplified52.9%

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

          \[\leadsto \frac{z + \mathsf{fma}\left(\frac{54929528941}{2000000}, \frac{1}{y}, \color{blue}{x \cdot y}\right)}{a} \]
        10. Step-by-step derivation
          1. *-commutativeN/A

            \[\leadsto \frac{z + \mathsf{fma}\left(\frac{54929528941}{2000000}, \frac{1}{y}, \color{blue}{y \cdot x}\right)}{a} \]
          2. *-lowering-*.f6452.9

            \[\leadsto \frac{z + \mathsf{fma}\left(27464.7644705, \frac{1}{y}, \color{blue}{y \cdot x}\right)}{a} \]
        11. Simplified52.9%

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

        if -2.5499999999999998 < y < 0.35999999999999999

        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 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. /-lowering-/.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. accelerator-lowering-fma.f64N/A

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

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

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

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

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

            \[\leadsto \frac{t}{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, \color{blue}{y + a}, b\right), c\right), i\right)} \]
          9. +-lowering-+.f6479.8

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

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

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

      Alternative 16: 67.4% accurate, 1.2× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \left(\frac{x}{a} + \frac{z}{y \cdot a}\right)\\ t_2 := x + \frac{z - x \cdot a}{y}\\ \mathbf{if}\;y \leq -1.02 \cdot 10^{+73}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;y \leq -0.4:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 1.8:\\ \;\;\;\;\frac{t}{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, y + a, b\right), c\right), i\right)}\\ \mathbf{elif}\;y \leq 4.8 \cdot 10^{+86}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
      (FPCore (x y z t a b c i)
       :precision binary64
       (let* ((t_1 (* y (+ (/ x a) (/ z (* y a))))) (t_2 (+ x (/ (- z (* x a)) y))))
         (if (<= y -1.02e+73)
           t_2
           (if (<= y -0.4)
             t_1
             (if (<= y 1.8)
               (/ t (fma y (fma y (fma y (+ y a) b) c) i))
               (if (<= y 4.8e+86) 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 = y * ((x / a) + (z / (y * a)));
      	double t_2 = x + ((z - (x * a)) / y);
      	double tmp;
      	if (y <= -1.02e+73) {
      		tmp = t_2;
      	} else if (y <= -0.4) {
      		tmp = t_1;
      	} else if (y <= 1.8) {
      		tmp = t / fma(y, fma(y, fma(y, (y + a), b), c), i);
      	} else if (y <= 4.8e+86) {
      		tmp = t_1;
      	} else {
      		tmp = t_2;
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a, b, c, i)
      	t_1 = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(y * a))))
      	t_2 = Float64(x + Float64(Float64(z - Float64(x * a)) / y))
      	tmp = 0.0
      	if (y <= -1.02e+73)
      		tmp = t_2;
      	elseif (y <= -0.4)
      		tmp = t_1;
      	elseif (y <= 1.8)
      		tmp = Float64(t / fma(y, fma(y, fma(y, Float64(y + a), b), c), i));
      	elseif (y <= 4.8e+86)
      		tmp = t_1;
      	else
      		tmp = t_2;
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(z - N[(x * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.02e+73], t$95$2, If[LessEqual[y, -0.4], t$95$1, If[LessEqual[y, 1.8], N[(t / N[(y * N[(y * N[(y * N[(y + a), $MachinePrecision] + b), $MachinePrecision] + c), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.8e+86], t$95$1, t$95$2]]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := y \cdot \left(\frac{x}{a} + \frac{z}{y \cdot a}\right)\\
      t_2 := x + \frac{z - x \cdot a}{y}\\
      \mathbf{if}\;y \leq -1.02 \cdot 10^{+73}:\\
      \;\;\;\;t\_2\\
      
      \mathbf{elif}\;y \leq -0.4:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;y \leq 1.8:\\
      \;\;\;\;\frac{t}{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, y + a, b\right), c\right), i\right)}\\
      
      \mathbf{elif}\;y \leq 4.8 \cdot 10^{+86}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_2\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if y < -1.01999999999999995e73 or 4.8000000000000001e86 < 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 y around -inf

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

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

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

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

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

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

          \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
        7. Step-by-step derivation
          1. --lowering--.f64N/A

            \[\leadsto x - \frac{\color{blue}{a \cdot x - z}}{y} \]
          2. *-lowering-*.f6478.8

            \[\leadsto x - \frac{\color{blue}{a \cdot x} - z}{y} \]
        8. Simplified78.8%

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

        if -1.01999999999999995e73 < y < -0.40000000000000002 or 1.80000000000000004 < y < 4.8000000000000001e86

        1. Initial program 37.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. accelerator-lowering-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. Simplified44.1%

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

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

            \[\leadsto \color{blue}{\frac{z + \left(\frac{54929528941}{2000000} \cdot \frac{1}{y} + \left(\frac{28832688827}{125000} \cdot \frac{1}{{y}^{2}} + \left(x \cdot y + \frac{t}{{y}^{3}}\right)\right)\right)}{a}} \]
        8. Simplified52.9%

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

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

            \[\leadsto \color{blue}{y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)} \]
          2. +-lowering-+.f64N/A

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

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

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

            \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{y \cdot a}}\right) \]
          6. *-lowering-*.f6452.6

            \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{y \cdot a}}\right) \]
        11. Simplified52.6%

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

        if -0.40000000000000002 < y < 1.80000000000000004

        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 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. /-lowering-/.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. accelerator-lowering-fma.f64N/A

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

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

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

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

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

            \[\leadsto \frac{t}{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, \color{blue}{y + a}, b\right), c\right), i\right)} \]
          9. +-lowering-+.f6479.8

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

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

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

      Alternative 17: 25.9% accurate, 71.0× speedup?

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

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

        \[\leadsto \color{blue}{x} \]
      4. Step-by-step derivation
        1. Simplified24.2%

          \[\leadsto \color{blue}{x} \]
        2. Add Preprocessing

        Reproduce

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