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

Percentage Accurate: 98.7% → 98.7%
Time: 28.2s
Alternatives: 20
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 20 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.7% 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.7% accurate, 1.0× speedup?

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

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

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

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

Alternative 2: 92.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t + -1 \leq -2 \cdot 10^{+127} \lor \neg \left(t + -1 \leq -1\right):\\ \;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - 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 -1.0) -2e+127) (not (<= (+ t -1.0) -1.0)))
   (/ (* x (exp (- (* (+ t -1.0) (log a)) 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 + -1.0) <= -2e+127) || !((t + -1.0) <= -1.0)) {
		tmp = (x * exp((((t + -1.0) * log(a)) - 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 + (-1.0d0)) <= (-2d+127)) .or. (.not. ((t + (-1.0d0)) <= (-1.0d0)))) then
        tmp = (x * exp((((t + (-1.0d0)) * log(a)) - 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 + -1.0) <= -2e+127) || !((t + -1.0) <= -1.0)) {
		tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - 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 + -1.0) <= -2e+127) or not ((t + -1.0) <= -1.0):
		tmp = (x * math.exp((((t + -1.0) * math.log(a)) - 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 ((Float64(t + -1.0) <= -2e+127) || !(Float64(t + -1.0) <= -1.0))
		tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - 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 + -1.0) <= -2e+127) || ~(((t + -1.0) <= -1.0)))
		tmp = (x * exp((((t + -1.0) * log(a)) - 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[N[(t + -1.0), $MachinePrecision], -2e+127], N[Not[LessEqual[N[(t + -1.0), $MachinePrecision], -1.0]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $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 + -1 \leq -2 \cdot 10^{+127} \lor \neg \left(t + -1 \leq -1\right):\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - 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 (-.f64 t 1) < -1.99999999999999991e127 or -1 < (-.f64 t 1)

    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. Add Preprocessing
    3. Taylor expanded in y around 0 92.3%

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

    if -1.99999999999999991e127 < (-.f64 t 1) < -1

    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. Add Preprocessing
    3. Taylor expanded in t around 0 96.2%

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

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

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

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

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

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

Alternative 3: 89.2% accurate, 1.4× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.9 \cdot 10^{+92} \lor \neg \left(y \leq 3.3 \cdot 10^{+139}\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.9e92 or 3.3000000000000002e139 < 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. Add Preprocessing
    3. Taylor expanded in t around 0 91.1%

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

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

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

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

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

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

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

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

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

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

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

    if -1.9e92 < y < 3.3000000000000002e139

    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. Add Preprocessing
    3. Taylor expanded in y around 0 90.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.9 \cdot 10^{+92} \lor \neg \left(y \leq 3.3 \cdot 10^{+139}\right):\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 79.0% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\ \mathbf{if}\;y \leq -6.2 \cdot 10^{+80}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq 4 \cdot 10^{-150}:\\ \;\;\;\;\frac{x}{y \cdot \frac{e^{b}}{{a}^{\left(t + -1\right)}}}\\ \mathbf{elif}\;y \leq 2.6 \cdot 10^{+77}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \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 -6.2e+80)
     t_1
     (if (<= y 4e-150)
       (/ x (* y (/ (exp b) (pow a (+ t -1.0)))))
       (if (<= y 2.6e+77) (/ x (* a (* y (exp b)))) 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 <= -6.2e+80) {
		tmp = t_1;
	} else if (y <= 4e-150) {
		tmp = x / (y * (exp(b) / pow(a, (t + -1.0))));
	} else if (y <= 2.6e+77) {
		tmp = x / (a * (y * exp(b)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: t_1
    real(8) :: tmp
    t_1 = (x * ((z ** y) / a)) / y
    if (y <= (-6.2d+80)) then
        tmp = t_1
    else if (y <= 4d-150) then
        tmp = x / (y * (exp(b) / (a ** (t + (-1.0d0)))))
    else if (y <= 2.6d+77) then
        tmp = x / (a * (y * exp(b)))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x * (Math.pow(z, y) / a)) / y;
	double tmp;
	if (y <= -6.2e+80) {
		tmp = t_1;
	} else if (y <= 4e-150) {
		tmp = x / (y * (Math.exp(b) / Math.pow(a, (t + -1.0))));
	} else if (y <= 2.6e+77) {
		tmp = x / (a * (y * Math.exp(b)));
	} 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 <= -6.2e+80:
		tmp = t_1
	elif y <= 4e-150:
		tmp = x / (y * (math.exp(b) / math.pow(a, (t + -1.0))))
	elif y <= 2.6e+77:
		tmp = x / (a * (y * math.exp(b)))
	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 <= -6.2e+80)
		tmp = t_1;
	elseif (y <= 4e-150)
		tmp = Float64(x / Float64(y * Float64(exp(b) / (a ^ Float64(t + -1.0)))));
	elseif (y <= 2.6e+77)
		tmp = Float64(x / Float64(a * Float64(y * exp(b))));
	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 <= -6.2e+80)
		tmp = t_1;
	elseif (y <= 4e-150)
		tmp = x / (y * (exp(b) / (a ^ (t + -1.0))));
	elseif (y <= 2.6e+77)
		tmp = x / (a * (y * exp(b)));
	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, -6.2e+80], t$95$1, If[LessEqual[y, 4e-150], N[(x / N[(y * N[(N[Exp[b], $MachinePrecision] / N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.6e+77], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $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 -6.2 \cdot 10^{+80}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;y \leq 2.6 \cdot 10^{+77}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -6.19999999999999976e80 or 2.6000000000000002e77 < 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. Add Preprocessing
    3. Taylor expanded in t around 0 90.5%

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

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

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

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

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

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

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

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

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

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

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

    if -6.19999999999999976e80 < y < 4.00000000000000003e-150

    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*95.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 4.00000000000000003e-150 < y < 2.6000000000000002e77

    1. Initial program 99.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/97.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 5: 82.4% accurate, 1.4× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.3 \cdot 10^{+38}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{a}^{t}}{y}\\

\mathbf{elif}\;t \leq 5.2 \cdot 10^{+40}:\\
\;\;\;\;\frac{x}{\frac{a}{\frac{{z}^{y}}{y \cdot e^{b}}}}\\

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


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

    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. Add Preprocessing
    3. Taylor expanded in y around 0 89.6%

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot \frac{\color{blue}{{a}^{t} \cdot {a}^{-1}}}{e^{b}}}{y} \]
      2. unpow-168.6%

        \[\leadsto \frac{x \cdot \frac{{a}^{t} \cdot \color{blue}{\frac{1}{a}}}{e^{b}}}{y} \]
    7. Applied egg-rr68.6%

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

      \[\leadsto \color{blue}{\frac{x \cdot {a}^{t}}{a \cdot y}} \]
    9. Step-by-step derivation
      1. times-frac84.5%

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

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

    if -5.30000000000000024e38 < t < 5.2000000000000001e40

    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*96.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 5.2000000000000001e40 < 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. Add Preprocessing
    3. Taylor expanded in y around 0 91.9%

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

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

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

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

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

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

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

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

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

Alternative 6: 71.5% accurate, 2.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{a} \cdot \frac{{z}^{y}}{y}\\ t_2 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{if}\;b \leq -6.5 \cdot 10^{+154}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;b \leq -5.4 \cdot 10^{+94}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq -3200:\\ \;\;\;\;t_2\\ \mathbf{elif}\;b \leq -3.5 \cdot 10^{-51}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq 8.2 \cdot 10^{-189}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{{a}^{t}}{y}\\ \mathbf{elif}\;b \leq 14000000000:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (* (/ x a) (/ (pow z y) y))) (t_2 (/ x (* a (* y (exp b))))))
   (if (<= b -6.5e+154)
     t_2
     (if (<= b -5.4e+94)
       t_1
       (if (<= b -3200.0)
         t_2
         (if (<= b -3.5e-51)
           t_1
           (if (<= b 8.2e-189)
             (* (/ x a) (/ (pow a t) y))
             (if (<= b 14000000000.0) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x / a) * (pow(z, y) / y);
	double t_2 = x / (a * (y * exp(b)));
	double tmp;
	if (b <= -6.5e+154) {
		tmp = t_2;
	} else if (b <= -5.4e+94) {
		tmp = t_1;
	} else if (b <= -3200.0) {
		tmp = t_2;
	} else if (b <= -3.5e-51) {
		tmp = t_1;
	} else if (b <= 8.2e-189) {
		tmp = (x / a) * (pow(a, t) / y);
	} else if (b <= 14000000000.0) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = (x / a) * ((z ** y) / y)
    t_2 = x / (a * (y * exp(b)))
    if (b <= (-6.5d+154)) then
        tmp = t_2
    else if (b <= (-5.4d+94)) then
        tmp = t_1
    else if (b <= (-3200.0d0)) then
        tmp = t_2
    else if (b <= (-3.5d-51)) then
        tmp = t_1
    else if (b <= 8.2d-189) then
        tmp = (x / a) * ((a ** t) / y)
    else if (b <= 14000000000.0d0) then
        tmp = t_1
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x / a) * (Math.pow(z, y) / y);
	double t_2 = x / (a * (y * Math.exp(b)));
	double tmp;
	if (b <= -6.5e+154) {
		tmp = t_2;
	} else if (b <= -5.4e+94) {
		tmp = t_1;
	} else if (b <= -3200.0) {
		tmp = t_2;
	} else if (b <= -3.5e-51) {
		tmp = t_1;
	} else if (b <= 8.2e-189) {
		tmp = (x / a) * (Math.pow(a, t) / y);
	} else if (b <= 14000000000.0) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (x / a) * (math.pow(z, y) / y)
	t_2 = x / (a * (y * math.exp(b)))
	tmp = 0
	if b <= -6.5e+154:
		tmp = t_2
	elif b <= -5.4e+94:
		tmp = t_1
	elif b <= -3200.0:
		tmp = t_2
	elif b <= -3.5e-51:
		tmp = t_1
	elif b <= 8.2e-189:
		tmp = (x / a) * (math.pow(a, t) / y)
	elif b <= 14000000000.0:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(x / a) * Float64((z ^ y) / y))
	t_2 = Float64(x / Float64(a * Float64(y * exp(b))))
	tmp = 0.0
	if (b <= -6.5e+154)
		tmp = t_2;
	elseif (b <= -5.4e+94)
		tmp = t_1;
	elseif (b <= -3200.0)
		tmp = t_2;
	elseif (b <= -3.5e-51)
		tmp = t_1;
	elseif (b <= 8.2e-189)
		tmp = Float64(Float64(x / a) * Float64((a ^ t) / y));
	elseif (b <= 14000000000.0)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = (x / a) * ((z ^ y) / y);
	t_2 = x / (a * (y * exp(b)));
	tmp = 0.0;
	if (b <= -6.5e+154)
		tmp = t_2;
	elseif (b <= -5.4e+94)
		tmp = t_1;
	elseif (b <= -3200.0)
		tmp = t_2;
	elseif (b <= -3.5e-51)
		tmp = t_1;
	elseif (b <= 8.2e-189)
		tmp = (x / a) * ((a ^ t) / y);
	elseif (b <= 14000000000.0)
		tmp = t_1;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.5e+154], t$95$2, If[LessEqual[b, -5.4e+94], t$95$1, If[LessEqual[b, -3200.0], t$95$2, If[LessEqual[b, -3.5e-51], t$95$1, If[LessEqual[b, 8.2e-189], N[(N[(x / a), $MachinePrecision] * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 14000000000.0], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;b \leq -5.4 \cdot 10^{+94}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;b \leq -3200:\\
\;\;\;\;t_2\\

\mathbf{elif}\;b \leq -3.5 \cdot 10^{-51}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;b \leq 14000000000:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -6.5000000000000005e154 or -5.4000000000000003e94 < b < -3200 or 1.4e10 < 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/84.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -6.5000000000000005e154 < b < -5.4000000000000003e94 or -3200 < b < -3.4999999999999997e-51 or 8.2000000000000006e-189 < b < 1.4e10

    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. 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. +-commutative90.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot y}} \]
    9. Step-by-step derivation
      1. times-frac79.5%

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

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

    if -3.4999999999999997e-51 < b < 8.2000000000000006e-189

    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. Add Preprocessing
    3. Taylor expanded in y around 0 81.7%

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot \frac{\color{blue}{{a}^{t} \cdot {a}^{-1}}}{e^{b}}}{y} \]
      2. unpow-182.9%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {a}^{t}}{a \cdot y}} \]
    9. Step-by-step derivation
      1. times-frac74.1%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -6.5 \cdot 10^{+154}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;b \leq -5.4 \cdot 10^{+94}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y}\\ \mathbf{elif}\;b \leq -3200:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;b \leq -3.5 \cdot 10^{-51}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y}\\ \mathbf{elif}\;b \leq 8.2 \cdot 10^{-189}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{{a}^{t}}{y}\\ \mathbf{elif}\;b \leq 14000000000:\\ \;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 71.6% accurate, 2.5× speedup?

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

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

\mathbf{elif}\;b \leq -5.2 \cdot 10^{-116}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;b \leq 1.7 \cdot 10^{+14}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -6.2000000000000003e154 or 1.7e14 < 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/82.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -6.2000000000000003e154 < b < -5.2000000000000001e-116 or 9.7999999999999999e-191 < b < 1.7e14

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

    if -5.2000000000000001e-116 < b < 9.7999999999999999e-191

    1. Initial program 97.6%

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

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot \frac{\color{blue}{{a}^{t} \cdot {a}^{-1}}}{e^{b}}}{y} \]
      2. unpow-184.5%

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {a}^{t}}{a \cdot y}} \]
    9. Step-by-step derivation
      1. times-frac73.8%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -6.2 \cdot 10^{+154}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;b \leq -5.2 \cdot 10^{-116}:\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\ \mathbf{elif}\;b \leq 9.8 \cdot 10^{-191}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{{a}^{t}}{y}\\ \mathbf{elif}\;b \leq 1.7 \cdot 10^{+14}:\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 73.0% accurate, 2.5× speedup?

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

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

