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

Percentage Accurate: 98.4% → 98.4%
Time: 23.0s
Alternatives: 18
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 18 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.4% 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.4% accurate, 1.0× speedup?

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

\\
\frac{x \cdot e^{\left(y \cdot \log z + \log a \cdot \left(t + -1\right)\right) - b}}{y}
\end{array}
Derivation
  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. Final simplification98.7%

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

Alternative 2: 93.0% accurate, 1.0× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -9.7999999999999997e79 or 4.5e8 < 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 95.1%

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

    if -9.7999999999999997e79 < t < 4.5e8

    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 t around 0 94.9%

      \[\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. +-commutative94.9%

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

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

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

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

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

Alternative 3: 78.6% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := {a}^{\left(t + -1\right)}\\ t_2 := \frac{x}{\frac{y}{{z}^{y} \cdot t_1}}\\ t_3 := y \cdot e^{b}\\ t_4 := \frac{x}{a \cdot t_3}\\ \mathbf{if}\;b \leq -8.5 \cdot 10^{+127}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;b \leq 5.5 \cdot 10^{-211}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;b \leq 1.6:\\ \;\;\;\;\frac{x \cdot t_1}{t_3}\\ \mathbf{elif}\;b \leq 1.65 \cdot 10^{+143}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_4\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (pow a (+ t -1.0)))
        (t_2 (/ x (/ y (* (pow z y) t_1))))
        (t_3 (* y (exp b)))
        (t_4 (/ x (* a t_3))))
   (if (<= b -8.5e+127)
     t_4
     (if (<= b 5.5e-211)
       t_2
       (if (<= b 1.6) (/ (* x t_1) t_3) (if (<= b 1.65e+143) t_2 t_4))))))
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 / (y / (pow(z, y) * t_1));
	double t_3 = y * exp(b);
	double t_4 = x / (a * t_3);
	double tmp;
	if (b <= -8.5e+127) {
		tmp = t_4;
	} else if (b <= 5.5e-211) {
		tmp = t_2;
	} else if (b <= 1.6) {
		tmp = (x * t_1) / t_3;
	} else if (b <= 1.65e+143) {
		tmp = t_2;
	} else {
		tmp = t_4;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: t_4
    real(8) :: tmp
    t_1 = a ** (t + (-1.0d0))
    t_2 = x / (y / ((z ** y) * t_1))
    t_3 = y * exp(b)
    t_4 = x / (a * t_3)
    if (b <= (-8.5d+127)) then
        tmp = t_4
    else if (b <= 5.5d-211) then
        tmp = t_2
    else if (b <= 1.6d0) then
        tmp = (x * t_1) / t_3
    else if (b <= 1.65d+143) then
        tmp = t_2
    else
        tmp = t_4
    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 / (y / (Math.pow(z, y) * t_1));
	double t_3 = y * Math.exp(b);
	double t_4 = x / (a * t_3);
	double tmp;
	if (b <= -8.5e+127) {
		tmp = t_4;
	} else if (b <= 5.5e-211) {
		tmp = t_2;
	} else if (b <= 1.6) {
		tmp = (x * t_1) / t_3;
	} else if (b <= 1.65e+143) {
		tmp = t_2;
	} else {
		tmp = t_4;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = math.pow(a, (t + -1.0))
	t_2 = x / (y / (math.pow(z, y) * t_1))
	t_3 = y * math.exp(b)
	t_4 = x / (a * t_3)
	tmp = 0
	if b <= -8.5e+127:
		tmp = t_4
	elif b <= 5.5e-211:
		tmp = t_2
	elif b <= 1.6:
		tmp = (x * t_1) / t_3
	elif b <= 1.65e+143:
		tmp = t_2
	else:
		tmp = t_4
	return tmp
function code(x, y, z, t, a, b)
	t_1 = a ^ Float64(t + -1.0)
	t_2 = Float64(x / Float64(y / Float64((z ^ y) * t_1)))
	t_3 = Float64(y * exp(b))
	t_4 = Float64(x / Float64(a * t_3))
	tmp = 0.0
	if (b <= -8.5e+127)
		tmp = t_4;
	elseif (b <= 5.5e-211)
		tmp = t_2;
	elseif (b <= 1.6)
		tmp = Float64(Float64(x * t_1) / t_3);
	elseif (b <= 1.65e+143)
		tmp = t_2;
	else
		tmp = t_4;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = a ^ (t + -1.0);
	t_2 = x / (y / ((z ^ y) * t_1));
	t_3 = y * exp(b);
	t_4 = x / (a * t_3);
	tmp = 0.0;
	if (b <= -8.5e+127)
		tmp = t_4;
	elseif (b <= 5.5e-211)
		tmp = t_2;
	elseif (b <= 1.6)
		tmp = (x * t_1) / t_3;
	elseif (b <= 1.65e+143)
		tmp = t_2;
	else
		tmp = t_4;
	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[(x / N[(y / N[(N[Power[z, y], $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(x / N[(a * t$95$3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8.5e+127], t$95$4, If[LessEqual[b, 5.5e-211], t$95$2, If[LessEqual[b, 1.6], N[(N[(x * t$95$1), $MachinePrecision] / t$95$3), $MachinePrecision], If[LessEqual[b, 1.65e+143], t$95$2, t$95$4]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;b \leq 5.5 \cdot 10^{-211}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;b \leq 1.6:\\
\;\;\;\;\frac{x \cdot t_1}{t_3}\\

\mathbf{elif}\;b \leq 1.65 \cdot 10^{+143}:\\
\;\;\;\;t_2\\

\mathbf{else}:\\
\;\;\;\;t_4\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -8.4999999999999997e127 or 1.65e143 < 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.6%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative88.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-diff54.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-sum48.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. *-commutative48.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-pow48.6%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative48.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-pow48.6%

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

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

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}} \cdot \frac{x}{y} \]
    3. Simplified48.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 64.3%

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

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

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

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

    if -8.4999999999999997e127 < b < 5.49999999999999973e-211 or 1.6000000000000001 < b < 1.65e143

    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/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-diff72.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-sum63.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. *-commutative63.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-pow63.2%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative63.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-pow63.6%

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

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

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

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

      \[\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*78.6%

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

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

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

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

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

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

    if 5.49999999999999973e-211 < b < 1.6000000000000001

    1. Initial program 94.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/84.0%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative84.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-diff84.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-sum70.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. *-commutative70.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-pow70.8%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative70.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-pow73.8%

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -8.5 \cdot 10^{+127}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;b \leq 5.5 \cdot 10^{-211}:\\ \;\;\;\;\frac{x}{\frac{y}{{z}^{y} \cdot {a}^{\left(t + -1\right)}}}\\ \mathbf{elif}\;b \leq 1.6:\\ \;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y \cdot e^{b}}\\ \mathbf{elif}\;b \leq 1.65 \cdot 10^{+143}:\\ \;\;\;\;\frac{x}{\frac{y}{{z}^{y} \cdot {a}^{\left(t + -1\right)}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \end{array} \]

Alternative 4: 81.2% accurate, 1.4× speedup?

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

\\
\begin{array}{l}
t_1 := y \cdot e^{b}\\
t_2 := \frac{x}{\frac{y}{\frac{{a}^{t}}{a}}}\\
\mathbf{if}\;t \leq -1.35 \cdot 10^{+66}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;t \leq -6.6 \cdot 10^{-23}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{t_1}\\

\mathbf{elif}\;t \leq -2.9 \cdot 10^{-63}:\\
\;\;\;\;\frac{x}{a \cdot t_1}\\

\mathbf{elif}\;t \leq 105000000000:\\
\;\;\;\;\frac{x \cdot \frac{\frac{{z}^{y}}{y}}{e^{b}}}{a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -1.35e66 or 1.05e11 < 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. Step-by-step derivation
      1. associate-*l/90.3%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative90.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-diff65.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-sum48.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. *-commutative48.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-pow48.5%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative48.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-pow48.5%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x}{\frac{y}{\color{blue}{{a}^{t} \cdot {a}^{-1}}}} \]
      3. unpow-184.7%

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

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

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

        \[\leadsto \frac{x}{\frac{y}{\frac{\color{blue}{{a}^{t}}}{a}}} \]
    12. Simplified84.7%

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

    if -1.35e66 < t < -6.60000000000000041e-23

    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/95.0%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative95.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-diff85.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.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. *-commutative65.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-pow65.0%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative65.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-pow65.0%

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

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

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}} \cdot \frac{x}{y} \]
    3. Simplified65.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 80.7%

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

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

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

    if -6.60000000000000041e-23 < t < -2.89999999999999975e-63

    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. Step-by-step derivation
      1. associate-*l/91.7%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative91.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-diff37.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-sum37.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. *-commutative37.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-pow37.8%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative37.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-pow38.8%

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

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

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}} \cdot \frac{x}{y} \]
    3. Simplified38.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 46.2%

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

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

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

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

    if -2.89999999999999975e-63 < t < 1.05e11

    1. Initial program 97.4%

      \[\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/85.4%

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff73.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-sum72.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. *-commutative72.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-pow72.1%

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

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

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

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}} \cdot \frac{x}{y} \]
    3. Simplified73.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 79.6%

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.35 \cdot 10^{+66}:\\ \;\;\;\;\frac{x}{\frac{y}{\frac{{a}^{t}}{a}}}\\ \mathbf{elif}\;t \leq -6.6 \cdot 10^{-23}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}\\ \mathbf{elif}\;t \leq -2.9 \cdot 10^{-63}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;t \leq 105000000000:\\ \;\;\;\;\frac{x \cdot \frac{\frac{{z}^{y}}{y}}{e^{b}}}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{\frac{y}{\frac{{a}^{t}}{a}}}\\ \end{array} \]

