Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A

Percentage Accurate: 98.3% → 98.3%
Time: 24.2s
Alternatives: 21
Speedup: 1.0×

Specification

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

\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\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 21 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: 98.3% accurate, 1.0× speedup?

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

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

Alternative 1: 98.3% accurate, 1.0× speedup?

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

\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t + -1\right) \cdot \log a\right) - b}}{y}
\end{array}
Derivation
  1. Initial program 98.9%

    \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
  2. Final simplification98.9%

    \[\leadsto \frac{x \cdot e^{\left(y \cdot \log z + \left(t + -1\right) \cdot \log a\right) - b}}{y} \]

Alternative 2: 92.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.05 \cdot 10^{+32} \lor \neg \left(y \leq 2.4 \cdot 10^{+19}\right):\\ \;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (or (<= y -1.05e+32) (not (<= y 2.4e+19)))
   (/ (* x (exp (- (- (* y (log z)) (log a)) b))) y)
   (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if ((y <= -1.05e+32) || !(y <= 2.4e+19)) {
		tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
	} else {
		tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: tmp
    if ((y <= (-1.05d+32)) .or. (.not. (y <= 2.4d+19))) then
        tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y
    else
        tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if ((y <= -1.05e+32) || !(y <= 2.4e+19)) {
		tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / y;
	} else {
		tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if (y <= -1.05e+32) or not (y <= 2.4e+19):
		tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / y
	else:
		tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if ((y <= -1.05e+32) || !(y <= 2.4e+19))
		tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y);
	else
		tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if ((y <= -1.05e+32) || ~((y <= 2.4e+19)))
		tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
	else
		tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.05e+32], N[Not[LessEqual[y, 2.4e+19]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.05 \cdot 10^{+32} \lor \neg \left(y \leq 2.4 \cdot 10^{+19}\right):\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.05e32 or 2.4e19 < y

    1. Initial program 100.0%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Taylor expanded in t around 0 96.0%

      \[\leadsto \frac{x \cdot \color{blue}{e^{\left(-1 \cdot \log a + y \cdot \log z\right) - b}}}{y} \]
    3. Step-by-step derivation
      1. +-commutative96.0%

        \[\leadsto \frac{x \cdot e^{\color{blue}{\left(y \cdot \log z + -1 \cdot \log a\right)} - b}}{y} \]
      2. mul-1-neg96.0%

        \[\leadsto \frac{x \cdot e^{\left(y \cdot \log z + \color{blue}{\left(-\log a\right)}\right) - b}}{y} \]
      3. unsub-neg96.0%

        \[\leadsto \frac{x \cdot e^{\color{blue}{\left(y \cdot \log z - \log a\right)} - b}}{y} \]
    4. Simplified96.0%

      \[\leadsto \frac{x \cdot \color{blue}{e^{\left(y \cdot \log z - \log a\right) - b}}}{y} \]

    if -1.05e32 < y < 2.4e19

    1. Initial program 97.9%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Taylor expanded in y around 0 97.5%

      \[\leadsto \frac{x \cdot \color{blue}{e^{\log a \cdot \left(t - 1\right) - b}}}{y} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification96.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.05 \cdot 10^{+32} \lor \neg \left(y \leq 2.4 \cdot 10^{+19}\right):\\ \;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\ \end{array} \]

Alternative 3: 81.3% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.4 \cdot 10^{+73} \lor \neg \left(t \leq 0.19\right) \land \left(t \leq 3.1 \cdot 10^{+60} \lor \neg \left(t \leq 1.1 \cdot 10^{+161}\right)\right):\\ \;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot \frac{\frac{{z}^{y}}{y}}{e^{b}}}{a}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (or (<= t -1.4e+73)
         (and (not (<= t 0.19)) (or (<= t 3.1e+60) (not (<= t 1.1e+161)))))
   (/ (* x (/ (pow a t) a)) y)
   (/ (* x (/ (/ (pow z y) y) (exp b))) a)))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if ((t <= -1.4e+73) || (!(t <= 0.19) && ((t <= 3.1e+60) || !(t <= 1.1e+161)))) {
		tmp = (x * (pow(a, t) / a)) / y;
	} else {
		tmp = (x * ((pow(z, y) / y) / exp(b))) / a;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: tmp
    if ((t <= (-1.4d+73)) .or. (.not. (t <= 0.19d0)) .and. (t <= 3.1d+60) .or. (.not. (t <= 1.1d+161))) then
        tmp = (x * ((a ** t) / a)) / y
    else
        tmp = (x * (((z ** y) / y) / exp(b))) / a
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if ((t <= -1.4e+73) || (!(t <= 0.19) && ((t <= 3.1e+60) || !(t <= 1.1e+161)))) {
		tmp = (x * (Math.pow(a, t) / a)) / y;
	} else {
		tmp = (x * ((Math.pow(z, y) / y) / Math.exp(b))) / a;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if (t <= -1.4e+73) or (not (t <= 0.19) and ((t <= 3.1e+60) or not (t <= 1.1e+161))):
		tmp = (x * (math.pow(a, t) / a)) / y
	else:
		tmp = (x * ((math.pow(z, y) / y) / math.exp(b))) / a
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if ((t <= -1.4e+73) || (!(t <= 0.19) && ((t <= 3.1e+60) || !(t <= 1.1e+161))))
		tmp = Float64(Float64(x * Float64((a ^ t) / a)) / y);
	else
		tmp = Float64(Float64(x * Float64(Float64((z ^ y) / y) / exp(b))) / a);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if ((t <= -1.4e+73) || (~((t <= 0.19)) && ((t <= 3.1e+60) || ~((t <= 1.1e+161)))))
		tmp = (x * ((a ^ t) / a)) / y;
	else
		tmp = (x * (((z ^ y) / y) / exp(b))) / a;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.4e+73], And[N[Not[LessEqual[t, 0.19]], $MachinePrecision], Or[LessEqual[t, 3.1e+60], N[Not[LessEqual[t, 1.1e+161]], $MachinePrecision]]]], N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.4 \cdot 10^{+73} \lor \neg \left(t \leq 0.19\right) \land \left(t \leq 3.1 \cdot 10^{+60} \lor \neg \left(t \leq 1.1 \cdot 10^{+161}\right)\right):\\
\;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\

\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{\frac{{z}^{y}}{y}}{e^{b}}}{a}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.40000000000000004e73 or 0.19 < t < 3.1000000000000001e60 or 1.1e161 < t

    1. Initial program 100.0%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Taylor expanded in y around 0 93.8%

      \[\leadsto \frac{x \cdot \color{blue}{e^{\log a \cdot \left(t - 1\right) - b}}}{y} \]
    3. Step-by-step derivation
      1. exp-diff66.7%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)}}{e^{b}}}}{y} \]
      2. exp-to-pow66.7%

        \[\leadsto \frac{x \cdot \frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y} \]
      3. sub-neg66.7%

        \[\leadsto \frac{x \cdot \frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}}}{y} \]
      4. metadata-eval66.7%

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

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

      \[\leadsto \frac{\color{blue}{x \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
    6. Simplified82.6%

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

        \[\leadsto \frac{x \cdot {a}^{\color{blue}{\left(t + -1\right)}}}{y} \]
      2. unpow-prod-up82.6%

        \[\leadsto \frac{x \cdot \color{blue}{\left({a}^{t} \cdot {a}^{-1}\right)}}{y} \]
      3. inv-pow82.6%

        \[\leadsto \frac{x \cdot \left({a}^{t} \cdot \color{blue}{\frac{1}{a}}\right)}{y} \]
    8. Applied egg-rr82.6%

      \[\leadsto \frac{x \cdot \color{blue}{\left({a}^{t} \cdot \frac{1}{a}\right)}}{y} \]
    9. Step-by-step derivation
      1. associate-*r/82.6%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{{a}^{t} \cdot 1}{a}}}{y} \]
      2. *-rgt-identity82.6%

        \[\leadsto \frac{x \cdot \frac{\color{blue}{{a}^{t}}}{a}}{y} \]
    10. Simplified82.6%

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

    if -1.40000000000000004e73 < t < 0.19 or 3.1000000000000001e60 < t < 1.1e161

    1. Initial program 98.3%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff76.3%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum69.4%

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

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow69.4%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative69.4%

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow70.5%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg70.5%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval70.5%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac78.6%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified78.6%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Step-by-step derivation
      1. associate-*l/86.1%

        \[\leadsto \color{blue}{\frac{x \cdot \frac{{z}^{y}}{y \cdot e^{b}}}{a}} \]
      2. associate-/r*86.1%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{\frac{{z}^{y}}{y}}{e^{b}}}}{a} \]
    8. Applied egg-rr86.1%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.4 \cdot 10^{+73} \lor \neg \left(t \leq 0.19\right) \land \left(t \leq 3.1 \cdot 10^{+60} \lor \neg \left(t \leq 1.1 \cdot 10^{+161}\right)\right):\\ \;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot \frac{\frac{{z}^{y}}{y}}{e^{b}}}{a}\\ \end{array} \]

