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

Percentage Accurate: 74.8% → 93.6%
Time: 18.5s
Alternatives: 23
Speedup: 0.6×

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 23 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: 74.8% 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: 93.6% accurate, 0.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y \cdot b}{t}\\ t_2 := 1 + \left(a + t\_1\right)\\ t_3 := \frac{x + \frac{y \cdot z}{t}}{t\_1 + \left(a + 1\right)}\\ t_4 := z \cdot \left(\frac{x}{z \cdot t\_2} + \frac{y}{t \cdot t\_2}\right)\\ \mathbf{if}\;t\_3 \leq -1 \cdot 10^{+272}:\\ \;\;\;\;t\_4\\ \mathbf{elif}\;t\_3 \leq -5 \cdot 10^{-320}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;t\_3 \leq 0:\\ \;\;\;\;\frac{t \cdot \frac{x}{b} + y \cdot \frac{z}{b}}{y}\\ \mathbf{elif}\;t\_3 \leq 2 \cdot 10^{+299}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;t\_3 \leq \infty:\\ \;\;\;\;t\_4\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ (* y b) t))
        (t_2 (+ 1.0 (+ a t_1)))
        (t_3 (/ (+ x (/ (* y z) t)) (+ t_1 (+ a 1.0))))
        (t_4 (* z (+ (/ x (* z t_2)) (/ y (* t t_2))))))
   (if (<= t_3 -1e+272)
     t_4
     (if (<= t_3 -5e-320)
       t_3
       (if (<= t_3 0.0)
         (/ (+ (* t (/ x b)) (* y (/ z b))) y)
         (if (<= t_3 2e+299) t_3 (if (<= t_3 INFINITY) t_4 (/ z b))))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (y * b) / t;
	double t_2 = 1.0 + (a + t_1);
	double t_3 = (x + ((y * z) / t)) / (t_1 + (a + 1.0));
	double t_4 = z * ((x / (z * t_2)) + (y / (t * t_2)));
	double tmp;
	if (t_3 <= -1e+272) {
		tmp = t_4;
	} else if (t_3 <= -5e-320) {
		tmp = t_3;
	} else if (t_3 <= 0.0) {
		tmp = ((t * (x / b)) + (y * (z / b))) / y;
	} else if (t_3 <= 2e+299) {
		tmp = t_3;
	} else if (t_3 <= ((double) INFINITY)) {
		tmp = t_4;
	} else {
		tmp = z / b;
	}
	return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (y * b) / t;
	double t_2 = 1.0 + (a + t_1);
	double t_3 = (x + ((y * z) / t)) / (t_1 + (a + 1.0));
	double t_4 = z * ((x / (z * t_2)) + (y / (t * t_2)));
	double tmp;
	if (t_3 <= -1e+272) {
		tmp = t_4;
	} else if (t_3 <= -5e-320) {
		tmp = t_3;
	} else if (t_3 <= 0.0) {
		tmp = ((t * (x / b)) + (y * (z / b))) / y;
	} else if (t_3 <= 2e+299) {
		tmp = t_3;
	} else if (t_3 <= Double.POSITIVE_INFINITY) {
		tmp = t_4;
	} else {
		tmp = z / b;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (y * b) / t
	t_2 = 1.0 + (a + t_1)
	t_3 = (x + ((y * z) / t)) / (t_1 + (a + 1.0))
	t_4 = z * ((x / (z * t_2)) + (y / (t * t_2)))
	tmp = 0
	if t_3 <= -1e+272:
		tmp = t_4
	elif t_3 <= -5e-320:
		tmp = t_3
	elif t_3 <= 0.0:
		tmp = ((t * (x / b)) + (y * (z / b))) / y
	elif t_3 <= 2e+299:
		tmp = t_3
	elif t_3 <= math.inf:
		tmp = t_4
	else:
		tmp = z / b
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(y * b) / t)
	t_2 = Float64(1.0 + Float64(a + t_1))
	t_3 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(t_1 + Float64(a + 1.0)))
	t_4 = Float64(z * Float64(Float64(x / Float64(z * t_2)) + Float64(y / Float64(t * t_2))))
	tmp = 0.0
	if (t_3 <= -1e+272)
		tmp = t_4;
	elseif (t_3 <= -5e-320)
		tmp = t_3;
	elseif (t_3 <= 0.0)
		tmp = Float64(Float64(Float64(t * Float64(x / b)) + Float64(y * Float64(z / b))) / y);
	elseif (t_3 <= 2e+299)
		tmp = t_3;
	elseif (t_3 <= Inf)
		tmp = t_4;
	else
		tmp = Float64(z / b);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = (y * b) / t;
	t_2 = 1.0 + (a + t_1);
	t_3 = (x + ((y * z) / t)) / (t_1 + (a + 1.0));
	t_4 = z * ((x / (z * t_2)) + (y / (t * t_2)));
	tmp = 0.0;
	if (t_3 <= -1e+272)
		tmp = t_4;
	elseif (t_3 <= -5e-320)
		tmp = t_3;
	elseif (t_3 <= 0.0)
		tmp = ((t * (x / b)) + (y * (z / b))) / y;
	elseif (t_3 <= 2e+299)
		tmp = t_3;
	elseif (t_3 <= Inf)
		tmp = t_4;
	else
		tmp = z / b;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]}, Block[{t$95$2 = N[(1.0 + N[(a + t$95$1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(t$95$1 + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(z * N[(N[(x / N[(z * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(y / N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, -1e+272], t$95$4, If[LessEqual[t$95$3, -5e-320], t$95$3, If[LessEqual[t$95$3, 0.0], N[(N[(N[(t * N[(x / b), $MachinePrecision]), $MachinePrecision] + N[(y * N[(z / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t$95$3, 2e+299], t$95$3, If[LessEqual[t$95$3, Infinity], t$95$4, N[(z / b), $MachinePrecision]]]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;t\_3 \leq -5 \cdot 10^{-320}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;t\_3 \leq 0:\\
\;\;\;\;\frac{t \cdot \frac{x}{b} + y \cdot \frac{z}{b}}{y}\\

\mathbf{elif}\;t\_3 \leq 2 \cdot 10^{+299}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;t\_3 \leq \infty:\\
\;\;\;\;t\_4\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -1.0000000000000001e272 or 2.0000000000000001e299 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0

    1. Initial program 36.2%

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

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

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

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

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

    if -1.0000000000000001e272 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -4.99994e-320 or -0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 2.0000000000000001e299

    1. Initial program 99.7%

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

    if -4.99994e-320 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -0.0

    1. Initial program 43.3%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{x + \frac{y \cdot z}{t}}{y}} \]
      2. +-commutative59.9%

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

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{y \cdot \frac{z}{t}} + x}{y} \]
      4. fma-undefine59.9%

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}{y} \]
    7. Simplified59.9%

      \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}} \]
    8. Taylor expanded in y around 0 69.4%

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

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

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

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

    if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t)))

    1. Initial program 0.0%

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)} \leq -1 \cdot 10^{+272}:\\ \;\;\;\;z \cdot \left(\frac{x}{z \cdot \left(1 + \left(a + \frac{y \cdot b}{t}\right)\right)} + \frac{y}{t \cdot \left(1 + \left(a + \frac{y \cdot b}{t}\right)\right)}\right)\\ \mathbf{elif}\;\frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)} \leq -5 \cdot 10^{-320}:\\ \;\;\;\;\frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\ \mathbf{elif}\;\frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)} \leq 0:\\ \;\;\;\;\frac{t \cdot \frac{x}{b} + y \cdot \frac{z}{b}}{y}\\ \mathbf{elif}\;\frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)} \leq 2 \cdot 10^{+299}:\\ \;\;\;\;\frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\ \mathbf{elif}\;\frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)} \leq \infty:\\ \;\;\;\;z \cdot \left(\frac{x}{z \cdot \left(1 + \left(a + \frac{y \cdot b}{t}\right)\right)} + \frac{y}{t \cdot \left(1 + \left(a + \frac{y \cdot b}{t}\right)\right)}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 91.0% accurate, 0.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;\frac{y}{t} \cdot \frac{z}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\ \mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-320}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_1 \leq 0:\\ \;\;\;\;\frac{t \cdot \frac{x}{b} + y \cdot \frac{z}{b}}{y}\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+299}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (/ (* y b) t) (+ a 1.0)))))
   (if (<= t_1 (- INFINITY))
     (* (/ y t) (/ z (+ (+ a 1.0) (* b (/ y t)))))
     (if (<= t_1 -5e-320)
       t_1
       (if (<= t_1 0.0)
         (/ (+ (* t (/ x b)) (* y (/ z b))) y)
         (if (<= t_1 2e+299) t_1 (/ z b)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0));
	double tmp;
	if (t_1 <= -((double) INFINITY)) {
		tmp = (y / t) * (z / ((a + 1.0) + (b * (y / t))));
	} else if (t_1 <= -5e-320) {
		tmp = t_1;
	} else if (t_1 <= 0.0) {
		tmp = ((t * (x / b)) + (y * (z / b))) / y;
	} else if (t_1 <= 2e+299) {
		tmp = t_1;
	} else {
		tmp = z / b;
	}
	return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0));
	double tmp;
	if (t_1 <= -Double.POSITIVE_INFINITY) {
		tmp = (y / t) * (z / ((a + 1.0) + (b * (y / t))));
	} else if (t_1 <= -5e-320) {
		tmp = t_1;
	} else if (t_1 <= 0.0) {
		tmp = ((t * (x / b)) + (y * (z / b))) / y;
	} else if (t_1 <= 2e+299) {
		tmp = t_1;
	} else {
		tmp = z / b;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0))
	tmp = 0
	if t_1 <= -math.inf:
		tmp = (y / t) * (z / ((a + 1.0) + (b * (y / t))))
	elif t_1 <= -5e-320:
		tmp = t_1
	elif t_1 <= 0.0:
		tmp = ((t * (x / b)) + (y * (z / b))) / y
	elif t_1 <= 2e+299:
		tmp = t_1
	else:
		tmp = z / b
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(Float64(y * b) / t) + Float64(a + 1.0)))
	tmp = 0.0
	if (t_1 <= Float64(-Inf))
		tmp = Float64(Float64(y / t) * Float64(z / Float64(Float64(a + 1.0) + Float64(b * Float64(y / t)))));
	elseif (t_1 <= -5e-320)
		tmp = t_1;
	elseif (t_1 <= 0.0)
		tmp = Float64(Float64(Float64(t * Float64(x / b)) + Float64(y * Float64(z / b))) / y);
	elseif (t_1 <= 2e+299)
		tmp = t_1;
	else
		tmp = Float64(z / b);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = (x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0));
	tmp = 0.0;
	if (t_1 <= -Inf)
		tmp = (y / t) * (z / ((a + 1.0) + (b * (y / t))));
	elseif (t_1 <= -5e-320)
		tmp = t_1;
	elseif (t_1 <= 0.0)
		tmp = ((t * (x / b)) + (y * (z / b))) / y;
	elseif (t_1 <= 2e+299)
		tmp = t_1;
	else
		tmp = z / b;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = 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]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(y / t), $MachinePrecision] * N[(z / N[(N[(a + 1.0), $MachinePrecision] + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -5e-320], t$95$1, If[LessEqual[t$95$1, 0.0], N[(N[(N[(t * N[(x / b), $MachinePrecision]), $MachinePrecision] + N[(y * N[(z / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t$95$1, 2e+299], t$95$1, N[(z / b), $MachinePrecision]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-320}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{t \cdot \frac{x}{b} + y \cdot \frac{z}{b}}{y}\\

\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+299}:\\
\;\;\;\;t\_1\\

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


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

    1. Initial program 21.3%

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

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

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

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

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

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

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

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

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

    if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -4.99994e-320 or -0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 2.0000000000000001e299

    1. Initial program 99.7%

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

    if -4.99994e-320 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -0.0

    1. Initial program 43.3%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{x + \frac{y \cdot z}{t}}{y}} \]
      2. +-commutative59.9%

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

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{y \cdot \frac{z}{t}} + x}{y} \]
      4. fma-undefine59.9%

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}{y} \]
    7. Simplified59.9%

      \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}} \]
    8. Taylor expanded in y around 0 69.4%

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

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

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

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

    if 2.0000000000000001e299 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t)))

    1. Initial program 9.0%

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)} \leq -\infty:\\ \;\;\;\;\frac{y}{t} \cdot \frac{z}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\ \mathbf{elif}\;\frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)} \leq -5 \cdot 10^{-320}:\\ \;\;\;\;\frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\ \mathbf{elif}\;\frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)} \leq 0:\\ \;\;\;\;\frac{t \cdot \frac{x}{b} + y \cdot \frac{z}{b}}{y}\\ \mathbf{elif}\;\frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)} \leq 2 \cdot 10^{+299}:\\ \;\;\;\;\frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 89.6% accurate, 0.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y \cdot b}{t}\\ t_2 := 1 + \left(a + t\_1\right)\\ t_3 := \frac{x + \frac{y \cdot z}{t}}{t\_1 + \left(a + 1\right)}\\ t_4 := \frac{x}{t\_2} + \frac{y \cdot z}{t \cdot t\_2}\\ \mathbf{if}\;t\_3 \leq -5 \cdot 10^{-320}:\\ \;\;\;\;t\_4\\ \mathbf{elif}\;t\_3 \leq 0:\\ \;\;\;\;\frac{t \cdot \frac{x}{b} + y \cdot \frac{z}{b}}{y}\\ \mathbf{elif}\;t\_3 \leq \infty:\\ \;\;\;\;t\_4\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ (* y b) t))
        (t_2 (+ 1.0 (+ a t_1)))
        (t_3 (/ (+ x (/ (* y z) t)) (+ t_1 (+ a 1.0))))
        (t_4 (+ (/ x t_2) (/ (* y z) (* t t_2)))))
   (if (<= t_3 -5e-320)
     t_4
     (if (<= t_3 0.0)
       (/ (+ (* t (/ x b)) (* y (/ z b))) y)
       (if (<= t_3 INFINITY) t_4 (/ z b))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (y * b) / t;
	double t_2 = 1.0 + (a + t_1);
	double t_3 = (x + ((y * z) / t)) / (t_1 + (a + 1.0));
	double t_4 = (x / t_2) + ((y * z) / (t * t_2));
	double tmp;
	if (t_3 <= -5e-320) {
		tmp = t_4;
	} else if (t_3 <= 0.0) {
		tmp = ((t * (x / b)) + (y * (z / b))) / y;
	} else if (t_3 <= ((double) INFINITY)) {
		tmp = t_4;
	} else {
		tmp = z / b;
	}
	return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (y * b) / t;
	double t_2 = 1.0 + (a + t_1);
	double t_3 = (x + ((y * z) / t)) / (t_1 + (a + 1.0));
	double t_4 = (x / t_2) + ((y * z) / (t * t_2));
	double tmp;
	if (t_3 <= -5e-320) {
		tmp = t_4;
	} else if (t_3 <= 0.0) {
		tmp = ((t * (x / b)) + (y * (z / b))) / y;
	} else if (t_3 <= Double.POSITIVE_INFINITY) {
		tmp = t_4;
	} else {
		tmp = z / b;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (y * b) / t
	t_2 = 1.0 + (a + t_1)
	t_3 = (x + ((y * z) / t)) / (t_1 + (a + 1.0))
	t_4 = (x / t_2) + ((y * z) / (t * t_2))
	tmp = 0
	if t_3 <= -5e-320:
		tmp = t_4
	elif t_3 <= 0.0:
		tmp = ((t * (x / b)) + (y * (z / b))) / y
	elif t_3 <= math.inf:
		tmp = t_4
	else:
		tmp = z / b
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(y * b) / t)
	t_2 = Float64(1.0 + Float64(a + t_1))
	t_3 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(t_1 + Float64(a + 1.0)))
	t_4 = Float64(Float64(x / t_2) + Float64(Float64(y * z) / Float64(t * t_2)))
	tmp = 0.0
	if (t_3 <= -5e-320)
		tmp = t_4;
	elseif (t_3 <= 0.0)
		tmp = Float64(Float64(Float64(t * Float64(x / b)) + Float64(y * Float64(z / b))) / y);
	elseif (t_3 <= Inf)
		tmp = t_4;
	else
		tmp = Float64(z / b);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = (y * b) / t;
	t_2 = 1.0 + (a + t_1);
	t_3 = (x + ((y * z) / t)) / (t_1 + (a + 1.0));
	t_4 = (x / t_2) + ((y * z) / (t * t_2));
	tmp = 0.0;
	if (t_3 <= -5e-320)
		tmp = t_4;
	elseif (t_3 <= 0.0)
		tmp = ((t * (x / b)) + (y * (z / b))) / y;
	elseif (t_3 <= Inf)
		tmp = t_4;
	else
		tmp = z / b;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]}, Block[{t$95$2 = N[(1.0 + N[(a + t$95$1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(t$95$1 + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(x / t$95$2), $MachinePrecision] + N[(N[(y * z), $MachinePrecision] / N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, -5e-320], t$95$4, If[LessEqual[t$95$3, 0.0], N[(N[(N[(t * N[(x / b), $MachinePrecision]), $MachinePrecision] + N[(y * N[(z / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t$95$3, Infinity], t$95$4, N[(z / b), $MachinePrecision]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{y \cdot b}{t}\\
t_2 := 1 + \left(a + t\_1\right)\\
t_3 := \frac{x + \frac{y \cdot z}{t}}{t\_1 + \left(a + 1\right)}\\
t_4 := \frac{x}{t\_2} + \frac{y \cdot z}{t \cdot t\_2}\\
\mathbf{if}\;t\_3 \leq -5 \cdot 10^{-320}:\\
\;\;\;\;t\_4\\

\mathbf{elif}\;t\_3 \leq 0:\\
\;\;\;\;\frac{t \cdot \frac{x}{b} + y \cdot \frac{z}{b}}{y}\\

\mathbf{elif}\;t\_3 \leq \infty:\\
\;\;\;\;t\_4\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -4.99994e-320 or -0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0

    1. Initial program 87.7%

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

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

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

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

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

    if -4.99994e-320 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -0.0

    1. Initial program 43.3%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{x + \frac{y \cdot z}{t}}{y}} \]
      2. +-commutative59.9%

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

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{y \cdot \frac{z}{t}} + x}{y} \]
      4. fma-undefine59.9%

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}{y} \]
    7. Simplified59.9%

      \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}} \]
    8. Taylor expanded in y around 0 69.4%

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

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

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

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

    if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t)))

    1. Initial program 0.0%

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)} \leq -5 \cdot 10^{-320}:\\ \;\;\;\;\frac{x}{1 + \left(a + \frac{y \cdot b}{t}\right)} + \frac{y \cdot z}{t \cdot \left(1 + \left(a + \frac{y \cdot b}{t}\right)\right)}\\ \mathbf{elif}\;\frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)} \leq 0:\\ \;\;\;\;\frac{t \cdot \frac{x}{b} + y \cdot \frac{z}{b}}{y}\\ \mathbf{elif}\;\frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)} \leq \infty:\\ \;\;\;\;\frac{x}{1 + \left(a + \frac{y \cdot b}{t}\right)} + \frac{y \cdot z}{t \cdot \left(1 + \left(a + \frac{y \cdot b}{t}\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 56.3% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\ t_2 := \frac{x + \frac{y}{\frac{t}{z}}}{a}\\ \mathbf{if}\;a \leq -2.2 \cdot 10^{+64}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;a \leq -2.6 \cdot 10^{-7}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -9.5 \cdot 10^{-180}:\\ \;\;\;\;x + \frac{y \cdot z}{t}\\ \mathbf{elif}\;a \leq -4.4 \cdot 10^{-265}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 9 \cdot 10^{-120}:\\ \;\;\;\;x + z \cdot \left(y \cdot \frac{1}{t}\right)\\ \mathbf{elif}\;a \leq 3.2 \cdot 10^{-76}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 4.1 \cdot 10^{-53}:\\ \;\;\;\;x + z \cdot \frac{y}{t}\\ \mathbf{elif}\;a \leq 5.6 \cdot 10^{+34}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (+ (/ z b) (/ (* x t) (* y b)))) (t_2 (/ (+ x (/ y (/ t z))) a)))
   (if (<= a -2.2e+64)
     t_2
     (if (<= a -2.6e-7)
       t_1
       (if (<= a -9.5e-180)
         (+ x (/ (* y z) t))
         (if (<= a -4.4e-265)
           t_1
           (if (<= a 9e-120)
             (+ x (* z (* y (/ 1.0 t))))
             (if (<= a 3.2e-76)
               t_1
               (if (<= a 4.1e-53)
                 (+ x (* z (/ y t)))
                 (if (<= a 5.6e+34) t_1 t_2))))))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (z / b) + ((x * t) / (y * b));
	double t_2 = (x + (y / (t / z))) / a;
	double tmp;
	if (a <= -2.2e+64) {
		tmp = t_2;
	} else if (a <= -2.6e-7) {
		tmp = t_1;
	} else if (a <= -9.5e-180) {
		tmp = x + ((y * z) / t);
	} else if (a <= -4.4e-265) {
		tmp = t_1;
	} else if (a <= 9e-120) {
		tmp = x + (z * (y * (1.0 / t)));
	} else if (a <= 3.2e-76) {
		tmp = t_1;
	} else if (a <= 4.1e-53) {
		tmp = x + (z * (y / t));
	} else if (a <= 5.6e+34) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	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 = (z / b) + ((x * t) / (y * b))
    t_2 = (x + (y / (t / z))) / a
    if (a <= (-2.2d+64)) then
        tmp = t_2
    else if (a <= (-2.6d-7)) then
        tmp = t_1
    else if (a <= (-9.5d-180)) then
        tmp = x + ((y * z) / t)
    else if (a <= (-4.4d-265)) then
        tmp = t_1
    else if (a <= 9d-120) then
        tmp = x + (z * (y * (1.0d0 / t)))
    else if (a <= 3.2d-76) then
        tmp = t_1
    else if (a <= 4.1d-53) then
        tmp = x + (z * (y / t))
    else if (a <= 5.6d+34) then
        tmp = t_1
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (z / b) + ((x * t) / (y * b));
	double t_2 = (x + (y / (t / z))) / a;
	double tmp;
	if (a <= -2.2e+64) {
		tmp = t_2;
	} else if (a <= -2.6e-7) {
		tmp = t_1;
	} else if (a <= -9.5e-180) {
		tmp = x + ((y * z) / t);
	} else if (a <= -4.4e-265) {
		tmp = t_1;
	} else if (a <= 9e-120) {
		tmp = x + (z * (y * (1.0 / t)));
	} else if (a <= 3.2e-76) {
		tmp = t_1;
	} else if (a <= 4.1e-53) {
		tmp = x + (z * (y / t));
	} else if (a <= 5.6e+34) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (z / b) + ((x * t) / (y * b))
	t_2 = (x + (y / (t / z))) / a
	tmp = 0
	if a <= -2.2e+64:
		tmp = t_2
	elif a <= -2.6e-7:
		tmp = t_1
	elif a <= -9.5e-180:
		tmp = x + ((y * z) / t)
	elif a <= -4.4e-265:
		tmp = t_1
	elif a <= 9e-120:
		tmp = x + (z * (y * (1.0 / t)))
	elif a <= 3.2e-76:
		tmp = t_1
	elif a <= 4.1e-53:
		tmp = x + (z * (y / t))
	elif a <= 5.6e+34:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(z / b) + Float64(Float64(x * t) / Float64(y * b)))
	t_2 = Float64(Float64(x + Float64(y / Float64(t / z))) / a)
	tmp = 0.0
	if (a <= -2.2e+64)
		tmp = t_2;
	elseif (a <= -2.6e-7)
		tmp = t_1;
	elseif (a <= -9.5e-180)
		tmp = Float64(x + Float64(Float64(y * z) / t));
	elseif (a <= -4.4e-265)
		tmp = t_1;
	elseif (a <= 9e-120)
		tmp = Float64(x + Float64(z * Float64(y * Float64(1.0 / t))));
	elseif (a <= 3.2e-76)
		tmp = t_1;
	elseif (a <= 4.1e-53)
		tmp = Float64(x + Float64(z * Float64(y / t)));
	elseif (a <= 5.6e+34)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = (z / b) + ((x * t) / (y * b));
	t_2 = (x + (y / (t / z))) / a;
	tmp = 0.0;
	if (a <= -2.2e+64)
		tmp = t_2;
	elseif (a <= -2.6e-7)
		tmp = t_1;
	elseif (a <= -9.5e-180)
		tmp = x + ((y * z) / t);
	elseif (a <= -4.4e-265)
		tmp = t_1;
	elseif (a <= 9e-120)
		tmp = x + (z * (y * (1.0 / t)));
	elseif (a <= 3.2e-76)
		tmp = t_1;
	elseif (a <= 4.1e-53)
		tmp = x + (z * (y / t));
	elseif (a <= 5.6e+34)
		tmp = t_1;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z / b), $MachinePrecision] + N[(N[(x * t), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[a, -2.2e+64], t$95$2, If[LessEqual[a, -2.6e-7], t$95$1, If[LessEqual[a, -9.5e-180], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.4e-265], t$95$1, If[LessEqual[a, 9e-120], N[(x + N[(z * N[(y * N[(1.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.2e-76], t$95$1, If[LessEqual[a, 4.1e-53], N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.6e+34], t$95$1, t$95$2]]]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;a \leq -2.6 \cdot 10^{-7}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;a \leq -4.4 \cdot 10^{-265}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq 9 \cdot 10^{-120}:\\
\;\;\;\;x + z \cdot \left(y \cdot \frac{1}{t}\right)\\

\mathbf{elif}\;a \leq 3.2 \cdot 10^{-76}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq 4.1 \cdot 10^{-53}:\\
\;\;\;\;x + z \cdot \frac{y}{t}\\

\mathbf{elif}\;a \leq 5.6 \cdot 10^{+34}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if a < -2.20000000000000002e64 or 5.60000000000000016e34 < a

    1. Initial program 74.4%

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

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

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

      \[\leadsto \color{blue}{\frac{x + y \cdot \frac{z}{t}}{\left(a + 1\right) + y \cdot \frac{b}{t}}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. clear-num72.4%

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

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

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

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

    if -2.20000000000000002e64 < a < -2.59999999999999999e-7 or -9.49999999999999934e-180 < a < -4.40000000000000021e-265 or 9e-120 < a < 3.1999999999999998e-76 or 4.1000000000000001e-53 < a < 5.60000000000000016e34

    1. Initial program 57.1%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{x + \frac{y \cdot z}{t}}{y}} \]
      2. +-commutative42.2%

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

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{y \cdot \frac{z}{t}} + x}{y} \]
      4. fma-undefine45.4%

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}{y} \]
    7. Simplified45.4%

      \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}} \]
    8. Taylor expanded in t around 0 74.7%

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

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

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

    if -2.59999999999999999e-7 < a < -9.49999999999999934e-180

    1. Initial program 84.0%

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

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

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

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

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

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

    if -4.40000000000000021e-265 < a < 9e-120

    1. Initial program 79.4%

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

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

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

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

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

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

        \[\leadsto x + \color{blue}{y \cdot \frac{z}{t}} \]
      2. *-commutative65.6%

        \[\leadsto x + \color{blue}{\frac{z}{t} \cdot y} \]
      3. div-inv65.6%

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

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

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

    if 3.1999999999999998e-76 < a < 4.1000000000000001e-53

    1. Initial program 84.1%

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

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

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

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

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

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

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

        \[\leadsto x + \color{blue}{z \cdot \frac{y}{t}} \]
    8. Applied egg-rr100.0%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.2 \cdot 10^{+64}:\\ \;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a}\\ \mathbf{elif}\;a \leq -2.6 \cdot 10^{-7}:\\ \;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\ \mathbf{elif}\;a \leq -9.5 \cdot 10^{-180}:\\ \;\;\;\;x + \frac{y \cdot z}{t}\\ \mathbf{elif}\;a \leq -4.4 \cdot 10^{-265}:\\ \;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\ \mathbf{elif}\;a \leq 9 \cdot 10^{-120}:\\ \;\;\;\;x + z \cdot \left(y \cdot \frac{1}{t}\right)\\ \mathbf{elif}\;a \leq 3.2 \cdot 10^{-76}:\\ \;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\ \mathbf{elif}\;a \leq 4.1 \cdot 10^{-53}:\\ \;\;\;\;x + z \cdot \frac{y}{t}\\ \mathbf{elif}\;a \leq 5.6 \cdot 10^{+34}:\\ \;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\ \mathbf{else}:\\ \;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a}\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 55.8% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x + \frac{y}{\frac{t}{z}}}{a}\\ \mathbf{if}\;a \leq -2.2 \cdot 10^{+64}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -0.0058:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq -1.6 \cdot 10^{-179}:\\ \;\;\;\;x + \frac{y \cdot z}{t}\\ \mathbf{elif}\;a \leq -6.2 \cdot 10^{-213}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq 8.5 \cdot 10^{-53}:\\ \;\;\;\;x + z \cdot \frac{y}{t}\\ \mathbf{elif}\;a \leq 24000000000000:\\ \;\;\;\;\frac{t}{b} \cdot \left(\frac{z}{t} + \frac{x}{y}\right)\\ \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)))
   (if (<= a -2.2e+64)
     t_1
     (if (<= a -0.0058)
       (/ z b)
       (if (<= a -1.6e-179)
         (+ x (/ (* y z) t))
         (if (<= a -6.2e-213)
           (/ z b)
           (if (<= a 8.5e-53)
             (+ x (* z (/ y t)))
             (if (<= a 24000000000000.0)
               (* (/ t b) (+ (/ z t) (/ x 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;
	double tmp;
	if (a <= -2.2e+64) {
		tmp = t_1;
	} else if (a <= -0.0058) {
		tmp = z / b;
	} else if (a <= -1.6e-179) {
		tmp = x + ((y * z) / t);
	} else if (a <= -6.2e-213) {
		tmp = z / b;
	} else if (a <= 8.5e-53) {
		tmp = x + (z * (y / t));
	} else if (a <= 24000000000000.0) {
		tmp = (t / b) * ((z / t) + (x / 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
    if (a <= (-2.2d+64)) then
        tmp = t_1
    else if (a <= (-0.0058d0)) then
        tmp = z / b
    else if (a <= (-1.6d-179)) then
        tmp = x + ((y * z) / t)
    else if (a <= (-6.2d-213)) then
        tmp = z / b
    else if (a <= 8.5d-53) then
        tmp = x + (z * (y / t))
    else if (a <= 24000000000000.0d0) then
        tmp = (t / b) * ((z / t) + (x / 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;
	double tmp;
	if (a <= -2.2e+64) {
		tmp = t_1;
	} else if (a <= -0.0058) {
		tmp = z / b;
	} else if (a <= -1.6e-179) {
		tmp = x + ((y * z) / t);
	} else if (a <= -6.2e-213) {
		tmp = z / b;
	} else if (a <= 8.5e-53) {
		tmp = x + (z * (y / t));
	} else if (a <= 24000000000000.0) {
		tmp = (t / b) * ((z / t) + (x / y));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (x + (y / (t / z))) / a
	tmp = 0
	if a <= -2.2e+64:
		tmp = t_1
	elif a <= -0.0058:
		tmp = z / b
	elif a <= -1.6e-179:
		tmp = x + ((y * z) / t)
	elif a <= -6.2e-213:
		tmp = z / b
	elif a <= 8.5e-53:
		tmp = x + (z * (y / t))
	elif a <= 24000000000000.0:
		tmp = (t / b) * ((z / t) + (x / 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))) / a)
	tmp = 0.0
	if (a <= -2.2e+64)
		tmp = t_1;
	elseif (a <= -0.0058)
		tmp = Float64(z / b);
	elseif (a <= -1.6e-179)
		tmp = Float64(x + Float64(Float64(y * z) / t));
	elseif (a <= -6.2e-213)
		tmp = Float64(z / b);
	elseif (a <= 8.5e-53)
		tmp = Float64(x + Float64(z * Float64(y / t)));
	elseif (a <= 24000000000000.0)
		tmp = Float64(Float64(t / b) * Float64(Float64(z / t) + Float64(x / 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;
	tmp = 0.0;
	if (a <= -2.2e+64)
		tmp = t_1;
	elseif (a <= -0.0058)
		tmp = z / b;
	elseif (a <= -1.6e-179)
		tmp = x + ((y * z) / t);
	elseif (a <= -6.2e-213)
		tmp = z / b;
	elseif (a <= 8.5e-53)
		tmp = x + (z * (y / t));
	elseif (a <= 24000000000000.0)
		tmp = (t / b) * ((z / t) + (x / 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] / a), $MachinePrecision]}, If[LessEqual[a, -2.2e+64], t$95$1, If[LessEqual[a, -0.0058], N[(z / b), $MachinePrecision], If[LessEqual[a, -1.6e-179], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -6.2e-213], N[(z / b), $MachinePrecision], If[LessEqual[a, 8.5e-53], N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 24000000000000.0], N[(N[(t / b), $MachinePrecision] * N[(N[(z / t), $MachinePrecision] + N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;a \leq -0.0058:\\
\;\;\;\;\frac{z}{b}\\

\mathbf{elif}\;a \leq -1.6 \cdot 10^{-179}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\

\mathbf{elif}\;a \leq -6.2 \cdot 10^{-213}:\\
\;\;\;\;\frac{z}{b}\\

\mathbf{elif}\;a \leq 8.5 \cdot 10^{-53}:\\
\;\;\;\;x + z \cdot \frac{y}{t}\\

\mathbf{elif}\;a \leq 24000000000000:\\
\;\;\;\;\frac{t}{b} \cdot \left(\frac{z}{t} + \frac{x}{y}\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if a < -2.20000000000000002e64 or 2.4e13 < a

    1. Initial program 74.4%

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

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

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

      \[\leadsto \color{blue}{\frac{x + y \cdot \frac{z}{t}}{\left(a + 1\right) + y \cdot \frac{b}{t}}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. clear-num72.4%

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

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

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

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

    if -2.20000000000000002e64 < a < -0.0058 or -1.6e-179 < a < -6.1999999999999996e-213

    1. Initial program 36.7%

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

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

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

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

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

    if -0.0058 < a < -1.6e-179

    1. Initial program 84.0%

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

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

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

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

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

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

    if -6.1999999999999996e-213 < a < 8.50000000000000044e-53

    1. Initial program 76.9%

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

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

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

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

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

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

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

        \[\leadsto x + \color{blue}{z \cdot \frac{y}{t}} \]
    8. Applied egg-rr62.5%

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

    if 8.50000000000000044e-53 < a < 2.4e13

    1. Initial program 65.1%

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

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

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

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

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

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

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

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{y \cdot \frac{z}{t}} + x}{y} \]
      4. fma-undefine51.4%

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}{y} \]
    7. Simplified51.4%

      \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}} \]
    8. Taylor expanded in y around inf 51.6%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.2 \cdot 10^{+64}:\\ \;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a}\\ \mathbf{elif}\;a \leq -0.0058:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq -1.6 \cdot 10^{-179}:\\ \;\;\;\;x + \frac{y \cdot z}{t}\\ \mathbf{elif}\;a \leq -6.2 \cdot 10^{-213}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq 8.5 \cdot 10^{-53}:\\ \;\;\;\;x + z \cdot \frac{y}{t}\\ \mathbf{elif}\;a \leq 24000000000000:\\ \;\;\;\;\frac{t}{b} \cdot \left(\frac{z}{t} + \frac{x}{y}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a}\\ \end{array} \]
  5. Add Preprocessing

Alternative 6: 55.9% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x + y \cdot \frac{z}{t}}{a}\\ \mathbf{if}\;a \leq -2.2 \cdot 10^{+64}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -0.00011:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq -3.6 \cdot 10^{-178}:\\ \;\;\;\;x + \frac{y \cdot z}{t}\\ \mathbf{elif}\;a \leq -2.75 \cdot 10^{-213}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq 1.05:\\ \;\;\;\;x + z \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 (* y (/ z t))) a)))
   (if (<= a -2.2e+64)
     t_1
     (if (<= a -0.00011)
       (/ z b)
       (if (<= a -3.6e-178)
         (+ x (/ (* y z) t))
         (if (<= a -2.75e-213)
           (/ z b)
           (if (<= a 1.05) (+ x (* z (/ y t))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x + (y * (z / t))) / a;
	double tmp;
	if (a <= -2.2e+64) {
		tmp = t_1;
	} else if (a <= -0.00011) {
		tmp = z / b;
	} else if (a <= -3.6e-178) {
		tmp = x + ((y * z) / t);
	} else if (a <= -2.75e-213) {
		tmp = z / b;
	} else if (a <= 1.05) {
		tmp = x + (z * (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 + (y * (z / t))) / a
    if (a <= (-2.2d+64)) then
        tmp = t_1
    else if (a <= (-0.00011d0)) then
        tmp = z / b
    else if (a <= (-3.6d-178)) then
        tmp = x + ((y * z) / t)
    else if (a <= (-2.75d-213)) then
        tmp = z / b
    else if (a <= 1.05d0) then
        tmp = x + (z * (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 + (y * (z / t))) / a;
	double tmp;
	if (a <= -2.2e+64) {
		tmp = t_1;
	} else if (a <= -0.00011) {
		tmp = z / b;
	} else if (a <= -3.6e-178) {
		tmp = x + ((y * z) / t);
	} else if (a <= -2.75e-213) {
		tmp = z / b;
	} else if (a <= 1.05) {
		tmp = x + (z * (y / t));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (x + (y * (z / t))) / a
	tmp = 0
	if a <= -2.2e+64:
		tmp = t_1
	elif a <= -0.00011:
		tmp = z / b
	elif a <= -3.6e-178:
		tmp = x + ((y * z) / t)
	elif a <= -2.75e-213:
		tmp = z / b
	elif a <= 1.05:
		tmp = x + (z * (y / t))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(x + Float64(y * Float64(z / t))) / a)
	tmp = 0.0
	if (a <= -2.2e+64)
		tmp = t_1;
	elseif (a <= -0.00011)
		tmp = Float64(z / b);
	elseif (a <= -3.6e-178)
		tmp = Float64(x + Float64(Float64(y * z) / t));
	elseif (a <= -2.75e-213)
		tmp = Float64(z / b);
	elseif (a <= 1.05)
		tmp = Float64(x + Float64(z * Float64(y / t)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = (x + (y * (z / t))) / a;
	tmp = 0.0;
	if (a <= -2.2e+64)
		tmp = t_1;
	elseif (a <= -0.00011)
		tmp = z / b;
	elseif (a <= -3.6e-178)
		tmp = x + ((y * z) / t);
	elseif (a <= -2.75e-213)
		tmp = z / b;
	elseif (a <= 1.05)
		tmp = x + (z * (y / t));
	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[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[a, -2.2e+64], t$95$1, If[LessEqual[a, -0.00011], N[(z / b), $MachinePrecision], If[LessEqual[a, -3.6e-178], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.75e-213], N[(z / b), $MachinePrecision], If[LessEqual[a, 1.05], N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;a \leq -0.00011:\\
\;\;\;\;\frac{z}{b}\\

\mathbf{elif}\;a \leq -3.6 \cdot 10^{-178}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\

\mathbf{elif}\;a \leq -2.75 \cdot 10^{-213}:\\
\;\;\;\;\frac{z}{b}\\

\mathbf{elif}\;a \leq 1.05:\\
\;\;\;\;x + z \cdot \frac{y}{t}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if a < -2.20000000000000002e64 or 1.05000000000000004 < a

    1. Initial program 75.7%

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

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

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

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

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

    if -2.20000000000000002e64 < a < -1.10000000000000004e-4 or -3.59999999999999994e-178 < a < -2.75000000000000004e-213

    1. Initial program 36.7%

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

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

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

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

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

    if -1.10000000000000004e-4 < a < -3.59999999999999994e-178

    1. Initial program 84.0%

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

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

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

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

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

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

    if -2.75000000000000004e-213 < a < 1.05000000000000004

    1. Initial program 73.8%

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

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

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

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

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

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

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

        \[\leadsto x + \color{blue}{z \cdot \frac{y}{t}} \]
    8. Applied egg-rr58.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.2 \cdot 10^{+64}:\\ \;\;\;\;\frac{x + y \cdot \frac{z}{t}}{a}\\ \mathbf{elif}\;a \leq -0.00011:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq -3.6 \cdot 10^{-178}:\\ \;\;\;\;x + \frac{y \cdot z}{t}\\ \mathbf{elif}\;a \leq -2.75 \cdot 10^{-213}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq 1.05:\\ \;\;\;\;x + z \cdot \frac{y}{t}\\ \mathbf{else}:\\ \;\;\;\;\frac{x + y \cdot \frac{z}{t}}{a}\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 56.1% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x + \frac{y}{\frac{t}{z}}}{a}\\ \mathbf{if}\;a \leq -7.5 \cdot 10^{+64}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -4.4 \cdot 10^{-5}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq -2.75 \cdot 10^{-179}:\\ \;\;\;\;x + \frac{y \cdot z}{t}\\ \mathbf{elif}\;a \leq -5.8 \cdot 10^{-213}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq 1.05:\\ \;\;\;\;x + z \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 (/ y (/ t z))) a)))
   (if (<= a -7.5e+64)
     t_1
     (if (<= a -4.4e-5)
       (/ z b)
       (if (<= a -2.75e-179)
         (+ x (/ (* y z) t))
         (if (<= a -5.8e-213)
           (/ z b)
           (if (<= a 1.05) (+ x (* z (/ y t))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x + (y / (t / z))) / a;
	double tmp;
	if (a <= -7.5e+64) {
		tmp = t_1;
	} else if (a <= -4.4e-5) {
		tmp = z / b;
	} else if (a <= -2.75e-179) {
		tmp = x + ((y * z) / t);
	} else if (a <= -5.8e-213) {
		tmp = z / b;
	} else if (a <= 1.05) {
		tmp = x + (z * (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 + (y / (t / z))) / a
    if (a <= (-7.5d+64)) then
        tmp = t_1
    else if (a <= (-4.4d-5)) then
        tmp = z / b
    else if (a <= (-2.75d-179)) then
        tmp = x + ((y * z) / t)
    else if (a <= (-5.8d-213)) then
        tmp = z / b
    else if (a <= 1.05d0) then
        tmp = x + (z * (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 + (y / (t / z))) / a;
	double tmp;
	if (a <= -7.5e+64) {
		tmp = t_1;
	} else if (a <= -4.4e-5) {
		tmp = z / b;
	} else if (a <= -2.75e-179) {
		tmp = x + ((y * z) / t);
	} else if (a <= -5.8e-213) {
		tmp = z / b;
	} else if (a <= 1.05) {
		tmp = x + (z * (y / t));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (x + (y / (t / z))) / a
	tmp = 0
	if a <= -7.5e+64:
		tmp = t_1
	elif a <= -4.4e-5:
		tmp = z / b
	elif a <= -2.75e-179:
		tmp = x + ((y * z) / t)
	elif a <= -5.8e-213:
		tmp = z / b
	elif a <= 1.05:
		tmp = x + (z * (y / t))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(x + Float64(y / Float64(t / z))) / a)
	tmp = 0.0
	if (a <= -7.5e+64)
		tmp = t_1;
	elseif (a <= -4.4e-5)
		tmp = Float64(z / b);
	elseif (a <= -2.75e-179)
		tmp = Float64(x + Float64(Float64(y * z) / t));
	elseif (a <= -5.8e-213)
		tmp = Float64(z / b);
	elseif (a <= 1.05)
		tmp = Float64(x + Float64(z * Float64(y / t)));
	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;
	tmp = 0.0;
	if (a <= -7.5e+64)
		tmp = t_1;
	elseif (a <= -4.4e-5)
		tmp = z / b;
	elseif (a <= -2.75e-179)
		tmp = x + ((y * z) / t);
	elseif (a <= -5.8e-213)
		tmp = z / b;
	elseif (a <= 1.05)
		tmp = x + (z * (y / t));
	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] / a), $MachinePrecision]}, If[LessEqual[a, -7.5e+64], t$95$1, If[LessEqual[a, -4.4e-5], N[(z / b), $MachinePrecision], If[LessEqual[a, -2.75e-179], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5.8e-213], N[(z / b), $MachinePrecision], If[LessEqual[a, 1.05], N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;a \leq -4.4 \cdot 10^{-5}:\\
\;\;\;\;\frac{z}{b}\\

\mathbf{elif}\;a \leq -2.75 \cdot 10^{-179}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\

\mathbf{elif}\;a \leq -5.8 \cdot 10^{-213}:\\
\;\;\;\;\frac{z}{b}\\

\mathbf{elif}\;a \leq 1.05:\\
\;\;\;\;x + z \cdot \frac{y}{t}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if a < -7.5000000000000005e64 or 1.05000000000000004 < a

    1. Initial program 75.7%

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

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

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

      \[\leadsto \color{blue}{\frac{x + y \cdot \frac{z}{t}}{\left(a + 1\right) + y \cdot \frac{b}{t}}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. clear-num71.8%

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

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

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

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

    if -7.5000000000000005e64 < a < -4.3999999999999999e-5 or -2.7500000000000001e-179 < a < -5.7999999999999999e-213

    1. Initial program 36.7%

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

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

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

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

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

    if -4.3999999999999999e-5 < a < -2.7500000000000001e-179

    1. Initial program 84.0%

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

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

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

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

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

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

    if -5.7999999999999999e-213 < a < 1.05000000000000004

    1. Initial program 73.8%

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

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

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

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

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

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

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

        \[\leadsto x + \color{blue}{z \cdot \frac{y}{t}} \]
    8. Applied egg-rr58.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -7.5 \cdot 10^{+64}:\\ \;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a}\\ \mathbf{elif}\;a \leq -4.4 \cdot 10^{-5}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq -2.75 \cdot 10^{-179}:\\ \;\;\;\;x + \frac{y \cdot z}{t}\\ \mathbf{elif}\;a \leq -5.8 \cdot 10^{-213}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq 1.05:\\ \;\;\;\;x + z \cdot \frac{y}{t}\\ \mathbf{else}:\\ \;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a}\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 42.5% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.3 \cdot 10^{+80}:\\ \;\;\;\;\frac{x}{a}\\ \mathbf{elif}\;a \leq -0.0058:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq -5 \cdot 10^{-154}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq -3.4 \cdot 10^{-263}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq 2.4 \cdot 10^{-133}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 2.9 \cdot 10^{+28}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= a -1.3e+80)
   (/ x a)
   (if (<= a -0.0058)
     (/ z b)
     (if (<= a -5e-154)
       x
       (if (<= a -3.4e-263)
         (/ z b)
         (if (<= a 2.4e-133) x (if (<= a 2.9e+28) (/ z b) (/ x a))))))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (a <= -1.3e+80) {
		tmp = x / a;
	} else if (a <= -0.0058) {
		tmp = z / b;
	} else if (a <= -5e-154) {
		tmp = x;
	} else if (a <= -3.4e-263) {
		tmp = z / b;
	} else if (a <= 2.4e-133) {
		tmp = x;
	} else if (a <= 2.9e+28) {
		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 (a <= (-1.3d+80)) then
        tmp = x / a
    else if (a <= (-0.0058d0)) then
        tmp = z / b
    else if (a <= (-5d-154)) then
        tmp = x
    else if (a <= (-3.4d-263)) then
        tmp = z / b
    else if (a <= 2.4d-133) then
        tmp = x
    else if (a <= 2.9d+28) 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 (a <= -1.3e+80) {
		tmp = x / a;
	} else if (a <= -0.0058) {
		tmp = z / b;
	} else if (a <= -5e-154) {
		tmp = x;
	} else if (a <= -3.4e-263) {
		tmp = z / b;
	} else if (a <= 2.4e-133) {
		tmp = x;
	} else if (a <= 2.9e+28) {
		tmp = z / b;
	} else {
		tmp = x / a;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if a <= -1.3e+80:
		tmp = x / a
	elif a <= -0.0058:
		tmp = z / b
	elif a <= -5e-154:
		tmp = x
	elif a <= -3.4e-263:
		tmp = z / b
	elif a <= 2.4e-133:
		tmp = x
	elif a <= 2.9e+28:
		tmp = z / b
	else:
		tmp = x / a
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (a <= -1.3e+80)
		tmp = Float64(x / a);
	elseif (a <= -0.0058)
		tmp = Float64(z / b);
	elseif (a <= -5e-154)
		tmp = x;
	elseif (a <= -3.4e-263)
		tmp = Float64(z / b);
	elseif (a <= 2.4e-133)
		tmp = x;
	elseif (a <= 2.9e+28)
		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 (a <= -1.3e+80)
		tmp = x / a;
	elseif (a <= -0.0058)
		tmp = z / b;
	elseif (a <= -5e-154)
		tmp = x;
	elseif (a <= -3.4e-263)
		tmp = z / b;
	elseif (a <= 2.4e-133)
		tmp = x;
	elseif (a <= 2.9e+28)
		tmp = z / b;
	else
		tmp = x / a;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -1.3e+80], N[(x / a), $MachinePrecision], If[LessEqual[a, -0.0058], N[(z / b), $MachinePrecision], If[LessEqual[a, -5e-154], x, If[LessEqual[a, -3.4e-263], N[(z / b), $MachinePrecision], If[LessEqual[a, 2.4e-133], x, If[LessEqual[a, 2.9e+28], N[(z / b), $MachinePrecision], N[(x / a), $MachinePrecision]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.3 \cdot 10^{+80}:\\
\;\;\;\;\frac{x}{a}\\

\mathbf{elif}\;a \leq -0.0058:\\
\;\;\;\;\frac{z}{b}\\

\mathbf{elif}\;a \leq -5 \cdot 10^{-154}:\\
\;\;\;\;x\\

\mathbf{elif}\;a \leq -3.4 \cdot 10^{-263}:\\
\;\;\;\;\frac{z}{b}\\

\mathbf{elif}\;a \leq 2.4 \cdot 10^{-133}:\\
\;\;\;\;x\\

\mathbf{elif}\;a \leq 2.9 \cdot 10^{+28}:\\
\;\;\;\;\frac{z}{b}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -1.29999999999999991e80 or 2.9000000000000001e28 < a

    1. Initial program 74.2%

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

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

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

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

      \[\leadsto \color{blue}{\frac{x}{1 + a}} \]
    6. Taylor expanded in a around inf 50.9%

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

    if -1.29999999999999991e80 < a < -0.0058 or -5.0000000000000002e-154 < a < -3.40000000000000004e-263 or 2.4e-133 < a < 2.9000000000000001e28

    1. Initial program 61.1%

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

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

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

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

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

    if -0.0058 < a < -5.0000000000000002e-154 or -3.40000000000000004e-263 < a < 2.4e-133

    1. Initial program 82.4%

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

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

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

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

      \[\leadsto \color{blue}{\frac{x}{1 + a}} \]
    6. Taylor expanded in a around 0 52.8%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.3 \cdot 10^{+80}:\\ \;\;\;\;\frac{x}{a}\\ \mathbf{elif}\;a \leq -0.0058:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq -5 \cdot 10^{-154}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq -3.4 \cdot 10^{-263}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq 2.4 \cdot 10^{-133}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 2.9 \cdot 10^{+28}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a}\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 42.6% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -4 \cdot 10^{+73}:\\ \;\;\;\;\frac{x}{a}\\ \mathbf{elif}\;a \leq -6.5 \cdot 10^{-7}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq -1.1 \cdot 10^{-152}:\\ \;\;\;\;x - x \cdot a\\ \mathbf{elif}\;a \leq -2.6 \cdot 10^{-262}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq 7.3 \cdot 10^{-127}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 1.7 \cdot 10^{+20}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= a -4e+73)
   (/ x a)
   (if (<= a -6.5e-7)
     (/ z b)
     (if (<= a -1.1e-152)
       (- x (* x a))
       (if (<= a -2.6e-262)
         (/ z b)
         (if (<= a 7.3e-127) x (if (<= a 1.7e+20) (/ z b) (/ x a))))))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (a <= -4e+73) {
		tmp = x / a;
	} else if (a <= -6.5e-7) {
		tmp = z / b;
	} else if (a <= -1.1e-152) {
		tmp = x - (x * a);
	} else if (a <= -2.6e-262) {
		tmp = z / b;
	} else if (a <= 7.3e-127) {
		tmp = x;
	} else if (a <= 1.7e+20) {
		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 (a <= (-4d+73)) then
        tmp = x / a
    else if (a <= (-6.5d-7)) then
        tmp = z / b
    else if (a <= (-1.1d-152)) then
        tmp = x - (x * a)
    else if (a <= (-2.6d-262)) then
        tmp = z / b
    else if (a <= 7.3d-127) then
        tmp = x
    else if (a <= 1.7d+20) 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 (a <= -4e+73) {
		tmp = x / a;
	} else if (a <= -6.5e-7) {
		tmp = z / b;
	} else if (a <= -1.1e-152) {
		tmp = x - (x * a);
	} else if (a <= -2.6e-262) {
		tmp = z / b;
	} else if (a <= 7.3e-127) {
		tmp = x;
	} else if (a <= 1.7e+20) {
		tmp = z / b;
	} else {
		tmp = x / a;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if a <= -4e+73:
		tmp = x / a
	elif a <= -6.5e-7:
		tmp = z / b
	elif a <= -1.1e-152:
		tmp = x - (x * a)
	elif a <= -2.6e-262:
		tmp = z / b
	elif a <= 7.3e-127:
		tmp = x
	elif a <= 1.7e+20:
		tmp = z / b
	else:
		tmp = x / a
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (a <= -4e+73)
		tmp = Float64(x / a);
	elseif (a <= -6.5e-7)
		tmp = Float64(z / b);
	elseif (a <= -1.1e-152)
		tmp = Float64(x - Float64(x * a));
	elseif (a <= -2.6e-262)
		tmp = Float64(z / b);
	elseif (a <= 7.3e-127)
		tmp = x;
	elseif (a <= 1.7e+20)
		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 (a <= -4e+73)
		tmp = x / a;
	elseif (a <= -6.5e-7)
		tmp = z / b;
	elseif (a <= -1.1e-152)
		tmp = x - (x * a);
	elseif (a <= -2.6e-262)
		tmp = z / b;
	elseif (a <= 7.3e-127)
		tmp = x;
	elseif (a <= 1.7e+20)
		tmp = z / b;
	else
		tmp = x / a;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -4e+73], N[(x / a), $MachinePrecision], If[LessEqual[a, -6.5e-7], N[(z / b), $MachinePrecision], If[LessEqual[a, -1.1e-152], N[(x - N[(x * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.6e-262], N[(z / b), $MachinePrecision], If[LessEqual[a, 7.3e-127], x, If[LessEqual[a, 1.7e+20], N[(z / b), $MachinePrecision], N[(x / a), $MachinePrecision]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;a \leq -4 \cdot 10^{+73}:\\
\;\;\;\;\frac{x}{a}\\

\mathbf{elif}\;a \leq -6.5 \cdot 10^{-7}:\\
\;\;\;\;\frac{z}{b}\\

\mathbf{elif}\;a \leq -1.1 \cdot 10^{-152}:\\
\;\;\;\;x - x \cdot a\\

\mathbf{elif}\;a \leq -2.6 \cdot 10^{-262}:\\
\;\;\;\;\frac{z}{b}\\

\mathbf{elif}\;a \leq 7.3 \cdot 10^{-127}:\\
\;\;\;\;x\\

\mathbf{elif}\;a \leq 1.7 \cdot 10^{+20}:\\
\;\;\;\;\frac{z}{b}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if a < -3.99999999999999993e73 or 1.7e20 < a

    1. Initial program 74.2%

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

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

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

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

      \[\leadsto \color{blue}{\frac{x}{1 + a}} \]
    6. Taylor expanded in a around inf 50.9%

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

    if -3.99999999999999993e73 < a < -6.50000000000000024e-7 or -1.09999999999999992e-152 < a < -2.5999999999999999e-262 or 7.30000000000000033e-127 < a < 1.7e20

    1. Initial program 61.1%

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

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

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

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

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

    if -6.50000000000000024e-7 < a < -1.09999999999999992e-152

    1. Initial program 86.5%

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

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

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

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

      \[\leadsto \color{blue}{\frac{x}{1 + a}} \]
    6. Taylor expanded in a around 0 61.1%

      \[\leadsto \color{blue}{x + -1 \cdot \left(a \cdot x\right)} \]
    7. Step-by-step derivation
      1. mul-1-neg61.1%

        \[\leadsto x + \color{blue}{\left(-a \cdot x\right)} \]
      2. unsub-neg61.1%

        \[\leadsto \color{blue}{x - a \cdot x} \]
    8. Simplified61.1%

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

    if -2.5999999999999999e-262 < a < 7.30000000000000033e-127

    1. Initial program 79.4%

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

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

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

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

      \[\leadsto \color{blue}{\frac{x}{1 + a}} \]
    6. Taylor expanded in a around 0 48.4%

      \[\leadsto \color{blue}{x} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification52.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -4 \cdot 10^{+73}:\\ \;\;\;\;\frac{x}{a}\\ \mathbf{elif}\;a \leq -6.5 \cdot 10^{-7}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq -1.1 \cdot 10^{-152}:\\ \;\;\;\;x - x \cdot a\\ \mathbf{elif}\;a \leq -2.6 \cdot 10^{-262}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq 7.3 \cdot 10^{-127}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 1.7 \cdot 10^{+20}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a}\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 69.4% accurate, 0.5× speedup?

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

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

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

\mathbf{elif}\;t \leq 5 \cdot 10^{-77} \lor \neg \left(t \leq 1.5 \cdot 10^{-6}\right):\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -1.44999999999999994e-39 or 1.75000000000000001e-139 < t < 4.99999999999999963e-77 or 1.5e-6 < 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. associate-/l*88.1%

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

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

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

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

    if -1.44999999999999994e-39 < t < 1.75000000000000001e-139

    1. Initial program 50.9%

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

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

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

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

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

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

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

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{y \cdot \frac{z}{t}} + x}{y} \]
      4. fma-undefine23.1%

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}{y} \]
    7. Simplified23.1%

      \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}} \]
    8. Taylor expanded in t around 0 67.4%

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

        \[\leadsto \frac{z}{b} + \frac{t \cdot x}{\color{blue}{y \cdot b}} \]
    10. Simplified67.4%

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

    if 4.99999999999999963e-77 < t < 1.5e-6

    1. Initial program 74.2%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{x + \frac{y \cdot z}{t}}{y}} \]
      2. +-commutative55.3%

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

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{y \cdot \frac{z}{t}} + x}{y} \]
      4. fma-undefine55.2%

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}{y} \]
    7. Simplified55.2%

      \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}} \]
    8. Taylor expanded in y around inf 60.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.45 \cdot 10^{-39}:\\ \;\;\;\;\frac{x + y \cdot \frac{z}{t}}{a + 1}\\ \mathbf{elif}\;t \leq 1.75 \cdot 10^{-139}:\\ \;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\ \mathbf{elif}\;t \leq 5 \cdot 10^{-77} \lor \neg \left(t \leq 1.5 \cdot 10^{-6}\right):\\ \;\;\;\;\frac{x + y \cdot \frac{z}{t}}{a + 1}\\ \mathbf{else}:\\ \;\;\;\;\frac{t}{b} \cdot \left(\frac{z}{t} + \frac{x}{y}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 69.2% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x + z \cdot \frac{y}{t}}{a + 1}\\ \mathbf{if}\;t \leq -1.2 \cdot 10^{-40}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 4.2 \cdot 10^{-138}:\\ \;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\ \mathbf{elif}\;t \leq 6 \cdot 10^{-77} \lor \neg \left(t \leq 2.05 \cdot 10^{-6}\right):\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\frac{t}{b} \cdot \left(\frac{z}{t} + \frac{x}{y}\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ (+ x (* z (/ y t))) (+ a 1.0))))
   (if (<= t -1.2e-40)
     t_1
     (if (<= t 4.2e-138)
       (+ (/ z b) (/ (* x t) (* y b)))
       (if (or (<= t 6e-77) (not (<= t 2.05e-6)))
         t_1
         (* (/ t b) (+ (/ z t) (/ x y))))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x + (z * (y / t))) / (a + 1.0);
	double tmp;
	if (t <= -1.2e-40) {
		tmp = t_1;
	} else if (t <= 4.2e-138) {
		tmp = (z / b) + ((x * t) / (y * b));
	} else if ((t <= 6e-77) || !(t <= 2.05e-6)) {
		tmp = t_1;
	} else {
		tmp = (t / b) * ((z / t) + (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) :: t_1
    real(8) :: tmp
    t_1 = (x + (z * (y / t))) / (a + 1.0d0)
    if (t <= (-1.2d-40)) then
        tmp = t_1
    else if (t <= 4.2d-138) then
        tmp = (z / b) + ((x * t) / (y * b))
    else if ((t <= 6d-77) .or. (.not. (t <= 2.05d-6))) then
        tmp = t_1
    else
        tmp = (t / b) * ((z / t) + (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 t_1 = (x + (z * (y / t))) / (a + 1.0);
	double tmp;
	if (t <= -1.2e-40) {
		tmp = t_1;
	} else if (t <= 4.2e-138) {
		tmp = (z / b) + ((x * t) / (y * b));
	} else if ((t <= 6e-77) || !(t <= 2.05e-6)) {
		tmp = t_1;
	} else {
		tmp = (t / b) * ((z / t) + (x / y));
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (x + (z * (y / t))) / (a + 1.0)
	tmp = 0
	if t <= -1.2e-40:
		tmp = t_1
	elif t <= 4.2e-138:
		tmp = (z / b) + ((x * t) / (y * b))
	elif (t <= 6e-77) or not (t <= 2.05e-6):
		tmp = t_1
	else:
		tmp = (t / b) * ((z / t) + (x / y))
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(a + 1.0))
	tmp = 0.0
	if (t <= -1.2e-40)
		tmp = t_1;
	elseif (t <= 4.2e-138)
		tmp = Float64(Float64(z / b) + Float64(Float64(x * t) / Float64(y * b)));
	elseif ((t <= 6e-77) || !(t <= 2.05e-6))
		tmp = t_1;
	else
		tmp = Float64(Float64(t / b) * Float64(Float64(z / t) + Float64(x / y)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = (x + (z * (y / t))) / (a + 1.0);
	tmp = 0.0;
	if (t <= -1.2e-40)
		tmp = t_1;
	elseif (t <= 4.2e-138)
		tmp = (z / b) + ((x * t) / (y * b));
	elseif ((t <= 6e-77) || ~((t <= 2.05e-6)))
		tmp = t_1;
	else
		tmp = (t / b) * ((z / t) + (x / y));
	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[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.2e-40], t$95$1, If[LessEqual[t, 4.2e-138], N[(N[(z / b), $MachinePrecision] + N[(N[(x * t), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 6e-77], N[Not[LessEqual[t, 2.05e-6]], $MachinePrecision]], t$95$1, N[(N[(t / b), $MachinePrecision] * N[(N[(z / t), $MachinePrecision] + N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;t \leq 6 \cdot 10^{-77} \lor \neg \left(t \leq 2.05 \cdot 10^{-6}\right):\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -1.19999999999999996e-40 or 4.19999999999999972e-138 < t < 6.00000000000000033e-77 or 2.0499999999999999e-6 < 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. associate-/l*88.1%

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

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

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

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

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

        \[\leadsto x + \color{blue}{z \cdot \frac{y}{t}} \]
    7. Applied egg-rr79.9%

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

    if -1.19999999999999996e-40 < t < 4.19999999999999972e-138

    1. Initial program 50.9%

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

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

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

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

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

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

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

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{y \cdot \frac{z}{t}} + x}{y} \]
      4. fma-undefine23.1%

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}{y} \]
    7. Simplified23.1%

      \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}} \]
    8. Taylor expanded in t around 0 67.4%

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

        \[\leadsto \frac{z}{b} + \frac{t \cdot x}{\color{blue}{y \cdot b}} \]
    10. Simplified67.4%

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

    if 6.00000000000000033e-77 < t < 2.0499999999999999e-6

    1. Initial program 74.2%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{x + \frac{y \cdot z}{t}}{y}} \]
      2. +-commutative55.3%

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

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{y \cdot \frac{z}{t}} + x}{y} \]
      4. fma-undefine55.2%

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}{y} \]
    7. Simplified55.2%

      \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}} \]
    8. Taylor expanded in y around inf 60.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.2 \cdot 10^{-40}:\\ \;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + 1}\\ \mathbf{elif}\;t \leq 4.2 \cdot 10^{-138}:\\ \;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\ \mathbf{elif}\;t \leq 6 \cdot 10^{-77} \lor \neg \left(t \leq 2.05 \cdot 10^{-6}\right):\\ \;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + 1}\\ \mathbf{else}:\\ \;\;\;\;\frac{t}{b} \cdot \left(\frac{z}{t} + \frac{x}{y}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 69.5% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x + z \cdot \frac{y}{t}}{a + 1}\\ \mathbf{if}\;t \leq -3.4 \cdot 10^{-41}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 8 \cdot 10^{-136}:\\ \;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\ \mathbf{elif}\;t \leq 4.5 \cdot 10^{-77}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 6.9 \cdot 10^{-6}:\\ \;\;\;\;\frac{t}{b} \cdot \left(\frac{z}{t} + \frac{x}{y}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ (+ x (* z (/ y t))) (+ a 1.0))))
   (if (<= t -3.4e-41)
     t_1
     (if (<= t 8e-136)
       (+ (/ z b) (/ (* x t) (* y b)))
       (if (<= t 4.5e-77)
         t_1
         (if (<= t 6.9e-6)
           (* (/ t b) (+ (/ z t) (/ x y)))
           (/ (+ x (/ y (/ t z))) (+ a 1.0))))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x + (z * (y / t))) / (a + 1.0);
	double tmp;
	if (t <= -3.4e-41) {
		tmp = t_1;
	} else if (t <= 8e-136) {
		tmp = (z / b) + ((x * t) / (y * b));
	} else if (t <= 4.5e-77) {
		tmp = t_1;
	} else if (t <= 6.9e-6) {
		tmp = (t / b) * ((z / t) + (x / y));
	} else {
		tmp = (x + (y / (t / z))) / (a + 1.0);
	}
	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))) / (a + 1.0d0)
    if (t <= (-3.4d-41)) then
        tmp = t_1
    else if (t <= 8d-136) then
        tmp = (z / b) + ((x * t) / (y * b))
    else if (t <= 4.5d-77) then
        tmp = t_1
    else if (t <= 6.9d-6) then
        tmp = (t / b) * ((z / t) + (x / y))
    else
        tmp = (x + (y / (t / z))) / (a + 1.0d0)
    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))) / (a + 1.0);
	double tmp;
	if (t <= -3.4e-41) {
		tmp = t_1;
	} else if (t <= 8e-136) {
		tmp = (z / b) + ((x * t) / (y * b));
	} else if (t <= 4.5e-77) {
		tmp = t_1;
	} else if (t <= 6.9e-6) {
		tmp = (t / b) * ((z / t) + (x / y));
	} else {
		tmp = (x + (y / (t / z))) / (a + 1.0);
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (x + (z * (y / t))) / (a + 1.0)
	tmp = 0
	if t <= -3.4e-41:
		tmp = t_1
	elif t <= 8e-136:
		tmp = (z / b) + ((x * t) / (y * b))
	elif t <= 4.5e-77:
		tmp = t_1
	elif t <= 6.9e-6:
		tmp = (t / b) * ((z / t) + (x / y))
	else:
		tmp = (x + (y / (t / z))) / (a + 1.0)
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(a + 1.0))
	tmp = 0.0
	if (t <= -3.4e-41)
		tmp = t_1;
	elseif (t <= 8e-136)
		tmp = Float64(Float64(z / b) + Float64(Float64(x * t) / Float64(y * b)));
	elseif (t <= 4.5e-77)
		tmp = t_1;
	elseif (t <= 6.9e-6)
		tmp = Float64(Float64(t / b) * Float64(Float64(z / t) + Float64(x / y)));
	else
		tmp = Float64(Float64(x + Float64(y / Float64(t / z))) / Float64(a + 1.0));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = (x + (z * (y / t))) / (a + 1.0);
	tmp = 0.0;
	if (t <= -3.4e-41)
		tmp = t_1;
	elseif (t <= 8e-136)
		tmp = (z / b) + ((x * t) / (y * b));
	elseif (t <= 4.5e-77)
		tmp = t_1;
	elseif (t <= 6.9e-6)
		tmp = (t / b) * ((z / t) + (x / y));
	else
		tmp = (x + (y / (t / z))) / (a + 1.0);
	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[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.4e-41], t$95$1, If[LessEqual[t, 8e-136], N[(N[(z / b), $MachinePrecision] + N[(N[(x * t), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.5e-77], t$95$1, If[LessEqual[t, 6.9e-6], N[(N[(t / b), $MachinePrecision] * N[(N[(z / t), $MachinePrecision] + N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;t \leq 4.5 \cdot 10^{-77}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 6.9 \cdot 10^{-6}:\\
\;\;\;\;\frac{t}{b} \cdot \left(\frac{z}{t} + \frac{x}{y}\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -3.3999999999999998e-41 or 8.00000000000000001e-136 < t < 4.5000000000000001e-77

    1. Initial program 85.5%

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

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

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

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

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

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

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

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

    if -3.3999999999999998e-41 < t < 8.00000000000000001e-136

    1. Initial program 50.9%

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

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

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

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

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

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

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

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{y \cdot \frac{z}{t}} + x}{y} \]
      4. fma-undefine23.1%

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}{y} \]
    7. Simplified23.1%

      \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}} \]
    8. Taylor expanded in t around 0 67.4%

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

        \[\leadsto \frac{z}{b} + \frac{t \cdot x}{\color{blue}{y \cdot b}} \]
    10. Simplified67.4%

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

    if 4.5000000000000001e-77 < t < 6.9e-6

    1. Initial program 74.2%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{x + \frac{y \cdot z}{t}}{y}} \]
      2. +-commutative55.3%

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

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{y \cdot \frac{z}{t}} + x}{y} \]
      4. fma-undefine55.2%

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}{y} \]
    7. Simplified55.2%

      \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}} \]
    8. Taylor expanded in y around inf 60.2%

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

    if 6.9e-6 < t

    1. Initial program 83.2%

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

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

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

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

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

        \[\leadsto x + \color{blue}{y \cdot \frac{z}{t}} \]
      2. *-commutative48.0%

        \[\leadsto x + \color{blue}{\frac{z}{t} \cdot y} \]
      3. div-inv48.0%

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

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

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

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

        \[\leadsto \frac{x + \color{blue}{\frac{1 \cdot y}{t}} \cdot z}{1 + a} \]
      3. *-un-lft-identity80.9%

        \[\leadsto \frac{x + \frac{\color{blue}{y}}{t} \cdot z}{1 + a} \]
      4. associate-/r/80.9%

        \[\leadsto \frac{x + \color{blue}{\frac{y}{\frac{t}{z}}}}{1 + a} \]
    9. Applied egg-rr80.9%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -3.4 \cdot 10^{-41}:\\ \;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + 1}\\ \mathbf{elif}\;t \leq 8 \cdot 10^{-136}:\\ \;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\ \mathbf{elif}\;t \leq 4.5 \cdot 10^{-77}:\\ \;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + 1}\\ \mathbf{elif}\;t \leq 6.9 \cdot 10^{-6}:\\ \;\;\;\;\frac{t}{b} \cdot \left(\frac{z}{t} + \frac{x}{y}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\ \end{array} \]
  5. Add Preprocessing