Alternative 5: 81.3% accurate, 1.4× speedup?

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

\\
\begin{array}{l}
t_1 := y \cdot e^{b}\\
t_2 := \frac{x}{\frac{y}{\frac{{a}^{t}}{a}}}\\
\mathbf{if}\;t \leq -5.2 \cdot 10^{+69}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;t \leq -2.4 \cdot 10^{+14}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{t_1}\\

\mathbf{elif}\;t \leq -2.6 \cdot 10^{-63}:\\
\;\;\;\;\frac{x \cdot {a}^{t}}{a \cdot t_1}\\

\mathbf{elif}\;t \leq 80000000000:\\
\;\;\;\;\frac{x \cdot \frac{\frac{{z}^{y}}{y}}{e^{b}}}{a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -5.2000000000000004e69 or 8e10 < 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. Step-by-step derivation
      1. associate-*l/90.3%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative90.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-diff65.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-sum48.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. *-commutative48.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-pow48.5%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative48.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-pow48.5%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x}{\frac{y}{\color{blue}{{a}^{t} \cdot {a}^{-1}}}} \]
      3. unpow-184.7%

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

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

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

        \[\leadsto \frac{x}{\frac{y}{\frac{\color{blue}{{a}^{t}}}{a}}} \]
    12. Simplified84.7%

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

    if -5.2000000000000004e69 < t < -2.4e14

    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-diff81.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-sum45.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. *-commutative45.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-pow45.5%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative45.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-pow45.5%

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

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

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}} \cdot \frac{x}{y} \]
    3. Simplified45.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 91.6%

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

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

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

    if -2.4e14 < t < -2.6000000000000001e-63

    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/90.5%

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

        \[\leadsto \color{blue}{\frac{e^{y \cdot \log z + \left(t - 1\right) \cdot \log a}}{e^{b}}} \cdot \frac{x}{y} \]
      4. exp-sum58.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. *-commutative58.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-pow58.7%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative58.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-pow59.3%

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

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

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

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

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

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

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

        \[\leadsto \frac{{z}^{y} \cdot \color{blue}{\frac{{a}^{t} \cdot 1}{a}}}{e^{b}} \cdot \frac{x}{y} \]
      2. *-rgt-identity59.3%

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

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

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

    if -2.6000000000000001e-63 < t < 8e10

    1. Initial program 97.4%

      \[\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/85.4%

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

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. exp-diff73.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-sum72.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. *-commutative72.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-pow72.1%

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

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

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

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}} \cdot \frac{x}{y} \]
    3. Simplified73.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 79.6%

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -5.2 \cdot 10^{+69}:\\ \;\;\;\;\frac{x}{\frac{y}{\frac{{a}^{t}}{a}}}\\ \mathbf{elif}\;t \leq -2.4 \cdot 10^{+14}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}\\ \mathbf{elif}\;t \leq -2.6 \cdot 10^{-63}:\\ \;\;\;\;\frac{x \cdot {a}^{t}}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;t \leq 80000000000:\\ \;\;\;\;\frac{x \cdot \frac{\frac{{z}^{y}}{y}}{e^{b}}}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{\frac{y}{\frac{{a}^{t}}{a}}}\\ \end{array} \]