Alternative 4: 80.0% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\\ t_2 := \frac{x \cdot \frac{{z}^{y}}{y}}{a}\\ \mathbf{if}\;y \leq -1.9 \cdot 10^{+31}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq -5.4 \cdot 10^{-227}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq 3.2 \cdot 10^{-169}:\\ \;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\ \mathbf{elif}\;y \leq 6 \cdot 10^{+16}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ (* x (/ (pow a (+ t -1.0)) (exp b))) y))
        (t_2 (/ (* x (/ (pow z y) y)) a)))
   (if (<= y -1.9e+31)
     t_2
     (if (<= y -5.4e-227)
       t_1
       (if (<= y 3.2e-169)
         (/ (* x (/ (pow a t) a)) y)
         (if (<= y 6e+16) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x * (pow(a, (t + -1.0)) / exp(b))) / y;
	double t_2 = (x * (pow(z, y) / y)) / a;
	double tmp;
	if (y <= -1.9e+31) {
		tmp = t_2;
	} else if (y <= -5.4e-227) {
		tmp = t_1;
	} else if (y <= 3.2e-169) {
		tmp = (x * (pow(a, t) / a)) / y;
	} else if (y <= 6e+16) {
		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 = (x * ((a ** (t + (-1.0d0))) / exp(b))) / y
    t_2 = (x * ((z ** y) / y)) / a
    if (y <= (-1.9d+31)) then
        tmp = t_2
    else if (y <= (-5.4d-227)) then
        tmp = t_1
    else if (y <= 3.2d-169) then
        tmp = (x * ((a ** t) / a)) / y
    else if (y <= 6d+16) 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 = (x * (Math.pow(a, (t + -1.0)) / Math.exp(b))) / y;
	double t_2 = (x * (Math.pow(z, y) / y)) / a;
	double tmp;
	if (y <= -1.9e+31) {
		tmp = t_2;
	} else if (y <= -5.4e-227) {
		tmp = t_1;
	} else if (y <= 3.2e-169) {
		tmp = (x * (Math.pow(a, t) / a)) / y;
	} else if (y <= 6e+16) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (x * (math.pow(a, (t + -1.0)) / math.exp(b))) / y
	t_2 = (x * (math.pow(z, y) / y)) / a
	tmp = 0
	if y <= -1.9e+31:
		tmp = t_2
	elif y <= -5.4e-227:
		tmp = t_1
	elif y <= 3.2e-169:
		tmp = (x * (math.pow(a, t) / a)) / y
	elif y <= 6e+16:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(x * Float64((a ^ Float64(t + -1.0)) / exp(b))) / y)
	t_2 = Float64(Float64(x * Float64((z ^ y) / y)) / a)
	tmp = 0.0
	if (y <= -1.9e+31)
		tmp = t_2;
	elseif (y <= -5.4e-227)
		tmp = t_1;
	elseif (y <= 3.2e-169)
		tmp = Float64(Float64(x * Float64((a ^ t) / a)) / y);
	elseif (y <= 6e+16)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = (x * ((a ^ (t + -1.0)) / exp(b))) / y;
	t_2 = (x * ((z ^ y) / y)) / a;
	tmp = 0.0;
	if (y <= -1.9e+31)
		tmp = t_2;
	elseif (y <= -5.4e-227)
		tmp = t_1;
	elseif (y <= 3.2e-169)
		tmp = (x * ((a ^ t) / a)) / y;
	elseif (y <= 6e+16)
		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[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[y, -1.9e+31], t$95$2, If[LessEqual[y, -5.4e-227], t$95$1, If[LessEqual[y, 3.2e-169], N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 6e+16], t$95$1, t$95$2]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;y \leq -5.4 \cdot 10^{-227}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;y \leq 3.2 \cdot 10^{-169}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\

\mathbf{elif}\;y \leq 6 \cdot 10^{+16}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -1.9000000000000001e31 or 6e16 < y

    1. Initial program 100.0%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff68.8%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum51.2%

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

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow51.2%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative51.2%

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow51.2%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg51.2%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval51.2%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac66.5%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified66.5%

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

        \[\leadsto \color{blue}{\frac{x \cdot \frac{{z}^{y}}{y \cdot e^{b}}}{a}} \]
      2. associate-/r*72.1%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{\frac{{z}^{y}}{y}}{e^{b}}}}{a} \]
    8. Applied egg-rr72.1%

      \[\leadsto \color{blue}{\frac{x \cdot \frac{\frac{{z}^{y}}{y}}{e^{b}}}{a}} \]
    9. Taylor expanded in b around 0 84.3%

      \[\leadsto \frac{\color{blue}{\frac{x \cdot {z}^{y}}{y}}}{a} \]
    10. Step-by-step derivation
      1. associate-*r/84.3%

        \[\leadsto \frac{\color{blue}{x \cdot \frac{{z}^{y}}{y}}}{a} \]
    11. Simplified84.3%

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

    if -1.9000000000000001e31 < y < -5.3999999999999999e-227 or 3.19999999999999995e-169 < y < 6e16

    1. Initial program 98.2%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Taylor expanded in y around 0 97.6%

      \[\leadsto \frac{x \cdot \color{blue}{e^{\log a \cdot \left(t - 1\right) - b}}}{y} \]
    3. Step-by-step derivation
      1. exp-diff91.5%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)}}{e^{b}}}}{y} \]
      2. exp-to-pow92.9%

        \[\leadsto \frac{x \cdot \frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y} \]
      3. sub-neg92.9%

        \[\leadsto \frac{x \cdot \frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}}}{y} \]
      4. metadata-eval92.9%

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

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

    if -5.3999999999999999e-227 < y < 3.19999999999999995e-169

    1. Initial program 97.3%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Taylor expanded in y around 0 97.3%

      \[\leadsto \frac{x \cdot \color{blue}{e^{\log a \cdot \left(t - 1\right) - b}}}{y} \]
    3. Step-by-step derivation
      1. exp-diff72.3%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)}}{e^{b}}}}{y} \]
      2. exp-to-pow73.0%

        \[\leadsto \frac{x \cdot \frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y} \]
      3. sub-neg73.0%

        \[\leadsto \frac{x \cdot \frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}}}{y} \]
      4. metadata-eval73.0%

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

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

      \[\leadsto \frac{\color{blue}{x \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
    6. Simplified81.6%

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

        \[\leadsto \frac{x \cdot {a}^{\color{blue}{\left(t + -1\right)}}}{y} \]
      2. unpow-prod-up81.6%

        \[\leadsto \frac{x \cdot \color{blue}{\left({a}^{t} \cdot {a}^{-1}\right)}}{y} \]
      3. inv-pow81.6%

        \[\leadsto \frac{x \cdot \left({a}^{t} \cdot \color{blue}{\frac{1}{a}}\right)}{y} \]
    8. Applied egg-rr81.6%

      \[\leadsto \frac{x \cdot \color{blue}{\left({a}^{t} \cdot \frac{1}{a}\right)}}{y} \]
    9. Step-by-step derivation
      1. associate-*r/81.6%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{{a}^{t} \cdot 1}{a}}}{y} \]
      2. *-rgt-identity81.6%

        \[\leadsto \frac{x \cdot \frac{\color{blue}{{a}^{t}}}{a}}{y} \]
    10. Simplified81.6%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.9 \cdot 10^{+31}:\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{y}}{a}\\ \mathbf{elif}\;y \leq -5.4 \cdot 10^{-227}:\\ \;\;\;\;\frac{x \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\\ \mathbf{elif}\;y \leq 3.2 \cdot 10^{-169}:\\ \;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\ \mathbf{elif}\;y \leq 6 \cdot 10^{+16}:\\ \;\;\;\;\frac{x \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{y}}{a}\\ \end{array} \]

Alternative 5: 82.0% accurate, 1.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.1 \cdot 10^{+174} \lor \neg \left(b \leq 5.8 \cdot 10^{+29}\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -2.10000000000000017e174 or 5.7999999999999999e29 < b

    1. Initial program 100.0%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff59.4%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum49.0%

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

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow49.0%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative49.0%

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow49.0%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg49.0%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval49.0%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac61.5%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified61.5%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in y around 0 85.6%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]

    if -2.10000000000000017e174 < b < 5.7999999999999999e29

    1. Initial program 98.3%

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

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative90.0%

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff83.2%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum73.8%

        \[\leadsto \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a}}}{e^{b}} \cdot \frac{x}{y} \]
      5. *-commutative73.8%

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow73.8%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative73.8%

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow74.9%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg74.9%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval74.9%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot \left(e^{\log a \cdot \left(t - 1\right)} \cdot {z}^{y}\right)}{y}} \]
    5. Step-by-step derivation
      1. associate-/l*82.4%

        \[\leadsto \color{blue}{\frac{x}{\frac{y}{e^{\log a \cdot \left(t - 1\right)} \cdot {z}^{y}}}} \]
      2. *-commutative82.4%

        \[\leadsto \frac{x}{\frac{y}{\color{blue}{{z}^{y} \cdot e^{\log a \cdot \left(t - 1\right)}}}} \]
      3. exp-to-pow83.2%

        \[\leadsto \frac{x}{\frac{y}{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}} \]
      4. sub-neg83.2%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -2.1 \cdot 10^{+174} \lor \neg \left(b \leq 5.8 \cdot 10^{+29}\right):\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{\frac{y}{{z}^{y} \cdot {a}^{\left(t + -1\right)}}}\\ \end{array} \]

