Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2

Percentage Accurate: 56.1% → 83.2%
Time: 17.1s
Alternatives: 13
Speedup: 2.2×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 13 alternatives:

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

Initial Program: 56.1% accurate, 1.0× speedup?

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

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

Alternative 1: 83.2% accurate, 0.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \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)\\ t_2 := i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)\\ t_3 := \frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t}{t_2}\\ \mathbf{if}\;t_3 \leq -5 \cdot 10^{-319}:\\ \;\;\;\;\frac{t + \left(y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right) + x \cdot {y}^{4}\right)}{t_2}\\ \mathbf{elif}\;t_3 \leq 10^{+267}:\\ \;\;\;\;\frac{1}{\frac{c}{\frac{t_1}{y}} + \left(\frac{i}{t_1} + \frac{y \cdot y}{\frac{t_1}{\mathsf{fma}\left(y, y + a, b\right)}}\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (let* ((t_1 (fma y (fma y (fma y (fma y x z) 27464.7644705) 230661.510616) t))
        (t_2 (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))
        (t_3
         (/
          (+
           (* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616))
           t)
          t_2)))
   (if (<= t_3 -5e-319)
     (/
      (+
       t
       (+
        (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z)))))
        (* x (pow y 4.0))))
      t_2)
     (if (<= t_3 1e+267)
       (/
        1.0
        (+
         (/ c (/ t_1 y))
         (+ (/ i t_1) (/ (* y y) (/ t_1 (fma y (+ y a) b))))))
       (+ (/ z y) (- x (/ a (/ y x))))))))
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, fma(y, x, z), 27464.7644705), 230661.510616), t);
	double t_2 = i + (y * (c + (y * ((y * (y + a)) + b))));
	double t_3 = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / t_2;
	double tmp;
	if (t_3 <= -5e-319) {
		tmp = (t + ((y * (230661.510616 + (y * (27464.7644705 + (y * z))))) + (x * pow(y, 4.0)))) / t_2;
	} else if (t_3 <= 1e+267) {
		tmp = 1.0 / ((c / (t_1 / y)) + ((i / t_1) + ((y * y) / (t_1 / fma(y, (y + a), b)))));
	} else {
		tmp = (z / y) + (x - (a / (y / x)));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i)
	t_1 = fma(y, fma(y, fma(y, fma(y, x, z), 27464.7644705), 230661.510616), t)
	t_2 = Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))))
	t_3 = Float64(Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / t_2)
	tmp = 0.0
	if (t_3 <= -5e-319)
		tmp = Float64(Float64(t + Float64(Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z))))) + Float64(x * (y ^ 4.0)))) / t_2);
	elseif (t_3 <= 1e+267)
		tmp = Float64(1.0 / Float64(Float64(c / Float64(t_1 / y)) + Float64(Float64(i / t_1) + Float64(Float64(y * y) / Float64(t_1 / fma(y, Float64(y + a), b))))));
	else
		tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x))));
	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 * x + z), $MachinePrecision] + 27464.7644705), $MachinePrecision] + 230661.510616), $MachinePrecision] + t), $MachinePrecision]}, Block[{t$95$2 = N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = 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] / t$95$2), $MachinePrecision]}, If[LessEqual[t$95$3, -5e-319], N[(N[(t + N[(N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[Power[y, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], If[LessEqual[t$95$3, 1e+267], N[(1.0 / N[(N[(c / N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision] + N[(N[(i / t$95$1), $MachinePrecision] + N[(N[(y * y), $MachinePrecision] / N[(t$95$1 / N[(y * N[(y + a), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \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)\\
t_2 := i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)\\
t_3 := \frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t}{t_2}\\
\mathbf{if}\;t_3 \leq -5 \cdot 10^{-319}:\\
\;\;\;\;\frac{t + \left(y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right) + x \cdot {y}^{4}\right)}{t_2}\\

\mathbf{elif}\;t_3 \leq 10^{+267}:\\
\;\;\;\;\frac{1}{\frac{c}{\frac{t_1}{y}} + \left(\frac{i}{t_1} + \frac{y \cdot y}{\frac{t_1}{\mathsf{fma}\left(y, y + a, b\right)}}\right)}\\

\mathbf{else}:\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\


\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) 54929528941/2000000) y) 28832688827/125000) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < -4.9999937e-319

    1. Initial program 92.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. Taylor expanded in x around 0 92.3%

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

    if -4.9999937e-319 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) 54929528941/2000000) y) 28832688827/125000) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 9.9999999999999997e266

    1. Initial program 81.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. Step-by-step derivation
      1. clear-num81.6%

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

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

      \[\leadsto \color{blue}{{\left(\frac{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, y + a, b\right), c\right), i\right)}{\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)}\right)}^{-1}} \]
    4. Step-by-step derivation
      1. unpow-181.6%

        \[\leadsto \color{blue}{\frac{1}{\frac{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, y + a, b\right), c\right), i\right)}{\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)}}} \]
      2. fma-udef81.6%

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

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

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

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

      \[\leadsto \frac{1}{\color{blue}{\frac{c \cdot y}{y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + \left(y \cdot x + z\right) \cdot y\right)\right) + t} + \left(\frac{i}{y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + \left(y \cdot x + z\right) \cdot y\right)\right) + t} + \frac{{y}^{2} \cdot \left(\left(y + a\right) \cdot y + b\right)}{y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + \left(y \cdot x + z\right) \cdot y\right)\right) + t}\right)}} \]
    7. Step-by-step derivation
      1. Simplified93.8%

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

      if 9.9999999999999997e266 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) 54929528941/2000000) y) 28832688827/125000) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

      1. Initial program 3.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. Taylor expanded in y around inf 71.5%

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

          \[\leadsto \color{blue}{\frac{z}{y} + \left(x - \frac{a \cdot x}{y}\right)} \]
        2. associate-/l*76.0%

          \[\leadsto \frac{z}{y} + \left(x - \color{blue}{\frac{a}{\frac{y}{x}}}\right) \]
      4. Simplified76.0%

        \[\leadsto \color{blue}{\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)} \]
    8. Recombined 3 regimes into one program.
    9. Final simplification85.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}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)} \leq -5 \cdot 10^{-319}:\\ \;\;\;\;\frac{t + \left(y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right) + x \cdot {y}^{4}\right)}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\ \mathbf{elif}\;\frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)} \leq 10^{+267}:\\ \;\;\;\;\frac{1}{\frac{c}{\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)}{y}} + \left(\frac{i}{\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)} + \frac{y \cdot y}{\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, y + a, b\right)}}\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\ \end{array} \]

    Alternative 2: 85.0% accurate, 0.2× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -7.5 \cdot 10^{+51} \lor \neg \left(y \leq 2.4 \cdot 10^{+59}\right):\\ \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t + \left(y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right) + x \cdot {y}^{4}\right)}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i)
     :precision binary64
     (if (or (<= y -7.5e+51) (not (<= y 2.4e+59)))
       (+ (/ z y) (- x (/ a (/ y x))))
       (/
        (+
         t
         (+
          (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z)))))
          (* x (pow y 4.0))))
        (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))))
    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double tmp;
    	if ((y <= -7.5e+51) || !(y <= 2.4e+59)) {
    		tmp = (z / y) + (x - (a / (y / x)));
    	} else {
    		tmp = (t + ((y * (230661.510616 + (y * (27464.7644705 + (y * z))))) + (x * pow(y, 4.0)))) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
    	}
    	return tmp;
    }
    
    real(8) function code(x, y, z, t, a, b, c, i)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        real(8), intent (in) :: a
        real(8), intent (in) :: b
        real(8), intent (in) :: c
        real(8), intent (in) :: i
        real(8) :: tmp
        if ((y <= (-7.5d+51)) .or. (.not. (y <= 2.4d+59))) then
            tmp = (z / y) + (x - (a / (y / x)))
        else
            tmp = (t + ((y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z))))) + (x * (y ** 4.0d0)))) / (i + (y * (c + (y * ((y * (y + a)) + b)))))
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double tmp;
    	if ((y <= -7.5e+51) || !(y <= 2.4e+59)) {
    		tmp = (z / y) + (x - (a / (y / x)));
    	} else {
    		tmp = (t + ((y * (230661.510616 + (y * (27464.7644705 + (y * z))))) + (x * Math.pow(y, 4.0)))) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b, c, i):
    	tmp = 0
    	if (y <= -7.5e+51) or not (y <= 2.4e+59):
    		tmp = (z / y) + (x - (a / (y / x)))
    	else:
    		tmp = (t + ((y * (230661.510616 + (y * (27464.7644705 + (y * z))))) + (x * math.pow(y, 4.0)))) / (i + (y * (c + (y * ((y * (y + a)) + b)))))
    	return tmp
    
    function code(x, y, z, t, a, b, c, i)
    	tmp = 0.0
    	if ((y <= -7.5e+51) || !(y <= 2.4e+59))
    		tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x))));
    	else
    		tmp = Float64(Float64(t + Float64(Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z))))) + Float64(x * (y ^ 4.0)))) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))))));
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a, b, c, i)
    	tmp = 0.0;
    	if ((y <= -7.5e+51) || ~((y <= 2.4e+59)))
    		tmp = (z / y) + (x - (a / (y / x)));
    	else
    		tmp = (t + ((y * (230661.510616 + (y * (27464.7644705 + (y * z))))) + (x * (y ^ 4.0)))) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -7.5e+51], N[Not[LessEqual[y, 2.4e+59]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[Power[y, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;y \leq -7.5 \cdot 10^{+51} \lor \neg \left(y \leq 2.4 \cdot 10^{+59}\right):\\
    \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{t + \left(y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right) + x \cdot {y}^{4}\right)}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if y < -7.4999999999999999e51 or 2.4000000000000002e59 < y

      1. Initial program 1.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. Taylor expanded in y around inf 69.4%

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

          \[\leadsto \color{blue}{\frac{z}{y} + \left(x - \frac{a \cdot x}{y}\right)} \]
        2. associate-/l*74.4%

          \[\leadsto \frac{z}{y} + \left(x - \color{blue}{\frac{a}{\frac{y}{x}}}\right) \]
      4. Simplified74.4%

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

      if -7.4999999999999999e51 < y < 2.4000000000000002e59

      1. Initial program 93.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. Taylor expanded in x around 0 93.0%

        \[\leadsto \frac{\color{blue}{\left(y \cdot \left(230661.510616 + y \cdot \left(y \cdot z + 27464.7644705\right)\right) + {y}^{4} \cdot x\right)} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    3. Recombined 2 regimes into one program.
    4. Final simplification84.7%

      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -7.5 \cdot 10^{+51} \lor \neg \left(y \leq 2.4 \cdot 10^{+59}\right):\\ \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t + \left(y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right) + x \cdot {y}^{4}\right)}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\ \end{array} \]

    Alternative 3: 85.1% accurate, 0.9× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -7.5 \cdot 10^{+51} \lor \neg \left(y \leq 2.1 \cdot 10^{+58}\right):\\ \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i)
     :precision binary64
     (if (or (<= y -7.5e+51) (not (<= y 2.1e+58)))
       (+ (/ z y) (- x (/ a (/ y x))))
       (/
        (+ (* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616)) t)
        (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))))
    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double tmp;
    	if ((y <= -7.5e+51) || !(y <= 2.1e+58)) {
    		tmp = (z / y) + (x - (a / (y / x)));
    	} else {
    		tmp = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
    	}
    	return tmp;
    }
    
    real(8) function code(x, y, z, t, a, b, c, i)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        real(8), intent (in) :: a
        real(8), intent (in) :: b
        real(8), intent (in) :: c
        real(8), intent (in) :: i
        real(8) :: tmp
        if ((y <= (-7.5d+51)) .or. (.not. (y <= 2.1d+58))) then
            tmp = (z / y) + (x - (a / (y / x)))
        else
            tmp = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705d0)) + 230661.510616d0)) + t) / (i + (y * (c + (y * ((y * (y + a)) + b)))))
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double tmp;
    	if ((y <= -7.5e+51) || !(y <= 2.1e+58)) {
    		tmp = (z / y) + (x - (a / (y / x)));
    	} else {
    		tmp = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b, c, i):
    	tmp = 0
    	if (y <= -7.5e+51) or not (y <= 2.1e+58):
    		tmp = (z / y) + (x - (a / (y / x)))
    	else:
    		tmp = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * ((y * (y + a)) + b)))))
    	return tmp
    
    function code(x, y, z, t, a, b, c, i)
    	tmp = 0.0
    	if ((y <= -7.5e+51) || !(y <= 2.1e+58))
    		tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x))));
    	else
    		tmp = Float64(Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))))));
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a, b, c, i)
    	tmp = 0.0;
    	if ((y <= -7.5e+51) || ~((y <= 2.1e+58)))
    		tmp = (z / y) + (x - (a / (y / x)));
    	else
    		tmp = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -7.5e+51], N[Not[LessEqual[y, 2.1e+58]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;y \leq -7.5 \cdot 10^{+51} \lor \neg \left(y \leq 2.1 \cdot 10^{+58}\right):\\
    \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if y < -7.4999999999999999e51 or 2.10000000000000012e58 < y

      1. Initial program 1.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. Taylor expanded in y around inf 69.4%

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

          \[\leadsto \color{blue}{\frac{z}{y} + \left(x - \frac{a \cdot x}{y}\right)} \]
        2. associate-/l*74.4%

          \[\leadsto \frac{z}{y} + \left(x - \color{blue}{\frac{a}{\frac{y}{x}}}\right) \]
      4. Simplified74.4%

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

      if -7.4999999999999999e51 < y < 2.10000000000000012e58

      1. Initial program 93.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} \]
    3. Recombined 2 regimes into one program.
    4. Final simplification84.6%

      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -7.5 \cdot 10^{+51} \lor \neg \left(y \leq 2.1 \cdot 10^{+58}\right):\\ \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\ \end{array} \]

    Alternative 4: 81.4% accurate, 0.9× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -6 \cdot 10^{+51} \lor \neg \left(y \leq 2.15 \cdot 10^{+60}\right):\\ \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}}\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i)
     :precision binary64
     (if (or (<= y -6e+51) (not (<= y 2.15e+60)))
       (+ (/ z y) (- x (/ a (/ y x))))
       (/
        1.0
        (/
         (+ i (* y (+ c (* y (+ (* y (+ y a)) b)))))
         (+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))))))
    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double tmp;
    	if ((y <= -6e+51) || !(y <= 2.15e+60)) {
    		tmp = (z / y) + (x - (a / (y / x)));
    	} else {
    		tmp = 1.0 / ((i + (y * (c + (y * ((y * (y + a)) + b))))) / (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))));
    	}
    	return tmp;
    }
    
    real(8) function code(x, y, z, t, a, b, c, i)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        real(8), intent (in) :: a
        real(8), intent (in) :: b
        real(8), intent (in) :: c
        real(8), intent (in) :: i
        real(8) :: tmp
        if ((y <= (-6d+51)) .or. (.not. (y <= 2.15d+60))) then
            tmp = (z / y) + (x - (a / (y / x)))
        else
            tmp = 1.0d0 / ((i + (y * (c + (y * ((y * (y + a)) + b))))) / (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))))
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double tmp;
    	if ((y <= -6e+51) || !(y <= 2.15e+60)) {
    		tmp = (z / y) + (x - (a / (y / x)));
    	} else {
    		tmp = 1.0 / ((i + (y * (c + (y * ((y * (y + a)) + b))))) / (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))));
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b, c, i):
    	tmp = 0
    	if (y <= -6e+51) or not (y <= 2.15e+60):
    		tmp = (z / y) + (x - (a / (y / x)))
    	else:
    		tmp = 1.0 / ((i + (y * (c + (y * ((y * (y + a)) + b))))) / (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))))
    	return tmp
    
    function code(x, y, z, t, a, b, c, i)
    	tmp = 0.0
    	if ((y <= -6e+51) || !(y <= 2.15e+60))
    		tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x))));
    	else
    		tmp = Float64(1.0 / Float64(Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))))) / Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z))))))));
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a, b, c, i)
    	tmp = 0.0;
    	if ((y <= -6e+51) || ~((y <= 2.15e+60)))
    		tmp = (z / y) + (x - (a / (y / x)));
    	else
    		tmp = 1.0 / ((i + (y * (c + (y * ((y * (y + a)) + b))))) / (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))));
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -6e+51], N[Not[LessEqual[y, 2.15e+60]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;y \leq -6 \cdot 10^{+51} \lor \neg \left(y \leq 2.15 \cdot 10^{+60}\right):\\
    \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{1}{\frac{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if y < -6e51 or 2.14999999999999986e60 < y

      1. Initial program 1.8%

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

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

          \[\leadsto \color{blue}{\frac{z}{y} + \left(x - \frac{a \cdot x}{y}\right)} \]
        2. associate-/l*75.1%

          \[\leadsto \frac{z}{y} + \left(x - \color{blue}{\frac{a}{\frac{y}{x}}}\right) \]
      4. Simplified75.1%

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

      if -6e51 < y < 2.14999999999999986e60

      1. Initial program 92.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. Step-by-step derivation
        1. clear-num91.7%

          \[\leadsto \color{blue}{\frac{1}{\frac{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}}} \]
        2. inv-pow91.7%

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

        \[\leadsto \color{blue}{{\left(\frac{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, y + a, b\right), c\right), i\right)}{\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)}\right)}^{-1}} \]
      4. Step-by-step derivation
        1. unpow-191.7%

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

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

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

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

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

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -6 \cdot 10^{+51} \lor \neg \left(y \leq 2.15 \cdot 10^{+60}\right):\\ \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}}\\ \end{array} \]

    Alternative 5: 80.9% accurate, 1.1× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -7.2 \cdot 10^{+51} \lor \neg \left(y \leq 3 \cdot 10^{+59}\right):\\ \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t + y \cdot \left(230661.510616 + z \cdot \left(y \cdot y\right)\right)}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i)
     :precision binary64
     (if (or (<= y -7.2e+51) (not (<= y 3e+59)))
       (+ (/ z y) (- x (/ a (/ y x))))
       (/
        (+ t (* y (+ 230661.510616 (* z (* y y)))))
        (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))))
    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double tmp;
    	if ((y <= -7.2e+51) || !(y <= 3e+59)) {
    		tmp = (z / y) + (x - (a / (y / x)));
    	} else {
    		tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
    	}
    	return tmp;
    }
    
    real(8) function code(x, y, z, t, a, b, c, i)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        real(8), intent (in) :: a
        real(8), intent (in) :: b
        real(8), intent (in) :: c
        real(8), intent (in) :: i
        real(8) :: tmp
        if ((y <= (-7.2d+51)) .or. (.not. (y <= 3d+59))) then
            tmp = (z / y) + (x - (a / (y / x)))
        else
            tmp = (t + (y * (230661.510616d0 + (z * (y * y))))) / (i + (y * (c + (y * ((y * (y + a)) + b)))))
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double tmp;
    	if ((y <= -7.2e+51) || !(y <= 3e+59)) {
    		tmp = (z / y) + (x - (a / (y / x)));
    	} else {
    		tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b, c, i):
    	tmp = 0
    	if (y <= -7.2e+51) or not (y <= 3e+59):
    		tmp = (z / y) + (x - (a / (y / x)))
    	else:
    		tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (y * ((y * (y + a)) + b)))))
    	return tmp
    
    function code(x, y, z, t, a, b, c, i)
    	tmp = 0.0
    	if ((y <= -7.2e+51) || !(y <= 3e+59))
    		tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x))));
    	else
    		tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(z * Float64(y * y))))) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))))));
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a, b, c, i)
    	tmp = 0.0;
    	if ((y <= -7.2e+51) || ~((y <= 3e+59)))
    		tmp = (z / y) + (x - (a / (y / x)));
    	else
    		tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -7.2e+51], N[Not[LessEqual[y, 3e+59]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(z * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;y \leq -7.2 \cdot 10^{+51} \lor \neg \left(y \leq 3 \cdot 10^{+59}\right):\\
    \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{t + y \cdot \left(230661.510616 + z \cdot \left(y \cdot y\right)\right)}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if y < -7.20000000000000022e51 or 3e59 < y

      1. Initial program 1.8%

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

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

          \[\leadsto \color{blue}{\frac{z}{y} + \left(x - \frac{a \cdot x}{y}\right)} \]
        2. associate-/l*75.1%

          \[\leadsto \frac{z}{y} + \left(x - \color{blue}{\frac{a}{\frac{y}{x}}}\right) \]
      4. Simplified75.1%

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

      if -7.20000000000000022e51 < y < 3e59

      1. Initial program 92.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. Taylor expanded in z around inf 86.1%

        \[\leadsto \frac{\left(\color{blue}{{y}^{2} \cdot z} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      3. Step-by-step derivation
        1. *-commutative86.1%

          \[\leadsto \frac{\left(\color{blue}{z \cdot {y}^{2}} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
        2. unpow286.1%

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

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -7.2 \cdot 10^{+51} \lor \neg \left(y \leq 3 \cdot 10^{+59}\right):\\ \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t + y \cdot \left(230661.510616 + z \cdot \left(y \cdot y\right)\right)}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\ \end{array} \]

    Alternative 6: 77.2% accurate, 1.1× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -5.8 \cdot 10^{+51} \lor \neg \left(y \leq 3 \cdot 10^{+59}\right):\\ \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i)
     :precision binary64
     (if (or (<= y -5.8e+51) (not (<= y 3e+59)))
       (+ (/ z y) (- x (/ a (/ y x))))
       (/
        (+ t (* y (+ 230661.510616 (* y 27464.7644705))))
        (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))))
    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double tmp;
    	if ((y <= -5.8e+51) || !(y <= 3e+59)) {
    		tmp = (z / y) + (x - (a / (y / x)));
    	} else {
    		tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
    	}
    	return tmp;
    }
    
    real(8) function code(x, y, z, t, a, b, c, i)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        real(8), intent (in) :: a
        real(8), intent (in) :: b
        real(8), intent (in) :: c
        real(8), intent (in) :: i
        real(8) :: tmp
        if ((y <= (-5.8d+51)) .or. (.not. (y <= 3d+59))) then
            tmp = (z / y) + (x - (a / (y / x)))
        else
            tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / (i + (y * (c + (y * ((y * (y + a)) + b)))))
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double tmp;
    	if ((y <= -5.8e+51) || !(y <= 3e+59)) {
    		tmp = (z / y) + (x - (a / (y / x)));
    	} else {
    		tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b, c, i):
    	tmp = 0
    	if (y <= -5.8e+51) or not (y <= 3e+59):
    		tmp = (z / y) + (x - (a / (y / x)))
    	else:
    		tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * ((y * (y + a)) + b)))))
    	return tmp
    
    function code(x, y, z, t, a, b, c, i)
    	tmp = 0.0
    	if ((y <= -5.8e+51) || !(y <= 3e+59))
    		tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x))));
    	else
    		tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))))));
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a, b, c, i)
    	tmp = 0.0;
    	if ((y <= -5.8e+51) || ~((y <= 3e+59)))
    		tmp = (z / y) + (x - (a / (y / x)));
    	else
    		tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -5.8e+51], N[Not[LessEqual[y, 3e+59]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;y \leq -5.8 \cdot 10^{+51} \lor \neg \left(y \leq 3 \cdot 10^{+59}\right):\\
    \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if y < -5.7999999999999997e51 or 3e59 < y

      1. Initial program 1.8%

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

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

          \[\leadsto \color{blue}{\frac{z}{y} + \left(x - \frac{a \cdot x}{y}\right)} \]
        2. associate-/l*75.1%

          \[\leadsto \frac{z}{y} + \left(x - \color{blue}{\frac{a}{\frac{y}{x}}}\right) \]
      4. Simplified75.1%

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

      if -5.7999999999999997e51 < y < 3e59

      1. Initial program 92.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. Taylor expanded in y around 0 83.7%

        \[\leadsto \frac{\left(\color{blue}{27464.7644705 \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} \]
      3. Step-by-step derivation
        1. *-commutative83.7%

          \[\leadsto \frac{\left(\color{blue}{y \cdot 27464.7644705} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      4. Simplified83.7%

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -5.8 \cdot 10^{+51} \lor \neg \left(y \leq 3 \cdot 10^{+59}\right):\\ \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\ \end{array} \]

    Alternative 7: 76.4% accurate, 1.3× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -5.6 \cdot 10^{+51} \lor \neg \left(y \leq 3 \cdot 10^{+59}\right):\\ \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i)
     :precision binary64
     (if (or (<= y -5.6e+51) (not (<= y 3e+59)))
       (+ (/ z y) (- x (/ a (/ y x))))
       (/ (+ t (* y 230661.510616)) (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))))
    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double tmp;
    	if ((y <= -5.6e+51) || !(y <= 3e+59)) {
    		tmp = (z / y) + (x - (a / (y / x)));
    	} else {
    		tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
    	}
    	return tmp;
    }
    
    real(8) function code(x, y, z, t, a, b, c, i)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        real(8), intent (in) :: a
        real(8), intent (in) :: b
        real(8), intent (in) :: c
        real(8), intent (in) :: i
        real(8) :: tmp
        if ((y <= (-5.6d+51)) .or. (.not. (y <= 3d+59))) then
            tmp = (z / y) + (x - (a / (y / x)))
        else
            tmp = (t + (y * 230661.510616d0)) / (i + (y * (c + (y * ((y * (y + a)) + b)))))
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double tmp;
    	if ((y <= -5.6e+51) || !(y <= 3e+59)) {
    		tmp = (z / y) + (x - (a / (y / x)));
    	} else {
    		tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b, c, i):
    	tmp = 0
    	if (y <= -5.6e+51) or not (y <= 3e+59):
    		tmp = (z / y) + (x - (a / (y / x)))
    	else:
    		tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * ((y * (y + a)) + b)))))
    	return tmp
    
    function code(x, y, z, t, a, b, c, i)
    	tmp = 0.0
    	if ((y <= -5.6e+51) || !(y <= 3e+59))
    		tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x))));
    	else
    		tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))))));
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a, b, c, i)
    	tmp = 0.0;
    	if ((y <= -5.6e+51) || ~((y <= 3e+59)))
    		tmp = (z / y) + (x - (a / (y / x)));
    	else
    		tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -5.6e+51], N[Not[LessEqual[y, 3e+59]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;y \leq -5.6 \cdot 10^{+51} \lor \neg \left(y \leq 3 \cdot 10^{+59}\right):\\
    \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if y < -5.60000000000000009e51 or 3e59 < y

      1. Initial program 1.8%

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

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

          \[\leadsto \color{blue}{\frac{z}{y} + \left(x - \frac{a \cdot x}{y}\right)} \]
        2. associate-/l*75.1%

          \[\leadsto \frac{z}{y} + \left(x - \color{blue}{\frac{a}{\frac{y}{x}}}\right) \]
      4. Simplified75.1%

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

      if -5.60000000000000009e51 < y < 3e59

      1. Initial program 92.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. Taylor expanded in y around 0 81.5%

        \[\leadsto \frac{\color{blue}{230661.510616 \cdot y} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      3. Step-by-step derivation
        1. *-commutative81.5%

          \[\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} \]
      4. Simplified81.5%

        \[\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 2 regimes into one program.
    4. Final simplification78.6%

      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -5.6 \cdot 10^{+51} \lor \neg \left(y \leq 3 \cdot 10^{+59}\right):\\ \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\ \end{array} \]

    Alternative 8: 74.4% accurate, 1.7× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -7 \cdot 10^{+51} \lor \neg \left(y \leq 3 \cdot 10^{+59}\right):\\ \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot b\right)}\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i)
     :precision binary64
     (if (or (<= y -7e+51) (not (<= y 3e+59)))
       (+ (/ z y) (- x (/ a (/ y x))))
       (/ (+ t (* y 230661.510616)) (+ i (* y (+ c (* y b)))))))
    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double tmp;
    	if ((y <= -7e+51) || !(y <= 3e+59)) {
    		tmp = (z / y) + (x - (a / (y / x)));
    	} else {
    		tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b))));
    	}
    	return tmp;
    }
    
    real(8) function code(x, y, z, t, a, b, c, i)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        real(8), intent (in) :: a
        real(8), intent (in) :: b
        real(8), intent (in) :: c
        real(8), intent (in) :: i
        real(8) :: tmp
        if ((y <= (-7d+51)) .or. (.not. (y <= 3d+59))) then
            tmp = (z / y) + (x - (a / (y / x)))
        else
            tmp = (t + (y * 230661.510616d0)) / (i + (y * (c + (y * b))))
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double tmp;
    	if ((y <= -7e+51) || !(y <= 3e+59)) {
    		tmp = (z / y) + (x - (a / (y / x)));
    	} else {
    		tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b))));
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b, c, i):
    	tmp = 0
    	if (y <= -7e+51) or not (y <= 3e+59):
    		tmp = (z / y) + (x - (a / (y / x)))
    	else:
    		tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b))))
    	return tmp
    
    function code(x, y, z, t, a, b, c, i)
    	tmp = 0.0
    	if ((y <= -7e+51) || !(y <= 3e+59))
    		tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x))));
    	else
    		tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * Float64(c + Float64(y * b)))));
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a, b, c, i)
    	tmp = 0.0;
    	if ((y <= -7e+51) || ~((y <= 3e+59)))
    		tmp = (z / y) + (x - (a / (y / x)));
    	else
    		tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b))));
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -7e+51], N[Not[LessEqual[y, 3e+59]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;y \leq -7 \cdot 10^{+51} \lor \neg \left(y \leq 3 \cdot 10^{+59}\right):\\
    \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot b\right)}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if y < -7e51 or 3e59 < y

      1. Initial program 1.8%

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

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

          \[\leadsto \color{blue}{\frac{z}{y} + \left(x - \frac{a \cdot x}{y}\right)} \]
        2. associate-/l*75.1%

          \[\leadsto \frac{z}{y} + \left(x - \color{blue}{\frac{a}{\frac{y}{x}}}\right) \]
      4. Simplified75.1%

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

      if -7e51 < y < 3e59

      1. Initial program 92.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. Taylor expanded in y around 0 81.5%

        \[\leadsto \frac{\color{blue}{230661.510616 \cdot y} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      3. Step-by-step derivation
        1. *-commutative81.5%

          \[\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} \]
      4. Simplified81.5%

        \[\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. Taylor expanded in y around 0 79.2%

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -7 \cdot 10^{+51} \lor \neg \left(y \leq 3 \cdot 10^{+59}\right):\\ \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot b\right)}\\ \end{array} \]

    Alternative 9: 64.5% accurate, 1.9× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -4.6 \cdot 10^{+53} \lor \neg \left(y \leq 3 \cdot 10^{+59}\right):\\ \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t + y \cdot 230661.510616}{i + b \cdot \left(y \cdot y\right)}\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i)
     :precision binary64
     (if (or (<= y -4.6e+53) (not (<= y 3e+59)))
       (+ (/ z y) (- x (/ a (/ y x))))
       (/ (+ t (* y 230661.510616)) (+ i (* b (* y y))))))
    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double tmp;
    	if ((y <= -4.6e+53) || !(y <= 3e+59)) {
    		tmp = (z / y) + (x - (a / (y / x)));
    	} else {
    		tmp = (t + (y * 230661.510616)) / (i + (b * (y * y)));
    	}
    	return tmp;
    }
    
    real(8) function code(x, y, z, t, a, b, c, i)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        real(8), intent (in) :: a
        real(8), intent (in) :: b
        real(8), intent (in) :: c
        real(8), intent (in) :: i
        real(8) :: tmp
        if ((y <= (-4.6d+53)) .or. (.not. (y <= 3d+59))) then
            tmp = (z / y) + (x - (a / (y / x)))
        else
            tmp = (t + (y * 230661.510616d0)) / (i + (b * (y * y)))
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double tmp;
    	if ((y <= -4.6e+53) || !(y <= 3e+59)) {
    		tmp = (z / y) + (x - (a / (y / x)));
    	} else {
    		tmp = (t + (y * 230661.510616)) / (i + (b * (y * y)));
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b, c, i):
    	tmp = 0
    	if (y <= -4.6e+53) or not (y <= 3e+59):
    		tmp = (z / y) + (x - (a / (y / x)))
    	else:
    		tmp = (t + (y * 230661.510616)) / (i + (b * (y * y)))
    	return tmp
    
    function code(x, y, z, t, a, b, c, i)
    	tmp = 0.0
    	if ((y <= -4.6e+53) || !(y <= 3e+59))
    		tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x))));
    	else
    		tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(b * Float64(y * y))));
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a, b, c, i)
    	tmp = 0.0;
    	if ((y <= -4.6e+53) || ~((y <= 3e+59)))
    		tmp = (z / y) + (x - (a / (y / x)));
    	else
    		tmp = (t + (y * 230661.510616)) / (i + (b * (y * y)));
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -4.6e+53], N[Not[LessEqual[y, 3e+59]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(b * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;y \leq -4.6 \cdot 10^{+53} \lor \neg \left(y \leq 3 \cdot 10^{+59}\right):\\
    \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{t + y \cdot 230661.510616}{i + b \cdot \left(y \cdot y\right)}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if y < -4.60000000000000039e53 or 3e59 < y

      1. Initial program 1.8%

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

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

          \[\leadsto \color{blue}{\frac{z}{y} + \left(x - \frac{a \cdot x}{y}\right)} \]
        2. associate-/l*76.4%

          \[\leadsto \frac{z}{y} + \left(x - \color{blue}{\frac{a}{\frac{y}{x}}}\right) \]
      4. Simplified76.4%

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

      if -4.60000000000000039e53 < y < 3e59

      1. Initial program 91.1%

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

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

          \[\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} \]
      4. Simplified80.4%

        \[\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. Taylor expanded in b around inf 61.3%

        \[\leadsto \frac{y \cdot 230661.510616 + t}{\color{blue}{{y}^{2} \cdot b} + i} \]
      6. Step-by-step derivation
        1. *-commutative61.3%

          \[\leadsto \frac{y \cdot 230661.510616 + t}{\color{blue}{b \cdot {y}^{2}} + i} \]
        2. unpow261.3%

          \[\leadsto \frac{y \cdot 230661.510616 + t}{b \cdot \color{blue}{\left(y \cdot y\right)} + i} \]
      7. Simplified61.3%

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -4.6 \cdot 10^{+53} \lor \neg \left(y \leq 3 \cdot 10^{+59}\right):\\ \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t + y \cdot 230661.510616}{i + b \cdot \left(y \cdot y\right)}\\ \end{array} \]

    Alternative 10: 61.3% accurate, 2.2× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2 \cdot 10^{-15} \lor \neg \left(y \leq 3 \cdot 10^{+59}\right):\\ \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i)
     :precision binary64
     (if (or (<= y -2e-15) (not (<= y 3e+59)))
       (+ (/ z y) (- x (/ a (/ y x))))
       (/ (+ t (* y 230661.510616)) i)))
    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double tmp;
    	if ((y <= -2e-15) || !(y <= 3e+59)) {
    		tmp = (z / y) + (x - (a / (y / x)));
    	} else {
    		tmp = (t + (y * 230661.510616)) / i;
    	}
    	return tmp;
    }
    
    real(8) function code(x, y, z, t, a, b, c, i)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        real(8), intent (in) :: a
        real(8), intent (in) :: b
        real(8), intent (in) :: c
        real(8), intent (in) :: i
        real(8) :: tmp
        if ((y <= (-2d-15)) .or. (.not. (y <= 3d+59))) then
            tmp = (z / y) + (x - (a / (y / x)))
        else
            tmp = (t + (y * 230661.510616d0)) / i
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double tmp;
    	if ((y <= -2e-15) || !(y <= 3e+59)) {
    		tmp = (z / y) + (x - (a / (y / x)));
    	} else {
    		tmp = (t + (y * 230661.510616)) / i;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b, c, i):
    	tmp = 0
    	if (y <= -2e-15) or not (y <= 3e+59):
    		tmp = (z / y) + (x - (a / (y / x)))
    	else:
    		tmp = (t + (y * 230661.510616)) / i
    	return tmp
    
    function code(x, y, z, t, a, b, c, i)
    	tmp = 0.0
    	if ((y <= -2e-15) || !(y <= 3e+59))
    		tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x))));
    	else
    		tmp = Float64(Float64(t + Float64(y * 230661.510616)) / i);
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a, b, c, i)
    	tmp = 0.0;
    	if ((y <= -2e-15) || ~((y <= 3e+59)))
    		tmp = (z / y) + (x - (a / (y / x)));
    	else
    		tmp = (t + (y * 230661.510616)) / i;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -2e-15], N[Not[LessEqual[y, 3e+59]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;y \leq -2 \cdot 10^{-15} \lor \neg \left(y \leq 3 \cdot 10^{+59}\right):\\
    \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if y < -2.0000000000000002e-15 or 3e59 < y

      1. Initial program 12.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. Taylor expanded in y around inf 61.1%

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

          \[\leadsto \color{blue}{\frac{z}{y} + \left(x - \frac{a \cdot x}{y}\right)} \]
        2. associate-/l*65.4%

          \[\leadsto \frac{z}{y} + \left(x - \color{blue}{\frac{a}{\frac{y}{x}}}\right) \]
      4. Simplified65.4%

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

      if -2.0000000000000002e-15 < y < 3e59

      1. Initial program 94.4%

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

        \[\leadsto \color{blue}{\frac{t}{i} + \left(230661.510616 \cdot \frac{1}{i} - \frac{c \cdot t}{{i}^{2}}\right) \cdot y} \]
      3. Taylor expanded in i around inf 63.5%

        \[\leadsto \color{blue}{\frac{t + 230661.510616 \cdot y}{i}} \]
    3. Recombined 2 regimes into one program.
    4. Final simplification64.5%

      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2 \cdot 10^{-15} \lor \neg \left(y \leq 3 \cdot 10^{+59}\right):\\ \;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\ \end{array} \]

    Alternative 11: 54.7% accurate, 3.0× speedup?

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

      1. Initial program 15.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. Taylor expanded in y around inf 44.4%

        \[\leadsto \color{blue}{x} \]

      if -5.6000000000000004e-13 < y < 9.59999999999999968e-29

      1. Initial program 99.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. Taylor expanded in y around 0 52.7%

        \[\leadsto \color{blue}{\frac{t}{i} + \left(230661.510616 \cdot \frac{1}{i} - \frac{c \cdot t}{{i}^{2}}\right) \cdot y} \]
      3. Taylor expanded in i around inf 71.1%

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -5.6 \cdot 10^{-13}:\\ \;\;\;\;x\\ \mathbf{elif}\;y \leq 9.6 \cdot 10^{-29}:\\ \;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]

    Alternative 12: 51.4% accurate, 4.6× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -5.6 \cdot 10^{-13}:\\ \;\;\;\;x\\ \mathbf{elif}\;y \leq 2.15 \cdot 10^{-26}:\\ \;\;\;\;\frac{t}{i}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i)
     :precision binary64
     (if (<= y -5.6e-13) x (if (<= y 2.15e-26) (/ 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 <= -5.6e-13) {
    		tmp = x;
    	} else if (y <= 2.15e-26) {
    		tmp = t / i;
    	} else {
    		tmp = x;
    	}
    	return tmp;
    }
    
    real(8) function code(x, y, z, t, a, b, c, i)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        real(8), intent (in) :: a
        real(8), intent (in) :: b
        real(8), intent (in) :: c
        real(8), intent (in) :: i
        real(8) :: tmp
        if (y <= (-5.6d-13)) then
            tmp = x
        else if (y <= 2.15d-26) then
            tmp = t / i
        else
            tmp = x
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double tmp;
    	if (y <= -5.6e-13) {
    		tmp = x;
    	} else if (y <= 2.15e-26) {
    		tmp = t / i;
    	} else {
    		tmp = x;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b, c, i):
    	tmp = 0
    	if y <= -5.6e-13:
    		tmp = x
    	elif y <= 2.15e-26:
    		tmp = t / i
    	else:
    		tmp = x
    	return tmp
    
    function code(x, y, z, t, a, b, c, i)
    	tmp = 0.0
    	if (y <= -5.6e-13)
    		tmp = x;
    	elseif (y <= 2.15e-26)
    		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 <= -5.6e-13)
    		tmp = x;
    	elseif (y <= 2.15e-26)
    		tmp = t / i;
    	else
    		tmp = x;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -5.6e-13], x, If[LessEqual[y, 2.15e-26], N[(t / i), $MachinePrecision], x]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;y \leq -5.6 \cdot 10^{-13}:\\
    \;\;\;\;x\\
    
    \mathbf{elif}\;y \leq 2.15 \cdot 10^{-26}:\\
    \;\;\;\;\frac{t}{i}\\
    
    \mathbf{else}:\\
    \;\;\;\;x\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if y < -5.6000000000000004e-13 or 2.14999999999999994e-26 < y

      1. Initial program 15.4%

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

        \[\leadsto \color{blue}{x} \]

      if -5.6000000000000004e-13 < y < 2.14999999999999994e-26

      1. Initial program 99.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. Taylor expanded in y around 0 63.8%

        \[\leadsto \color{blue}{\frac{t}{i}} \]
    3. Recombined 2 regimes into one program.
    4. Final simplification53.0%

      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -5.6 \cdot 10^{-13}:\\ \;\;\;\;x\\ \mathbf{elif}\;y \leq 2.15 \cdot 10^{-26}:\\ \;\;\;\;\frac{t}{i}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]

    Alternative 13: 26.3% accurate, 33.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 52.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. Taylor expanded in y around inf 26.8%

      \[\leadsto \color{blue}{x} \]
    3. Final simplification26.8%

      \[\leadsto x \]

    Reproduce

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