Diagrams.Solve.Tridiagonal:solveCyclicTriDiagonal from diagrams-solve-0.1, B

Percentage Accurate: 75.5% → 86.0%
Time: 14.0s
Alternatives: 14
Speedup: 0.7×

Specification

?
\[\begin{array}{l} \\ \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))
double code(double x, double y, double z, double t, double a, double b) {
	return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
real(8) function code(x, y, z, t, a, b)
    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
    code = (x + ((y * z) / t)) / ((a + 1.0d0) + ((y * b) / t))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
def code(x, y, z, t, a, b):
	return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t))
function code(x, y, z, t, a, b)
	return Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t)))
end
function tmp = code(x, y, z, t, a, b)
	tmp = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}
\end{array}

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 14 alternatives:

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

Initial Program: 75.5% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))
double code(double x, double y, double z, double t, double a, double b) {
	return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
real(8) function code(x, y, z, t, a, b)
    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
    code = (x + ((y * z) / t)) / ((a + 1.0d0) + ((y * b) / t))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
def code(x, y, z, t, a, b):
	return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t))
function code(x, y, z, t, a, b)
	return Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t)))
end
function tmp = code(x, y, z, t, a, b)
	tmp = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}
\end{array}

Alternative 1: 86.0% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)} \leq 2 \cdot 10^{+301}:\\ \;\;\;\;\frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 + b \cdot \frac{y}{t}\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= (/ (+ x (/ (* y z) t)) (+ (/ (* y b) t) (+ a 1.0))) 2e+301)
   (/ (+ x (/ z (/ t y))) (+ a (+ 1.0 (* b (/ y t)))))
   (/ z b)))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (((x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0))) <= 2e+301) {
		tmp = (x + (z / (t / y))) / (a + (1.0 + (b * (y / t))));
	} else {
		tmp = z / b;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: tmp
    if (((x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0d0))) <= 2d+301) then
        tmp = (x + (z / (t / y))) / (a + (1.0d0 + (b * (y / t))))
    else
        tmp = z / b
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (((x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0))) <= 2e+301) {
		tmp = (x + (z / (t / y))) / (a + (1.0 + (b * (y / t))));
	} else {
		tmp = z / b;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if ((x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0))) <= 2e+301:
		tmp = (x + (z / (t / y))) / (a + (1.0 + (b * (y / t))))
	else:
		tmp = z / b
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(Float64(y * b) / t) + Float64(a + 1.0))) <= 2e+301)
		tmp = Float64(Float64(x + Float64(z / Float64(t / y))) / Float64(a + Float64(1.0 + Float64(b * Float64(y / t)))));
	else
		tmp = Float64(z / b);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if (((x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0))) <= 2e+301)
		tmp = (x + (z / (t / y))) / (a + (1.0 + (b * (y / t))));
	else
		tmp = z / b;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2e+301], N[(N[(x + N[(z / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + N[(1.0 + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z / b), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;\frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)} \leq 2 \cdot 10^{+301}:\\
\;\;\;\;\frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 + b \cdot \frac{y}{t}\right)}\\

\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < 2.00000000000000011e301

    1. Initial program 86.4%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative86.4%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/90.3%

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

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{b \cdot \frac{y}{t}}} \]
      5. cancel-sign-sub90.3%

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

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) - \color{blue}{\frac{y}{t} \cdot \left(-b\right)}} \]
      7. associate-*l/87.2%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) - \color{blue}{\frac{y \cdot \left(-b\right)}{t}}} \]
      8. associate-+r-87.2%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\color{blue}{a + \left(1 - \frac{y \cdot \left(-b\right)}{t}\right)}} \]
      9. associate-*l/90.3%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 - \color{blue}{\frac{y}{t} \cdot \left(-b\right)}\right)} \]
      10. *-commutative90.3%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 - \color{blue}{\left(-b\right) \cdot \frac{y}{t}}\right)} \]
      11. cancel-sign-sub90.3%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{a + \color{blue}{\left(1 + b \cdot \frac{y}{t}\right)}} \]
      12. *-commutative90.3%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 + \color{blue}{\frac{y}{t} \cdot b}\right)} \]
      13. associate-/r/84.8%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 + \color{blue}{\frac{y}{\frac{t}{b}}}\right)} \]
    3. Simplified84.8%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 + \frac{y}{\frac{t}{b}}\right)}} \]
    4. Step-by-step derivation
      1. associate-/r/90.3%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 + \color{blue}{\frac{y}{t} \cdot b}\right)} \]
    5. Applied egg-rr90.3%

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

    if 2.00000000000000011e301 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t)))

    1. Initial program 11.7%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative11.7%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. *-commutative17.9%

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified25.9%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in t around 0 82.0%

      \[\leadsto \color{blue}{\frac{z}{b}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification88.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)} \leq 2 \cdot 10^{+301}:\\ \;\;\;\;\frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 + b \cdot \frac{y}{t}\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \]