Alternative 13: 69.3% accurate, 0.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.4 \cdot 10^{-41}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + 1}\\

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

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

\mathbf{elif}\;t \leq 2.3 \cdot 10^{-6}:\\
\;\;\;\;\frac{t}{b} \cdot \left(\frac{z}{t} + \frac{x}{y}\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if t < -6.40000000000000024e-41

    1. Initial program 87.0%

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

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

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

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

      \[\leadsto \color{blue}{\frac{x + \frac{y \cdot z}{t}}{1 + a}} \]
    6. Step-by-step derivation
      1. *-commutative46.8%

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

        \[\leadsto x + \color{blue}{z \cdot \frac{y}{t}} \]
    7. Applied egg-rr81.9%

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

    if -6.40000000000000024e-41 < t < 5.8000000000000004e-131

    1. Initial program 51.5%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{x + \frac{y \cdot z}{t}}{y}} \]
      2. +-commutative22.9%

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

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{y \cdot \frac{z}{t}} + x}{y} \]
      4. fma-undefine22.9%

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}{y} \]
    7. Simplified22.9%

      \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}} \]
    8. Taylor expanded in t around 0 66.7%

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

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

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

    if 5.8000000000000004e-131 < t < 2.7999999999999999e-77

    1. Initial program 73.5%

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

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

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

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

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

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

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

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

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

    if 2.7999999999999999e-77 < t < 2.3e-6

    1. Initial program 74.2%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{x + \frac{y \cdot z}{t}}{y}} \]
      2. +-commutative55.3%

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

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{y \cdot \frac{z}{t}} + x}{y} \]
      4. fma-undefine55.2%

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}{y} \]
    7. Simplified55.2%

      \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}} \]
    8. Taylor expanded in y around inf 60.2%

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

    if 2.3e-6 < t

    1. Initial program 83.2%

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

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

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

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

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

        \[\leadsto x + \color{blue}{y \cdot \frac{z}{t}} \]
      2. *-commutative48.0%

        \[\leadsto x + \color{blue}{\frac{z}{t} \cdot y} \]
      3. div-inv48.0%

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

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

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

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

        \[\leadsto \frac{x + \color{blue}{\frac{1 \cdot y}{t}} \cdot z}{1 + a} \]
      3. *-un-lft-identity80.9%

        \[\leadsto \frac{x + \frac{\color{blue}{y}}{t} \cdot z}{1 + a} \]
      4. associate-/r/80.9%

        \[\leadsto \frac{x + \color{blue}{\frac{y}{\frac{t}{z}}}}{1 + a} \]
    9. Applied egg-rr80.9%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -6.4 \cdot 10^{-41}:\\ \;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + 1}\\ \mathbf{elif}\;t \leq 5.8 \cdot 10^{-131}:\\ \;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\ \mathbf{elif}\;t \leq 2.8 \cdot 10^{-77}:\\ \;\;\;\;\frac{y}{t} \cdot \frac{z}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\ \mathbf{elif}\;t \leq 2.3 \cdot 10^{-6}:\\ \;\;\;\;\frac{t}{b} \cdot \left(\frac{z}{t} + \frac{x}{y}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\ \end{array} \]
  5. Add Preprocessing