\mathbf{elif}\;b \leq -4.5 \cdot 10^{-115}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;b \leq 110000000000:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -6.2000000000000003e154 or 1.1e11 < 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/82.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -6.2000000000000003e154 < b < -4.50000000000000023e-115 or 3.60000000000000007e-190 < b < 1.1e11

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

    if -4.50000000000000023e-115 < b < 3.60000000000000007e-190

    1. Initial program 97.6%

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -6.2 \cdot 10^{+154}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;b \leq -4.5 \cdot 10^{-115}:\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\ \mathbf{elif}\;b \leq 3.6 \cdot 10^{-190}:\\ \;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\ \mathbf{elif}\;b \leq 110000000000:\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 73.5% accurate, 2.5× speedup?

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

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

\mathbf{elif}\;b \leq -2.3 \cdot 10^{-49}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;b \leq 820000000000:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -6.2000000000000003e154 or 8.2e11 < 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/82.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -6.2000000000000003e154 < b < -2.2999999999999999e-49 or 1.80000000000000003e-190 < b < 8.2e11

    1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot y}} \]
    9. Step-by-step derivation
      1. times-frac70.8%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y}} \]
    10. Simplified70.8%

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

        \[\leadsto \color{blue}{\frac{x \cdot \frac{{z}^{y}}{y}}{a}} \]
      2. clear-num80.6%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{1}{\frac{y}{{z}^{y}}}}}{a} \]
      3. un-div-inv80.6%

        \[\leadsto \frac{\color{blue}{\frac{x}{\frac{y}{{z}^{y}}}}}{a} \]
    12. Applied egg-rr80.6%

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

    if -2.2999999999999999e-49 < b < 1.80000000000000003e-190

    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. Add Preprocessing
    3. Taylor expanded in y around 0 82.6%

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -6.2 \cdot 10^{+154}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;b \leq -2.3 \cdot 10^{-49}:\\ \;\;\;\;\frac{\frac{x}{\frac{y}{{z}^{y}}}}{a}\\ \mathbf{elif}\;b \leq 1.8 \cdot 10^{-190}:\\ \;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\ \mathbf{elif}\;b \leq 820000000000:\\ \;\;\;\;\frac{\frac{x}{\frac{y}{{z}^{y}}}}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 73.6% accurate, 2.5× speedup?

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

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