Alternative 6: 76.4% accurate, 1.5× speedup?

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

\\
\begin{array}{l}
t_1 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -4.2 \cdot 10^{-10}:\\
\;\;\;\;t_1\\

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -4.2e-10 or 5.5e115 < y

    1. Initial program 99.9%

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

      \[\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. +-commutative89.1%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{e^{y \cdot \log z - \log a} \cdot x}}{y} \]
      2. div-exp79.9%

        \[\leadsto \frac{\color{blue}{\frac{e^{y \cdot \log z}}{e^{\log a}}} \cdot x}{y} \]
      3. *-commutative79.9%

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

        \[\leadsto \frac{\frac{\color{blue}{{z}^{y}}}{e^{\log a}} \cdot x}{y} \]
      5. rem-exp-log80.0%

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

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

    if -4.2e-10 < y < 3.4199999999999999e-176

    1. Initial program 96.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/87.2%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative87.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-diff76.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-sum76.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. *-commutative76.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-pow76.8%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative76.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-pow78.2%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x}{\frac{y}{\color{blue}{{a}^{t} \cdot {a}^{-1}}}} \]
      3. unpow-184.0%

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

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

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

        \[\leadsto \frac{x}{\frac{y}{\frac{\color{blue}{{a}^{t}}}{a}}} \]
    12. Simplified84.0%

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

    if 3.4199999999999999e-176 < y < 5.5e115

    1. Initial program 98.8%

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

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative92.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.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-sum63.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. *-commutative63.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-pow63.0%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative63.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-pow64.0%

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -4.2 \cdot 10^{-10}:\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\ \mathbf{elif}\;y \leq 3.42 \cdot 10^{-176}:\\ \;\;\;\;\frac{x}{\frac{y}{\frac{{a}^{t}}{a}}}\\ \mathbf{elif}\;y \leq 5.5 \cdot 10^{+115}:\\ \;\;\;\;\frac{{a}^{\left(t + -1\right)}}{e^{b}} \cdot \frac{x}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\ \end{array} \]