Alternative 14: 67.8% accurate, 0.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.2 \cdot 10^{-40}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + 1}\\

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

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

\mathbf{elif}\;t \leq 0.114:\\
\;\;\;\;\frac{t}{b} \cdot \left(\frac{z}{t} + \frac{x}{y}\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if t < -1.19999999999999996e-40

    1. Initial program 87.0%

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

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

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

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

      \[\leadsto \color{blue}{\frac{x + \frac{y \cdot z}{t}}{1 + a}} \]
    6. Step-by-step derivation
      1. *-commutative46.8%

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

        \[\leadsto x + \color{blue}{z \cdot \frac{y}{t}} \]
    7. Applied egg-rr81.9%

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

    if -1.19999999999999996e-40 < t < 1.62000000000000004e-265

    1. Initial program 51.5%

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

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

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

      \[\leadsto \color{blue}{\frac{x + y \cdot \frac{z}{t}}{\left(a + 1\right) + y \cdot \frac{b}{t}}} \]
    4. Add Preprocessing
    5. 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}} \]
    6. Step-by-step derivation
      1. times-frac25.1%

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

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

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{y \cdot \frac{z}{t}} + x}{y} \]
      4. fma-undefine25.1%

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}{y} \]
    7. Simplified25.1%

      \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}} \]
    8. Taylor expanded in t around 0 70.5%

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

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

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

    if 1.62000000000000004e-265 < t < 5.5999999999999999e-77

    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. associate-/l*55.9%

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

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

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

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

    if 5.5999999999999999e-77 < t < 0.114000000000000004

    1. Initial program 74.2%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{x + \frac{y \cdot z}{t}}{y}} \]
      2. +-commutative55.3%

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

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{y \cdot \frac{z}{t}} + x}{y} \]
      4. fma-undefine55.2%

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}{y} \]
    7. Simplified55.2%

      \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}} \]
    8. Taylor expanded in y around inf 60.2%

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

    if 0.114000000000000004 < t

    1. Initial program 83.2%

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

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

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

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

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

        \[\leadsto x + \color{blue}{y \cdot \frac{z}{t}} \]
      2. *-commutative48.0%

        \[\leadsto x + \color{blue}{\frac{z}{t} \cdot y} \]
      3. div-inv48.0%

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

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

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

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

        \[\leadsto \frac{x + \color{blue}{\frac{1 \cdot y}{t}} \cdot z}{1 + a} \]
      3. *-un-lft-identity80.9%

        \[\leadsto \frac{x + \frac{\color{blue}{y}}{t} \cdot z}{1 + a} \]
      4. associate-/r/80.9%

        \[\leadsto \frac{x + \color{blue}{\frac{y}{\frac{t}{z}}}}{1 + a} \]
    9. Applied egg-rr80.9%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.2 \cdot 10^{-40}:\\ \;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + 1}\\ \mathbf{elif}\;t \leq 1.62 \cdot 10^{-265}:\\ \;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\ \mathbf{elif}\;t \leq 5.6 \cdot 10^{-77}:\\ \;\;\;\;\frac{y \cdot z}{t \cdot \left(1 + \left(a + \frac{y \cdot b}{t}\right)\right)}\\ \mathbf{elif}\;t \leq 0.114:\\ \;\;\;\;\frac{t}{b} \cdot \left(\frac{z}{t} + \frac{x}{y}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\ \end{array} \]
  5. Add Preprocessing