\mathbf{elif}\;b \leq -3 \cdot 10^{-45}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;b \leq 360000000000:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -6.2000000000000003e154 or 3.6e11 < 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/82.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -6.2000000000000003e154 < b < -3.00000000000000011e-45 or 4.3e-190 < b < 3.6e11

    1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot y}} \]
    9. Step-by-step derivation
      1. times-frac70.8%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y}} \]
    10. Simplified70.8%

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

        \[\leadsto \color{blue}{\frac{x \cdot \frac{{z}^{y}}{y}}{a}} \]
      2. clear-num80.6%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{1}{\frac{y}{{z}^{y}}}}}{a} \]
      3. un-div-inv80.6%

        \[\leadsto \frac{\color{blue}{\frac{x}{\frac{y}{{z}^{y}}}}}{a} \]
    12. Applied egg-rr80.6%

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

    if -3.00000000000000011e-45 < b < 4.3e-190

    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. Add Preprocessing
    3. Taylor expanded in y around 0 82.6%

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot \frac{\color{blue}{{a}^{t} \cdot {a}^{-1}}}{e^{b}}}{y} \]
      2. unpow-183.8%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -6.2 \cdot 10^{+154}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;b \leq -3 \cdot 10^{-45}:\\ \;\;\;\;\frac{\frac{x}{\frac{y}{{z}^{y}}}}{a}\\ \mathbf{elif}\;b \leq 4.3 \cdot 10^{-190}:\\ \;\;\;\;\frac{\frac{x \cdot {a}^{t}}{a}}{y}\\ \mathbf{elif}\;b \leq 360000000000:\\ \;\;\;\;\frac{\frac{x}{\frac{y}{{z}^{y}}}}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 72.7% accurate, 2.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -0.00016 \lor \neg \left(b \leq 7\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -1.60000000000000013e-4 or 7 < b

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.60000000000000013e-4 < b < 7

    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. Add Preprocessing
    3. Taylor expanded in y around 0 74.1%

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot \frac{\color{blue}{{a}^{t} \cdot {a}^{-1}}}{e^{b}}}{y} \]
      2. unpow-175.2%

        \[\leadsto \frac{x \cdot \frac{{a}^{t} \cdot \color{blue}{\frac{1}{a}}}{e^{b}}}{y} \]
    7. Applied egg-rr75.2%

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

      \[\leadsto \color{blue}{\frac{x \cdot {a}^{t}}{a \cdot y}} \]
    9. Step-by-step derivation
      1. times-frac68.5%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -0.00016 \lor \neg \left(b \leq 7\right):\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{{a}^{t}}{y}\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 58.8% 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.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/86.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
  9. Final simplification59.2%

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