Alternative 6: 88.9% accurate, 1.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -6.6 \cdot 10^{+62} \lor \neg \left(y \leq 1.15 \cdot 10^{+44}\right):\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{y}}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (or (<= y -6.6e+62) (not (<= y 1.15e+44)))
   (/ (* x (/ (pow z y) y)) a)
   (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if ((y <= -6.6e+62) || !(y <= 1.15e+44)) {
		tmp = (x * (pow(z, y) / y)) / a;
	} else {
		tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: tmp
    if ((y <= (-6.6d+62)) .or. (.not. (y <= 1.15d+44))) then
        tmp = (x * ((z ** y) / y)) / a
    else
        tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if ((y <= -6.6e+62) || !(y <= 1.15e+44)) {
		tmp = (x * (Math.pow(z, y) / y)) / a;
	} else {
		tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if (y <= -6.6e+62) or not (y <= 1.15e+44):
		tmp = (x * (math.pow(z, y) / y)) / a
	else:
		tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if ((y <= -6.6e+62) || !(y <= 1.15e+44))
		tmp = Float64(Float64(x * Float64((z ^ y) / y)) / a);
	else
		tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if ((y <= -6.6e+62) || ~((y <= 1.15e+44)))
		tmp = (x * ((z ^ y) / y)) / a;
	else
		tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -6.6e+62], N[Not[LessEqual[y, 1.15e+44]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.6 \cdot 10^{+62} \lor \neg \left(y \leq 1.15 \cdot 10^{+44}\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{y}}{a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -6.6e62 or 1.15000000000000002e44 < y

    1. Initial program 100.0%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff71.6%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum53.2%

        \[\leadsto \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a}}}{e^{b}} \cdot \frac{x}{y} \]
      5. *-commutative53.2%

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow53.2%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative53.2%

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow53.2%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg53.2%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval53.2%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac71.6%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified71.6%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Step-by-step derivation
      1. associate-*l/77.1%

        \[\leadsto \color{blue}{\frac{x \cdot \frac{{z}^{y}}{y \cdot e^{b}}}{a}} \]
      2. associate-/r*77.1%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{\frac{{z}^{y}}{y}}{e^{b}}}}{a} \]
    8. Applied egg-rr77.1%

      \[\leadsto \color{blue}{\frac{x \cdot \frac{\frac{{z}^{y}}{y}}{e^{b}}}{a}} \]
    9. Taylor expanded in b around 0 90.1%

      \[\leadsto \frac{\color{blue}{\frac{x \cdot {z}^{y}}{y}}}{a} \]
    10. Step-by-step derivation
      1. associate-*r/90.1%

        \[\leadsto \frac{\color{blue}{x \cdot \frac{{z}^{y}}{y}}}{a} \]
    11. Simplified90.1%

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

    if -6.6e62 < y < 1.15000000000000002e44

    1. Initial program 98.1%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Taylor expanded in y around 0 95.1%

      \[\leadsto \frac{x \cdot \color{blue}{e^{\log a \cdot \left(t - 1\right) - b}}}{y} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification93.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -6.6 \cdot 10^{+62} \lor \neg \left(y \leq 1.15 \cdot 10^{+44}\right):\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{y}}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\ \end{array} \]

Alternative 7: 74.4% accurate, 2.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x \cdot \frac{{z}^{y}}{y}}{a}\\ t_2 := \frac{x \cdot \frac{{a}^{t}}{a}}{y}\\ \mathbf{if}\;y \leq -1.6 \cdot 10^{+59}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq -9 \cdot 10^{-155}:\\ \;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\ \mathbf{elif}\;y \leq 2.2 \cdot 10^{-162}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq 1.1 \cdot 10^{-74}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;y \leq 96000:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ (* x (/ (pow z y) y)) a)) (t_2 (/ (* x (/ (pow a t) a)) y)))
   (if (<= y -1.6e+59)
     t_1
     (if (<= y -9e-155)
       (/ (/ x (* a (exp b))) y)
       (if (<= y 2.2e-162)
         t_2
         (if (<= y 1.1e-74)
           (/ x (* a (* y (exp b))))
           (if (<= y 96000.0) t_2 t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x * (pow(z, y) / y)) / a;
	double t_2 = (x * (pow(a, t) / a)) / y;
	double tmp;
	if (y <= -1.6e+59) {
		tmp = t_1;
	} else if (y <= -9e-155) {
		tmp = (x / (a * exp(b))) / y;
	} else if (y <= 2.2e-162) {
		tmp = t_2;
	} else if (y <= 1.1e-74) {
		tmp = x / (a * (y * exp(b)));
	} else if (y <= 96000.0) {
		tmp = t_2;
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = (x * ((z ** y) / y)) / a
    t_2 = (x * ((a ** t) / a)) / y
    if (y <= (-1.6d+59)) then
        tmp = t_1
    else if (y <= (-9d-155)) then
        tmp = (x / (a * exp(b))) / y
    else if (y <= 2.2d-162) then
        tmp = t_2
    else if (y <= 1.1d-74) then
        tmp = x / (a * (y * exp(b)))
    else if (y <= 96000.0d0) then
        tmp = t_2
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x * (Math.pow(z, y) / y)) / a;
	double t_2 = (x * (Math.pow(a, t) / a)) / y;
	double tmp;
	if (y <= -1.6e+59) {
		tmp = t_1;
	} else if (y <= -9e-155) {
		tmp = (x / (a * Math.exp(b))) / y;
	} else if (y <= 2.2e-162) {
		tmp = t_2;
	} else if (y <= 1.1e-74) {
		tmp = x / (a * (y * Math.exp(b)));
	} else if (y <= 96000.0) {
		tmp = t_2;
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (x * (math.pow(z, y) / y)) / a
	t_2 = (x * (math.pow(a, t) / a)) / y
	tmp = 0
	if y <= -1.6e+59:
		tmp = t_1
	elif y <= -9e-155:
		tmp = (x / (a * math.exp(b))) / y
	elif y <= 2.2e-162:
		tmp = t_2
	elif y <= 1.1e-74:
		tmp = x / (a * (y * math.exp(b)))
	elif y <= 96000.0:
		tmp = t_2
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(x * Float64((z ^ y) / y)) / a)
	t_2 = Float64(Float64(x * Float64((a ^ t) / a)) / y)
	tmp = 0.0
	if (y <= -1.6e+59)
		tmp = t_1;
	elseif (y <= -9e-155)
		tmp = Float64(Float64(x / Float64(a * exp(b))) / y);
	elseif (y <= 2.2e-162)
		tmp = t_2;
	elseif (y <= 1.1e-74)
		tmp = Float64(x / Float64(a * Float64(y * exp(b))));
	elseif (y <= 96000.0)
		tmp = t_2;
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = (x * ((z ^ y) / y)) / a;
	t_2 = (x * ((a ^ t) / a)) / y;
	tmp = 0.0;
	if (y <= -1.6e+59)
		tmp = t_1;
	elseif (y <= -9e-155)
		tmp = (x / (a * exp(b))) / y;
	elseif (y <= 2.2e-162)
		tmp = t_2;
	elseif (y <= 1.1e-74)
		tmp = x / (a * (y * exp(b)));
	elseif (y <= 96000.0)
		tmp = t_2;
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -1.6e+59], t$95$1, If[LessEqual[y, -9e-155], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 2.2e-162], t$95$2, If[LessEqual[y, 1.1e-74], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 96000.0], t$95$2, t$95$1]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;y \leq -9 \cdot 10^{-155}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\

\mathbf{elif}\;y \leq 2.2 \cdot 10^{-162}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;y \leq 1.1 \cdot 10^{-74}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\

\mathbf{elif}\;y \leq 96000:\\
\;\;\;\;t_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -1.59999999999999991e59 or 96000 < y

    1. Initial program 100.0%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff70.8%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum53.3%

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

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow53.3%

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

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow53.3%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg53.3%

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

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac70.0%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified70.0%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Step-by-step derivation
      1. associate-*l/75.0%

        \[\leadsto \color{blue}{\frac{x \cdot \frac{{z}^{y}}{y \cdot e^{b}}}{a}} \]
      2. associate-/r*75.0%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{\frac{{z}^{y}}{y}}{e^{b}}}}{a} \]
    8. Applied egg-rr75.0%

      \[\leadsto \color{blue}{\frac{x \cdot \frac{\frac{{z}^{y}}{y}}{e^{b}}}{a}} \]
    9. Taylor expanded in b around 0 87.7%

      \[\leadsto \frac{\color{blue}{\frac{x \cdot {z}^{y}}{y}}}{a} \]
    10. Step-by-step derivation
      1. associate-*r/87.7%

        \[\leadsto \frac{\color{blue}{x \cdot \frac{{z}^{y}}{y}}}{a} \]
    11. Simplified87.7%

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

    if -1.59999999999999991e59 < y < -9.0000000000000007e-155

    1. Initial program 98.3%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Taylor expanded in t around 0 85.0%

      \[\leadsto \frac{x \cdot \color{blue}{e^{\left(-1 \cdot \log a + y \cdot \log z\right) - b}}}{y} \]
    3. Step-by-step derivation
      1. +-commutative85.0%

        \[\leadsto \frac{x \cdot e^{\color{blue}{\left(y \cdot \log z + -1 \cdot \log a\right)} - b}}{y} \]
      2. mul-1-neg85.0%

        \[\leadsto \frac{x \cdot e^{\left(y \cdot \log z + \color{blue}{\left(-\log a\right)}\right) - b}}{y} \]
      3. unsub-neg85.0%

        \[\leadsto \frac{x \cdot e^{\color{blue}{\left(y \cdot \log z - \log a\right)} - b}}{y} \]
    4. Simplified85.0%

      \[\leadsto \frac{x \cdot \color{blue}{e^{\left(y \cdot \log z - \log a\right) - b}}}{y} \]
    5. Taylor expanded in y around 0 79.8%

      \[\leadsto \color{blue}{\frac{x \cdot e^{-\left(b + \log a\right)}}{y}} \]
    6. Step-by-step derivation
      1. exp-neg79.8%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{1}{e^{b + \log a}}}}{y} \]
      2. associate-*r/79.8%

        \[\leadsto \frac{\color{blue}{\frac{x \cdot 1}{e^{b + \log a}}}}{y} \]
      3. *-rgt-identity79.8%

        \[\leadsto \frac{\frac{\color{blue}{x}}{e^{b + \log a}}}{y} \]
      4. +-commutative79.8%

        \[\leadsto \frac{\frac{x}{e^{\color{blue}{\log a + b}}}}{y} \]
      5. exp-sum79.8%

        \[\leadsto \frac{\frac{x}{\color{blue}{e^{\log a} \cdot e^{b}}}}{y} \]
      6. rem-exp-log81.2%

        \[\leadsto \frac{\frac{x}{\color{blue}{a} \cdot e^{b}}}{y} \]
    7. Simplified81.2%

      \[\leadsto \color{blue}{\frac{\frac{x}{a \cdot e^{b}}}{y}} \]

    if -9.0000000000000007e-155 < y < 2.1999999999999999e-162 or 1.10000000000000005e-74 < y < 96000

    1. Initial program 97.8%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Taylor expanded in y around 0 97.1%

      \[\leadsto \frac{x \cdot \color{blue}{e^{\log a \cdot \left(t - 1\right) - b}}}{y} \]
    3. Step-by-step derivation
      1. exp-diff81.6%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)}}{e^{b}}}}{y} \]
      2. exp-to-pow82.5%

        \[\leadsto \frac{x \cdot \frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y} \]
      3. sub-neg82.5%

        \[\leadsto \frac{x \cdot \frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}}}{y} \]
      4. metadata-eval82.5%

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

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

      \[\leadsto \frac{\color{blue}{x \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
    6. Simplified81.5%

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

        \[\leadsto \frac{x \cdot {a}^{\color{blue}{\left(t + -1\right)}}}{y} \]
      2. unpow-prod-up81.5%

        \[\leadsto \frac{x \cdot \color{blue}{\left({a}^{t} \cdot {a}^{-1}\right)}}{y} \]
      3. inv-pow81.5%

        \[\leadsto \frac{x \cdot \left({a}^{t} \cdot \color{blue}{\frac{1}{a}}\right)}{y} \]
    8. Applied egg-rr81.5%

      \[\leadsto \frac{x \cdot \color{blue}{\left({a}^{t} \cdot \frac{1}{a}\right)}}{y} \]
    9. Step-by-step derivation
      1. associate-*r/81.5%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{{a}^{t} \cdot 1}{a}}}{y} \]
      2. *-rgt-identity81.5%

        \[\leadsto \frac{x \cdot \frac{\color{blue}{{a}^{t}}}{a}}{y} \]
    10. Simplified81.5%

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

    if 2.1999999999999999e-162 < y < 1.10000000000000005e-74

    1. Initial program 98.5%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff77.1%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum77.1%

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

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow77.1%

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

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow78.6%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg78.6%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval78.6%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac71.9%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified71.9%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in y around 0 86.0%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification84.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.6 \cdot 10^{+59}:\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{y}}{a}\\ \mathbf{elif}\;y \leq -9 \cdot 10^{-155}:\\ \;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\ \mathbf{elif}\;y \leq 2.2 \cdot 10^{-162}:\\ \;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\ \mathbf{elif}\;y \leq 1.1 \cdot 10^{-74}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;y \leq 96000:\\ \;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{y}}{a}\\ \end{array} \]