Alternative 7: 87.5% accurate, 1.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.3 \cdot 10^{+82} \lor \neg \left(y \leq 2.05 \cdot 10^{+214}\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -5.29999999999999977e82 or 2.05e214 < 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 94.4%

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\frac{\color{blue}{{z}^{y}}}{e^{\log a}} \cdot x}{y} \]
      5. rem-exp-log90.2%

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

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

    if -5.29999999999999977e82 < y < 2.05e214

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

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

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

Alternative 8: 74.2% accurate, 2.8× speedup?

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

\\
\begin{array}{l}
t_1 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -4.2 \cdot 10^{-10}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;y \leq 2.9 \cdot 10^{+113}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -4.2e-10 or 2.89999999999999984e113 < y

    1. Initial program 99.9%

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

      \[\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. +-commutative89.1%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{e^{y \cdot \log z - \log a} \cdot x}}{y} \]
      2. div-exp79.9%

        \[\leadsto \frac{\color{blue}{\frac{e^{y \cdot \log z}}{e^{\log a}}} \cdot x}{y} \]
      3. *-commutative79.9%

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

        \[\leadsto \frac{\frac{\color{blue}{{z}^{y}}}{e^{\log a}} \cdot x}{y} \]
      5. rem-exp-log80.0%

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

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

    if -4.2e-10 < y < 1.01999999999999996e-169

    1. Initial program 96.8%

      \[\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-diff77.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-sum77.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. *-commutative77.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-pow77.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x}{\frac{y}{\color{blue}{{a}^{t} \cdot {a}^{-1}}}} \]
      3. unpow-183.1%

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

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

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

        \[\leadsto \frac{x}{\frac{y}{\frac{\color{blue}{{a}^{t}}}{a}}} \]
    12. Simplified83.1%

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

    if 1.01999999999999996e-169 < y < 2.89999999999999984e113

    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. Taylor expanded in t around 0 80.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -4.2 \cdot 10^{-10}:\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\ \mathbf{elif}\;y \leq 1.02 \cdot 10^{-169}:\\ \;\;\;\;\frac{x}{\frac{y}{\frac{{a}^{t}}{a}}}\\ \mathbf{elif}\;y \leq 2.9 \cdot 10^{+113}:\\ \;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\ \end{array} \]