Alternative 13: 37.6% accurate, 13.1× speedup?

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

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

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

\mathbf{elif}\;b \leq -1.9 \cdot 10^{-202}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -1.05e-54 or -3.0999999999999998e-124 < b < -1.90000000000000007e-202

    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. +-commutative92.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\frac{x}{a \cdot y} - \frac{b}{a} \cdot \frac{x}{y}} \]
    12. Taylor expanded in b around inf 52.3%

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

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

        \[\leadsto \frac{-1 \cdot \color{blue}{\left(x \cdot b\right)}}{a \cdot y} \]
      3. neg-mul-152.3%

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

        \[\leadsto \frac{\color{blue}{x \cdot \left(-b\right)}}{a \cdot y} \]
    14. Simplified52.3%

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

    if -1.05e-54 < b < -3.0999999999999998e-124

    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. Add Preprocessing
    3. Taylor expanded in y around 0 77.9%

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

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

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

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

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

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

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

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

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

    if -1.90000000000000007e-202 < b

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.05 \cdot 10^{-54}:\\ \;\;\;\;\frac{x \cdot \left(-b\right)}{y \cdot a}\\ \mathbf{elif}\;b \leq -3.1 \cdot 10^{-124}:\\ \;\;\;\;\frac{\frac{x}{a}}{y}\\ \mathbf{elif}\;b \leq -1.9 \cdot 10^{-202}:\\ \;\;\;\;\frac{x \cdot \left(-b\right)}{y \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 14: 40.9% accurate, 14.3× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -1 \cdot 10^{-71}:\\
\;\;\;\;\frac{a \cdot \frac{x}{a} - y \cdot \left(x \cdot \frac{b}{y}\right)}{y \cdot 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 < -9.9999999999999992e-72

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\frac{x}{a}}{y} - \color{blue}{\frac{b \cdot \frac{x}{y}}{a}} \]
      3. frac-sub51.9%

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

        \[\leadsto \frac{\frac{x}{a} \cdot a - y \cdot \left(b \cdot \frac{x}{y}\right)}{\color{blue}{a \cdot y}} \]
    13. Applied egg-rr51.9%

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

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

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

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

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

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

    if -9.9999999999999992e-72 < b

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 15: 33.2% accurate, 17.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.6 \cdot 10^{-26} \lor \neg \left(y \leq 3.6 \cdot 10^{+42}\right):\\
\;\;\;\;\left(-b\right) \cdot \frac{x}{y \cdot a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -9.6000000000000004e-26 or 3.6000000000000001e42 < y

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\frac{x}{a \cdot y} - \frac{b}{a} \cdot \frac{x}{y}} \]
    12. Taylor expanded in b around inf 36.9%

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

        \[\leadsto \color{blue}{\frac{-1 \cdot \left(b \cdot x\right)}{a \cdot y}} \]
      2. *-commutative36.9%

        \[\leadsto \frac{-1 \cdot \color{blue}{\left(x \cdot b\right)}}{a \cdot y} \]
      3. neg-mul-136.9%

        \[\leadsto \frac{\color{blue}{-x \cdot b}}{a \cdot y} \]
      4. distribute-frac-neg36.9%

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

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

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

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

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

        \[\leadsto -\color{blue}{\frac{x}{a \cdot y}} \cdot b \]
      10. distribute-rgt-neg-in35.5%

        \[\leadsto \color{blue}{\frac{x}{a \cdot y} \cdot \left(-b\right)} \]
    14. Simplified35.5%

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

    if -9.6000000000000004e-26 < y < 3.6000000000000001e42

    1. Initial program 97.6%

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -9.6 \cdot 10^{-26} \lor \neg \left(y \leq 3.6 \cdot 10^{+42}\right):\\ \;\;\;\;\left(-b\right) \cdot \frac{x}{y \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{a}}{y}\\ \end{array} \]
  5. Add Preprocessing