Alternative 8: 75.2% accurate, 2.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{if}\;b \leq -0.00069:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq 5.4 \cdot 10^{-263}:\\ \;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\ \mathbf{elif}\;b \leq 6.8 \cdot 10^{+28}:\\ \;\;\;\;\frac{{z}^{y}}{a} \cdot \frac{x}{y}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ x (* a (* y (exp b))))))
   (if (<= b -0.00069)
     t_1
     (if (<= b 5.4e-263)
       (/ (* x (/ (pow a t) a)) y)
       (if (<= b 6.8e+28) (* (/ (pow z y) a) (/ x y)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = x / (a * (y * exp(b)));
	double tmp;
	if (b <= -0.00069) {
		tmp = t_1;
	} else if (b <= 5.4e-263) {
		tmp = (x * (pow(a, t) / a)) / y;
	} else if (b <= 6.8e+28) {
		tmp = (pow(z, y) / a) * (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 / (a * (y * exp(b)))
    if (b <= (-0.00069d0)) then
        tmp = t_1
    else if (b <= 5.4d-263) then
        tmp = (x * ((a ** t) / a)) / y
    else if (b <= 6.8d+28) then
        tmp = ((z ** y) / a) * (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 / (a * (y * Math.exp(b)));
	double tmp;
	if (b <= -0.00069) {
		tmp = t_1;
	} else if (b <= 5.4e-263) {
		tmp = (x * (Math.pow(a, t) / a)) / y;
	} else if (b <= 6.8e+28) {
		tmp = (Math.pow(z, y) / a) * (x / y);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = x / (a * (y * math.exp(b)))
	tmp = 0
	if b <= -0.00069:
		tmp = t_1
	elif b <= 5.4e-263:
		tmp = (x * (math.pow(a, t) / a)) / y
	elif b <= 6.8e+28:
		tmp = (math.pow(z, y) / a) * (x / y)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(x / Float64(a * Float64(y * exp(b))))
	tmp = 0.0
	if (b <= -0.00069)
		tmp = t_1;
	elseif (b <= 5.4e-263)
		tmp = Float64(Float64(x * Float64((a ^ t) / a)) / y);
	elseif (b <= 6.8e+28)
		tmp = Float64(Float64((z ^ y) / a) * Float64(x / y));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = x / (a * (y * exp(b)));
	tmp = 0.0;
	if (b <= -0.00069)
		tmp = t_1;
	elseif (b <= 5.4e-263)
		tmp = (x * ((a ^ t) / a)) / y;
	elseif (b <= 6.8e+28)
		tmp = ((z ^ y) / a) * (x / y);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -0.00069], t$95$1, If[LessEqual[b, 5.4e-263], N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 6.8e+28], N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;b \leq -0.00069:\\
\;\;\;\;t_1\\

\mathbf{elif}\;b \leq 5.4 \cdot 10^{-263}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -6.89999999999999967e-4 or 6.8e28 < b

    1. Initial program 100.0%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff56.3%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum47.7%

        \[\leadsto \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a}}}{e^{b}} \cdot \frac{x}{y} \]
      5. *-commutative47.7%

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow47.7%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative47.7%

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow47.7%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg47.7%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval47.7%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac60.3%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified60.3%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in y around 0 80.8%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]

    if -6.89999999999999967e-4 < b < 5.40000000000000007e-263

    1. Initial program 98.6%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Taylor expanded in y around 0 73.8%

      \[\leadsto \frac{x \cdot \color{blue}{e^{\log a \cdot \left(t - 1\right) - b}}}{y} \]
    3. Step-by-step derivation
      1. exp-diff73.7%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)}}{e^{b}}}}{y} \]
      2. exp-to-pow74.9%

        \[\leadsto \frac{x \cdot \frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y} \]
      3. sub-neg74.9%

        \[\leadsto \frac{x \cdot \frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}}}{y} \]
      4. metadata-eval74.9%

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

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

      \[\leadsto \frac{\color{blue}{x \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
    6. Simplified74.7%

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

        \[\leadsto \frac{x \cdot {a}^{\color{blue}{\left(t + -1\right)}}}{y} \]
      2. unpow-prod-up74.9%

        \[\leadsto \frac{x \cdot \color{blue}{\left({a}^{t} \cdot {a}^{-1}\right)}}{y} \]
      3. inv-pow74.9%

        \[\leadsto \frac{x \cdot \left({a}^{t} \cdot \color{blue}{\frac{1}{a}}\right)}{y} \]
    8. Applied egg-rr74.9%

      \[\leadsto \frac{x \cdot \color{blue}{\left({a}^{t} \cdot \frac{1}{a}\right)}}{y} \]
    9. Step-by-step derivation
      1. associate-*r/74.9%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{{a}^{t} \cdot 1}{a}}}{y} \]
      2. *-rgt-identity74.9%

        \[\leadsto \frac{x \cdot \frac{\color{blue}{{a}^{t}}}{a}}{y} \]
    10. Simplified74.9%

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

    if 5.40000000000000007e-263 < b < 6.8e28

    1. Initial program 96.6%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Taylor expanded in t around 0 80.3%

      \[\leadsto \frac{x \cdot \color{blue}{e^{\left(-1 \cdot \log a + y \cdot \log z\right) - b}}}{y} \]
    3. Step-by-step derivation
      1. +-commutative80.3%

        \[\leadsto \frac{x \cdot e^{\color{blue}{\left(y \cdot \log z + -1 \cdot \log a\right)} - b}}{y} \]
      2. mul-1-neg80.3%

        \[\leadsto \frac{x \cdot e^{\left(y \cdot \log z + \color{blue}{\left(-\log a\right)}\right) - b}}{y} \]
      3. unsub-neg80.3%

        \[\leadsto \frac{x \cdot e^{\color{blue}{\left(y \cdot \log z - \log a\right)} - b}}{y} \]
    4. Simplified80.3%

      \[\leadsto \frac{x \cdot \color{blue}{e^{\left(y \cdot \log z - \log a\right) - b}}}{y} \]
    5. Taylor expanded in b around 0 82.4%

      \[\leadsto \color{blue}{\frac{x \cdot e^{y \cdot \log z - \log a}}{y}} \]
    6. Step-by-step derivation
      1. div-exp82.4%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{e^{y \cdot \log z}}{e^{\log a}}}}{y} \]
      2. *-commutative82.4%

        \[\leadsto \frac{x \cdot \frac{e^{\color{blue}{\log z \cdot y}}}{e^{\log a}}}{y} \]
      3. exp-to-pow82.4%

        \[\leadsto \frac{x \cdot \frac{\color{blue}{{z}^{y}}}{e^{\log a}}}{y} \]
      4. rem-exp-log83.7%

        \[\leadsto \frac{x \cdot \frac{{z}^{y}}{\color{blue}{a}}}{y} \]
      5. associate-*r/83.7%

        \[\leadsto \frac{\color{blue}{\frac{x \cdot {z}^{y}}{a}}}{y} \]
      6. associate-/r*69.3%

        \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot y}} \]
      7. *-commutative69.3%

        \[\leadsto \frac{\color{blue}{{z}^{y} \cdot x}}{a \cdot y} \]
      8. times-frac81.5%

        \[\leadsto \color{blue}{\frac{{z}^{y}}{a} \cdot \frac{x}{y}} \]
    7. Simplified81.5%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -0.00069:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;b \leq 5.4 \cdot 10^{-263}:\\ \;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y}\\ \mathbf{elif}\;b \leq 6.8 \cdot 10^{+28}:\\ \;\;\;\;\frac{{z}^{y}}{a} \cdot \frac{x}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \end{array} \]