Alternative 2: 78.2% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \frac{b}{t} + \left(a + 1\right)\\ t_2 := \frac{x + y \cdot \frac{z}{t}}{t_1}\\ t_3 := \frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\ \mathbf{if}\;t \leq -3.2 \cdot 10^{-30}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq -2.4 \cdot 10^{-61}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;t \leq -3.6 \cdot 10^{-108}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq -1.38 \cdot 10^{-164}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;t \leq -5.5 \cdot 10^{-230}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq 8 \cdot 10^{-273}:\\ \;\;\;\;\frac{y \cdot z + x \cdot t}{y \cdot b}\\ \mathbf{elif}\;t \leq 1.35 \cdot 10^{-203}:\\ \;\;\;\;\frac{y \cdot z}{y \cdot b + t \cdot \left(a + 1\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x + z \cdot \frac{y}{t}}{t_1}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (+ (* y (/ b t)) (+ a 1.0)))
        (t_2 (/ (+ x (* y (/ z t))) t_1))
        (t_3 (+ (/ z b) (* (/ t b) (/ x y)))))
   (if (<= t -3.2e-30)
     t_2
     (if (<= t -2.4e-61)
       t_3
       (if (<= t -3.6e-108)
         t_2
         (if (<= t -1.38e-164)
           t_3
           (if (<= t -5.5e-230)
             t_2
             (if (<= t 8e-273)
               (/ (+ (* y z) (* x t)) (* y b))
               (if (<= t 1.35e-203)
                 (/ (* y z) (+ (* y b) (* t (+ a 1.0))))
                 (/ (+ x (* z (/ y t))) t_1))))))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (y * (b / t)) + (a + 1.0);
	double t_2 = (x + (y * (z / t))) / t_1;
	double t_3 = (z / b) + ((t / b) * (x / y));
	double tmp;
	if (t <= -3.2e-30) {
		tmp = t_2;
	} else if (t <= -2.4e-61) {
		tmp = t_3;
	} else if (t <= -3.6e-108) {
		tmp = t_2;
	} else if (t <= -1.38e-164) {
		tmp = t_3;
	} else if (t <= -5.5e-230) {
		tmp = t_2;
	} else if (t <= 8e-273) {
		tmp = ((y * z) + (x * t)) / (y * b);
	} else if (t <= 1.35e-203) {
		tmp = (y * z) / ((y * b) + (t * (a + 1.0)));
	} else {
		tmp = (x + (z * (y / t))) / t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: tmp
    t_1 = (y * (b / t)) + (a + 1.0d0)
    t_2 = (x + (y * (z / t))) / t_1
    t_3 = (z / b) + ((t / b) * (x / y))
    if (t <= (-3.2d-30)) then
        tmp = t_2
    else if (t <= (-2.4d-61)) then
        tmp = t_3
    else if (t <= (-3.6d-108)) then
        tmp = t_2
    else if (t <= (-1.38d-164)) then
        tmp = t_3
    else if (t <= (-5.5d-230)) then
        tmp = t_2
    else if (t <= 8d-273) then
        tmp = ((y * z) + (x * t)) / (y * b)
    else if (t <= 1.35d-203) then
        tmp = (y * z) / ((y * b) + (t * (a + 1.0d0)))
    else
        tmp = (x + (z * (y / t))) / 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 t_1 = (y * (b / t)) + (a + 1.0);
	double t_2 = (x + (y * (z / t))) / t_1;
	double t_3 = (z / b) + ((t / b) * (x / y));
	double tmp;
	if (t <= -3.2e-30) {
		tmp = t_2;
	} else if (t <= -2.4e-61) {
		tmp = t_3;
	} else if (t <= -3.6e-108) {
		tmp = t_2;
	} else if (t <= -1.38e-164) {
		tmp = t_3;
	} else if (t <= -5.5e-230) {
		tmp = t_2;
	} else if (t <= 8e-273) {
		tmp = ((y * z) + (x * t)) / (y * b);
	} else if (t <= 1.35e-203) {
		tmp = (y * z) / ((y * b) + (t * (a + 1.0)));
	} else {
		tmp = (x + (z * (y / t))) / t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (y * (b / t)) + (a + 1.0)
	t_2 = (x + (y * (z / t))) / t_1
	t_3 = (z / b) + ((t / b) * (x / y))
	tmp = 0
	if t <= -3.2e-30:
		tmp = t_2
	elif t <= -2.4e-61:
		tmp = t_3
	elif t <= -3.6e-108:
		tmp = t_2
	elif t <= -1.38e-164:
		tmp = t_3
	elif t <= -5.5e-230:
		tmp = t_2
	elif t <= 8e-273:
		tmp = ((y * z) + (x * t)) / (y * b)
	elif t <= 1.35e-203:
		tmp = (y * z) / ((y * b) + (t * (a + 1.0)))
	else:
		tmp = (x + (z * (y / t))) / t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(y * Float64(b / t)) + Float64(a + 1.0))
	t_2 = Float64(Float64(x + Float64(y * Float64(z / t))) / t_1)
	t_3 = Float64(Float64(z / b) + Float64(Float64(t / b) * Float64(x / y)))
	tmp = 0.0
	if (t <= -3.2e-30)
		tmp = t_2;
	elseif (t <= -2.4e-61)
		tmp = t_3;
	elseif (t <= -3.6e-108)
		tmp = t_2;
	elseif (t <= -1.38e-164)
		tmp = t_3;
	elseif (t <= -5.5e-230)
		tmp = t_2;
	elseif (t <= 8e-273)
		tmp = Float64(Float64(Float64(y * z) + Float64(x * t)) / Float64(y * b));
	elseif (t <= 1.35e-203)
		tmp = Float64(Float64(y * z) / Float64(Float64(y * b) + Float64(t * Float64(a + 1.0))));
	else
		tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / t_1);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = (y * (b / t)) + (a + 1.0);
	t_2 = (x + (y * (z / t))) / t_1;
	t_3 = (z / b) + ((t / b) * (x / y));
	tmp = 0.0;
	if (t <= -3.2e-30)
		tmp = t_2;
	elseif (t <= -2.4e-61)
		tmp = t_3;
	elseif (t <= -3.6e-108)
		tmp = t_2;
	elseif (t <= -1.38e-164)
		tmp = t_3;
	elseif (t <= -5.5e-230)
		tmp = t_2;
	elseif (t <= 8e-273)
		tmp = ((y * z) + (x * t)) / (y * b);
	elseif (t <= 1.35e-203)
		tmp = (y * z) / ((y * b) + (t * (a + 1.0)));
	else
		tmp = (x + (z * (y / t))) / t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z / b), $MachinePrecision] + N[(N[(t / b), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.2e-30], t$95$2, If[LessEqual[t, -2.4e-61], t$95$3, If[LessEqual[t, -3.6e-108], t$95$2, If[LessEqual[t, -1.38e-164], t$95$3, If[LessEqual[t, -5.5e-230], t$95$2, If[LessEqual[t, 8e-273], N[(N[(N[(y * z), $MachinePrecision] + N[(x * t), $MachinePrecision]), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.35e-203], N[(N[(y * z), $MachinePrecision] / N[(N[(y * b), $MachinePrecision] + N[(t * N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := y \cdot \frac{b}{t} + \left(a + 1\right)\\
t_2 := \frac{x + y \cdot \frac{z}{t}}{t_1}\\
t_3 := \frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\
\mathbf{if}\;t \leq -3.2 \cdot 10^{-30}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;t \leq -2.4 \cdot 10^{-61}:\\
\;\;\;\;t_3\\

\mathbf{elif}\;t \leq -3.6 \cdot 10^{-108}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;t \leq -1.38 \cdot 10^{-164}:\\
\;\;\;\;t_3\\

\mathbf{elif}\;t \leq -5.5 \cdot 10^{-230}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;t \leq 8 \cdot 10^{-273}:\\
\;\;\;\;\frac{y \cdot z + x \cdot t}{y \cdot b}\\

\mathbf{elif}\;t \leq 1.35 \cdot 10^{-203}:\\
\;\;\;\;\frac{y \cdot z}{y \cdot b + t \cdot \left(a + 1\right)}\\

\mathbf{else}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{t_1}\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if t < -3.2e-30 or -2.4000000000000001e-61 < t < -3.6000000000000001e-108 or -1.38000000000000003e-164 < t < -5.4999999999999997e-230

    1. Initial program 85.9%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative85.9%

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

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

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified89.7%

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

    if -3.2e-30 < t < -2.4000000000000001e-61 or -3.6000000000000001e-108 < t < -1.38000000000000003e-164

    1. Initial program 52.4%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative52.4%

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

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

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified38.4%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in b around inf 52.3%

      \[\leadsto \color{blue}{\frac{t \cdot \left(x + \frac{y \cdot z}{t}\right)}{b \cdot y}} \]
    5. Taylor expanded in t around 0 81.8%

      \[\leadsto \color{blue}{\frac{z}{b} + \frac{t \cdot x}{b \cdot y}} \]
    6. Step-by-step derivation
      1. times-frac81.7%

        \[\leadsto \frac{z}{b} + \color{blue}{\frac{t}{b} \cdot \frac{x}{y}} \]
    7. Simplified81.7%

      \[\leadsto \color{blue}{\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}} \]

    if -5.4999999999999997e-230 < t < 8.000000000000001e-273

    1. Initial program 52.9%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative52.9%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. *-commutative49.2%

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified41.7%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in b around inf 60.5%

      \[\leadsto \color{blue}{\frac{t \cdot \left(x + \frac{y \cdot z}{t}\right)}{b \cdot y}} \]
    5. Taylor expanded in t around 0 81.8%

      \[\leadsto \frac{\color{blue}{t \cdot x + y \cdot z}}{b \cdot y} \]

    if 8.000000000000001e-273 < t < 1.34999999999999999e-203

    1. Initial program 47.0%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative47.0%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. *-commutative21.9%

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified21.7%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in x around 0 67.0%

      \[\leadsto \color{blue}{\frac{y \cdot z}{t \cdot \left(1 + \left(a + \frac{b \cdot y}{t}\right)\right)}} \]
    5. Taylor expanded in t around 0 92.9%

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

    if 1.34999999999999999e-203 < t

    1. Initial program 73.4%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative73.4%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. *-commutative78.0%

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified82.5%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in z around 0 75.2%

      \[\leadsto \frac{x + \color{blue}{\frac{y \cdot z}{t}}}{\left(a + 1\right) + \frac{b}{t} \cdot y} \]
    5. Step-by-step derivation
      1. *-commutative75.2%

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{b}{t} \cdot y} \]
      2. associate-*r/84.4%

        \[\leadsto \frac{x + \color{blue}{z \cdot \frac{y}{t}}}{\left(a + 1\right) + \frac{b}{t} \cdot y} \]
    6. Simplified84.4%

      \[\leadsto \frac{x + \color{blue}{z \cdot \frac{y}{t}}}{\left(a + 1\right) + \frac{b}{t} \cdot y} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification86.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -3.2 \cdot 10^{-30}:\\ \;\;\;\;\frac{x + y \cdot \frac{z}{t}}{y \cdot \frac{b}{t} + \left(a + 1\right)}\\ \mathbf{elif}\;t \leq -2.4 \cdot 10^{-61}:\\ \;\;\;\;\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\ \mathbf{elif}\;t \leq -3.6 \cdot 10^{-108}:\\ \;\;\;\;\frac{x + y \cdot \frac{z}{t}}{y \cdot \frac{b}{t} + \left(a + 1\right)}\\ \mathbf{elif}\;t \leq -1.38 \cdot 10^{-164}:\\ \;\;\;\;\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\ \mathbf{elif}\;t \leq -5.5 \cdot 10^{-230}:\\ \;\;\;\;\frac{x + y \cdot \frac{z}{t}}{y \cdot \frac{b}{t} + \left(a + 1\right)}\\ \mathbf{elif}\;t \leq 8 \cdot 10^{-273}:\\ \;\;\;\;\frac{y \cdot z + x \cdot t}{y \cdot b}\\ \mathbf{elif}\;t \leq 1.35 \cdot 10^{-203}:\\ \;\;\;\;\frac{y \cdot z}{y \cdot b + t \cdot \left(a + 1\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x + z \cdot \frac{y}{t}}{y \cdot \frac{b}{t} + \left(a + 1\right)}\\ \end{array} \]

Alternative 3: 65.4% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\ \mathbf{if}\;t \leq -1.9 \cdot 10^{-27}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -6.8 \cdot 10^{-74}:\\ \;\;\;\;\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\ \mathbf{elif}\;t \leq 6.6 \cdot 10^{-151}:\\ \;\;\;\;\frac{y \cdot z}{y \cdot b + t \cdot \left(a + 1\right)}\\ \mathbf{elif}\;t \leq 1.18 \cdot 10^{-91} \lor \neg \left(t \leq 1.2 \cdot 10^{-35}\right) \land t \leq 1.75 \cdot 10^{+154}:\\ \;\;\;\;\frac{x + z \cdot \frac{y}{t}}{1 + \frac{b}{\frac{t}{y}}}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ (+ x (/ y (/ t z))) (+ a 1.0))))
   (if (<= t -1.9e-27)
     t_1
     (if (<= t -6.8e-74)
       (+ (/ z b) (* (/ t b) (/ x y)))
       (if (<= t 6.6e-151)
         (/ (* y z) (+ (* y b) (* t (+ a 1.0))))
         (if (or (<= t 1.18e-91) (and (not (<= t 1.2e-35)) (<= t 1.75e+154)))
           (/ (+ x (* z (/ y t))) (+ 1.0 (/ b (/ t y))))
           t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x + (y / (t / z))) / (a + 1.0);
	double tmp;
	if (t <= -1.9e-27) {
		tmp = t_1;
	} else if (t <= -6.8e-74) {
		tmp = (z / b) + ((t / b) * (x / y));
	} else if (t <= 6.6e-151) {
		tmp = (y * z) / ((y * b) + (t * (a + 1.0)));
	} else if ((t <= 1.18e-91) || (!(t <= 1.2e-35) && (t <= 1.75e+154))) {
		tmp = (x + (z * (y / t))) / (1.0 + (b / (t / y)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: tmp
    t_1 = (x + (y / (t / z))) / (a + 1.0d0)
    if (t <= (-1.9d-27)) then
        tmp = t_1
    else if (t <= (-6.8d-74)) then
        tmp = (z / b) + ((t / b) * (x / y))
    else if (t <= 6.6d-151) then
        tmp = (y * z) / ((y * b) + (t * (a + 1.0d0)))
    else if ((t <= 1.18d-91) .or. (.not. (t <= 1.2d-35)) .and. (t <= 1.75d+154)) then
        tmp = (x + (z * (y / t))) / (1.0d0 + (b / (t / y)))
    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 t_1 = (x + (y / (t / z))) / (a + 1.0);
	double tmp;
	if (t <= -1.9e-27) {
		tmp = t_1;
	} else if (t <= -6.8e-74) {
		tmp = (z / b) + ((t / b) * (x / y));
	} else if (t <= 6.6e-151) {
		tmp = (y * z) / ((y * b) + (t * (a + 1.0)));
	} else if ((t <= 1.18e-91) || (!(t <= 1.2e-35) && (t <= 1.75e+154))) {
		tmp = (x + (z * (y / t))) / (1.0 + (b / (t / y)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (x + (y / (t / z))) / (a + 1.0)
	tmp = 0
	if t <= -1.9e-27:
		tmp = t_1
	elif t <= -6.8e-74:
		tmp = (z / b) + ((t / b) * (x / y))
	elif t <= 6.6e-151:
		tmp = (y * z) / ((y * b) + (t * (a + 1.0)))
	elif (t <= 1.18e-91) or (not (t <= 1.2e-35) and (t <= 1.75e+154)):
		tmp = (x + (z * (y / t))) / (1.0 + (b / (t / y)))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(x + Float64(y / Float64(t / z))) / Float64(a + 1.0))
	tmp = 0.0
	if (t <= -1.9e-27)
		tmp = t_1;
	elseif (t <= -6.8e-74)
		tmp = Float64(Float64(z / b) + Float64(Float64(t / b) * Float64(x / y)));
	elseif (t <= 6.6e-151)
		tmp = Float64(Float64(y * z) / Float64(Float64(y * b) + Float64(t * Float64(a + 1.0))));
	elseif ((t <= 1.18e-91) || (!(t <= 1.2e-35) && (t <= 1.75e+154)))
		tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(1.0 + Float64(b / Float64(t / y))));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = (x + (y / (t / z))) / (a + 1.0);
	tmp = 0.0;
	if (t <= -1.9e-27)
		tmp = t_1;
	elseif (t <= -6.8e-74)
		tmp = (z / b) + ((t / b) * (x / y));
	elseif (t <= 6.6e-151)
		tmp = (y * z) / ((y * b) + (t * (a + 1.0)));
	elseif ((t <= 1.18e-91) || (~((t <= 1.2e-35)) && (t <= 1.75e+154)))
		tmp = (x + (z * (y / t))) / (1.0 + (b / (t / y)));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.9e-27], t$95$1, If[LessEqual[t, -6.8e-74], N[(N[(z / b), $MachinePrecision] + N[(N[(t / b), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.6e-151], N[(N[(y * z), $MachinePrecision] / N[(N[(y * b), $MachinePrecision] + N[(t * N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 1.18e-91], And[N[Not[LessEqual[t, 1.2e-35]], $MachinePrecision], LessEqual[t, 1.75e+154]]], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 + N[(b / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\
\mathbf{if}\;t \leq -1.9 \cdot 10^{-27}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;t \leq -6.8 \cdot 10^{-74}:\\
\;\;\;\;\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\

\mathbf{elif}\;t \leq 6.6 \cdot 10^{-151}:\\
\;\;\;\;\frac{y \cdot z}{y \cdot b + t \cdot \left(a + 1\right)}\\

\mathbf{elif}\;t \leq 1.18 \cdot 10^{-91} \lor \neg \left(t \leq 1.2 \cdot 10^{-35}\right) \land t \leq 1.75 \cdot 10^{+154}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{1 + \frac{b}{\frac{t}{y}}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -1.9e-27 or 1.18e-91 < t < 1.2000000000000001e-35 or 1.7500000000000001e154 < t

    1. Initial program 84.4%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative84.4%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. *-commutative89.8%

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified97.0%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Step-by-step derivation
      1. associate-/r/96.2%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{b}{t} \cdot y} \]
      2. clear-num96.1%

        \[\leadsto \frac{x + \color{blue}{\frac{1}{\frac{\frac{t}{y}}{z}}}}{\left(a + 1\right) + \frac{b}{t} \cdot y} \]
    5. Applied egg-rr96.1%

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

      \[\leadsto \color{blue}{\frac{x + \frac{y \cdot z}{t}}{1 + a}} \]
    7. Step-by-step derivation
      1. associate-/l*83.4%

        \[\leadsto \frac{x + \color{blue}{\frac{y}{\frac{t}{z}}}}{1 + a} \]
    8. Simplified83.4%

      \[\leadsto \color{blue}{\frac{x + \frac{y}{\frac{t}{z}}}{1 + a}} \]

    if -1.9e-27 < t < -6.8000000000000001e-74

    1. Initial program 51.1%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative51.1%

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

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

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified41.6%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in b around inf 42.1%

      \[\leadsto \color{blue}{\frac{t \cdot \left(x + \frac{y \cdot z}{t}\right)}{b \cdot y}} \]
    5. Taylor expanded in t around 0 71.8%

      \[\leadsto \color{blue}{\frac{z}{b} + \frac{t \cdot x}{b \cdot y}} \]
    6. Step-by-step derivation
      1. times-frac81.1%

        \[\leadsto \frac{z}{b} + \color{blue}{\frac{t}{b} \cdot \frac{x}{y}} \]
    7. Simplified81.1%

      \[\leadsto \color{blue}{\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}} \]

    if -6.8000000000000001e-74 < t < 6.5999999999999998e-151

    1. Initial program 61.6%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative61.6%

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

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

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified48.0%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in x around 0 50.4%

      \[\leadsto \color{blue}{\frac{y \cdot z}{t \cdot \left(1 + \left(a + \frac{b \cdot y}{t}\right)\right)}} \]
    5. Taylor expanded in t around 0 66.0%

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

    if 6.5999999999999998e-151 < t < 1.18e-91 or 1.2000000000000001e-35 < t < 1.7500000000000001e154

    1. Initial program 71.3%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative71.3%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/86.1%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
      4. *-commutative86.1%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{b \cdot \frac{y}{t}}} \]
      5. cancel-sign-sub86.1%

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

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) - \color{blue}{\frac{y}{t} \cdot \left(-b\right)}} \]
      7. associate-*l/79.9%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) - \color{blue}{\frac{y \cdot \left(-b\right)}{t}}} \]
      8. associate-+r-79.9%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\color{blue}{a + \left(1 - \frac{y \cdot \left(-b\right)}{t}\right)}} \]
      9. associate-*l/86.1%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 - \color{blue}{\frac{y}{t} \cdot \left(-b\right)}\right)} \]
      10. *-commutative86.1%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 - \color{blue}{\left(-b\right) \cdot \frac{y}{t}}\right)} \]
      11. cancel-sign-sub86.1%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{a + \color{blue}{\left(1 + b \cdot \frac{y}{t}\right)}} \]
      12. *-commutative86.1%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 + \color{blue}{\frac{y}{t} \cdot b}\right)} \]
      13. associate-/r/79.6%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 + \color{blue}{\frac{y}{\frac{t}{b}}}\right)} \]
    3. Simplified79.6%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 + \frac{y}{\frac{t}{b}}\right)}} \]
    4. Step-by-step derivation
      1. associate-/r/79.6%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z \cdot y}{t}}}{a + \left(1 + \frac{y}{\frac{t}{b}}\right)} \]
      3. *-commutative70.9%

        \[\leadsto \frac{x + \frac{\color{blue}{y \cdot z}}{t}}{a + \left(1 + \frac{y}{\frac{t}{b}}\right)} \]
      4. div-inv70.9%

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

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

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

      \[\leadsto \color{blue}{\frac{x + \frac{y \cdot z}{t}}{1 + \frac{b \cdot y}{t}}} \]
    7. Step-by-step derivation
      1. associate-/l*66.3%

        \[\leadsto \frac{x + \color{blue}{\frac{y}{\frac{t}{z}}}}{1 + \frac{b \cdot y}{t}} \]
      2. associate-/r/66.4%

        \[\leadsto \frac{x + \color{blue}{\frac{y}{t} \cdot z}}{1 + \frac{b \cdot y}{t}} \]
      3. associate-/l*72.7%

        \[\leadsto \frac{x + \frac{y}{t} \cdot z}{1 + \color{blue}{\frac{b}{\frac{t}{y}}}} \]
    8. Simplified72.7%

      \[\leadsto \color{blue}{\frac{x + \frac{y}{t} \cdot z}{1 + \frac{b}{\frac{t}{y}}}} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification75.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.9 \cdot 10^{-27}:\\ \;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\ \mathbf{elif}\;t \leq -6.8 \cdot 10^{-74}:\\ \;\;\;\;\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\ \mathbf{elif}\;t \leq 6.6 \cdot 10^{-151}:\\ \;\;\;\;\frac{y \cdot z}{y \cdot b + t \cdot \left(a + 1\right)}\\ \mathbf{elif}\;t \leq 1.18 \cdot 10^{-91} \lor \neg \left(t \leq 1.2 \cdot 10^{-35}\right) \land t \leq 1.75 \cdot 10^{+154}:\\ \;\;\;\;\frac{x + z \cdot \frac{y}{t}}{1 + \frac{b}{\frac{t}{y}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\ \end{array} \]

Alternative 4: 78.7% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x + z \cdot \frac{y}{t}}{y \cdot \frac{b}{t} + \left(a + 1\right)}\\ \mathbf{if}\;t \leq -3.2 \cdot 10^{-30}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -2.5 \cdot 10^{-80}:\\ \;\;\;\;\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\ \mathbf{elif}\;t \leq -6.5 \cdot 10^{-107}:\\ \;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\ \mathbf{elif}\;t \leq 7.8 \cdot 10^{-202}:\\ \;\;\;\;\frac{y \cdot z}{y \cdot b + t \cdot \left(a + 1\right)}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ (+ x (* z (/ y t))) (+ (* y (/ b t)) (+ a 1.0)))))
   (if (<= t -3.2e-30)
     t_1
     (if (<= t -2.5e-80)
       (+ (/ z b) (* (/ t b) (/ x y)))
       (if (<= t -6.5e-107)
         (/ (+ x (/ y (/ t z))) (+ a 1.0))
         (if (<= t 7.8e-202) (/ (* y z) (+ (* y b) (* t (+ a 1.0)))) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x + (z * (y / t))) / ((y * (b / t)) + (a + 1.0));
	double tmp;
	if (t <= -3.2e-30) {
		tmp = t_1;
	} else if (t <= -2.5e-80) {
		tmp = (z / b) + ((t / b) * (x / y));
	} else if (t <= -6.5e-107) {
		tmp = (x + (y / (t / z))) / (a + 1.0);
	} else if (t <= 7.8e-202) {
		tmp = (y * z) / ((y * b) + (t * (a + 1.0)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: tmp
    t_1 = (x + (z * (y / t))) / ((y * (b / t)) + (a + 1.0d0))
    if (t <= (-3.2d-30)) then
        tmp = t_1
    else if (t <= (-2.5d-80)) then
        tmp = (z / b) + ((t / b) * (x / y))
    else if (t <= (-6.5d-107)) then
        tmp = (x + (y / (t / z))) / (a + 1.0d0)
    else if (t <= 7.8d-202) then
        tmp = (y * z) / ((y * b) + (t * (a + 1.0d0)))
    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 t_1 = (x + (z * (y / t))) / ((y * (b / t)) + (a + 1.0));
	double tmp;
	if (t <= -3.2e-30) {
		tmp = t_1;
	} else if (t <= -2.5e-80) {
		tmp = (z / b) + ((t / b) * (x / y));
	} else if (t <= -6.5e-107) {
		tmp = (x + (y / (t / z))) / (a + 1.0);
	} else if (t <= 7.8e-202) {
		tmp = (y * z) / ((y * b) + (t * (a + 1.0)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (x + (z * (y / t))) / ((y * (b / t)) + (a + 1.0))
	tmp = 0
	if t <= -3.2e-30:
		tmp = t_1
	elif t <= -2.5e-80:
		tmp = (z / b) + ((t / b) * (x / y))
	elif t <= -6.5e-107:
		tmp = (x + (y / (t / z))) / (a + 1.0)
	elif t <= 7.8e-202:
		tmp = (y * z) / ((y * b) + (t * (a + 1.0)))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(Float64(y * Float64(b / t)) + Float64(a + 1.0)))
	tmp = 0.0
	if (t <= -3.2e-30)
		tmp = t_1;
	elseif (t <= -2.5e-80)
		tmp = Float64(Float64(z / b) + Float64(Float64(t / b) * Float64(x / y)));
	elseif (t <= -6.5e-107)
		tmp = Float64(Float64(x + Float64(y / Float64(t / z))) / Float64(a + 1.0));
	elseif (t <= 7.8e-202)
		tmp = Float64(Float64(y * z) / Float64(Float64(y * b) + Float64(t * Float64(a + 1.0))));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = (x + (z * (y / t))) / ((y * (b / t)) + (a + 1.0));
	tmp = 0.0;
	if (t <= -3.2e-30)
		tmp = t_1;
	elseif (t <= -2.5e-80)
		tmp = (z / b) + ((t / b) * (x / y));
	elseif (t <= -6.5e-107)
		tmp = (x + (y / (t / z))) / (a + 1.0);
	elseif (t <= 7.8e-202)
		tmp = (y * z) / ((y * b) + (t * (a + 1.0)));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.2e-30], t$95$1, If[LessEqual[t, -2.5e-80], N[(N[(z / b), $MachinePrecision] + N[(N[(t / b), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -6.5e-107], N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.8e-202], N[(N[(y * z), $MachinePrecision] / N[(N[(y * b), $MachinePrecision] + N[(t * N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{x + z \cdot \frac{y}{t}}{y \cdot \frac{b}{t} + \left(a + 1\right)}\\
\mathbf{if}\;t \leq -3.2 \cdot 10^{-30}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;t \leq -2.5 \cdot 10^{-80}:\\
\;\;\;\;\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\

\mathbf{elif}\;t \leq -6.5 \cdot 10^{-107}:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\

\mathbf{elif}\;t \leq 7.8 \cdot 10^{-202}:\\
\;\;\;\;\frac{y \cdot z}{y \cdot b + t \cdot \left(a + 1\right)}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -3.2e-30 or 7.7999999999999998e-202 < t

    1. Initial program 79.6%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative79.6%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. *-commutative84.2%

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified88.9%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in z around 0 81.9%

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

        \[\leadsto \frac{x + \frac{\color{blue}{z \cdot y}}{t}}{\left(a + 1\right) + \frac{b}{t} \cdot y} \]
      2. associate-*r/89.9%

        \[\leadsto \frac{x + \color{blue}{z \cdot \frac{y}{t}}}{\left(a + 1\right) + \frac{b}{t} \cdot y} \]
    6. Simplified89.9%

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

    if -3.2e-30 < t < -2.5e-80

    1. Initial program 54.7%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative54.7%

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

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

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified47.4%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in b around inf 40.7%

      \[\leadsto \color{blue}{\frac{t \cdot \left(x + \frac{y \cdot z}{t}\right)}{b \cdot y}} \]
    5. Taylor expanded in t around 0 71.0%

      \[\leadsto \color{blue}{\frac{z}{b} + \frac{t \cdot x}{b \cdot y}} \]
    6. Step-by-step derivation
      1. times-frac78.1%

        \[\leadsto \frac{z}{b} + \color{blue}{\frac{t}{b} \cdot \frac{x}{y}} \]
    7. Simplified78.1%

      \[\leadsto \color{blue}{\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}} \]

    if -2.5e-80 < t < -6.5000000000000002e-107

    1. Initial program 85.7%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative85.7%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. *-commutative85.7%

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified72.1%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Step-by-step derivation
      1. associate-/r/71.8%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{b}{t} \cdot y} \]
      2. clear-num72.1%

        \[\leadsto \frac{x + \color{blue}{\frac{1}{\frac{\frac{t}{y}}{z}}}}{\left(a + 1\right) + \frac{b}{t} \cdot y} \]
    5. Applied egg-rr72.1%

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

      \[\leadsto \color{blue}{\frac{x + \frac{y \cdot z}{t}}{1 + a}} \]
    7. Step-by-step derivation
      1. associate-/l*72.1%

        \[\leadsto \frac{x + \color{blue}{\frac{y}{\frac{t}{z}}}}{1 + a} \]
    8. Simplified72.1%

      \[\leadsto \color{blue}{\frac{x + \frac{y}{\frac{t}{z}}}{1 + a}} \]

    if -6.5000000000000002e-107 < t < 7.7999999999999998e-202

    1. Initial program 58.2%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative58.2%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. *-commutative50.2%

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified44.2%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in x around 0 52.1%

      \[\leadsto \color{blue}{\frac{y \cdot z}{t \cdot \left(1 + \left(a + \frac{b \cdot y}{t}\right)\right)}} \]
    5. Taylor expanded in t around 0 70.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -3.2 \cdot 10^{-30}:\\ \;\;\;\;\frac{x + z \cdot \frac{y}{t}}{y \cdot \frac{b}{t} + \left(a + 1\right)}\\ \mathbf{elif}\;t \leq -2.5 \cdot 10^{-80}:\\ \;\;\;\;\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\ \mathbf{elif}\;t \leq -6.5 \cdot 10^{-107}:\\ \;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\ \mathbf{elif}\;t \leq 7.8 \cdot 10^{-202}:\\ \;\;\;\;\frac{y \cdot z}{y \cdot b + t \cdot \left(a + 1\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x + z \cdot \frac{y}{t}}{y \cdot \frac{b}{t} + \left(a + 1\right)}\\ \end{array} \]

Alternative 5: 59.3% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{a + 1}\\ t_2 := \frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\ \mathbf{if}\;y \leq -2.85 \cdot 10^{-72}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq 3.9 \cdot 10^{-57}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq 0.0034:\\ \;\;\;\;\frac{y}{t} \cdot \frac{z}{a + 1}\\ \mathbf{elif}\;y \leq 3.9 \cdot 10^{+76} \lor \neg \left(y \leq 4.8 \cdot 10^{+108}\right):\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ x (+ a 1.0))) (t_2 (+ (/ z b) (* (/ t b) (/ x y)))))
   (if (<= y -2.85e-72)
     t_2
     (if (<= y 3.9e-57)
       t_1
       (if (<= y 0.0034)
         (* (/ y t) (/ z (+ a 1.0)))
         (if (or (<= y 3.9e+76) (not (<= y 4.8e+108))) t_2 t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = x / (a + 1.0);
	double t_2 = (z / b) + ((t / b) * (x / y));
	double tmp;
	if (y <= -2.85e-72) {
		tmp = t_2;
	} else if (y <= 3.9e-57) {
		tmp = t_1;
	} else if (y <= 0.0034) {
		tmp = (y / t) * (z / (a + 1.0));
	} else if ((y <= 3.9e+76) || !(y <= 4.8e+108)) {
		tmp = t_2;
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = x / (a + 1.0d0)
    t_2 = (z / b) + ((t / b) * (x / y))
    if (y <= (-2.85d-72)) then
        tmp = t_2
    else if (y <= 3.9d-57) then
        tmp = t_1
    else if (y <= 0.0034d0) then
        tmp = (y / t) * (z / (a + 1.0d0))
    else if ((y <= 3.9d+76) .or. (.not. (y <= 4.8d+108))) then
        tmp = t_2
    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 t_1 = x / (a + 1.0);
	double t_2 = (z / b) + ((t / b) * (x / y));
	double tmp;
	if (y <= -2.85e-72) {
		tmp = t_2;
	} else if (y <= 3.9e-57) {
		tmp = t_1;
	} else if (y <= 0.0034) {
		tmp = (y / t) * (z / (a + 1.0));
	} else if ((y <= 3.9e+76) || !(y <= 4.8e+108)) {
		tmp = t_2;
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = x / (a + 1.0)
	t_2 = (z / b) + ((t / b) * (x / y))
	tmp = 0
	if y <= -2.85e-72:
		tmp = t_2
	elif y <= 3.9e-57:
		tmp = t_1
	elif y <= 0.0034:
		tmp = (y / t) * (z / (a + 1.0))
	elif (y <= 3.9e+76) or not (y <= 4.8e+108):
		tmp = t_2
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(x / Float64(a + 1.0))
	t_2 = Float64(Float64(z / b) + Float64(Float64(t / b) * Float64(x / y)))
	tmp = 0.0
	if (y <= -2.85e-72)
		tmp = t_2;
	elseif (y <= 3.9e-57)
		tmp = t_1;
	elseif (y <= 0.0034)
		tmp = Float64(Float64(y / t) * Float64(z / Float64(a + 1.0)));
	elseif ((y <= 3.9e+76) || !(y <= 4.8e+108))
		tmp = t_2;
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = x / (a + 1.0);
	t_2 = (z / b) + ((t / b) * (x / y));
	tmp = 0.0;
	if (y <= -2.85e-72)
		tmp = t_2;
	elseif (y <= 3.9e-57)
		tmp = t_1;
	elseif (y <= 0.0034)
		tmp = (y / t) * (z / (a + 1.0));
	elseif ((y <= 3.9e+76) || ~((y <= 4.8e+108)))
		tmp = t_2;
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z / b), $MachinePrecision] + N[(N[(t / b), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.85e-72], t$95$2, If[LessEqual[y, 3.9e-57], t$95$1, If[LessEqual[y, 0.0034], N[(N[(y / t), $MachinePrecision] * N[(z / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, 3.9e+76], N[Not[LessEqual[y, 4.8e+108]], $MachinePrecision]], t$95$2, t$95$1]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{x}{a + 1}\\
t_2 := \frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\
\mathbf{if}\;y \leq -2.85 \cdot 10^{-72}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;y \leq 3.9 \cdot 10^{-57}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;y \leq 0.0034:\\
\;\;\;\;\frac{y}{t} \cdot \frac{z}{a + 1}\\

\mathbf{elif}\;y \leq 3.9 \cdot 10^{+76} \lor \neg \left(y \leq 4.8 \cdot 10^{+108}\right):\\
\;\;\;\;t_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -2.8500000000000001e-72 or 0.00339999999999999981 < y < 3.89999999999999989e76 or 4.80000000000000037e108 < y

    1. Initial program 53.4%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative53.4%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. *-commutative59.9%

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified67.0%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in b around inf 30.6%

      \[\leadsto \color{blue}{\frac{t \cdot \left(x + \frac{y \cdot z}{t}\right)}{b \cdot y}} \]
    5. Taylor expanded in t around 0 59.2%

      \[\leadsto \color{blue}{\frac{z}{b} + \frac{t \cdot x}{b \cdot y}} \]
    6. Step-by-step derivation
      1. times-frac64.9%

        \[\leadsto \frac{z}{b} + \color{blue}{\frac{t}{b} \cdot \frac{x}{y}} \]
    7. Simplified64.9%

      \[\leadsto \color{blue}{\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}} \]

    if -2.8500000000000001e-72 < y < 3.90000000000000006e-57 or 3.89999999999999989e76 < y < 4.80000000000000037e108

    1. Initial program 92.2%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative92.2%

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

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

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified79.7%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in t around inf 58.6%

      \[\leadsto \color{blue}{\frac{x}{1 + a}} \]

    if 3.90000000000000006e-57 < y < 0.00339999999999999981

    1. Initial program 99.6%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative99.6%

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

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

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified90.7%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in x around 0 64.6%

      \[\leadsto \color{blue}{\frac{y \cdot z}{t \cdot \left(1 + \left(a + \frac{b \cdot y}{t}\right)\right)}} \]
    5. Taylor expanded in y around 0 64.2%

      \[\leadsto \color{blue}{\frac{y \cdot z}{t \cdot \left(1 + a\right)}} \]
    6. Step-by-step derivation
      1. times-frac73.3%

        \[\leadsto \color{blue}{\frac{y}{t} \cdot \frac{z}{1 + a}} \]
    7. Simplified73.3%

      \[\leadsto \color{blue}{\frac{y}{t} \cdot \frac{z}{1 + a}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification62.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.85 \cdot 10^{-72}:\\ \;\;\;\;\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\ \mathbf{elif}\;y \leq 3.9 \cdot 10^{-57}:\\ \;\;\;\;\frac{x}{a + 1}\\ \mathbf{elif}\;y \leq 0.0034:\\ \;\;\;\;\frac{y}{t} \cdot \frac{z}{a + 1}\\ \mathbf{elif}\;y \leq 3.9 \cdot 10^{+76} \lor \neg \left(y \leq 4.8 \cdot 10^{+108}\right):\\ \;\;\;\;\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a + 1}\\ \end{array} \]

Alternative 6: 69.5% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\ \mathbf{if}\;y \leq -1.45 \cdot 10^{+40}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq 1.7 \cdot 10^{-199}:\\ \;\;\;\;\frac{x + \frac{y \cdot z}{t}}{a + 1}\\ \mathbf{elif}\;y \leq 3.5 \cdot 10^{-102}:\\ \;\;\;\;\frac{x}{1 + \left(a + \frac{b}{\frac{t}{y}}\right)}\\ \mathbf{elif}\;y \leq 9.5 \cdot 10^{+149}:\\ \;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (+ (/ z b) (* (/ t b) (/ x y)))))
   (if (<= y -1.45e+40)
     t_1
     (if (<= y 1.7e-199)
       (/ (+ x (/ (* y z) t)) (+ a 1.0))
       (if (<= y 3.5e-102)
         (/ x (+ 1.0 (+ a (/ b (/ t y)))))
         (if (<= y 9.5e+149) (/ (+ x (/ y (/ t z))) (+ a 1.0)) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (z / b) + ((t / b) * (x / y));
	double tmp;
	if (y <= -1.45e+40) {
		tmp = t_1;
	} else if (y <= 1.7e-199) {
		tmp = (x + ((y * z) / t)) / (a + 1.0);
	} else if (y <= 3.5e-102) {
		tmp = x / (1.0 + (a + (b / (t / y))));
	} else if (y <= 9.5e+149) {
		tmp = (x + (y / (t / z))) / (a + 1.0);
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: tmp
    t_1 = (z / b) + ((t / b) * (x / y))
    if (y <= (-1.45d+40)) then
        tmp = t_1
    else if (y <= 1.7d-199) then
        tmp = (x + ((y * z) / t)) / (a + 1.0d0)
    else if (y <= 3.5d-102) then
        tmp = x / (1.0d0 + (a + (b / (t / y))))
    else if (y <= 9.5d+149) then
        tmp = (x + (y / (t / z))) / (a + 1.0d0)
    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 t_1 = (z / b) + ((t / b) * (x / y));
	double tmp;
	if (y <= -1.45e+40) {
		tmp = t_1;
	} else if (y <= 1.7e-199) {
		tmp = (x + ((y * z) / t)) / (a + 1.0);
	} else if (y <= 3.5e-102) {
		tmp = x / (1.0 + (a + (b / (t / y))));
	} else if (y <= 9.5e+149) {
		tmp = (x + (y / (t / z))) / (a + 1.0);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (z / b) + ((t / b) * (x / y))
	tmp = 0
	if y <= -1.45e+40:
		tmp = t_1
	elif y <= 1.7e-199:
		tmp = (x + ((y * z) / t)) / (a + 1.0)
	elif y <= 3.5e-102:
		tmp = x / (1.0 + (a + (b / (t / y))))
	elif y <= 9.5e+149:
		tmp = (x + (y / (t / z))) / (a + 1.0)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(z / b) + Float64(Float64(t / b) * Float64(x / y)))
	tmp = 0.0
	if (y <= -1.45e+40)
		tmp = t_1;
	elseif (y <= 1.7e-199)
		tmp = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(a + 1.0));
	elseif (y <= 3.5e-102)
		tmp = Float64(x / Float64(1.0 + Float64(a + Float64(b / Float64(t / y)))));
	elseif (y <= 9.5e+149)
		tmp = Float64(Float64(x + Float64(y / Float64(t / z))) / Float64(a + 1.0));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = (z / b) + ((t / b) * (x / y));
	tmp = 0.0;
	if (y <= -1.45e+40)
		tmp = t_1;
	elseif (y <= 1.7e-199)
		tmp = (x + ((y * z) / t)) / (a + 1.0);
	elseif (y <= 3.5e-102)
		tmp = x / (1.0 + (a + (b / (t / y))));
	elseif (y <= 9.5e+149)
		tmp = (x + (y / (t / z))) / (a + 1.0);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z / b), $MachinePrecision] + N[(N[(t / b), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.45e+40], t$95$1, If[LessEqual[y, 1.7e-199], N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.5e-102], N[(x / N[(1.0 + N[(a + N[(b / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.5e+149], N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\
\mathbf{if}\;y \leq -1.45 \cdot 10^{+40}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;y \leq 1.7 \cdot 10^{-199}:\\
\;\;\;\;\frac{x + \frac{y \cdot z}{t}}{a + 1}\\

\mathbf{elif}\;y \leq 3.5 \cdot 10^{-102}:\\
\;\;\;\;\frac{x}{1 + \left(a + \frac{b}{\frac{t}{y}}\right)}\\

\mathbf{elif}\;y \leq 9.5 \cdot 10^{+149}:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -1.45000000000000009e40 or 9.49999999999999973e149 < y

    1. Initial program 41.4%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative41.4%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. *-commutative49.5%

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified60.4%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in b around inf 23.3%

      \[\leadsto \color{blue}{\frac{t \cdot \left(x + \frac{y \cdot z}{t}\right)}{b \cdot y}} \]
    5. Taylor expanded in t around 0 60.3%

      \[\leadsto \color{blue}{\frac{z}{b} + \frac{t \cdot x}{b \cdot y}} \]
    6. Step-by-step derivation
      1. times-frac69.3%

        \[\leadsto \frac{z}{b} + \color{blue}{\frac{t}{b} \cdot \frac{x}{y}} \]
    7. Simplified69.3%

      \[\leadsto \color{blue}{\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}} \]

    if -1.45000000000000009e40 < y < 1.70000000000000003e-199

    1. Initial program 92.9%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative92.9%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. *-commutative85.2%

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified80.7%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in b around 0 73.8%

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

    if 1.70000000000000003e-199 < y < 3.49999999999999986e-102

    1. Initial program 99.7%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative99.7%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/99.8%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
      4. *-commutative99.8%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{b \cdot \frac{y}{t}}} \]
      5. cancel-sign-sub99.8%

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

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) - \color{blue}{\frac{y}{t} \cdot \left(-b\right)}} \]
      7. associate-*l/99.7%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) - \color{blue}{\frac{y \cdot \left(-b\right)}{t}}} \]
      8. associate-+r-99.7%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\color{blue}{a + \left(1 - \frac{y \cdot \left(-b\right)}{t}\right)}} \]
      9. associate-*l/99.8%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 - \color{blue}{\frac{y}{t} \cdot \left(-b\right)}\right)} \]
      10. *-commutative99.8%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 - \color{blue}{\left(-b\right) \cdot \frac{y}{t}}\right)} \]
      11. cancel-sign-sub99.8%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{a + \color{blue}{\left(1 + b \cdot \frac{y}{t}\right)}} \]
      12. *-commutative99.8%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 + \color{blue}{\frac{y}{t} \cdot b}\right)} \]
      13. associate-/r/84.5%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 + \color{blue}{\frac{y}{\frac{t}{b}}}\right)} \]
    3. Simplified84.5%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 + \frac{y}{\frac{t}{b}}\right)}} \]
    4. Step-by-step derivation
      1. associate-/r/79.4%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z \cdot y}{t}}}{a + \left(1 + \frac{y}{\frac{t}{b}}\right)} \]
      3. *-commutative84.5%

        \[\leadsto \frac{x + \frac{\color{blue}{y \cdot z}}{t}}{a + \left(1 + \frac{y}{\frac{t}{b}}\right)} \]
      4. div-inv84.4%

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

        \[\leadsto \frac{x + \color{blue}{\left(z \cdot y\right)} \cdot \frac{1}{t}}{a + \left(1 + \frac{y}{\frac{t}{b}}\right)} \]
    5. Applied egg-rr84.4%

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

      \[\leadsto \color{blue}{\frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)}} \]
    7. Step-by-step derivation
      1. associate-/l*86.6%

        \[\leadsto \frac{x}{1 + \left(a + \color{blue}{\frac{b}{\frac{t}{y}}}\right)} \]
    8. Simplified86.6%

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

    if 3.49999999999999986e-102 < y < 9.49999999999999973e149

    1. Initial program 83.8%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative83.8%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. *-commutative85.5%

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified83.6%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Step-by-step derivation
      1. associate-/r/83.4%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{b}{t} \cdot y} \]
      2. clear-num83.4%

        \[\leadsto \frac{x + \color{blue}{\frac{1}{\frac{\frac{t}{y}}{z}}}}{\left(a + 1\right) + \frac{b}{t} \cdot y} \]
    5. Applied egg-rr83.4%

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

      \[\leadsto \color{blue}{\frac{x + \frac{y \cdot z}{t}}{1 + a}} \]
    7. Step-by-step derivation
      1. associate-/l*63.2%

        \[\leadsto \frac{x + \color{blue}{\frac{y}{\frac{t}{z}}}}{1 + a} \]
    8. Simplified63.2%

      \[\leadsto \color{blue}{\frac{x + \frac{y}{\frac{t}{z}}}{1 + a}} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification70.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.45 \cdot 10^{+40}:\\ \;\;\;\;\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\ \mathbf{elif}\;y \leq 1.7 \cdot 10^{-199}:\\ \;\;\;\;\frac{x + \frac{y \cdot z}{t}}{a + 1}\\ \mathbf{elif}\;y \leq 3.5 \cdot 10^{-102}:\\ \;\;\;\;\frac{x}{1 + \left(a + \frac{b}{\frac{t}{y}}\right)}\\ \mathbf{elif}\;y \leq 9.5 \cdot 10^{+149}:\\ \;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\ \end{array} \]