Alternative 16: 33.7% accurate, 18.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.05 \cdot 10^{-54}:\\
\;\;\;\;\frac{x \cdot \left(-b\right)}{y \cdot a}\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -1.05e-54

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{-1 \cdot \left(b \cdot x\right)}{a \cdot y}} \]
      2. *-commutative51.8%

        \[\leadsto \frac{-1 \cdot \color{blue}{\left(x \cdot b\right)}}{a \cdot y} \]
      3. neg-mul-151.8%

        \[\leadsto \frac{\color{blue}{-x \cdot b}}{a \cdot y} \]
      4. distribute-rgt-neg-in51.8%

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

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

    if -1.05e-54 < b < -1.22000000000000006e-85

    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. Add Preprocessing
    3. Taylor expanded in y around 0 97.4%

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

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

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

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

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

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

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

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

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

    if -1.22000000000000006e-85 < b

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{x}{a} \cdot \color{blue}{\frac{1}{y}} \]
    12. Step-by-step derivation
      1. un-div-inv32.2%

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

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

        \[\leadsto \color{blue}{\frac{x}{\frac{y}{\frac{1}{a}}}} \]
    13. Applied egg-rr34.8%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.05 \cdot 10^{-54}:\\ \;\;\;\;\frac{x \cdot \left(-b\right)}{y \cdot a}\\ \mathbf{elif}\;b \leq -1.22 \cdot 10^{-85}:\\ \;\;\;\;\frac{\frac{x}{a}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{\frac{y}{\frac{1}{a}}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 17: 39.3% accurate, 19.7× speedup?

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

    1. Initial program 99.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\frac{x}{a}}{y} - \color{blue}{\frac{\frac{b}{a} \cdot x}{y}} \]
      3. sub-div49.0%

        \[\leadsto \color{blue}{\frac{\frac{x}{a} - \frac{b}{a} \cdot x}{y}} \]
      4. clear-num49.0%

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

        \[\leadsto \frac{\frac{x}{a} - \color{blue}{\frac{1 \cdot x}{\frac{a}{b}}}}{y} \]
      6. *-un-lft-identity47.6%

        \[\leadsto \frac{\frac{x}{a} - \frac{\color{blue}{x}}{\frac{a}{b}}}{y} \]
    13. Applied egg-rr47.6%

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

    if -3.19999999999999998e-89 < b

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3.2 \cdot 10^{-89}:\\ \;\;\;\;\frac{\frac{x}{a} - \frac{x}{\frac{a}{b}}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 18: 32.7% accurate, 26.2× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq 500000000000:\\
\;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < 5e11

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot y}} \]
    9. Step-by-step derivation
      1. times-frac52.0%

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{1}{a \cdot \frac{y}{x}}} \]
    13. Applied egg-rr32.0%

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

    if 5e11 < a

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq 500000000000:\\ \;\;\;\;\frac{1}{a \cdot \frac{y}{x}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \end{array} \]
  5. Add Preprocessing