Alternative 9: 73.0% accurate, 2.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -135 \lor \neg \left(b \leq 5.8 \cdot 10^{+29}\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -135 or 5.7999999999999999e29 < b

    1. Initial program 100.0%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff55.9%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum48.0%

        \[\leadsto \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a}}}{e^{b}} \cdot \frac{x}{y} \]
      5. *-commutative48.0%

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow48.0%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative48.0%

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow48.0%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg48.0%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval48.0%

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

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

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

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified59.9%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in y around 0 81.4%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]

    if -135 < b < 5.7999999999999999e29

    1. Initial program 97.9%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff92.3%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum80.7%

        \[\leadsto \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a}}}{e^{b}} \cdot \frac{x}{y} \]
      5. *-commutative80.7%

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow80.7%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative80.7%

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow82.0%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg82.0%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval82.0%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac71.7%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified71.7%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in b around 0 72.4%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -135 \lor \neg \left(b \leq 5.8 \cdot 10^{+29}\right):\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{{z}^{y}}{y} \cdot \frac{x}{a}\\ \end{array} \]

Alternative 10: 60.3% accurate, 2.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq 2 \cdot 10^{-288}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\

\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < 2.00000000000000012e-288

    1. Initial program 99.1%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Taylor expanded in t around 0 85.0%

      \[\leadsto \frac{x \cdot \color{blue}{e^{\left(-1 \cdot \log a + y \cdot \log z\right) - b}}}{y} \]
    3. Step-by-step derivation
      1. +-commutative85.0%

        \[\leadsto \frac{x \cdot e^{\color{blue}{\left(y \cdot \log z + -1 \cdot \log a\right)} - b}}{y} \]
      2. mul-1-neg85.0%

        \[\leadsto \frac{x \cdot e^{\left(y \cdot \log z + \color{blue}{\left(-\log a\right)}\right) - b}}{y} \]
      3. unsub-neg85.0%

        \[\leadsto \frac{x \cdot e^{\color{blue}{\left(y \cdot \log z - \log a\right)} - b}}{y} \]
    4. Simplified85.0%

      \[\leadsto \frac{x \cdot \color{blue}{e^{\left(y \cdot \log z - \log a\right) - b}}}{y} \]
    5. Taylor expanded in y around 0 66.4%

      \[\leadsto \color{blue}{\frac{x \cdot e^{-\left(b + \log a\right)}}{y}} \]
    6. Step-by-step derivation
      1. exp-neg66.4%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{1}{e^{b + \log a}}}}{y} \]
      2. associate-*r/66.4%

        \[\leadsto \frac{\color{blue}{\frac{x \cdot 1}{e^{b + \log a}}}}{y} \]
      3. *-rgt-identity66.4%

        \[\leadsto \frac{\frac{\color{blue}{x}}{e^{b + \log a}}}{y} \]
      4. +-commutative66.4%

        \[\leadsto \frac{\frac{x}{e^{\color{blue}{\log a + b}}}}{y} \]
      5. exp-sum66.4%

        \[\leadsto \frac{\frac{x}{\color{blue}{e^{\log a} \cdot e^{b}}}}{y} \]
      6. rem-exp-log67.2%

        \[\leadsto \frac{\frac{x}{\color{blue}{a} \cdot e^{b}}}{y} \]
    7. Simplified67.2%

      \[\leadsto \color{blue}{\frac{\frac{x}{a \cdot e^{b}}}{y}} \]

    if 2.00000000000000012e-288 < y

    1. Initial program 98.7%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff76.0%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum65.5%

        \[\leadsto \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a}}}{e^{b}} \cdot \frac{x}{y} \]
      5. *-commutative65.5%

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow65.5%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative65.5%

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow66.1%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg66.1%

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

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac65.8%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified65.8%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in y around 0 57.0%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification62.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 2 \cdot 10^{-288}:\\ \;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \end{array} \]

Alternative 11: 60.4% accurate, 2.9× speedup?

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

\\
\frac{x}{a \cdot \left(y \cdot e^{b}\right)}
\end{array}
Derivation
  1. Initial program 98.9%

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

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

      \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
    3. exp-diff74.2%

      \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
    4. exp-sum64.5%

      \[\leadsto \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a}}}{e^{b}} \cdot \frac{x}{y} \]
    5. *-commutative64.5%

      \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
    6. exp-to-pow64.5%

      \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
    7. *-commutative64.5%

      \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
    8. exp-to-pow65.1%

      \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
    9. sub-neg65.1%

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

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

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

    \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
  5. Step-by-step derivation
    1. times-frac65.9%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
  6. Simplified65.9%

    \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
  7. Taylor expanded in y around 0 60.3%

    \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
  8. Final simplification60.3%

    \[\leadsto \frac{x}{a \cdot \left(y \cdot e^{b}\right)} \]

Alternative 12: 40.3% accurate, 18.3× speedup?

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