Alternative 15: 69.3% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.2 \cdot 10^{+64}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + 1}\\

\mathbf{elif}\;a \leq -0.027:\\
\;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\

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

\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if a < -2.20000000000000002e64

    1. Initial program 74.2%

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

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

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

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

      \[\leadsto \color{blue}{\frac{x + \frac{y \cdot z}{t}}{1 + a}} \]
    6. Step-by-step derivation
      1. *-commutative2.2%

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

        \[\leadsto x + \color{blue}{z \cdot \frac{y}{t}} \]
    7. Applied egg-rr70.7%

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

    if -2.20000000000000002e64 < a < -0.0269999999999999997

    1. Initial program 23.2%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{x + \frac{y \cdot z}{t}}{y}} \]
      2. +-commutative39.8%

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

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{y \cdot \frac{z}{t}} + x}{y} \]
      4. fma-undefine39.8%

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}{y} \]
    7. Simplified39.8%

      \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}} \]
    8. Taylor expanded in t around 0 91.5%

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

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

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

    if -0.0269999999999999997 < a < 0.0015200000000000001

    1. Initial program 75.8%

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

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

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

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

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

        \[\leadsto \frac{x + y \cdot \frac{z}{t}}{1 + \color{blue}{\frac{b}{t} \cdot y}} \]
      2. *-commutative76.9%

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

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

    if 0.0015200000000000001 < a

    1. Initial program 76.9%

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

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

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

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

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

        \[\leadsto x + \color{blue}{y \cdot \frac{z}{t}} \]
      2. *-commutative5.5%

        \[\leadsto x + \color{blue}{\frac{z}{t} \cdot y} \]
      3. div-inv5.5%

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

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

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

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

        \[\leadsto \frac{x + \color{blue}{\frac{1 \cdot y}{t}} \cdot z}{1 + a} \]
      3. *-un-lft-identity73.8%

        \[\leadsto \frac{x + \frac{\color{blue}{y}}{t} \cdot z}{1 + a} \]
      4. associate-/r/73.8%

        \[\leadsto \frac{x + \color{blue}{\frac{y}{\frac{t}{z}}}}{1 + a} \]
    9. Applied egg-rr73.8%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.2 \cdot 10^{+64}:\\ \;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + 1}\\ \mathbf{elif}\;a \leq -0.027:\\ \;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\ \mathbf{elif}\;a \leq 0.00152:\\ \;\;\;\;\frac{x + y \cdot \frac{z}{t}}{1 + y \cdot \frac{b}{t}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\ \end{array} \]
  5. Add Preprocessing