Alternative 9: 70.8% accurate, 2.8× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -1.35e108 or 9.00000000000000026e60 < 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/91.2%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative91.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-diff57.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-sum52.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. *-commutative52.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-pow52.7%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative52.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-pow52.7%

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

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

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}} \cdot \frac{x}{y} \]
    3. Simplified52.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.0%

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

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

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

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

    if -1.35e108 < b < 9.00000000000000026e60

    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/86.9%

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\frac{x \cdot e^{\log a \cdot \left(t - 1\right)}}{y}} \]
    8. Step-by-step derivation
      1. *-commutative68.4%

        \[\leadsto \frac{\color{blue}{e^{\log a \cdot \left(t - 1\right)} \cdot x}}{y} \]
      2. associate-*r/64.6%

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.35 \cdot 10^{+108} \lor \neg \left(b \leq 9 \cdot 10^{+60}\right):\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{else}:\\ \;\;\;\;{a}^{\left(t + -1\right)} \cdot \frac{x}{y}\\ \end{array} \]

Alternative 10: 74.8% accurate, 2.8× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -2.00000000000000002e55 or 8.4000000000000004e60 < 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/91.5%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative91.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-diff57.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-sum52.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. *-commutative52.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-pow52.8%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative52.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-pow52.8%

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

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

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}} \cdot \frac{x}{y} \]
    3. Simplified52.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 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-frac51.9%

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

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

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

    if -2.00000000000000002e55 < b < 8.4000000000000004e60

    1. Initial program 97.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/86.3%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative86.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-diff77.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-sum65.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. *-commutative65.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-pow65.6%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative65.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-pow66.8%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x}{\frac{y}{\color{blue}{{a}^{t} \cdot {a}^{-1}}}} \]
      3. unpow-170.9%

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

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

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

        \[\leadsto \frac{x}{\frac{y}{\frac{\color{blue}{{a}^{t}}}{a}}} \]
    12. Simplified70.9%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -2 \cdot 10^{+55} \lor \neg \left(b \leq 8.4 \cdot 10^{+60}\right):\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{\frac{y}{\frac{{a}^{t}}{a}}}\\ \end{array} \]

Alternative 11: 59.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.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.4%

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

      \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
    3. exp-diff69.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-sum60.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. *-commutative60.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-pow60.3%

      \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
    7. *-commutative60.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.0%

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

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

      \[\leadsto \frac{{z}^{y} \cdot {a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}} \cdot \frac{x}{y} \]
  3. Simplified61.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 62.7%

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

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

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

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

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