Alternative 7: 55.3% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{a + 1}\\ \mathbf{if}\;t \leq -6.5 \cdot 10^{-28}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 4.5 \cdot 10^{-136}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;t \leq 3.2 \cdot 10^{-24}:\\ \;\;\;\;\frac{y}{t} \cdot \frac{z}{a + 1}\\ \mathbf{elif}\;t \leq 2.8 \cdot 10^{+18}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ x (+ a 1.0))))
   (if (<= t -6.5e-28)
     t_1
     (if (<= t 4.5e-136)
       (/ z b)
       (if (<= t 3.2e-24)
         (* (/ y t) (/ z (+ a 1.0)))
         (if (<= t 2.8e+18) (/ z b) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = x / (a + 1.0);
	double tmp;
	if (t <= -6.5e-28) {
		tmp = t_1;
	} else if (t <= 4.5e-136) {
		tmp = z / b;
	} else if (t <= 3.2e-24) {
		tmp = (y / t) * (z / (a + 1.0));
	} else if (t <= 2.8e+18) {
		tmp = z / b;
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: tmp
    t_1 = x / (a + 1.0d0)
    if (t <= (-6.5d-28)) then
        tmp = t_1
    else if (t <= 4.5d-136) then
        tmp = z / b
    else if (t <= 3.2d-24) then
        tmp = (y / t) * (z / (a + 1.0d0))
    else if (t <= 2.8d+18) then
        tmp = z / b
    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 t_1 = x / (a + 1.0);
	double tmp;
	if (t <= -6.5e-28) {
		tmp = t_1;
	} else if (t <= 4.5e-136) {
		tmp = z / b;
	} else if (t <= 3.2e-24) {
		tmp = (y / t) * (z / (a + 1.0));
	} else if (t <= 2.8e+18) {
		tmp = z / b;
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = x / (a + 1.0)
	tmp = 0
	if t <= -6.5e-28:
		tmp = t_1
	elif t <= 4.5e-136:
		tmp = z / b
	elif t <= 3.2e-24:
		tmp = (y / t) * (z / (a + 1.0))
	elif t <= 2.8e+18:
		tmp = z / b
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(x / Float64(a + 1.0))
	tmp = 0.0
	if (t <= -6.5e-28)
		tmp = t_1;
	elseif (t <= 4.5e-136)
		tmp = Float64(z / b);
	elseif (t <= 3.2e-24)
		tmp = Float64(Float64(y / t) * Float64(z / Float64(a + 1.0)));
	elseif (t <= 2.8e+18)
		tmp = Float64(z / b);
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = x / (a + 1.0);
	tmp = 0.0;
	if (t <= -6.5e-28)
		tmp = t_1;
	elseif (t <= 4.5e-136)
		tmp = z / b;
	elseif (t <= 3.2e-24)
		tmp = (y / t) * (z / (a + 1.0));
	elseif (t <= 2.8e+18)
		tmp = z / b;
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.5e-28], t$95$1, If[LessEqual[t, 4.5e-136], N[(z / b), $MachinePrecision], If[LessEqual[t, 3.2e-24], N[(N[(y / t), $MachinePrecision] * N[(z / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.8e+18], N[(z / b), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{x}{a + 1}\\
\mathbf{if}\;t \leq -6.5 \cdot 10^{-28}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;t \leq 4.5 \cdot 10^{-136}:\\
\;\;\;\;\frac{z}{b}\\

\mathbf{elif}\;t \leq 3.2 \cdot 10^{-24}:\\
\;\;\;\;\frac{y}{t} \cdot \frac{z}{a + 1}\\

\mathbf{elif}\;t \leq 2.8 \cdot 10^{+18}:\\
\;\;\;\;\frac{z}{b}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -6.50000000000000043e-28 or 2.8e18 < t

    1. Initial program 84.6%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative84.6%

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

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

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified99.7%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in t around inf 61.4%

      \[\leadsto \color{blue}{\frac{x}{1 + a}} \]

    if -6.50000000000000043e-28 < t < 4.49999999999999972e-136 or 3.20000000000000012e-24 < t < 2.8e18

    1. Initial program 58.8%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative58.8%

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

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

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified47.1%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in t around 0 56.8%

      \[\leadsto \color{blue}{\frac{z}{b}} \]

    if 4.49999999999999972e-136 < t < 3.20000000000000012e-24

    1. Initial program 83.1%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative83.1%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. *-commutative87.2%

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified83.2%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in x around 0 34.6%

      \[\leadsto \color{blue}{\frac{y \cdot z}{t \cdot \left(1 + \left(a + \frac{b \cdot y}{t}\right)\right)}} \]
    5. Taylor expanded in y around 0 28.9%

      \[\leadsto \color{blue}{\frac{y \cdot z}{t \cdot \left(1 + a\right)}} \]
    6. Step-by-step derivation
      1. times-frac37.3%

        \[\leadsto \color{blue}{\frac{y}{t} \cdot \frac{z}{1 + a}} \]
    7. Simplified37.3%

      \[\leadsto \color{blue}{\frac{y}{t} \cdot \frac{z}{1 + a}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification57.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -6.5 \cdot 10^{-28}:\\ \;\;\;\;\frac{x}{a + 1}\\ \mathbf{elif}\;t \leq 4.5 \cdot 10^{-136}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;t \leq 3.2 \cdot 10^{-24}:\\ \;\;\;\;\frac{y}{t} \cdot \frac{z}{a + 1}\\ \mathbf{elif}\;t \leq 2.8 \cdot 10^{+18}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a + 1}\\ \end{array} \]

Alternative 8: 53.5% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{a + 1}\\ \mathbf{if}\;t \leq -3.2 \cdot 10^{-30}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 6.4 \cdot 10^{-138}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;t \leq 3.9 \cdot 10^{+148}:\\ \;\;\;\;\frac{x}{1 + b \cdot \frac{y}{t}}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ x (+ a 1.0))))
   (if (<= t -3.2e-30)
     t_1
     (if (<= t 6.4e-138)
       (/ z b)
       (if (<= t 3.9e+148) (/ x (+ 1.0 (* b (/ y t)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = x / (a + 1.0);
	double tmp;
	if (t <= -3.2e-30) {
		tmp = t_1;
	} else if (t <= 6.4e-138) {
		tmp = z / b;
	} else if (t <= 3.9e+148) {
		tmp = x / (1.0 + (b * (y / t)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: tmp
    t_1 = x / (a + 1.0d0)
    if (t <= (-3.2d-30)) then
        tmp = t_1
    else if (t <= 6.4d-138) then
        tmp = z / b
    else if (t <= 3.9d+148) then
        tmp = x / (1.0d0 + (b * (y / t)))
    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 t_1 = x / (a + 1.0);
	double tmp;
	if (t <= -3.2e-30) {
		tmp = t_1;
	} else if (t <= 6.4e-138) {
		tmp = z / b;
	} else if (t <= 3.9e+148) {
		tmp = x / (1.0 + (b * (y / t)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = x / (a + 1.0)
	tmp = 0
	if t <= -3.2e-30:
		tmp = t_1
	elif t <= 6.4e-138:
		tmp = z / b
	elif t <= 3.9e+148:
		tmp = x / (1.0 + (b * (y / t)))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(x / Float64(a + 1.0))
	tmp = 0.0
	if (t <= -3.2e-30)
		tmp = t_1;
	elseif (t <= 6.4e-138)
		tmp = Float64(z / b);
	elseif (t <= 3.9e+148)
		tmp = Float64(x / Float64(1.0 + Float64(b * Float64(y / t))));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = x / (a + 1.0);
	tmp = 0.0;
	if (t <= -3.2e-30)
		tmp = t_1;
	elseif (t <= 6.4e-138)
		tmp = z / b;
	elseif (t <= 3.9e+148)
		tmp = x / (1.0 + (b * (y / t)));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.2e-30], t$95$1, If[LessEqual[t, 6.4e-138], N[(z / b), $MachinePrecision], If[LessEqual[t, 3.9e+148], N[(x / N[(1.0 + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{x}{a + 1}\\
\mathbf{if}\;t \leq -3.2 \cdot 10^{-30}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;t \leq 6.4 \cdot 10^{-138}:\\
\;\;\;\;\frac{z}{b}\\

\mathbf{elif}\;t \leq 3.9 \cdot 10^{+148}:\\
\;\;\;\;\frac{x}{1 + b \cdot \frac{y}{t}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -3.2e-30 or 3.90000000000000002e148 < t

    1. Initial program 84.5%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative84.5%

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

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

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified99.7%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in t around inf 64.3%

      \[\leadsto \color{blue}{\frac{x}{1 + a}} \]

    if -3.2e-30 < t < 6.40000000000000019e-138

    1. Initial program 59.4%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative59.4%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. *-commutative51.5%

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified45.8%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in t around 0 58.2%

      \[\leadsto \color{blue}{\frac{z}{b}} \]

    if 6.40000000000000019e-138 < t < 3.90000000000000002e148

    1. Initial program 77.7%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative77.7%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. *-commutative85.0%

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified84.8%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in x around inf 53.6%

      \[\leadsto \frac{\color{blue}{x}}{\left(a + 1\right) + \frac{b}{t} \cdot y} \]
    5. Taylor expanded in a around 0 45.7%

      \[\leadsto \color{blue}{\frac{x}{1 + \frac{b \cdot y}{t}}} \]
    6. Step-by-step derivation
      1. *-commutative45.7%

        \[\leadsto \frac{x}{1 + \frac{\color{blue}{y \cdot b}}{t}} \]
      2. associate-*l/46.4%

        \[\leadsto \frac{x}{1 + \color{blue}{\frac{y}{t} \cdot b}} \]
    7. Applied egg-rr46.4%

      \[\leadsto \frac{x}{1 + \color{blue}{\frac{y}{t} \cdot b}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification58.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -3.2 \cdot 10^{-30}:\\ \;\;\;\;\frac{x}{a + 1}\\ \mathbf{elif}\;t \leq 6.4 \cdot 10^{-138}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;t \leq 3.9 \cdot 10^{+148}:\\ \;\;\;\;\frac{x}{1 + b \cdot \frac{y}{t}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a + 1}\\ \end{array} \]

Alternative 9: 63.6% accurate, 1.1× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.2 \cdot 10^{-30} \lor \neg \left(t \leq 9.8 \cdot 10^{-138}\right):\\
\;\;\;\;\frac{x}{1 + \left(a + \frac{b}{\frac{t}{y}}\right)}\\

\mathbf{else}:\\
\;\;\;\;\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -3.2e-30 or 9.80000000000000033e-138 < t

    1. Initial program 82.1%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative82.1%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. associate-*l/95.1%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{\frac{y}{t} \cdot b}} \]
      4. *-commutative95.1%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) + \color{blue}{b \cdot \frac{y}{t}}} \]
      5. cancel-sign-sub95.1%

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

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) - \color{blue}{\frac{y}{t} \cdot \left(-b\right)}} \]
      7. associate-*l/88.0%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\left(a + 1\right) - \color{blue}{\frac{y \cdot \left(-b\right)}{t}}} \]
      8. associate-+r-88.0%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{\color{blue}{a + \left(1 - \frac{y \cdot \left(-b\right)}{t}\right)}} \]
      9. associate-*l/95.1%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 - \color{blue}{\frac{y}{t} \cdot \left(-b\right)}\right)} \]
      10. *-commutative95.1%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 - \color{blue}{\left(-b\right) \cdot \frac{y}{t}}\right)} \]
      11. cancel-sign-sub95.1%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{a + \color{blue}{\left(1 + b \cdot \frac{y}{t}\right)}} \]
      12. *-commutative95.1%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 + \color{blue}{\frac{y}{t} \cdot b}\right)} \]
      13. associate-/r/93.9%

        \[\leadsto \frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 + \color{blue}{\frac{y}{\frac{t}{b}}}\right)} \]
    3. Simplified93.9%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{\frac{t}{y}}}{a + \left(1 + \frac{y}{\frac{t}{b}}\right)}} \]
    4. Step-by-step derivation
      1. associate-/r/94.5%

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

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

        \[\leadsto \frac{x + \frac{\color{blue}{y \cdot z}}{t}}{a + \left(1 + \frac{y}{\frac{t}{b}}\right)} \]
      4. div-inv85.4%

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

        \[\leadsto \frac{x + \color{blue}{\left(z \cdot y\right)} \cdot \frac{1}{t}}{a + \left(1 + \frac{y}{\frac{t}{b}}\right)} \]
    5. Applied egg-rr85.4%

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

      \[\leadsto \color{blue}{\frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)}} \]
    7. Step-by-step derivation
      1. associate-/l*68.8%

        \[\leadsto \frac{x}{1 + \left(a + \color{blue}{\frac{b}{\frac{t}{y}}}\right)} \]
    8. Simplified68.8%

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

    if -3.2e-30 < t < 9.80000000000000033e-138

    1. Initial program 59.4%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative59.4%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. *-commutative51.5%

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified45.8%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in b around inf 40.8%

      \[\leadsto \color{blue}{\frac{t \cdot \left(x + \frac{y \cdot z}{t}\right)}{b \cdot y}} \]
    5. Taylor expanded in t around 0 69.1%

      \[\leadsto \color{blue}{\frac{z}{b} + \frac{t \cdot x}{b \cdot y}} \]
    6. Step-by-step derivation
      1. times-frac61.0%

        \[\leadsto \frac{z}{b} + \color{blue}{\frac{t}{b} \cdot \frac{x}{y}} \]
    7. Simplified61.0%

      \[\leadsto \color{blue}{\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification65.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -3.2 \cdot 10^{-30} \lor \neg \left(t \leq 9.8 \cdot 10^{-138}\right):\\ \;\;\;\;\frac{x}{1 + \left(a + \frac{b}{\frac{t}{y}}\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\ \end{array} \]

Alternative 10: 67.6% accurate, 1.1× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.5 \cdot 10^{-26} \lor \neg \left(t \leq 4.5 \cdot 10^{-136}\right):\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\

\mathbf{else}:\\
\;\;\;\;\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -9.4999999999999995e-26 or 4.49999999999999972e-136 < t

    1. Initial program 82.0%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative82.0%

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

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

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified95.1%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Step-by-step derivation
      1. associate-/r/94.5%

        \[\leadsto \frac{x + \color{blue}{\frac{z}{\frac{t}{y}}}}{\left(a + 1\right) + \frac{b}{t} \cdot y} \]
      2. clear-num94.5%

        \[\leadsto \frac{x + \color{blue}{\frac{1}{\frac{\frac{t}{y}}{z}}}}{\left(a + 1\right) + \frac{b}{t} \cdot y} \]
    5. Applied egg-rr94.5%

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

      \[\leadsto \color{blue}{\frac{x + \frac{y \cdot z}{t}}{1 + a}} \]
    7. Step-by-step derivation
      1. associate-/l*73.1%

        \[\leadsto \frac{x + \color{blue}{\frac{y}{\frac{t}{z}}}}{1 + a} \]
    8. Simplified73.1%

      \[\leadsto \color{blue}{\frac{x + \frac{y}{\frac{t}{z}}}{1 + a}} \]

    if -9.4999999999999995e-26 < t < 4.49999999999999972e-136

    1. Initial program 59.8%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative59.8%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. *-commutative52.0%

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified45.4%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in b around inf 41.3%

      \[\leadsto \color{blue}{\frac{t \cdot \left(x + \frac{y \cdot z}{t}\right)}{b \cdot y}} \]
    5. Taylor expanded in t around 0 69.3%

      \[\leadsto \color{blue}{\frac{z}{b} + \frac{t \cdot x}{b \cdot y}} \]
    6. Step-by-step derivation
      1. times-frac60.5%

        \[\leadsto \frac{z}{b} + \color{blue}{\frac{t}{b} \cdot \frac{x}{y}} \]
    7. Simplified60.5%

      \[\leadsto \color{blue}{\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification67.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -9.5 \cdot 10^{-26} \lor \neg \left(t \leq 4.5 \cdot 10^{-136}\right):\\ \;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b} + \frac{t}{b} \cdot \frac{x}{y}\\ \end{array} \]

Alternative 11: 42.0% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -2.8 \cdot 10^{+181}:\\ \;\;\;\;x\\ \mathbf{elif}\;t \leq -7.6 \cdot 10^{-26}:\\ \;\;\;\;\frac{x}{a}\\ \mathbf{elif}\;t \leq 6 \cdot 10^{+62}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= t -2.8e+181)
   x
   (if (<= t -7.6e-26) (/ x a) (if (<= t 6e+62) (/ z b) (/ x a)))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (t <= -2.8e+181) {
		tmp = x;
	} else if (t <= -7.6e-26) {
		tmp = x / a;
	} else if (t <= 6e+62) {
		tmp = z / b;
	} else {
		tmp = x / a;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: tmp
    if (t <= (-2.8d+181)) then
        tmp = x
    else if (t <= (-7.6d-26)) then
        tmp = x / a
    else if (t <= 6d+62) then
        tmp = z / b
    else
        tmp = x / a
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (t <= -2.8e+181) {
		tmp = x;
	} else if (t <= -7.6e-26) {
		tmp = x / a;
	} else if (t <= 6e+62) {
		tmp = z / b;
	} else {
		tmp = x / a;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if t <= -2.8e+181:
		tmp = x
	elif t <= -7.6e-26:
		tmp = x / a
	elif t <= 6e+62:
		tmp = z / b
	else:
		tmp = x / a
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (t <= -2.8e+181)
		tmp = x;
	elseif (t <= -7.6e-26)
		tmp = Float64(x / a);
	elseif (t <= 6e+62)
		tmp = Float64(z / b);
	else
		tmp = Float64(x / a);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if (t <= -2.8e+181)
		tmp = x;
	elseif (t <= -7.6e-26)
		tmp = x / a;
	elseif (t <= 6e+62)
		tmp = z / b;
	else
		tmp = x / a;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -2.8e+181], x, If[LessEqual[t, -7.6e-26], N[(x / a), $MachinePrecision], If[LessEqual[t, 6e+62], N[(z / b), $MachinePrecision], N[(x / a), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.8 \cdot 10^{+181}:\\
\;\;\;\;x\\

\mathbf{elif}\;t \leq -7.6 \cdot 10^{-26}:\\
\;\;\;\;\frac{x}{a}\\

\mathbf{elif}\;t \leq 6 \cdot 10^{+62}:\\
\;\;\;\;\frac{z}{b}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -2.79999999999999984e181

    1. Initial program 85.0%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative85.0%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. *-commutative92.5%

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified99.8%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in x around inf 83.2%

      \[\leadsto \frac{\color{blue}{x}}{\left(a + 1\right) + \frac{b}{t} \cdot y} \]
    5. Taylor expanded in a around 0 57.3%

      \[\leadsto \color{blue}{\frac{x}{1 + \frac{b \cdot y}{t}}} \]
    6. Taylor expanded in b around 0 50.1%

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

    if -2.79999999999999984e181 < t < -7.60000000000000029e-26 or 6e62 < t

    1. Initial program 84.3%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative84.3%

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

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

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified99.7%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in x around inf 71.2%

      \[\leadsto \frac{\color{blue}{x}}{\left(a + 1\right) + \frac{b}{t} \cdot y} \]
    5. Taylor expanded in a around inf 37.9%

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

    if -7.60000000000000029e-26 < t < 6e62

    1. Initial program 63.7%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative63.7%

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

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

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified54.8%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in t around 0 49.1%

      \[\leadsto \color{blue}{\frac{z}{b}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification45.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2.8 \cdot 10^{+181}:\\ \;\;\;\;x\\ \mathbf{elif}\;t \leq -7.6 \cdot 10^{-26}:\\ \;\;\;\;\frac{x}{a}\\ \mathbf{elif}\;t \leq 6 \cdot 10^{+62}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a}\\ \end{array} \]

Alternative 12: 56.3% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.9 \cdot 10^{-28} \lor \neg \left(t \leq 3.2 \cdot 10^{-101}\right):\\ \;\;\;\;\frac{x}{a + 1}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (or (<= t -1.9e-28) (not (<= t 3.2e-101))) (/ x (+ a 1.0)) (/ z b)))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if ((t <= -1.9e-28) || !(t <= 3.2e-101)) {
		tmp = x / (a + 1.0);
	} else {
		tmp = z / b;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: tmp
    if ((t <= (-1.9d-28)) .or. (.not. (t <= 3.2d-101))) then
        tmp = x / (a + 1.0d0)
    else
        tmp = z / b
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if ((t <= -1.9e-28) || !(t <= 3.2e-101)) {
		tmp = x / (a + 1.0);
	} else {
		tmp = z / b;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if (t <= -1.9e-28) or not (t <= 3.2e-101):
		tmp = x / (a + 1.0)
	else:
		tmp = z / b
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if ((t <= -1.9e-28) || !(t <= 3.2e-101))
		tmp = Float64(x / Float64(a + 1.0));
	else
		tmp = Float64(z / b);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if ((t <= -1.9e-28) || ~((t <= 3.2e-101)))
		tmp = x / (a + 1.0);
	else
		tmp = z / b;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.9e-28], N[Not[LessEqual[t, 3.2e-101]], $MachinePrecision]], N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], N[(z / b), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.9 \cdot 10^{-28} \lor \neg \left(t \leq 3.2 \cdot 10^{-101}\right):\\
\;\;\;\;\frac{x}{a + 1}\\

\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.90000000000000005e-28 or 3.19999999999999978e-101 < t

    1. Initial program 82.2%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative82.2%

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

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

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified95.0%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in t around inf 54.9%

      \[\leadsto \color{blue}{\frac{x}{1 + a}} \]

    if -1.90000000000000005e-28 < t < 3.19999999999999978e-101

    1. Initial program 60.3%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative60.3%

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

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

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified47.3%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in t around 0 56.1%

      \[\leadsto \color{blue}{\frac{z}{b}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification55.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.9 \cdot 10^{-28} \lor \neg \left(t \leq 3.2 \cdot 10^{-101}\right):\\ \;\;\;\;\frac{x}{a + 1}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \]

Alternative 13: 41.6% accurate, 2.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -9.5 \cdot 10^{-22}:\\ \;\;\;\;\frac{x}{a}\\ \mathbf{elif}\;a \leq 1:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= a -9.5e-22) (/ x a) (if (<= a 1.0) x (/ x a))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (a <= -9.5e-22) {
		tmp = x / a;
	} else if (a <= 1.0) {
		tmp = x;
	} else {
		tmp = x / a;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: tmp
    if (a <= (-9.5d-22)) then
        tmp = x / a
    else if (a <= 1.0d0) then
        tmp = x
    else
        tmp = x / a
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (a <= -9.5e-22) {
		tmp = x / a;
	} else if (a <= 1.0) {
		tmp = x;
	} else {
		tmp = x / a;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if a <= -9.5e-22:
		tmp = x / a
	elif a <= 1.0:
		tmp = x
	else:
		tmp = x / a
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (a <= -9.5e-22)
		tmp = Float64(x / a);
	elseif (a <= 1.0)
		tmp = x;
	else
		tmp = Float64(x / a);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if (a <= -9.5e-22)
		tmp = x / a;
	elseif (a <= 1.0)
		tmp = x;
	else
		tmp = x / a;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -9.5e-22], N[(x / a), $MachinePrecision], If[LessEqual[a, 1.0], x, N[(x / a), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.5 \cdot 10^{-22}:\\
\;\;\;\;\frac{x}{a}\\

\mathbf{elif}\;a \leq 1:\\
\;\;\;\;x\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -9.4999999999999994e-22 or 1 < a

    1. Initial program 70.1%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative70.1%

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

        \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
      3. *-commutative68.7%

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified69.8%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in x around inf 46.3%

      \[\leadsto \frac{\color{blue}{x}}{\left(a + 1\right) + \frac{b}{t} \cdot y} \]
    5. Taylor expanded in a around inf 40.0%

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

    if -9.4999999999999994e-22 < a < 1

    1. Initial program 74.8%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Step-by-step derivation
      1. *-commutative74.8%

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

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

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

        \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
    3. Simplified77.6%

      \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
    4. Taylor expanded in x around inf 54.9%

      \[\leadsto \frac{\color{blue}{x}}{\left(a + 1\right) + \frac{b}{t} \cdot y} \]
    5. Taylor expanded in a around 0 56.1%

      \[\leadsto \color{blue}{\frac{x}{1 + \frac{b \cdot y}{t}}} \]
    6. Taylor expanded in b around 0 35.4%

      \[\leadsto \color{blue}{x} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification37.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -9.5 \cdot 10^{-22}:\\ \;\;\;\;\frac{x}{a}\\ \mathbf{elif}\;a \leq 1:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a}\\ \end{array} \]

Alternative 14: 20.4% accurate, 17.0× speedup?

\[\begin{array}{l} \\ x \end{array} \]
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
	return x;
}
real(8) function code(x, y, z, t, a, b)
    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
    code = x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return x;
}
def code(x, y, z, t, a, b):
	return x
function code(x, y, z, t, a, b)
	return x
end
function tmp = code(x, y, z, t, a, b)
	tmp = x;
end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}

\\
x
\end{array}
Derivation
  1. Initial program 72.4%

    \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
  2. Step-by-step derivation
    1. *-commutative72.4%

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

      \[\leadsto \frac{x + \color{blue}{\frac{z}{t} \cdot y}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    3. *-commutative72.7%

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

      \[\leadsto \frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \color{blue}{\frac{b}{t} \cdot y}} \]
  3. Simplified73.6%

    \[\leadsto \color{blue}{\frac{x + \frac{z}{t} \cdot y}{\left(a + 1\right) + \frac{b}{t} \cdot y}} \]
  4. Taylor expanded in x around inf 50.4%

    \[\leadsto \frac{\color{blue}{x}}{\left(a + 1\right) + \frac{b}{t} \cdot y} \]
  5. Taylor expanded in a around 0 35.1%

    \[\leadsto \color{blue}{\frac{x}{1 + \frac{b \cdot y}{t}}} \]
  6. Taylor expanded in b around 0 19.1%

    \[\leadsto \color{blue}{x} \]
  7. Final simplification19.1%

    \[\leadsto x \]

Developer target: 79.4% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := 1 \cdot \left(\left(x + \frac{y}{t} \cdot z\right) \cdot \frac{1}{\left(a + 1\right) + \frac{y}{t} \cdot b}\right)\\ \mathbf{if}\;t < -1.3659085366310088 \cdot 10^{-271}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t < 3.036967103737246 \cdot 10^{-130}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1
         (* 1.0 (* (+ x (* (/ y t) z)) (/ 1.0 (+ (+ a 1.0) (* (/ y t) b)))))))
   (if (< t -1.3659085366310088e-271)
     t_1
     (if (< t 3.036967103737246e-130) (/ z b) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b))));
	double tmp;
	if (t < -1.3659085366310088e-271) {
		tmp = t_1;
	} else if (t < 3.036967103737246e-130) {
		tmp = z / b;
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    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) :: t_1
    real(8) :: tmp
    t_1 = 1.0d0 * ((x + ((y / t) * z)) * (1.0d0 / ((a + 1.0d0) + ((y / t) * b))))
    if (t < (-1.3659085366310088d-271)) then
        tmp = t_1
    else if (t < 3.036967103737246d-130) then
        tmp = z / b
    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 t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b))));
	double tmp;
	if (t < -1.3659085366310088e-271) {
		tmp = t_1;
	} else if (t < 3.036967103737246e-130) {
		tmp = z / b;
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b))))
	tmp = 0
	if t < -1.3659085366310088e-271:
		tmp = t_1
	elif t < 3.036967103737246e-130:
		tmp = z / b
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(1.0 * Float64(Float64(x + Float64(Float64(y / t) * z)) * Float64(1.0 / Float64(Float64(a + 1.0) + Float64(Float64(y / t) * b)))))
	tmp = 0.0
	if (t < -1.3659085366310088e-271)
		tmp = t_1;
	elseif (t < 3.036967103737246e-130)
		tmp = Float64(z / b);
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b))));
	tmp = 0.0;
	if (t < -1.3659085366310088e-271)
		tmp = t_1;
	elseif (t < 3.036967103737246e-130)
		tmp = z / b;
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(1.0 * N[(N[(x + N[(N[(y / t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y / t), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -1.3659085366310088e-271], t$95$1, If[Less[t, 3.036967103737246e-130], N[(z / b), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := 1 \cdot \left(\left(x + \frac{y}{t} \cdot z\right) \cdot \frac{1}{\left(a + 1\right) + \frac{y}{t} \cdot b}\right)\\
\mathbf{if}\;t < -1.3659085366310088 \cdot 10^{-271}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;t < 3.036967103737246 \cdot 10^{-130}:\\
\;\;\;\;\frac{z}{b}\\

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


\end{array}
\end{array}

Reproduce

?
herbie shell --seed 2023293 
(FPCore (x y z t a b)
  :name "Diagrams.Solve.Tridiagonal:solveCyclicTriDiagonal from diagrams-solve-0.1, B"
  :precision binary64

  :herbie-target
  (if (< t -1.3659085366310088e-271) (* 1.0 (* (+ x (* (/ y t) z)) (/ 1.0 (+ (+ a 1.0) (* (/ y t) b))))) (if (< t 3.036967103737246e-130) (/ z b) (* 1.0 (* (+ x (* (/ y t) z)) (/ 1.0 (+ (+ a 1.0) (* (/ y t) b)))))))

  (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))