Alternative 16: 82.6% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.9 \cdot 10^{-74} \lor \neg \left(t \leq 2.25 \cdot 10^{-135}\right):\\
\;\;\;\;\frac{x + y \cdot \frac{z}{t}}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -2.9e-74 or 2.24999999999999994e-135 < t

    1. Initial program 82.3%

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

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

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

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

    if -2.9e-74 < t < 2.24999999999999994e-135

    1. Initial program 51.3%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{x + \frac{y \cdot z}{t}}{y}} \]
      2. +-commutative21.2%

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

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{y \cdot \frac{z}{t}} + x}{y} \]
      4. fma-undefine21.3%

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

      \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}} \]
    8. Taylor expanded in t around 0 68.0%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2.9 \cdot 10^{-74} \lor \neg \left(t \leq 2.25 \cdot 10^{-135}\right):\\ \;\;\;\;\frac{x + y \cdot \frac{z}{t}}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\ \end{array} \]
  5. Add Preprocessing

Alternative 17: 81.6% accurate, 0.6× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -9.5000000000000002e-222

    1. Initial program 80.2%

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

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

        \[\leadsto x + \color{blue}{z \cdot \frac{y}{t}} \]
    4. Applied egg-rr83.0%

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

    if -9.5000000000000002e-222 < t < 9.00000000000000019e-133

    1. Initial program 46.0%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{x + \frac{y \cdot z}{t}}{y}} \]
      2. +-commutative21.8%

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

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{y \cdot \frac{z}{t}} + x}{y} \]
      4. fma-undefine21.9%

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}{y} \]
    7. Simplified21.9%

      \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}} \]
    8. Taylor expanded in t around 0 71.5%

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

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

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

    if 9.00000000000000019e-133 < t

    1. Initial program 80.4%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -9.5 \cdot 10^{-222}:\\ \;\;\;\;\frac{x + z \cdot \frac{y}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\ \mathbf{elif}\;t \leq 9 \cdot 10^{-133}:\\ \;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\ \mathbf{else}:\\ \;\;\;\;\frac{x + y \cdot \frac{z}{t}}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 18: 81.7% accurate, 0.6× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -2.40000000000000024e-221

    1. Initial program 80.2%

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

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

        \[\leadsto x + \color{blue}{z \cdot \frac{y}{t}} \]
    4. Applied egg-rr83.0%

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

    if -2.40000000000000024e-221 < t < 2.6000000000000001e-132

    1. Initial program 46.0%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{x + \frac{y \cdot z}{t}}{y}} \]
      2. +-commutative21.8%

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

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{y \cdot \frac{z}{t}} + x}{y} \]
      4. fma-undefine21.9%

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}{y} \]
    7. Simplified21.9%

      \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}} \]
    8. Taylor expanded in t around 0 71.5%

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

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

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

    if 2.6000000000000001e-132 < t

    1. Initial program 80.4%

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

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

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

      \[\leadsto \color{blue}{\frac{x + y \cdot \frac{z}{t}}{\left(a + 1\right) + y \cdot \frac{b}{t}}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. clear-num88.1%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2.4 \cdot 10^{-221}:\\ \;\;\;\;\frac{x + z \cdot \frac{y}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\ \mathbf{elif}\;t \leq 2.6 \cdot 10^{-132}:\\ \;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\ \mathbf{else}:\\ \;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 19: 64.8% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.2 \cdot 10^{-40} \lor \neg \left(t \leq 1.3 \cdot 10^{-29}\right):\\
\;\;\;\;\frac{x}{1 + \left(a + \frac{y \cdot b}{t}\right)}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -4.20000000000000036e-40 or 1.3000000000000001e-29 < t

    1. Initial program 85.2%

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

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

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

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

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

    if -4.20000000000000036e-40 < t < 1.3000000000000001e-29

    1. Initial program 55.6%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{x + \frac{y \cdot z}{t}}{y}} \]
      2. +-commutative26.2%

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

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{y \cdot \frac{z}{t}} + x}{y} \]
      4. fma-undefine26.2%

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}{y} \]
    7. Simplified26.2%

      \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}} \]
    8. Taylor expanded in t around 0 63.0%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.2 \cdot 10^{-40} \lor \neg \left(t \leq 1.3 \cdot 10^{-29}\right):\\ \;\;\;\;\frac{x}{1 + \left(a + \frac{y \cdot b}{t}\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\ \end{array} \]
  5. Add Preprocessing

Alternative 20: 66.7% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.4 \cdot 10^{-41} \lor \neg \left(t \leq 2.3 \cdot 10^{-28}\right):\\
\;\;\;\;\frac{x}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -3.3999999999999998e-41 or 2.29999999999999986e-28 < t

    1. Initial program 85.2%

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

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

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

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

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

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

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

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

    if -3.3999999999999998e-41 < t < 2.29999999999999986e-28

    1. Initial program 55.6%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{x + \frac{y \cdot z}{t}}{y}} \]
      2. +-commutative26.2%

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

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{y \cdot \frac{z}{t}} + x}{y} \]
      4. fma-undefine26.2%

        \[\leadsto \frac{t}{b} \cdot \frac{\color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}}{y} \]
    7. Simplified26.2%

      \[\leadsto \color{blue}{\frac{t}{b} \cdot \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{y}} \]
    8. Taylor expanded in t around 0 63.0%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -3.4 \cdot 10^{-41} \lor \neg \left(t \leq 2.3 \cdot 10^{-28}\right):\\ \;\;\;\;\frac{x}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\ \end{array} \]
  5. Add Preprocessing