\\
\begin{array}{l}
t_1 := \frac{1}{y \cdot \frac{a}{x}}\\
t_2 := \frac{b \cdot \left(-x\right)}{y \cdot a}\\
\mathbf{if}\;b \leq -1.25 \cdot 10^{-7}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;b \leq -6.5 \cdot 10^{-213}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;b \leq -2 \cdot 10^{-253}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;b \leq 2.8 \cdot 10^{-180}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -1.24999999999999994e-7 or -6.5e-213 < b < -2.0000000000000001e-253

    1. Initial program 100.0%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff63.8%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum52.5%

        \[\leadsto \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a}}}{e^{b}} \cdot \frac{x}{y} \]
      5. *-commutative52.5%

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow52.5%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative52.5%

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow52.5%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg52.5%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval52.5%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac65.2%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified65.2%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in y around 0 73.2%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    8. Taylor expanded in b around 0 52.8%

      \[\leadsto \color{blue}{-1 \cdot \frac{b \cdot x}{a \cdot y} + \frac{x}{a \cdot y}} \]
    9. Taylor expanded in b around inf 58.7%

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

    if -1.24999999999999994e-7 < b < -6.5e-213 or -2.0000000000000001e-253 < b < 2.79999999999999997e-180

    1. Initial program 98.3%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff91.3%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum83.2%

        \[\leadsto \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a}}}{e^{b}} \cdot \frac{x}{y} \]
      5. *-commutative83.2%

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow83.2%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative83.2%

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow84.7%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg84.7%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval84.7%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac72.3%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified72.3%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in b around 0 72.2%

      \[\leadsto \frac{x}{a} \cdot \color{blue}{\frac{{z}^{y}}{y}} \]
    8. Taylor expanded in y around 0 44.0%

      \[\leadsto \frac{x}{a} \cdot \color{blue}{\frac{1}{y}} \]
    9. Step-by-step derivation
      1. clear-num45.1%

        \[\leadsto \color{blue}{\frac{1}{\frac{a}{x}}} \cdot \frac{1}{y} \]
      2. frac-times45.6%

        \[\leadsto \color{blue}{\frac{1 \cdot 1}{\frac{a}{x} \cdot y}} \]
      3. metadata-eval45.6%

        \[\leadsto \frac{\color{blue}{1}}{\frac{a}{x} \cdot y} \]
    10. Applied egg-rr45.6%

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

    if 2.79999999999999997e-180 < b

    1. Initial program 98.6%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff67.3%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum57.3%

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

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow57.3%

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

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow57.7%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg57.7%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval57.7%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac60.3%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified60.3%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in y around 0 68.6%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    8. Taylor expanded in b around 0 44.1%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.25 \cdot 10^{-7}:\\ \;\;\;\;\frac{b \cdot \left(-x\right)}{y \cdot a}\\ \mathbf{elif}\;b \leq -6.5 \cdot 10^{-213}:\\ \;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\ \mathbf{elif}\;b \leq -2 \cdot 10^{-253}:\\ \;\;\;\;\frac{b \cdot \left(-x\right)}{y \cdot a}\\ \mathbf{elif}\;b \leq 2.8 \cdot 10^{-180}:\\ \;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\ \end{array} \]

Alternative 13: 40.3% accurate, 20.7× speedup?

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

\\
\begin{array}{l}
t_1 := \frac{1}{y \cdot \frac{a}{x}}\\
t_2 := \frac{b \cdot \left(-x\right)}{y \cdot a}\\
\mathbf{if}\;b \leq -9.8 \cdot 10^{-8}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;b \leq -8 \cdot 10^{-217}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;b \leq -2.35 \cdot 10^{-253}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;b \leq 6.2 \cdot 10^{-9}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -9.8000000000000004e-8 or -8.00000000000000066e-217 < b < -2.34999999999999991e-253

    1. Initial program 100.0%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff63.8%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum52.5%

        \[\leadsto \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a}}}{e^{b}} \cdot \frac{x}{y} \]
      5. *-commutative52.5%

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow52.5%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative52.5%

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow52.5%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg52.5%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval52.5%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac65.2%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified65.2%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in y around 0 73.2%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    8. Taylor expanded in b around 0 52.8%

      \[\leadsto \color{blue}{-1 \cdot \frac{b \cdot x}{a \cdot y} + \frac{x}{a \cdot y}} \]
    9. Taylor expanded in b around inf 58.7%

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

    if -9.8000000000000004e-8 < b < -8.00000000000000066e-217 or -2.34999999999999991e-253 < b < 6.2000000000000001e-9

    1. Initial program 97.6%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff92.1%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum83.3%

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

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow83.3%

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

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow84.7%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg84.7%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval84.7%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac72.0%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified72.0%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in b around 0 71.9%

      \[\leadsto \frac{x}{a} \cdot \color{blue}{\frac{{z}^{y}}{y}} \]
    8. Taylor expanded in y around 0 43.0%

      \[\leadsto \frac{x}{a} \cdot \color{blue}{\frac{1}{y}} \]
    9. Step-by-step derivation
      1. clear-num43.8%

        \[\leadsto \color{blue}{\frac{1}{\frac{a}{x}}} \cdot \frac{1}{y} \]
      2. frac-times44.1%

        \[\leadsto \color{blue}{\frac{1 \cdot 1}{\frac{a}{x} \cdot y}} \]
      3. metadata-eval44.1%

        \[\leadsto \frac{\color{blue}{1}}{\frac{a}{x} \cdot y} \]
    10. Applied egg-rr44.1%

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

    if 6.2000000000000001e-9 < b

    1. Initial program 100.0%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff55.6%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum46.0%

        \[\leadsto \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a}}}{e^{b}} \cdot \frac{x}{y} \]
      5. *-commutative46.0%

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow46.0%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative46.0%

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow46.0%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg46.0%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval46.0%

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

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

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

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified55.6%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in y around 0 78.1%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    8. Taylor expanded in b around 0 43.2%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -9.8 \cdot 10^{-8}:\\ \;\;\;\;\frac{b \cdot \left(-x\right)}{y \cdot a}\\ \mathbf{elif}\;b \leq -8 \cdot 10^{-217}:\\ \;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\ \mathbf{elif}\;b \leq -2.35 \cdot 10^{-253}:\\ \;\;\;\;\frac{b \cdot \left(-x\right)}{y \cdot a}\\ \mathbf{elif}\;b \leq 6.2 \cdot 10^{-9}:\\ \;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\ \end{array} \]

Alternative 14: 41.3% accurate, 20.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.8 \cdot 10^{-216}:\\
\;\;\;\;\frac{\frac{x}{y} - \frac{x \cdot b}{y}}{a}\\

\mathbf{elif}\;b \leq -1.12 \cdot 10^{-253}:\\
\;\;\;\;\frac{b \cdot \left(-x\right)}{y \cdot a}\\

\mathbf{elif}\;b \leq 1.4 \cdot 10^{-182}:\\
\;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if b < -7.8000000000000002e-216

    1. Initial program 99.2%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff71.9%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum61.6%

        \[\leadsto \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a}}}{e^{b}} \cdot \frac{x}{y} \]
      5. *-commutative61.6%

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow61.6%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative61.6%

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow62.2%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg62.2%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval62.2%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac66.8%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified66.8%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in y around 0 64.3%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    8. Taylor expanded in b around 0 49.4%

      \[\leadsto \color{blue}{-1 \cdot \frac{b \cdot x}{a \cdot y} + \frac{x}{a \cdot y}} \]
    9. Taylor expanded in a around 0 51.1%

      \[\leadsto \color{blue}{\frac{-1 \cdot \frac{b \cdot x}{y} + \frac{x}{y}}{a}} \]

    if -7.8000000000000002e-216 < b < -1.11999999999999993e-253

    1. Initial program 100.0%

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

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative100.0%

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff100.0%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum72.7%

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

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow72.7%

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

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow72.7%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg72.7%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval72.7%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac73.2%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified73.2%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in y around 0 21.6%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    8. Taylor expanded in b around 0 21.6%

      \[\leadsto \color{blue}{-1 \cdot \frac{b \cdot x}{a \cdot y} + \frac{x}{a \cdot y}} \]
    9. Taylor expanded in b around inf 64.9%

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

    if -1.11999999999999993e-253 < b < 1.39999999999999997e-182

    1. Initial program 98.5%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff90.6%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum88.0%

        \[\leadsto \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a}}}{e^{b}} \cdot \frac{x}{y} \]
      5. *-commutative88.0%

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow88.0%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative88.0%

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow89.4%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg89.4%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval89.4%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac74.3%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified74.3%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in b around 0 74.3%

      \[\leadsto \frac{x}{a} \cdot \color{blue}{\frac{{z}^{y}}{y}} \]
    8. Taylor expanded in y around 0 44.6%

      \[\leadsto \frac{x}{a} \cdot \color{blue}{\frac{1}{y}} \]
    9. Step-by-step derivation
      1. clear-num47.1%

        \[\leadsto \color{blue}{\frac{1}{\frac{a}{x}}} \cdot \frac{1}{y} \]
      2. frac-times47.2%

        \[\leadsto \color{blue}{\frac{1 \cdot 1}{\frac{a}{x} \cdot y}} \]
      3. metadata-eval47.2%

        \[\leadsto \frac{\color{blue}{1}}{\frac{a}{x} \cdot y} \]
    10. Applied egg-rr47.2%

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

    if 1.39999999999999997e-182 < b

    1. Initial program 98.6%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff67.3%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum57.3%

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

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow57.3%

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

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow57.7%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg57.7%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval57.7%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac60.3%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified60.3%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in y around 0 68.6%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    8. Taylor expanded in b around 0 44.1%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -7.8 \cdot 10^{-216}:\\ \;\;\;\;\frac{\frac{x}{y} - \frac{x \cdot b}{y}}{a}\\ \mathbf{elif}\;b \leq -1.12 \cdot 10^{-253}:\\ \;\;\;\;\frac{b \cdot \left(-x\right)}{y \cdot a}\\ \mathbf{elif}\;b \leq 1.4 \cdot 10^{-182}:\\ \;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\ \end{array} \]