Alternative 12: 39.5% accurate, 20.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\frac{x}{y}}{a}\\ \mathbf{if}\;b \leq -27:\\ \;\;\;\;t_1 - \frac{x}{y} \cdot \frac{b}{a}\\ \mathbf{elif}\;b \leq 5.5 \cdot 10^{-233}:\\ \;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\ \mathbf{elif}\;b \leq 1.02 \cdot 10^{-209}:\\ \;\;\;\;\frac{\frac{x}{a \cdot b}}{y}\\ \mathbf{elif}\;b \leq 8 \cdot 10^{+57}:\\ \;\;\;\;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 (/ (/ x y) a)))
   (if (<= b -27.0)
     (- t_1 (* (/ x y) (/ b a)))
     (if (<= b 5.5e-233)
       (/ x (* a (+ y (* y b))))
       (if (<= b 1.02e-209)
         (/ (/ x (* a b)) y)
         (if (<= b 8e+57) t_1 (/ x (* a (* y b)))))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x / y) / a;
	double tmp;
	if (b <= -27.0) {
		tmp = t_1 - ((x / y) * (b / a));
	} else if (b <= 5.5e-233) {
		tmp = x / (a * (y + (y * b)));
	} else if (b <= 1.02e-209) {
		tmp = (x / (a * b)) / y;
	} else if (b <= 8e+57) {
		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) :: tmp
    t_1 = (x / y) / a
    if (b <= (-27.0d0)) then
        tmp = t_1 - ((x / y) * (b / a))
    else if (b <= 5.5d-233) then
        tmp = x / (a * (y + (y * b)))
    else if (b <= 1.02d-209) then
        tmp = (x / (a * b)) / y
    else if (b <= 8d+57) 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 = (x / y) / a;
	double tmp;
	if (b <= -27.0) {
		tmp = t_1 - ((x / y) * (b / a));
	} else if (b <= 5.5e-233) {
		tmp = x / (a * (y + (y * b)));
	} else if (b <= 1.02e-209) {
		tmp = (x / (a * b)) / y;
	} else if (b <= 8e+57) {
		tmp = t_1;
	} else {
		tmp = x / (a * (y * b));
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (x / y) / a
	tmp = 0
	if b <= -27.0:
		tmp = t_1 - ((x / y) * (b / a))
	elif b <= 5.5e-233:
		tmp = x / (a * (y + (y * b)))
	elif b <= 1.02e-209:
		tmp = (x / (a * b)) / y
	elif b <= 8e+57:
		tmp = t_1
	else:
		tmp = x / (a * (y * b))
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(x / y) / a)
	tmp = 0.0
	if (b <= -27.0)
		tmp = Float64(t_1 - Float64(Float64(x / y) * Float64(b / a)));
	elseif (b <= 5.5e-233)
		tmp = Float64(x / Float64(a * Float64(y + Float64(y * b))));
	elseif (b <= 1.02e-209)
		tmp = Float64(Float64(x / Float64(a * b)) / y);
	elseif (b <= 8e+57)
		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 = (x / y) / a;
	tmp = 0.0;
	if (b <= -27.0)
		tmp = t_1 - ((x / y) * (b / a));
	elseif (b <= 5.5e-233)
		tmp = x / (a * (y + (y * b)));
	elseif (b <= 1.02e-209)
		tmp = (x / (a * b)) / y;
	elseif (b <= 8e+57)
		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[(N[(x / y), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[b, -27.0], N[(t$95$1 - N[(N[(x / y), $MachinePrecision] * N[(b / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.5e-233], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.02e-209], N[(N[(x / N[(a * b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 8e+57], t$95$1, N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{\frac{x}{y}}{a}\\
\mathbf{if}\;b \leq -27:\\
\;\;\;\;t_1 - \frac{x}{y} \cdot \frac{b}{a}\\

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

\mathbf{elif}\;b \leq 1.02 \cdot 10^{-209}:\\
\;\;\;\;\frac{\frac{x}{a \cdot b}}{y}\\

\mathbf{elif}\;b \leq 8 \cdot 10^{+57}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if b < -27

    1. Initial program 99.8%

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

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

        \[\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.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-sum47.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. *-commutative47.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-pow47.8%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative47.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-pow47.8%

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{x}{a \cdot y} + -1 \cdot \frac{b \cdot x}{a \cdot y}} \]
      2. mul-1-neg36.2%

        \[\leadsto \frac{x}{a \cdot y} + \color{blue}{\left(-\frac{b \cdot x}{a \cdot y}\right)} \]
      3. unsub-neg36.2%

        \[\leadsto \color{blue}{\frac{x}{a \cdot y} - \frac{b \cdot x}{a \cdot y}} \]
      4. associate-/r*37.6%

        \[\leadsto \color{blue}{\frac{\frac{x}{a}}{y}} - \frac{b \cdot x}{a \cdot y} \]
      5. *-rgt-identity37.6%

        \[\leadsto \frac{\frac{\color{blue}{x \cdot 1}}{a}}{y} - \frac{b \cdot x}{a \cdot y} \]
      6. associate-*r/37.6%

        \[\leadsto \frac{\color{blue}{x \cdot \frac{1}{a}}}{y} - \frac{b \cdot x}{a \cdot y} \]
      7. associate-*l/39.1%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot \frac{1}{a}} - \frac{b \cdot x}{a \cdot y} \]
      8. associate-*r/39.1%

        \[\leadsto \color{blue}{\frac{\frac{x}{y} \cdot 1}{a}} - \frac{b \cdot x}{a \cdot y} \]
      9. *-rgt-identity39.1%

        \[\leadsto \frac{\color{blue}{\frac{x}{y}}}{a} - \frac{b \cdot x}{a \cdot y} \]
      10. times-frac43.5%

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

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

    if -27 < b < 5.50000000000000005e-233

    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/86.8%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative86.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-diff86.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-sum73.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. *-commutative73.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-pow73.0%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative73.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-pow73.9%

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

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

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

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

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

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

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

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

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

    if 5.50000000000000005e-233 < b < 1.01999999999999999e-209

    1. Initial program 98.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 1.01999999999999999e-209 < b < 8.00000000000000039e57

    1. Initial program 95.4%

      \[\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/82.3%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative82.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-diff71.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-sum60.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. *-commutative60.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-pow60.1%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative60.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-pow62.3%

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

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

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}} \cdot \frac{x}{y} \]
    3. Simplified62.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 58.8%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{\frac{x}{a}}{y}} \]
      2. *-rgt-identity49.9%

        \[\leadsto \frac{\frac{\color{blue}{x \cdot 1}}{a}}{y} \]
      3. associate-*r/49.9%

        \[\leadsto \frac{\color{blue}{x \cdot \frac{1}{a}}}{y} \]
      4. associate-*l/53.5%

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

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

        \[\leadsto \frac{\color{blue}{\frac{x}{y}}}{a} \]
    10. Simplified53.6%

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

    if 8.00000000000000039e57 < 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. Taylor expanded in t around 0 94.9%

      \[\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. +-commutative94.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(b \cdot y\right)}} \]
    10. Step-by-step derivation
      1. *-commutative53.1%

        \[\leadsto \frac{x}{a \cdot \color{blue}{\left(y \cdot b\right)}} \]
    11. Simplified53.1%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -27:\\ \;\;\;\;\frac{\frac{x}{y}}{a} - \frac{x}{y} \cdot \frac{b}{a}\\ \mathbf{elif}\;b \leq 5.5 \cdot 10^{-233}:\\ \;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\ \mathbf{elif}\;b \leq 1.02 \cdot 10^{-209}:\\ \;\;\;\;\frac{\frac{x}{a \cdot b}}{y}\\ \mathbf{elif}\;b \leq 8 \cdot 10^{+57}:\\ \;\;\;\;\frac{\frac{x}{y}}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\ \end{array} \]

Alternative 13: 40.8% accurate, 24.1× speedup?

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

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


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

    1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{\color{blue}{-1 \cdot \frac{b \cdot x}{a} + \frac{x}{a}}}{y} \]
    10. Step-by-step derivation
      1. +-commutative45.0%

        \[\leadsto \frac{\color{blue}{\frac{x}{a} + -1 \cdot \frac{b \cdot x}{a}}}{y} \]
      2. mul-1-neg45.0%

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

        \[\leadsto \frac{\color{blue}{\frac{x}{a} - \frac{b \cdot x}{a}}}{y} \]
      4. associate-/l*40.1%

        \[\leadsto \frac{\frac{x}{a} - \color{blue}{\frac{b}{\frac{a}{x}}}}{y} \]
      5. associate-/r/40.2%

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

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

    if -7.6000000000000003e-65 < b

    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. 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-diff72.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-sum63.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. *-commutative63.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-pow63.5%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative63.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-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 62.9%

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

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

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

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

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

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

Alternative 14: 40.8% accurate, 24.1× speedup?

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

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

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


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

    1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.3500000000000001e-62 < b

    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. 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-diff72.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-sum63.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. *-commutative63.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-pow63.5%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative63.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-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 62.9%

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

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

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

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

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

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

Alternative 15: 36.2% accurate, 28.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -24.5:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\

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


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

    1. Initial program 99.8%

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

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

        \[\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.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-sum47.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. *-commutative47.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-pow47.8%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative47.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-pow47.8%

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{\frac{x}{a}}{y}} \]
      2. *-rgt-identity31.9%

        \[\leadsto \frac{\frac{\color{blue}{x \cdot 1}}{a}}{y} \]
      3. associate-*r/31.9%

        \[\leadsto \frac{\color{blue}{x \cdot \frac{1}{a}}}{y} \]
      4. associate-*l/34.4%

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

        \[\leadsto \color{blue}{\frac{\frac{x}{y} \cdot 1}{a}} \]
      6. *-rgt-identity34.4%

        \[\leadsto \frac{\color{blue}{\frac{x}{y}}}{a} \]
    10. Simplified34.4%

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

    if -24.5 < b

    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/87.1%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative87.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-diff74.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-sum64.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. *-commutative64.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-pow64.6%

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

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

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

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}} \cdot \frac{x}{y} \]
    3. Simplified65.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 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-frac59.8%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -24.5:\\ \;\;\;\;\frac{\frac{x}{y}}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\ \end{array} \]