Alternative 21: 57.2% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.15 \cdot 10^{-39} \lor \neg \left(t \leq 6.3 \cdot 10^{-18}\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.15e-39) (not (<= t 6.3e-18))) (/ 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.15e-39) || !(t <= 6.3e-18)) {
		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.15d-39)) .or. (.not. (t <= 6.3d-18))) 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.15e-39) || !(t <= 6.3e-18)) {
		tmp = x / (a + 1.0);
	} else {
		tmp = z / b;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if (t <= -1.15e-39) or not (t <= 6.3e-18):
		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.15e-39) || !(t <= 6.3e-18))
		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.15e-39) || ~((t <= 6.3e-18)))
		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.15e-39], N[Not[LessEqual[t, 6.3e-18]], $MachinePrecision]], N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], N[(z / b), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.15 \cdot 10^{-39} \lor \neg \left(t \leq 6.3 \cdot 10^{-18}\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.15000000000000004e-39 or 6.3000000000000004e-18 < t

    1. Initial program 84.9%

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

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

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

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

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

    if -1.15000000000000004e-39 < t < 6.3000000000000004e-18

    1. Initial program 56.8%

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.15 \cdot 10^{-39} \lor \neg \left(t \leq 6.3 \cdot 10^{-18}\right):\\ \;\;\;\;\frac{x}{a + 1}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \]
  5. Add Preprocessing

Alternative 22: 40.0% accurate, 1.3× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.2 \cdot 10^{+64} \lor \neg \left(a \leq 2.3\right):\\
\;\;\;\;\frac{x}{a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -2.20000000000000002e64 or 2.2999999999999998 < a

    1. Initial program 75.4%

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

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

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

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

      \[\leadsto \color{blue}{\frac{x}{1 + a}} \]
    6. Taylor expanded in a around inf 48.8%

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

    if -2.20000000000000002e64 < a < 2.2999999999999998

    1. Initial program 71.6%

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

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

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

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

      \[\leadsto \color{blue}{\frac{x}{1 + a}} \]
    6. Taylor expanded in a around 0 39.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.2 \cdot 10^{+64} \lor \neg \left(a \leq 2.3\right):\\ \;\;\;\;\frac{x}{a}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
  5. Add Preprocessing

Alternative 23: 20.2% 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 73.1%

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

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

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

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

    \[\leadsto \color{blue}{\frac{x}{1 + a}} \]
  6. Taylor expanded in a around 0 25.8%

    \[\leadsto \color{blue}{x} \]
  7. Final simplification25.8%

    \[\leadsto x \]
  8. Add Preprocessing

Developer target: 79.9% accurate, 0.5× 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 2024077 
(FPCore (x y z t a b)
  :name "Diagrams.Solve.Tridiagonal:solveCyclicTriDiagonal from diagrams-solve-0.1, B"
  :precision binary64

  :alt
  (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))))