Alternative 15: 39.4% accurate, 28.3× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.08 \cdot 10^{+195}:\\
\;\;\;\;\frac{b}{a} \cdot \frac{-x}{y}\\

\mathbf{elif}\;b \leq 2.7 \cdot 10^{-11}:\\
\;\;\;\;\frac{1}{\frac{a}{\frac{x}{y}}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -1.0800000000000001e195

    1. Initial program 100.0%

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

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative93.5%

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff74.2%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum61.3%

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

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow61.3%

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

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow61.3%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg61.3%

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

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac77.4%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified77.4%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in y around 0 100.0%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    8. Taylor expanded in b around 0 84.5%

      \[\leadsto \color{blue}{-1 \cdot \frac{b \cdot x}{a \cdot y} + \frac{x}{a \cdot y}} \]
    9. Taylor expanded in b around inf 84.5%

      \[\leadsto \color{blue}{-1 \cdot \frac{b \cdot x}{a \cdot y}} \]
    10. Step-by-step derivation
      1. mul-1-neg84.5%

        \[\leadsto \color{blue}{-\frac{b \cdot x}{a \cdot y}} \]
      2. times-frac69.4%

        \[\leadsto -\color{blue}{\frac{b}{a} \cdot \frac{x}{y}} \]
      3. distribute-lft-neg-out69.4%

        \[\leadsto \color{blue}{\left(-\frac{b}{a}\right) \cdot \frac{x}{y}} \]
      4. *-commutative69.4%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot \left(-\frac{b}{a}\right)} \]
      5. distribute-neg-frac69.4%

        \[\leadsto \frac{x}{y} \cdot \color{blue}{\frac{-b}{a}} \]
    11. Simplified69.4%

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

    if -1.0800000000000001e195 < b < 2.70000000000000005e-11

    1. Initial program 98.3%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff81.5%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum72.3%

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

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow72.3%

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

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow73.3%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg73.3%

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

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac67.6%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified67.6%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in b around 0 67.7%

      \[\leadsto \frac{x}{a} \cdot \color{blue}{\frac{{z}^{y}}{y}} \]
    8. Taylor expanded in y around 0 37.5%

      \[\leadsto \frac{x}{a} \cdot \color{blue}{\frac{1}{y}} \]
    9. Step-by-step derivation
      1. associate-*l/38.6%

        \[\leadsto \color{blue}{\frac{x \cdot \frac{1}{y}}{a}} \]
      2. div-inv38.6%

        \[\leadsto \frac{\color{blue}{\frac{x}{y}}}{a} \]
      3. clear-num38.9%

        \[\leadsto \color{blue}{\frac{1}{\frac{a}{\frac{x}{y}}}} \]
    10. Applied egg-rr38.9%

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

    if 2.70000000000000005e-11 < b

    1. Initial program 100.0%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff55.6%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum46.0%

        \[\leadsto \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a}}}{e^{b}} \cdot \frac{x}{y} \]
      5. *-commutative46.0%

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow46.0%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative46.0%

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow46.0%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg46.0%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval46.0%

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

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

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

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified55.6%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in y around 0 78.1%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    8. Taylor expanded in b around 0 43.2%

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

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(b \cdot y\right)}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification43.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.08 \cdot 10^{+195}:\\ \;\;\;\;\frac{b}{a} \cdot \frac{-x}{y}\\ \mathbf{elif}\;b \leq 2.7 \cdot 10^{-11}:\\ \;\;\;\;\frac{1}{\frac{a}{\frac{x}{y}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\ \end{array} \]

Alternative 16: 32.1% accurate, 34.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq 2 \cdot 10^{-88}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < 1.99999999999999987e-88

    1. Initial program 98.6%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff78.8%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum68.6%

        \[\leadsto \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a}}}{e^{b}} \cdot \frac{x}{y} \]
      5. *-commutative68.6%

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow68.6%

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

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow69.4%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg69.4%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval69.4%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac68.7%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified68.7%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in y around 0 54.7%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    8. Taylor expanded in b around 0 32.5%

      \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
    9. Step-by-step derivation
      1. *-commutative32.5%

        \[\leadsto \frac{x}{\color{blue}{y \cdot a}} \]
    10. Simplified32.5%

      \[\leadsto \color{blue}{\frac{x}{y \cdot a}} \]
    11. Step-by-step derivation
      1. associate-/r*38.3%

        \[\leadsto \color{blue}{\frac{\frac{x}{y}}{a}} \]
      2. div-inv38.3%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot \frac{1}{a}} \]
    12. Applied egg-rr38.3%

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

    if 1.99999999999999987e-88 < b

    1. Initial program 99.6%

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

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative90.7%

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff64.1%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum55.3%

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

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow55.3%

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

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow55.7%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg55.7%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval55.7%

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

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

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

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified59.6%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in y around 0 72.8%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    8. Taylor expanded in b around 0 31.2%

      \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
    9. Step-by-step derivation
      1. *-commutative31.2%

        \[\leadsto \frac{x}{\color{blue}{y \cdot a}} \]
    10. Simplified31.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq 2 \cdot 10^{-88}:\\ \;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \end{array} \]

Alternative 17: 32.1% accurate, 34.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq 4.5 \cdot 10^{-73}:\\
\;\;\;\;\frac{1}{\frac{a}{\frac{x}{y}}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < 4.5e-73

    1. Initial program 98.6%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff78.8%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum68.6%

        \[\leadsto \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a}}}{e^{b}} \cdot \frac{x}{y} \]
      5. *-commutative68.6%

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow68.6%

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

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow69.4%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg69.4%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval69.4%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac68.7%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified68.7%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in b around 0 61.8%

      \[\leadsto \frac{x}{a} \cdot \color{blue}{\frac{{z}^{y}}{y}} \]
    8. Taylor expanded in y around 0 35.7%

      \[\leadsto \frac{x}{a} \cdot \color{blue}{\frac{1}{y}} \]
    9. Step-by-step derivation
      1. associate-*l/38.3%

        \[\leadsto \color{blue}{\frac{x \cdot \frac{1}{y}}{a}} \]
      2. div-inv38.3%

        \[\leadsto \frac{\color{blue}{\frac{x}{y}}}{a} \]
      3. clear-num38.6%

        \[\leadsto \color{blue}{\frac{1}{\frac{a}{\frac{x}{y}}}} \]
    10. Applied egg-rr38.6%

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

    if 4.5e-73 < b

    1. Initial program 99.6%

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

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative90.7%

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff64.1%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum55.3%

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

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow55.3%

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

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow55.7%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg55.7%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval55.7%

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

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

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

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified59.6%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in y around 0 72.8%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    8. Taylor expanded in b around 0 31.2%

      \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
    9. Step-by-step derivation
      1. *-commutative31.2%

        \[\leadsto \frac{x}{\color{blue}{y \cdot a}} \]
    10. Simplified31.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq 4.5 \cdot 10^{-73}:\\ \;\;\;\;\frac{1}{\frac{a}{\frac{x}{y}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \end{array} \]

Alternative 18: 37.1% accurate, 34.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq 4.6 \cdot 10^{-9}:\\
\;\;\;\;\frac{1}{\frac{a}{\frac{x}{y}}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < 4.5999999999999998e-9

    1. Initial program 98.6%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff80.3%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum70.5%

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

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow70.5%

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

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow71.4%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg71.4%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval71.4%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac69.2%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified69.2%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in b around 0 62.9%

      \[\leadsto \frac{x}{a} \cdot \color{blue}{\frac{{z}^{y}}{y}} \]
    8. Taylor expanded in y around 0 36.6%

      \[\leadsto \frac{x}{a} \cdot \color{blue}{\frac{1}{y}} \]
    9. Step-by-step derivation
      1. associate-*l/38.5%

        \[\leadsto \color{blue}{\frac{x \cdot \frac{1}{y}}{a}} \]
      2. div-inv38.5%

        \[\leadsto \frac{\color{blue}{\frac{x}{y}}}{a} \]
      3. clear-num38.8%

        \[\leadsto \color{blue}{\frac{1}{\frac{a}{\frac{x}{y}}}} \]
    10. Applied egg-rr38.8%

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

    if 4.5999999999999998e-9 < b

    1. Initial program 100.0%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff55.6%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum46.0%

        \[\leadsto \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a}}}{e^{b}} \cdot \frac{x}{y} \]
      5. *-commutative46.0%

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow46.0%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative46.0%

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow46.0%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg46.0%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval46.0%

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

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

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

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified55.6%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in y around 0 78.1%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    8. Taylor expanded in b around 0 43.2%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq 4.6 \cdot 10^{-9}:\\ \;\;\;\;\frac{1}{\frac{a}{\frac{x}{y}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\ \end{array} \]

Alternative 19: 31.9% accurate, 44.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq 7.2 \cdot 10^{-285}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < 7.20000000000000008e-285

    1. Initial program 99.2%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff72.8%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum63.8%

        \[\leadsto \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a}}}{e^{b}} \cdot \frac{x}{y} \]
      5. *-commutative63.8%

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow63.8%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative63.8%

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow64.5%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg64.5%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval64.5%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac66.2%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified66.2%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in y around 0 63.7%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    8. Taylor expanded in b around 0 31.0%

      \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
    9. Step-by-step derivation
      1. associate-/r*36.9%

        \[\leadsto \color{blue}{\frac{\frac{x}{a}}{y}} \]
    10. Simplified36.9%

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

    if 7.20000000000000008e-285 < y

    1. Initial program 98.7%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff75.8%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum65.2%

        \[\leadsto \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a}}}{e^{b}} \cdot \frac{x}{y} \]
      5. *-commutative65.2%

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow65.2%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative65.2%

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow65.8%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg65.8%

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

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac65.5%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified65.5%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in y around 0 56.6%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    8. Taylor expanded in b around 0 33.3%

      \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
    9. Step-by-step derivation
      1. *-commutative33.3%

        \[\leadsto \frac{x}{\color{blue}{y \cdot a}} \]
    10. Simplified33.3%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 7.2 \cdot 10^{-285}:\\ \;\;\;\;\frac{\frac{x}{a}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \end{array} \]