Alternative 19: 32.3% accurate, 31.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq 2.2 \cdot 10^{-77}:\\ \;\;\;\;\frac{\frac{x}{a}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= a 2.2e-77) (/ (/ x a) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (a <= 2.2e-77) {
		tmp = (x / a) / y;
	} else {
		tmp = x / (y * a);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: tmp
    if (a <= 2.2d-77) then
        tmp = (x / a) / y
    else
        tmp = x / (y * a)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (a <= 2.2e-77) {
		tmp = (x / a) / y;
	} else {
		tmp = x / (y * a);
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if a <= 2.2e-77:
		tmp = (x / a) / y
	else:
		tmp = x / (y * a)
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (a <= 2.2e-77)
		tmp = Float64(Float64(x / a) / y);
	else
		tmp = Float64(x / Float64(y * a));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if (a <= 2.2e-77)
		tmp = (x / a) / y;
	else
		tmp = x / (y * a);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 2.2e-77], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;a \leq 2.2 \cdot 10^{-77}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < 2.20000000000000007e-77

    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. Add Preprocessing
    3. Taylor expanded in y around 0 84.1%

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

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

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

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

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

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

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

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

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

    if 2.20000000000000007e-77 < a

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq 2.2 \cdot 10^{-77}:\\ \;\;\;\;\frac{\frac{x}{a}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \end{array} \]
  5. Add Preprocessing

Alternative 20: 30.7% 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.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/86.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \frac{x}{y \cdot a} \]
  11. Add Preprocessing

Developer target: 72.2% 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 2024021 
(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))