Alternative 16: 35.8% accurate, 34.8× speedup?

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

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

\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 < 5.5e-42

    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-diff75.7%

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

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative63.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-pow64.6%

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

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

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}} \cdot \frac{x}{y} \]
    3. Simplified64.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 63.5%

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

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

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

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

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

    if 5.5e-42 < b

    1. Initial program 99.7%

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

      \[\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. +-commutative87.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(b \cdot y\right)}} \]
    10. Step-by-step derivation
      1. *-commutative49.8%

        \[\leadsto \frac{x}{a \cdot \color{blue}{\left(y \cdot b\right)}} \]
    11. Simplified49.8%

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

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

Alternative 17: 31.7% accurate, 44.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;x \leq 10^{+136}:\\
\;\;\;\;\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 x < 1.00000000000000006e136

    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.5%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative90.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-diff70.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-sum62.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. *-commutative62.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-pow62.2%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative62.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-pow63.0%

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

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

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}} \cdot \frac{x}{y} \]
    3. Simplified63.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 61.8%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{\frac{x}{a}}{y}} \]
      2. *-rgt-identity34.4%

        \[\leadsto \frac{\frac{\color{blue}{x \cdot 1}}{a}}{y} \]
      3. associate-*r/34.4%

        \[\leadsto \frac{\color{blue}{x \cdot \frac{1}{a}}}{y} \]
      4. associate-*l/36.5%

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

        \[\leadsto \color{blue}{\frac{\frac{x}{y} \cdot 1}{a}} \]
      6. *-rgt-identity36.5%

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

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

    if 1.00000000000000006e136 < x

    1. Initial program 98.8%

      \[\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/76.3%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative76.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-diff60.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-sum49.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. *-commutative49.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-pow49.3%

        \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
      7. *-commutative49.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-pow49.3%

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

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

        \[\leadsto \frac{{z}^{y} \cdot {a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}} \cdot \frac{x}{y} \]
    3. Simplified49.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 68.1%

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq 10^{+136}:\\ \;\;\;\;\frac{\frac{x}{y}}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \end{array} \]

Alternative 18: 31.5% 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.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.4%

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

      \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
    3. exp-diff69.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-sum60.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. *-commutative60.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-pow60.3%

      \[\leadsto \frac{\color{blue}{{z}^{y}} \cdot e^{\left(t - 1\right) \cdot \log a}}{e^{b}} \cdot \frac{x}{y} \]
    7. *-commutative60.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.0%

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

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

      \[\leadsto \frac{{z}^{y} \cdot {a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}} \cdot \frac{x}{y} \]
  3. Simplified61.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 62.7%

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

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

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

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

    \[\leadsto \frac{x}{\color{blue}{a \cdot y}} \]
  9. Final simplification33.7%

    \[\leadsto \frac{x}{y \cdot a} \]

Developer target: 72.1% 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 2023318 
(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))