Alternative 20: 32.1% accurate, 44.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq 7.5 \cdot 10^{-76}:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < 7.4999999999999997e-76

    1. Initial program 98.6%

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

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff78.8%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum68.6%

        \[\leadsto \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a}}}{e^{b}} \cdot \frac{x}{y} \]
      5. *-commutative68.6%

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow68.6%

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

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow69.4%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg69.4%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval69.4%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    5. Step-by-step derivation
      1. times-frac68.7%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified68.7%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Step-by-step derivation
      1. associate-*l/71.4%

        \[\leadsto \color{blue}{\frac{x \cdot \frac{{z}^{y}}{y \cdot e^{b}}}{a}} \]
      2. associate-/r*71.4%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{\frac{{z}^{y}}{y}}{e^{b}}}}{a} \]
    8. Applied egg-rr71.4%

      \[\leadsto \color{blue}{\frac{x \cdot \frac{\frac{{z}^{y}}{y}}{e^{b}}}{a}} \]
    9. Taylor expanded in b around 0 68.3%

      \[\leadsto \frac{\color{blue}{\frac{x \cdot {z}^{y}}{y}}}{a} \]
    10. Step-by-step derivation
      1. associate-*r/68.3%

        \[\leadsto \frac{\color{blue}{x \cdot \frac{{z}^{y}}{y}}}{a} \]
    11. Simplified68.3%

      \[\leadsto \frac{\color{blue}{x \cdot \frac{{z}^{y}}{y}}}{a} \]
    12. Taylor expanded in y around 0 38.3%

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

    if 7.4999999999999997e-76 < b

    1. Initial program 99.6%

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

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative90.7%

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff64.1%

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum55.3%

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

        \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      6. exp-to-pow55.3%

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

        \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      8. exp-to-pow55.7%

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      9. sub-neg55.7%

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}} \cdot \frac{x}{y} \]
      10. metadata-eval55.7%

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

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

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

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    6. Simplified59.6%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Taylor expanded in y around 0 72.8%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    8. Taylor expanded in b around 0 31.2%

      \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
    9. Step-by-step derivation
      1. *-commutative31.2%

        \[\leadsto \frac{x}{\color{blue}{y \cdot a}} \]
    10. Simplified31.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq 7.5 \cdot 10^{-76}:\\ \;\;\;\;\frac{\frac{x}{y}}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \end{array} \]

Alternative 21: 32.3% accurate, 63.0× speedup?

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

\\
\frac{x}{y \cdot a}
\end{array}
Derivation
  1. Initial program 98.9%

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

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

      \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
    3. exp-diff74.2%

      \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
    4. exp-sum64.5%

      \[\leadsto \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a}}}{e^{b}} \cdot \frac{x}{y} \]
    5. *-commutative64.5%

      \[\leadsto \frac{e^{\color{blue}{\log z \cdot y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
    6. exp-to-pow64.5%

      \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
    7. *-commutative64.5%

      \[\leadsto \frac{{z}^{y} \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
    8. exp-to-pow65.1%

      \[\leadsto \frac{{z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}} \cdot \frac{x}{y} \]
    9. sub-neg65.1%

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

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

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

    \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
  5. Step-by-step derivation
    1. times-frac65.9%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
  6. Simplified65.9%

    \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
  7. Taylor expanded in y around 0 60.3%

    \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
  8. Taylor expanded in b around 0 32.1%

    \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
  9. Step-by-step derivation
    1. *-commutative32.1%

      \[\leadsto \frac{x}{\color{blue}{y \cdot a}} \]
  10. Simplified32.1%

    \[\leadsto \color{blue}{\frac{x}{y \cdot a}} \]
  11. Final simplification32.1%

    \[\leadsto \frac{x}{y \cdot a} \]

Developer target: 72.7% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := {a}^{\left(t - 1\right)}\\ t_2 := \frac{x \cdot \frac{t_1}{y}}{\left(b + 1\right) - y \cdot \log z}\\ \mathbf{if}\;t < -0.8845848504127471:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t < 852031.2288374073:\\ \;\;\;\;\frac{\frac{x}{y} \cdot t_1}{e^{b - \log z \cdot y}}\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (pow a (- t 1.0)))
        (t_2 (/ (* x (/ t_1 y)) (- (+ b 1.0) (* y (log z))))))
   (if (< t -0.8845848504127471)
     t_2
     (if (< t 852031.2288374073)
       (/ (* (/ x y) t_1) (exp (- b (* (log z) y))))
       t_2))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = pow(a, (t - 1.0));
	double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z)));
	double tmp;
	if (t < -0.8845848504127471) {
		tmp = t_2;
	} else if (t < 852031.2288374073) {
		tmp = ((x / y) * t_1) / exp((b - (log(z) * y)));
	} 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 = a ** (t - 1.0d0)
    t_2 = (x * (t_1 / y)) / ((b + 1.0d0) - (y * log(z)))
    if (t < (-0.8845848504127471d0)) then
        tmp = t_2
    else if (t < 852031.2288374073d0) then
        tmp = ((x / y) * t_1) / exp((b - (log(z) * y)))
    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 = Math.pow(a, (t - 1.0));
	double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * Math.log(z)));
	double tmp;
	if (t < -0.8845848504127471) {
		tmp = t_2;
	} else if (t < 852031.2288374073) {
		tmp = ((x / y) * t_1) / Math.exp((b - (Math.log(z) * y)));
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = math.pow(a, (t - 1.0))
	t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * math.log(z)))
	tmp = 0
	if t < -0.8845848504127471:
		tmp = t_2
	elif t < 852031.2288374073:
		tmp = ((x / y) * t_1) / math.exp((b - (math.log(z) * y)))
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b)
	t_1 = a ^ Float64(t - 1.0)
	t_2 = Float64(Float64(x * Float64(t_1 / y)) / Float64(Float64(b + 1.0) - Float64(y * log(z))))
	tmp = 0.0
	if (t < -0.8845848504127471)
		tmp = t_2;
	elseif (t < 852031.2288374073)
		tmp = Float64(Float64(Float64(x / y) * t_1) / exp(Float64(b - Float64(log(z) * y))));
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = a ^ (t - 1.0);
	t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z)));
	tmp = 0.0;
	if (t < -0.8845848504127471)
		tmp = t_2;
	elseif (t < 852031.2288374073)
		tmp = ((x / y) * t_1) / exp((b - (log(z) * y)));
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision] / N[(N[(b + 1.0), $MachinePrecision] - N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -0.8845848504127471], t$95$2, If[Less[t, 852031.2288374073], N[(N[(N[(x / y), $MachinePrecision] * t$95$1), $MachinePrecision] / N[Exp[N[(b - N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}

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

\mathbf{elif}\;t < 852031.2288374073:\\
\;\;\;\;\frac{\frac{x}{y} \cdot t_1}{e^{b - \log z \cdot y}}\\

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


\end{array}
\end{array}

Reproduce

?
herbie shell --seed 2023320 
(FPCore (x y z t a b)
  :name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
  :precision binary64

  :herbie-target
  (if (< t -0.8845848504127471) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z)))) (if (< t 852031.2288374073) (/ (* (/ x y) (pow a (- t 1.0))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z))))))

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