Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2

Percentage Accurate: 55.5% → 80.8%
Time: 24.9s
Alternatives: 12
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 12 alternatives:

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

Initial Program: 55.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: 80.8% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\\ t_2 := x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\ \mathbf{if}\;y \leq -2.25 \cdot 10^{+94}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq -1.06 \cdot 10^{-10}:\\ \;\;\;\;\frac{230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(x \cdot y + z\right)\right)}{t_1}\\ \mathbf{elif}\;y \leq 8.8 \cdot 10^{+67}:\\ \;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i + y \cdot 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 (+ (* y (+ y a)) b)) c))
        (t_2 (+ x (- (/ z y) (* x (/ a y))))))
   (if (<= y -2.25e+94)
     t_2
     (if (<= y -1.06e-10)
       (/ (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ (* x y) z))))) t_1)
       (if (<= y 8.8e+67)
         (/
          (+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
          (+ i (* y 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 * ((y * (y + a)) + b)) + c;
	double t_2 = x + ((z / y) - (x * (a / y)));
	double tmp;
	if (y <= -2.25e+94) {
		tmp = t_2;
	} else if (y <= -1.06e-10) {
		tmp = (230661.510616 + (y * (27464.7644705 + (y * ((x * y) + z))))) / t_1;
	} else if (y <= 8.8e+67) {
		tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * t_1));
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = (y * ((y * (y + a)) + b)) + c
    t_2 = x + ((z / y) - (x * (a / y)))
    if (y <= (-2.25d+94)) then
        tmp = t_2
    else if (y <= (-1.06d-10)) then
        tmp = (230661.510616d0 + (y * (27464.7644705d0 + (y * ((x * y) + z))))) / t_1
    else if (y <= 8.8d+67) then
        tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / (i + (y * t_1))
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double t_1 = (y * ((y * (y + a)) + b)) + c;
	double t_2 = x + ((z / y) - (x * (a / y)));
	double tmp;
	if (y <= -2.25e+94) {
		tmp = t_2;
	} else if (y <= -1.06e-10) {
		tmp = (230661.510616 + (y * (27464.7644705 + (y * ((x * y) + z))))) / t_1;
	} else if (y <= 8.8e+67) {
		tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * t_1));
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i):
	t_1 = (y * ((y * (y + a)) + b)) + c
	t_2 = x + ((z / y) - (x * (a / y)))
	tmp = 0
	if y <= -2.25e+94:
		tmp = t_2
	elif y <= -1.06e-10:
		tmp = (230661.510616 + (y * (27464.7644705 + (y * ((x * y) + z))))) / t_1
	elif y <= 8.8e+67:
		tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * t_1))
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i)
	t_1 = Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)
	t_2 = Float64(x + Float64(Float64(z / y) - Float64(x * Float64(a / y))))
	tmp = 0.0
	if (y <= -2.25e+94)
		tmp = t_2;
	elseif (y <= -1.06e-10)
		tmp = Float64(Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(Float64(x * y) + z))))) / t_1);
	elseif (y <= 8.8e+67)
		tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / Float64(i + Float64(y * t_1)));
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i)
	t_1 = (y * ((y * (y + a)) + b)) + c;
	t_2 = x + ((z / y) - (x * (a / y)));
	tmp = 0.0;
	if (y <= -2.25e+94)
		tmp = t_2;
	elseif (y <= -1.06e-10)
		tmp = (230661.510616 + (y * (27464.7644705 + (y * ((x * y) + z))))) / t_1;
	elseif (y <= 8.8e+67)
		tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * t_1));
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(x * N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.25e+94], t$95$2, If[LessEqual[y, -1.06e-10], N[(N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[y, 8.8e+67], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\\
t_2 := x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\
\mathbf{if}\;y \leq -2.25 \cdot 10^{+94}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;y \leq -1.06 \cdot 10^{-10}:\\
\;\;\;\;\frac{230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(x \cdot y + z\right)\right)}{t_1}\\

\mathbf{elif}\;y \leq 8.8 \cdot 10^{+67}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i + y \cdot t_1}\\

\mathbf{else}:\\
\;\;\;\;t_2\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -2.24999999999999986e94 or 8.8e67 < y

    1. Initial program 0.3%

      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    2. Step-by-step derivation
      1. add-cube-cbrt0.3%

        \[\leadsto \frac{\left(\color{blue}{\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y} \cdot \sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right) \cdot \sqrt[3]{\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. pow30.3%

        \[\leadsto \frac{\left(\color{blue}{{\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right)}^{3}} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      3. *-commutative0.3%

        \[\leadsto \frac{\left({\left(\sqrt[3]{\color{blue}{y \cdot \left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right)}}\right)}^{3} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      4. *-commutative0.3%

        \[\leadsto \frac{\left({\left(\sqrt[3]{y \cdot \left(\color{blue}{y \cdot \left(x \cdot y + z\right)} + 27464.7644705\right)}\right)}^{3} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      5. fma-def0.3%

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

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

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

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

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

        \[\leadsto x + \left(\frac{z}{y} - \color{blue}{\frac{a}{\frac{y}{x}}}\right) \]
      3. associate-/r/77.7%

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

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

    if -2.24999999999999986e94 < y < -1.06e-10

    1. Initial program 36.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 i around 0 31.5%

      \[\leadsto \color{blue}{\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
    3. Taylor expanded in t around 0 63.1%

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

    if -1.06e-10 < y < 8.8e67

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

      \[\leadsto \frac{\left(\color{blue}{y \cdot \left(27464.7644705 + y \cdot z\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 3 regimes into one program.
  4. Final simplification83.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.25 \cdot 10^{+94}:\\ \;\;\;\;x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\ \mathbf{elif}\;y \leq -1.06 \cdot 10^{-10}:\\ \;\;\;\;\frac{230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(x \cdot y + z\right)\right)}{y \cdot \left(y \cdot \left(y + a\right) + b\right) + c}\\ \mathbf{elif}\;y \leq 8.8 \cdot 10^{+67}:\\ \;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)}\\ \mathbf{else}:\\ \;\;\;\;x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\ \end{array} \]

Alternative 2: 83.6% accurate, 0.5× speedup?

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

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

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


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

    1. Initial program 88.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} \]

    if +inf.0 < (/.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 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. Step-by-step derivation
      1. add-cube-cbrt0.0%

        \[\leadsto \frac{\left(\color{blue}{\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y} \cdot \sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right) \cdot \sqrt[3]{\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. pow30.0%

        \[\leadsto \frac{\left(\color{blue}{{\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right)}^{3}} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      3. *-commutative0.0%

        \[\leadsto \frac{\left({\left(\sqrt[3]{\color{blue}{y \cdot \left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right)}}\right)}^{3} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      4. *-commutative0.0%

        \[\leadsto \frac{\left({\left(\sqrt[3]{y \cdot \left(\color{blue}{y \cdot \left(x \cdot y + z\right)} + 27464.7644705\right)}\right)}^{3} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      5. fma-def0.0%

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

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

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

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

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

        \[\leadsto x + \left(\frac{z}{y} - \color{blue}{\frac{a}{\frac{y}{x}}}\right) \]
      3. associate-/r/71.2%

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

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

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

Alternative 3: 78.4% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\\ t_2 := \frac{230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(x \cdot y + z\right)\right)}{t_1}\\ t_3 := x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\ \mathbf{if}\;y \leq -5.5 \cdot 10^{+94}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;y \leq -8 \cdot 10^{-15}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq 1.3 \cdot 10^{-14}:\\ \;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot t_1}\\ \mathbf{elif}\;y \leq 6.2 \cdot 10^{+62}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (let* ((t_1 (+ (* y (+ (* y (+ y a)) b)) c))
        (t_2
         (/ (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ (* x y) z))))) t_1))
        (t_3 (+ x (- (/ z y) (* x (/ a y))))))
   (if (<= y -5.5e+94)
     t_3
     (if (<= y -8e-15)
       t_2
       (if (<= y 1.3e-14)
         (/ (+ t (* y 230661.510616)) (+ i (* y t_1)))
         (if (<= y 6.2e+62) t_2 t_3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double t_1 = (y * ((y * (y + a)) + b)) + c;
	double t_2 = (230661.510616 + (y * (27464.7644705 + (y * ((x * y) + z))))) / t_1;
	double t_3 = x + ((z / y) - (x * (a / y)));
	double tmp;
	if (y <= -5.5e+94) {
		tmp = t_3;
	} else if (y <= -8e-15) {
		tmp = t_2;
	} else if (y <= 1.3e-14) {
		tmp = (t + (y * 230661.510616)) / (i + (y * t_1));
	} else if (y <= 6.2e+62) {
		tmp = t_2;
	} else {
		tmp = t_3;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: tmp
    t_1 = (y * ((y * (y + a)) + b)) + c
    t_2 = (230661.510616d0 + (y * (27464.7644705d0 + (y * ((x * y) + z))))) / t_1
    t_3 = x + ((z / y) - (x * (a / y)))
    if (y <= (-5.5d+94)) then
        tmp = t_3
    else if (y <= (-8d-15)) then
        tmp = t_2
    else if (y <= 1.3d-14) then
        tmp = (t + (y * 230661.510616d0)) / (i + (y * t_1))
    else if (y <= 6.2d+62) then
        tmp = t_2
    else
        tmp = t_3
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double t_1 = (y * ((y * (y + a)) + b)) + c;
	double t_2 = (230661.510616 + (y * (27464.7644705 + (y * ((x * y) + z))))) / t_1;
	double t_3 = x + ((z / y) - (x * (a / y)));
	double tmp;
	if (y <= -5.5e+94) {
		tmp = t_3;
	} else if (y <= -8e-15) {
		tmp = t_2;
	} else if (y <= 1.3e-14) {
		tmp = (t + (y * 230661.510616)) / (i + (y * t_1));
	} else if (y <= 6.2e+62) {
		tmp = t_2;
	} else {
		tmp = t_3;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i):
	t_1 = (y * ((y * (y + a)) + b)) + c
	t_2 = (230661.510616 + (y * (27464.7644705 + (y * ((x * y) + z))))) / t_1
	t_3 = x + ((z / y) - (x * (a / y)))
	tmp = 0
	if y <= -5.5e+94:
		tmp = t_3
	elif y <= -8e-15:
		tmp = t_2
	elif y <= 1.3e-14:
		tmp = (t + (y * 230661.510616)) / (i + (y * t_1))
	elif y <= 6.2e+62:
		tmp = t_2
	else:
		tmp = t_3
	return tmp
function code(x, y, z, t, a, b, c, i)
	t_1 = Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)
	t_2 = Float64(Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(Float64(x * y) + z))))) / t_1)
	t_3 = Float64(x + Float64(Float64(z / y) - Float64(x * Float64(a / y))))
	tmp = 0.0
	if (y <= -5.5e+94)
		tmp = t_3;
	elseif (y <= -8e-15)
		tmp = t_2;
	elseif (y <= 1.3e-14)
		tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * t_1)));
	elseif (y <= 6.2e+62)
		tmp = t_2;
	else
		tmp = t_3;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i)
	t_1 = (y * ((y * (y + a)) + b)) + c;
	t_2 = (230661.510616 + (y * (27464.7644705 + (y * ((x * y) + z))))) / t_1;
	t_3 = x + ((z / y) - (x * (a / y)));
	tmp = 0.0;
	if (y <= -5.5e+94)
		tmp = t_3;
	elseif (y <= -8e-15)
		tmp = t_2;
	elseif (y <= 1.3e-14)
		tmp = (t + (y * 230661.510616)) / (i + (y * t_1));
	elseif (y <= 6.2e+62)
		tmp = t_2;
	else
		tmp = t_3;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]}, Block[{t$95$2 = N[(N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(x * N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.5e+94], t$95$3, If[LessEqual[y, -8e-15], t$95$2, If[LessEqual[y, 1.3e-14], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.2e+62], t$95$2, t$95$3]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\\
t_2 := \frac{230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(x \cdot y + z\right)\right)}{t_1}\\
t_3 := x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\
\mathbf{if}\;y \leq -5.5 \cdot 10^{+94}:\\
\;\;\;\;t_3\\

\mathbf{elif}\;y \leq -8 \cdot 10^{-15}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;y \leq 1.3 \cdot 10^{-14}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot t_1}\\

\mathbf{elif}\;y \leq 6.2 \cdot 10^{+62}:\\
\;\;\;\;t_2\\

\mathbf{else}:\\
\;\;\;\;t_3\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -5.4999999999999997e94 or 6.20000000000000029e62 < y

    1. Initial program 1.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. add-cube-cbrt1.3%

        \[\leadsto \frac{\left(\color{blue}{\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y} \cdot \sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right) \cdot \sqrt[3]{\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. pow31.3%

        \[\leadsto \frac{\left(\color{blue}{{\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right)}^{3}} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      3. *-commutative1.3%

        \[\leadsto \frac{\left({\left(\sqrt[3]{\color{blue}{y \cdot \left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right)}}\right)}^{3} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      4. *-commutative1.3%

        \[\leadsto \frac{\left({\left(\sqrt[3]{y \cdot \left(\color{blue}{y \cdot \left(x \cdot y + z\right)} + 27464.7644705\right)}\right)}^{3} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      5. fma-def1.3%

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

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

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

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

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

        \[\leadsto x + \left(\frac{z}{y} - \color{blue}{\frac{a}{\frac{y}{x}}}\right) \]
      3. associate-/r/76.9%

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

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

    if -5.4999999999999997e94 < y < -8.0000000000000006e-15 or 1.29999999999999998e-14 < y < 6.20000000000000029e62

    1. Initial program 41.5%

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

      \[\leadsto \color{blue}{\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
    3. Taylor expanded in t around 0 56.7%

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

    if -8.0000000000000006e-15 < y < 1.29999999999999998e-14

    1. Initial program 99.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 0 95.6%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -5.5 \cdot 10^{+94}:\\ \;\;\;\;x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\ \mathbf{elif}\;y \leq -8 \cdot 10^{-15}:\\ \;\;\;\;\frac{230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(x \cdot y + z\right)\right)}{y \cdot \left(y \cdot \left(y + a\right) + b\right) + c}\\ \mathbf{elif}\;y \leq 1.3 \cdot 10^{-14}:\\ \;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)}\\ \mathbf{elif}\;y \leq 6.2 \cdot 10^{+62}:\\ \;\;\;\;\frac{230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(x \cdot y + z\right)\right)}{y \cdot \left(y \cdot \left(y + a\right) + b\right) + c}\\ \mathbf{else}:\\ \;\;\;\;x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\ \end{array} \]

Alternative 4: 71.1% accurate, 1.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\ \mathbf{if}\;y \leq -2.9 \cdot 10^{-9}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq -2.6 \cdot 10^{-105}:\\ \;\;\;\;\frac{1}{\frac{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)}{t}}\\ \mathbf{elif}\;y \leq 4.5 \cdot 10^{+67}:\\ \;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i + y \cdot c}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (let* ((t_1 (+ x (- (/ z y) (* x (/ a y))))))
   (if (<= y -2.9e-9)
     t_1
     (if (<= y -2.6e-105)
       (/ 1.0 (/ (+ i (* y (+ (* y (+ (* y (+ y a)) b)) c))) t))
       (if (<= y 4.5e+67)
         (/
          (+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
          (+ i (* y c)))
         t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double t_1 = x + ((z / y) - (x * (a / y)));
	double tmp;
	if (y <= -2.9e-9) {
		tmp = t_1;
	} else if (y <= -2.6e-105) {
		tmp = 1.0 / ((i + (y * ((y * ((y * (y + a)) + b)) + c))) / t);
	} else if (y <= 4.5e+67) {
		tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * c));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8) :: t_1
    real(8) :: tmp
    t_1 = x + ((z / y) - (x * (a / y)))
    if (y <= (-2.9d-9)) then
        tmp = t_1
    else if (y <= (-2.6d-105)) then
        tmp = 1.0d0 / ((i + (y * ((y * ((y * (y + a)) + b)) + c))) / t)
    else if (y <= 4.5d+67) then
        tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / (i + (y * c))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double t_1 = x + ((z / y) - (x * (a / y)));
	double tmp;
	if (y <= -2.9e-9) {
		tmp = t_1;
	} else if (y <= -2.6e-105) {
		tmp = 1.0 / ((i + (y * ((y * ((y * (y + a)) + b)) + c))) / t);
	} else if (y <= 4.5e+67) {
		tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * c));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i):
	t_1 = x + ((z / y) - (x * (a / y)))
	tmp = 0
	if y <= -2.9e-9:
		tmp = t_1
	elif y <= -2.6e-105:
		tmp = 1.0 / ((i + (y * ((y * ((y * (y + a)) + b)) + c))) / t)
	elif y <= 4.5e+67:
		tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * c))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i)
	t_1 = Float64(x + Float64(Float64(z / y) - Float64(x * Float64(a / y))))
	tmp = 0.0
	if (y <= -2.9e-9)
		tmp = t_1;
	elseif (y <= -2.6e-105)
		tmp = Float64(1.0 / Float64(Float64(i + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c))) / t));
	elseif (y <= 4.5e+67)
		tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / Float64(i + Float64(y * c)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i)
	t_1 = x + ((z / y) - (x * (a / y)));
	tmp = 0.0;
	if (y <= -2.9e-9)
		tmp = t_1;
	elseif (y <= -2.6e-105)
		tmp = 1.0 / ((i + (y * ((y * ((y * (y + a)) + b)) + c))) / t);
	elseif (y <= 4.5e+67)
		tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * c));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(x * N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.9e-9], t$95$1, If[LessEqual[y, -2.6e-105], N[(1.0 / N[(N[(i + N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.5e+67], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\
\mathbf{if}\;y \leq -2.9 \cdot 10^{-9}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;y \leq -2.6 \cdot 10^{-105}:\\
\;\;\;\;\frac{1}{\frac{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)}{t}}\\

\mathbf{elif}\;y \leq 4.5 \cdot 10^{+67}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i + y \cdot c}\\

\mathbf{else}:\\
\;\;\;\;t_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -2.89999999999999991e-9 or 4.4999999999999998e67 < y

    1. Initial program 6.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. Step-by-step derivation
      1. add-cube-cbrt6.2%

        \[\leadsto \frac{\left(\color{blue}{\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y} \cdot \sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right) \cdot \sqrt[3]{\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. pow36.2%

        \[\leadsto \frac{\left(\color{blue}{{\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right)}^{3}} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      3. *-commutative6.2%

        \[\leadsto \frac{\left({\left(\sqrt[3]{\color{blue}{y \cdot \left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right)}}\right)}^{3} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      4. *-commutative6.2%

        \[\leadsto \frac{\left({\left(\sqrt[3]{y \cdot \left(\color{blue}{y \cdot \left(x \cdot y + z\right)} + 27464.7644705\right)}\right)}^{3} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      5. fma-def6.2%

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

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

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

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

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

        \[\leadsto x + \left(\frac{z}{y} - \color{blue}{\frac{a}{\frac{y}{x}}}\right) \]
      3. associate-/r/67.7%

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

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

    if -2.89999999999999991e-9 < y < -2.5999999999999999e-105

    1. Initial program 99.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-num97.3%

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

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

      \[\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-197.3%

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

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

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

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

      \[\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 t around inf 58.8%

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

    if -2.5999999999999999e-105 < y < 4.4999999999999998e67

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

      \[\leadsto \frac{\left(\color{blue}{y \cdot \left(27464.7644705 + y \cdot z\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. Taylor expanded in y around 0 79.8%

      \[\leadsto \frac{\left(y \cdot \left(27464.7644705 + y \cdot z\right) + 230661.510616\right) \cdot y + t}{\color{blue}{c \cdot y} + i} \]
    4. Step-by-step derivation
      1. *-commutative79.8%

        \[\leadsto \frac{\left(y \cdot \left(27464.7644705 + y \cdot z\right) + 230661.510616\right) \cdot y + t}{\color{blue}{y \cdot c} + i} \]
    5. Simplified79.8%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.9 \cdot 10^{-9}:\\ \;\;\;\;x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\ \mathbf{elif}\;y \leq -2.6 \cdot 10^{-105}:\\ \;\;\;\;\frac{1}{\frac{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)}{t}}\\ \mathbf{elif}\;y \leq 4.5 \cdot 10^{+67}:\\ \;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i + y \cdot c}\\ \mathbf{else}:\\ \;\;\;\;x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\ \end{array} \]

Alternative 5: 74.8% accurate, 1.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2.9 \cdot 10^{-9} \lor \neg \left(y \leq 4.5 \cdot 10^{+67}\right):\\ \;\;\;\;x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)}\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (if (or (<= y -2.9e-9) (not (<= y 4.5e+67)))
   (+ x (- (/ z y) (* x (/ a y))))
   (/ (+ t (* y 230661.510616)) (+ i (* y (+ (* y (+ (* y (+ y a)) b)) c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double tmp;
	if ((y <= -2.9e-9) || !(y <= 4.5e+67)) {
		tmp = x + ((z / y) - (x * (a / y)));
	} else {
		tmp = (t + (y * 230661.510616)) / (i + (y * ((y * ((y * (y + a)) + b)) + c)));
	}
	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 <= (-2.9d-9)) .or. (.not. (y <= 4.5d+67))) then
        tmp = x + ((z / y) - (x * (a / y)))
    else
        tmp = (t + (y * 230661.510616d0)) / (i + (y * ((y * ((y * (y + a)) + b)) + c)))
    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 <= -2.9e-9) || !(y <= 4.5e+67)) {
		tmp = x + ((z / y) - (x * (a / y)));
	} else {
		tmp = (t + (y * 230661.510616)) / (i + (y * ((y * ((y * (y + a)) + b)) + c)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i):
	tmp = 0
	if (y <= -2.9e-9) or not (y <= 4.5e+67):
		tmp = x + ((z / y) - (x * (a / y)))
	else:
		tmp = (t + (y * 230661.510616)) / (i + (y * ((y * ((y * (y + a)) + b)) + c)))
	return tmp
function code(x, y, z, t, a, b, c, i)
	tmp = 0.0
	if ((y <= -2.9e-9) || !(y <= 4.5e+67))
		tmp = Float64(x + Float64(Float64(z / y) - Float64(x * Float64(a / y))));
	else
		tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i)
	tmp = 0.0;
	if ((y <= -2.9e-9) || ~((y <= 4.5e+67)))
		tmp = x + ((z / y) - (x * (a / y)));
	else
		tmp = (t + (y * 230661.510616)) / (i + (y * ((y * ((y * (y + a)) + b)) + c)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -2.9e-9], N[Not[LessEqual[y, 4.5e+67]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(x * N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.9 \cdot 10^{-9} \lor \neg \left(y \leq 4.5 \cdot 10^{+67}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -2.89999999999999991e-9 or 4.4999999999999998e67 < y

    1. Initial program 6.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. Step-by-step derivation
      1. add-cube-cbrt6.2%

        \[\leadsto \frac{\left(\color{blue}{\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y} \cdot \sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right) \cdot \sqrt[3]{\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. pow36.2%

        \[\leadsto \frac{\left(\color{blue}{{\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right)}^{3}} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      3. *-commutative6.2%

        \[\leadsto \frac{\left({\left(\sqrt[3]{\color{blue}{y \cdot \left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right)}}\right)}^{3} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      4. *-commutative6.2%

        \[\leadsto \frac{\left({\left(\sqrt[3]{y \cdot \left(\color{blue}{y \cdot \left(x \cdot y + z\right)} + 27464.7644705\right)}\right)}^{3} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      5. fma-def6.2%

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

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

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

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

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

        \[\leadsto x + \left(\frac{z}{y} - \color{blue}{\frac{a}{\frac{y}{x}}}\right) \]
      3. associate-/r/67.7%

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

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

    if -2.89999999999999991e-9 < y < 4.4999999999999998e67

    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 82.6%

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

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

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

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

Alternative 6: 58.2% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\ \mathbf{if}\;y \leq -2.9 \cdot 10^{-9}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq -1.75 \cdot 10^{-90}:\\ \;\;\;\;\frac{t + y \cdot 230661.510616}{y \cdot \left(c + y \cdot b\right)}\\ \mathbf{elif}\;y \leq 8.5 \cdot 10^{-21}:\\ \;\;\;\;\frac{t}{i}\\ \mathbf{elif}\;y \leq 9 \cdot 10^{+91}:\\ \;\;\;\;\frac{27464.7644705}{y \cdot a} + \left(\frac{z}{a} + \frac{x \cdot y}{a}\right)\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (let* ((t_1 (+ x (- (/ z y) (* x (/ a y))))))
   (if (<= y -2.9e-9)
     t_1
     (if (<= y -1.75e-90)
       (/ (+ t (* y 230661.510616)) (* y (+ c (* y b))))
       (if (<= y 8.5e-21)
         (/ t i)
         (if (<= y 9e+91)
           (+ (/ 27464.7644705 (* y a)) (+ (/ z a) (/ (* x y) a)))
           t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double t_1 = x + ((z / y) - (x * (a / y)));
	double tmp;
	if (y <= -2.9e-9) {
		tmp = t_1;
	} else if (y <= -1.75e-90) {
		tmp = (t + (y * 230661.510616)) / (y * (c + (y * b)));
	} else if (y <= 8.5e-21) {
		tmp = t / i;
	} else if (y <= 9e+91) {
		tmp = (27464.7644705 / (y * a)) + ((z / a) + ((x * y) / a));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8) :: t_1
    real(8) :: tmp
    t_1 = x + ((z / y) - (x * (a / y)))
    if (y <= (-2.9d-9)) then
        tmp = t_1
    else if (y <= (-1.75d-90)) then
        tmp = (t + (y * 230661.510616d0)) / (y * (c + (y * b)))
    else if (y <= 8.5d-21) then
        tmp = t / i
    else if (y <= 9d+91) then
        tmp = (27464.7644705d0 / (y * a)) + ((z / a) + ((x * y) / a))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double t_1 = x + ((z / y) - (x * (a / y)));
	double tmp;
	if (y <= -2.9e-9) {
		tmp = t_1;
	} else if (y <= -1.75e-90) {
		tmp = (t + (y * 230661.510616)) / (y * (c + (y * b)));
	} else if (y <= 8.5e-21) {
		tmp = t / i;
	} else if (y <= 9e+91) {
		tmp = (27464.7644705 / (y * a)) + ((z / a) + ((x * y) / a));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i):
	t_1 = x + ((z / y) - (x * (a / y)))
	tmp = 0
	if y <= -2.9e-9:
		tmp = t_1
	elif y <= -1.75e-90:
		tmp = (t + (y * 230661.510616)) / (y * (c + (y * b)))
	elif y <= 8.5e-21:
		tmp = t / i
	elif y <= 9e+91:
		tmp = (27464.7644705 / (y * a)) + ((z / a) + ((x * y) / a))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i)
	t_1 = Float64(x + Float64(Float64(z / y) - Float64(x * Float64(a / y))))
	tmp = 0.0
	if (y <= -2.9e-9)
		tmp = t_1;
	elseif (y <= -1.75e-90)
		tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(y * Float64(c + Float64(y * b))));
	elseif (y <= 8.5e-21)
		tmp = Float64(t / i);
	elseif (y <= 9e+91)
		tmp = Float64(Float64(27464.7644705 / Float64(y * a)) + Float64(Float64(z / a) + Float64(Float64(x * y) / a)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i)
	t_1 = x + ((z / y) - (x * (a / y)));
	tmp = 0.0;
	if (y <= -2.9e-9)
		tmp = t_1;
	elseif (y <= -1.75e-90)
		tmp = (t + (y * 230661.510616)) / (y * (c + (y * b)));
	elseif (y <= 8.5e-21)
		tmp = t / i;
	elseif (y <= 9e+91)
		tmp = (27464.7644705 / (y * a)) + ((z / a) + ((x * y) / a));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(x * N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.9e-9], t$95$1, If[LessEqual[y, -1.75e-90], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.5e-21], N[(t / i), $MachinePrecision], If[LessEqual[y, 9e+91], N[(N[(27464.7644705 / N[(y * a), $MachinePrecision]), $MachinePrecision] + N[(N[(z / a), $MachinePrecision] + N[(N[(x * y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\
\mathbf{if}\;y \leq -2.9 \cdot 10^{-9}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;y \leq -1.75 \cdot 10^{-90}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{y \cdot \left(c + y \cdot b\right)}\\

\mathbf{elif}\;y \leq 8.5 \cdot 10^{-21}:\\
\;\;\;\;\frac{t}{i}\\

\mathbf{elif}\;y \leq 9 \cdot 10^{+91}:\\
\;\;\;\;\frac{27464.7644705}{y \cdot a} + \left(\frac{z}{a} + \frac{x \cdot y}{a}\right)\\

\mathbf{else}:\\
\;\;\;\;t_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -2.89999999999999991e-9 or 9e91 < y

    1. Initial program 6.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. add-cube-cbrt6.3%

        \[\leadsto \frac{\left(\color{blue}{\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y} \cdot \sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right) \cdot \sqrt[3]{\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. pow36.3%

        \[\leadsto \frac{\left(\color{blue}{{\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right)}^{3}} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      3. *-commutative6.3%

        \[\leadsto \frac{\left({\left(\sqrt[3]{\color{blue}{y \cdot \left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right)}}\right)}^{3} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      4. *-commutative6.3%

        \[\leadsto \frac{\left({\left(\sqrt[3]{y \cdot \left(\color{blue}{y \cdot \left(x \cdot y + z\right)} + 27464.7644705\right)}\right)}^{3} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      5. fma-def6.3%

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

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

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

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

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

        \[\leadsto x + \left(\frac{z}{y} - \color{blue}{\frac{a}{\frac{y}{x}}}\right) \]
      3. associate-/r/69.1%

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

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

    if -2.89999999999999991e-9 < y < -1.7499999999999999e-90

    1. Initial program 99.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 i around 0 72.1%

      \[\leadsto \color{blue}{\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
    3. Taylor expanded in y around 0 53.3%

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

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

      \[\leadsto \frac{t + \color{blue}{y \cdot 230661.510616}}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
    6. Taylor expanded in y around 0 44.3%

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

        \[\leadsto \frac{t + y \cdot 230661.510616}{y \cdot \left(c + \color{blue}{y \cdot b}\right)} \]
    8. Simplified44.3%

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

    if -1.7499999999999999e-90 < y < 8.4999999999999993e-21

    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 70.5%

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

    if 8.4999999999999993e-21 < y < 9e91

    1. Initial program 46.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 i around 0 35.1%

      \[\leadsto \color{blue}{\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
    3. Taylor expanded in a around inf 16.5%

      \[\leadsto \frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{\color{blue}{a \cdot {y}^{3}}} \]
    4. Step-by-step derivation
      1. *-commutative16.5%

        \[\leadsto \frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{\color{blue}{{y}^{3} \cdot a}} \]
    5. Simplified16.5%

      \[\leadsto \frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{\color{blue}{{y}^{3} \cdot a}} \]
    6. Taylor expanded in y around inf 26.3%

      \[\leadsto \color{blue}{27464.7644705 \cdot \frac{1}{a \cdot y} + \left(\frac{z}{a} + \frac{x \cdot y}{a}\right)} \]
    7. Step-by-step derivation
      1. associate-*r/26.3%

        \[\leadsto \color{blue}{\frac{27464.7644705 \cdot 1}{a \cdot y}} + \left(\frac{z}{a} + \frac{x \cdot y}{a}\right) \]
      2. metadata-eval26.3%

        \[\leadsto \frac{\color{blue}{27464.7644705}}{a \cdot y} + \left(\frac{z}{a} + \frac{x \cdot y}{a}\right) \]
      3. *-commutative26.3%

        \[\leadsto \frac{27464.7644705}{\color{blue}{y \cdot a}} + \left(\frac{z}{a} + \frac{x \cdot y}{a}\right) \]
      4. *-commutative26.3%

        \[\leadsto \frac{27464.7644705}{y \cdot a} + \left(\frac{z}{a} + \frac{\color{blue}{y \cdot x}}{a}\right) \]
    8. Simplified26.3%

      \[\leadsto \color{blue}{\frac{27464.7644705}{y \cdot a} + \left(\frac{z}{a} + \frac{y \cdot x}{a}\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification63.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.9 \cdot 10^{-9}:\\ \;\;\;\;x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\ \mathbf{elif}\;y \leq -1.75 \cdot 10^{-90}:\\ \;\;\;\;\frac{t + y \cdot 230661.510616}{y \cdot \left(c + y \cdot b\right)}\\ \mathbf{elif}\;y \leq 8.5 \cdot 10^{-21}:\\ \;\;\;\;\frac{t}{i}\\ \mathbf{elif}\;y \leq 9 \cdot 10^{+91}:\\ \;\;\;\;\frac{27464.7644705}{y \cdot a} + \left(\frac{z}{a} + \frac{x \cdot y}{a}\right)\\ \mathbf{else}:\\ \;\;\;\;x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\ \end{array} \]

Alternative 7: 67.9% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2.9 \cdot 10^{-9} \lor \neg \left(y \leq 4.5 \cdot 10^{+67}\right):\\ \;\;\;\;x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t}{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)}\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (if (or (<= y -2.9e-9) (not (<= y 4.5e+67)))
   (+ x (- (/ z y) (* x (/ a y))))
   (/ t (+ i (* y (+ (* y (+ (* y (+ y a)) b)) c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double tmp;
	if ((y <= -2.9e-9) || !(y <= 4.5e+67)) {
		tmp = x + ((z / y) - (x * (a / y)));
	} else {
		tmp = t / (i + (y * ((y * ((y * (y + a)) + b)) + c)));
	}
	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 <= (-2.9d-9)) .or. (.not. (y <= 4.5d+67))) then
        tmp = x + ((z / y) - (x * (a / y)))
    else
        tmp = t / (i + (y * ((y * ((y * (y + a)) + b)) + c)))
    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 <= -2.9e-9) || !(y <= 4.5e+67)) {
		tmp = x + ((z / y) - (x * (a / y)));
	} else {
		tmp = t / (i + (y * ((y * ((y * (y + a)) + b)) + c)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i):
	tmp = 0
	if (y <= -2.9e-9) or not (y <= 4.5e+67):
		tmp = x + ((z / y) - (x * (a / y)))
	else:
		tmp = t / (i + (y * ((y * ((y * (y + a)) + b)) + c)))
	return tmp
function code(x, y, z, t, a, b, c, i)
	tmp = 0.0
	if ((y <= -2.9e-9) || !(y <= 4.5e+67))
		tmp = Float64(x + Float64(Float64(z / y) - Float64(x * Float64(a / y))));
	else
		tmp = Float64(t / Float64(i + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i)
	tmp = 0.0;
	if ((y <= -2.9e-9) || ~((y <= 4.5e+67)))
		tmp = x + ((z / y) - (x * (a / y)));
	else
		tmp = t / (i + (y * ((y * ((y * (y + a)) + b)) + c)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -2.9e-9], N[Not[LessEqual[y, 4.5e+67]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(x * N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t / N[(i + N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.9 \cdot 10^{-9} \lor \neg \left(y \leq 4.5 \cdot 10^{+67}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{t}{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -2.89999999999999991e-9 or 4.4999999999999998e67 < y

    1. Initial program 6.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. Step-by-step derivation
      1. add-cube-cbrt6.2%

        \[\leadsto \frac{\left(\color{blue}{\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y} \cdot \sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right) \cdot \sqrt[3]{\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. pow36.2%

        \[\leadsto \frac{\left(\color{blue}{{\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right)}^{3}} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      3. *-commutative6.2%

        \[\leadsto \frac{\left({\left(\sqrt[3]{\color{blue}{y \cdot \left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right)}}\right)}^{3} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      4. *-commutative6.2%

        \[\leadsto \frac{\left({\left(\sqrt[3]{y \cdot \left(\color{blue}{y \cdot \left(x \cdot y + z\right)} + 27464.7644705\right)}\right)}^{3} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      5. fma-def6.2%

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

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

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

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

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

        \[\leadsto x + \left(\frac{z}{y} - \color{blue}{\frac{a}{\frac{y}{x}}}\right) \]
      3. associate-/r/67.7%

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

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

    if -2.89999999999999991e-9 < y < 4.4999999999999998e67

    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 t around inf 72.5%

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

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

Alternative 8: 61.2% accurate, 1.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -6600 \lor \neg \left(y \leq 4.3 \cdot 10^{+55}\right):\\ \;\;\;\;x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i}\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (if (or (<= y -6600.0) (not (<= y 4.3e+55)))
   (+ x (- (/ z y) (* x (/ a y))))
   (/ (+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z)))))) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double tmp;
	if ((y <= -6600.0) || !(y <= 4.3e+55)) {
		tmp = x + ((z / y) - (x * (a / y)));
	} else {
		tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / 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 <= (-6600.0d0)) .or. (.not. (y <= 4.3d+55))) then
        tmp = x + ((z / y) - (x * (a / y)))
    else
        tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / 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 <= -6600.0) || !(y <= 4.3e+55)) {
		tmp = x + ((z / y) - (x * (a / y)));
	} else {
		tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i):
	tmp = 0
	if (y <= -6600.0) or not (y <= 4.3e+55):
		tmp = x + ((z / y) - (x * (a / y)))
	else:
		tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i
	return tmp
function code(x, y, z, t, a, b, c, i)
	tmp = 0.0
	if ((y <= -6600.0) || !(y <= 4.3e+55))
		tmp = Float64(x + Float64(Float64(z / y) - Float64(x * Float64(a / y))));
	else
		tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / i);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i)
	tmp = 0.0;
	if ((y <= -6600.0) || ~((y <= 4.3e+55)))
		tmp = x + ((z / y) - (x * (a / y)));
	else
		tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -6600.0], N[Not[LessEqual[y, 4.3e+55]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(x * N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -6600 \lor \neg \left(y \leq 4.3 \cdot 10^{+55}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -6600 or 4.2999999999999999e55 < y

    1. Initial program 5.4%

      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    2. Step-by-step derivation
      1. add-cube-cbrt5.4%

        \[\leadsto \frac{\left(\color{blue}{\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y} \cdot \sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right) \cdot \sqrt[3]{\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. pow35.4%

        \[\leadsto \frac{\left(\color{blue}{{\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right)}^{3}} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      3. *-commutative5.4%

        \[\leadsto \frac{\left({\left(\sqrt[3]{\color{blue}{y \cdot \left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right)}}\right)}^{3} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      4. *-commutative5.4%

        \[\leadsto \frac{\left({\left(\sqrt[3]{y \cdot \left(\color{blue}{y \cdot \left(x \cdot y + z\right)} + 27464.7644705\right)}\right)}^{3} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      5. fma-def5.4%

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

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

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

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

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

        \[\leadsto x + \left(\frac{z}{y} - \color{blue}{\frac{a}{\frac{y}{x}}}\right) \]
      3. associate-/r/67.1%

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

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

    if -6600 < y < 4.2999999999999999e55

    1. Initial program 93.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 x around 0 91.0%

      \[\leadsto \frac{\left(\color{blue}{y \cdot \left(27464.7644705 + y \cdot z\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. Taylor expanded in i around inf 60.8%

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

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

Alternative 9: 57.8% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\ \mathbf{if}\;y \leq -2.9 \cdot 10^{-9}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq -3.2 \cdot 10^{-90}:\\ \;\;\;\;\frac{t + y \cdot 230661.510616}{y \cdot \left(c + y \cdot b\right)}\\ \mathbf{elif}\;y \leq 4.8 \cdot 10^{-12}:\\ \;\;\;\;\frac{t}{i}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (let* ((t_1 (+ x (- (/ z y) (* x (/ a y))))))
   (if (<= y -2.9e-9)
     t_1
     (if (<= y -3.2e-90)
       (/ (+ t (* y 230661.510616)) (* y (+ c (* y b))))
       (if (<= y 4.8e-12) (/ t i) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double t_1 = x + ((z / y) - (x * (a / y)));
	double tmp;
	if (y <= -2.9e-9) {
		tmp = t_1;
	} else if (y <= -3.2e-90) {
		tmp = (t + (y * 230661.510616)) / (y * (c + (y * b)));
	} else if (y <= 4.8e-12) {
		tmp = t / i;
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8) :: t_1
    real(8) :: tmp
    t_1 = x + ((z / y) - (x * (a / y)))
    if (y <= (-2.9d-9)) then
        tmp = t_1
    else if (y <= (-3.2d-90)) then
        tmp = (t + (y * 230661.510616d0)) / (y * (c + (y * b)))
    else if (y <= 4.8d-12) then
        tmp = t / i
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double t_1 = x + ((z / y) - (x * (a / y)));
	double tmp;
	if (y <= -2.9e-9) {
		tmp = t_1;
	} else if (y <= -3.2e-90) {
		tmp = (t + (y * 230661.510616)) / (y * (c + (y * b)));
	} else if (y <= 4.8e-12) {
		tmp = t / i;
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i):
	t_1 = x + ((z / y) - (x * (a / y)))
	tmp = 0
	if y <= -2.9e-9:
		tmp = t_1
	elif y <= -3.2e-90:
		tmp = (t + (y * 230661.510616)) / (y * (c + (y * b)))
	elif y <= 4.8e-12:
		tmp = t / i
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i)
	t_1 = Float64(x + Float64(Float64(z / y) - Float64(x * Float64(a / y))))
	tmp = 0.0
	if (y <= -2.9e-9)
		tmp = t_1;
	elseif (y <= -3.2e-90)
		tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(y * Float64(c + Float64(y * b))));
	elseif (y <= 4.8e-12)
		tmp = Float64(t / i);
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i)
	t_1 = x + ((z / y) - (x * (a / y)));
	tmp = 0.0;
	if (y <= -2.9e-9)
		tmp = t_1;
	elseif (y <= -3.2e-90)
		tmp = (t + (y * 230661.510616)) / (y * (c + (y * b)));
	elseif (y <= 4.8e-12)
		tmp = t / i;
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(x * N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.9e-9], t$95$1, If[LessEqual[y, -3.2e-90], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.8e-12], N[(t / i), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\
\mathbf{if}\;y \leq -2.9 \cdot 10^{-9}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;y \leq -3.2 \cdot 10^{-90}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{y \cdot \left(c + y \cdot b\right)}\\

\mathbf{elif}\;y \leq 4.8 \cdot 10^{-12}:\\
\;\;\;\;\frac{t}{i}\\

\mathbf{else}:\\
\;\;\;\;t_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -2.89999999999999991e-9 or 4.79999999999999974e-12 < y

    1. Initial program 12.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. Step-by-step derivation
      1. add-cube-cbrt12.3%

        \[\leadsto \frac{\left(\color{blue}{\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y} \cdot \sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right) \cdot \sqrt[3]{\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. pow312.3%

        \[\leadsto \frac{\left(\color{blue}{{\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right)}^{3}} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      3. *-commutative12.3%

        \[\leadsto \frac{\left({\left(\sqrt[3]{\color{blue}{y \cdot \left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right)}}\right)}^{3} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      4. *-commutative12.3%

        \[\leadsto \frac{\left({\left(\sqrt[3]{y \cdot \left(\color{blue}{y \cdot \left(x \cdot y + z\right)} + 27464.7644705\right)}\right)}^{3} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      5. fma-def12.3%

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

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

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

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

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

        \[\leadsto x + \left(\frac{z}{y} - \color{blue}{\frac{a}{\frac{y}{x}}}\right) \]
      3. associate-/r/59.3%

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

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

    if -2.89999999999999991e-9 < y < -3.20000000000000007e-90

    1. Initial program 99.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 i around 0 72.1%

      \[\leadsto \color{blue}{\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)}} \]
    3. Taylor expanded in y around 0 53.3%

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

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

      \[\leadsto \frac{t + \color{blue}{y \cdot 230661.510616}}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\right)} \]
    6. Taylor expanded in y around 0 44.3%

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

        \[\leadsto \frac{t + y \cdot 230661.510616}{y \cdot \left(c + \color{blue}{y \cdot b}\right)} \]
    8. Simplified44.3%

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

    if -3.20000000000000007e-90 < y < 4.79999999999999974e-12

    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 69.3%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.9 \cdot 10^{-9}:\\ \;\;\;\;x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\ \mathbf{elif}\;y \leq -3.2 \cdot 10^{-90}:\\ \;\;\;\;\frac{t + y \cdot 230661.510616}{y \cdot \left(c + y \cdot b\right)}\\ \mathbf{elif}\;y \leq 4.8 \cdot 10^{-12}:\\ \;\;\;\;\frac{t}{i}\\ \mathbf{else}:\\ \;\;\;\;x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\ \end{array} \]

Alternative 10: 56.9% accurate, 2.2× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.3 \cdot 10^{+23} \lor \neg \left(y \leq 7 \cdot 10^{-12}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{t}{i}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -2.3e23 or 7.0000000000000001e-12 < y

    1. Initial program 9.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. add-cube-cbrt9.8%

        \[\leadsto \frac{\left(\color{blue}{\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y} \cdot \sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right) \cdot \sqrt[3]{\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. pow39.8%

        \[\leadsto \frac{\left(\color{blue}{{\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right)}^{3}} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      3. *-commutative9.8%

        \[\leadsto \frac{\left({\left(\sqrt[3]{\color{blue}{y \cdot \left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right)}}\right)}^{3} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      4. *-commutative9.8%

        \[\leadsto \frac{\left({\left(\sqrt[3]{y \cdot \left(\color{blue}{y \cdot \left(x \cdot y + z\right)} + 27464.7644705\right)}\right)}^{3} + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      5. fma-def9.8%

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

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

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

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

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

        \[\leadsto x + \left(\frac{z}{y} - \color{blue}{\frac{a}{\frac{y}{x}}}\right) \]
      3. associate-/r/60.9%

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

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

    if -2.3e23 < y < 7.0000000000000001e-12

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.3 \cdot 10^{+23} \lor \neg \left(y \leq 7 \cdot 10^{-12}\right):\\ \;\;\;\;x + \left(\frac{z}{y} - x \cdot \frac{a}{y}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t}{i}\\ \end{array} \]

Alternative 11: 49.9% accurate, 4.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2.4 \cdot 10^{+36}:\\ \;\;\;\;x\\ \mathbf{elif}\;y \leq 2.5 \cdot 10^{-12}:\\ \;\;\;\;\frac{t}{i}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (if (<= y -2.4e+36) x (if (<= y 2.5e-12) (/ 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 <= -2.4e+36) {
		tmp = x;
	} else if (y <= 2.5e-12) {
		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 <= (-2.4d+36)) then
        tmp = x
    else if (y <= 2.5d-12) 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 <= -2.4e+36) {
		tmp = x;
	} else if (y <= 2.5e-12) {
		tmp = t / i;
	} else {
		tmp = x;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i):
	tmp = 0
	if y <= -2.4e+36:
		tmp = x
	elif y <= 2.5e-12:
		tmp = t / i
	else:
		tmp = x
	return tmp
function code(x, y, z, t, a, b, c, i)
	tmp = 0.0
	if (y <= -2.4e+36)
		tmp = x;
	elseif (y <= 2.5e-12)
		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 <= -2.4e+36)
		tmp = x;
	elseif (y <= 2.5e-12)
		tmp = t / i;
	else
		tmp = x;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -2.4e+36], x, If[LessEqual[y, 2.5e-12], N[(t / i), $MachinePrecision], x]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.4 \cdot 10^{+36}:\\
\;\;\;\;x\\

\mathbf{elif}\;y \leq 2.5 \cdot 10^{-12}:\\
\;\;\;\;\frac{t}{i}\\

\mathbf{else}:\\
\;\;\;\;x\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -2.39999999999999992e36 or 2.49999999999999985e-12 < y

    1. Initial program 9.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 inf 47.6%

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

    if -2.39999999999999992e36 < y < 2.49999999999999985e-12

    1. Initial program 98.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 59.6%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.4 \cdot 10^{+36}:\\ \;\;\;\;x\\ \mathbf{elif}\;y \leq 2.5 \cdot 10^{-12}:\\ \;\;\;\;\frac{t}{i}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]

Alternative 12: 25.5% 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 51.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 27.0%

    \[\leadsto \color{blue}{x} \]
  3. Final simplification27.0%

    \[\leadsto x \]

Reproduce

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