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

Percentage Accurate: 98.2% → 98.2%
Time: 23.2s
Alternatives: 27
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 27 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.2% 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.2% 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.4%

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

    \[\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: 80.6% accurate, 1.0× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < 1.0200000000000001e207

    1. Initial program 98.3%

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

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

    if 1.0200000000000001e207 < 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. Step-by-step derivation
      1. clear-num100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 3: 80.1% accurate, 1.0× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < 2.09999999999999987e206

    1. Initial program 98.3%

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

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

    if 2.09999999999999987e206 < 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*100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 4: 79.6% accurate, 1.0× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < 1.10000000000000004e207

    1. Initial program 98.3%

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

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

    if 1.10000000000000004e207 < 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*100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 5: 79.9% accurate, 1.0× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < 1.10000000000000004e207

    1. Initial program 98.3%

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

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

    if 1.10000000000000004e207 < 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*100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 6: 86.0% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 5.7 \cdot 10^{+47}:\\ \;\;\;\;\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 (<= y 5.7e+47)
   (/ (* 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 (y <= 5.7e+47) {
		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 (y <= 5.7d+47) 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 (y <= 5.7e+47) {
		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 y <= 5.7e+47:
		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 (y <= 5.7e+47)
		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 (y <= 5.7e+47)
		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[LessEqual[y, 5.7e+47], 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}\;y \leq 5.7 \cdot 10^{+47}:\\
\;\;\;\;\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 y < 5.6999999999999997e47

    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 y around 0 89.2%

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

    if 5.6999999999999997e47 < 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 89.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. +-commutative89.5%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 5.7 \cdot 10^{+47}:\\ \;\;\;\;\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 7: 69.0% accurate, 1.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t + -1 \leq -0.5:\\
\;\;\;\;\frac{x \cdot \frac{1}{a \cdot e^{b}}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (-.f64 t #s(literal 1 binary64)) < -0.5

    1. Initial program 97.9%

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

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot \color{blue}{\frac{1}{e^{b + \log a}}}}{y} \]
      6. +-commutative70.7%

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

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

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

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

    if -0.5 < (-.f64 t #s(literal 1 binary64))

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

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

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

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

Alternative 8: 84.4% accurate, 1.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2 \cdot 10^{+167}:\\ \;\;\;\;\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 (<= y -2e+167)
   (/ (* 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 <= -2e+167) {
		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 <= (-2d+167)) 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 <= -2e+167) {
		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 <= -2e+167:
		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 <= -2e+167)
		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 <= -2e+167)
		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[LessEqual[y, -2e+167], 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 -2 \cdot 10^{+167}:\\
\;\;\;\;\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 < -2.0000000000000001e167

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

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

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

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

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

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

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

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

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

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

    if -2.0000000000000001e167 < y

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2 \cdot 10^{+167}:\\ \;\;\;\;\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 9: 81.9% accurate, 1.5× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < 1.5000000000000001e206

    1. Initial program 98.3%

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

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

    if 1.5000000000000001e206 < 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*100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 10: 74.8% accurate, 1.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -3.5 \cdot 10^{+18}:\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\frac{\frac{{a}^{t}}{a}}{y}}{e^{b}}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= y -3.5e+18)
   (/ (* x (/ (pow z y) a)) y)
   (* x (/ (/ (/ (pow a t) a) y) (exp b)))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (y <= -3.5e+18) {
		tmp = (x * (pow(z, y) / a)) / y;
	} else {
		tmp = x * (((pow(a, t) / a) / y) / exp(b));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: tmp
    if (y <= (-3.5d+18)) then
        tmp = (x * ((z ** y) / a)) / y
    else
        tmp = x * ((((a ** t) / a) / y) / exp(b))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (y <= -3.5e+18) {
		tmp = (x * (Math.pow(z, y) / a)) / y;
	} else {
		tmp = x * (((Math.pow(a, t) / a) / y) / Math.exp(b));
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if y <= -3.5e+18:
		tmp = (x * (math.pow(z, y) / a)) / y
	else:
		tmp = x * (((math.pow(a, t) / a) / y) / math.exp(b))
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (y <= -3.5e+18)
		tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y);
	else
		tmp = Float64(x * Float64(Float64(Float64((a ^ t) / a) / y) / exp(b)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if (y <= -3.5e+18)
		tmp = (x * ((z ^ y) / a)) / y;
	else
		tmp = x * ((((a ^ t) / a) / y) / exp(b));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -3.5e+18], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.5 \cdot 10^{+18}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -3.5e18

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

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

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

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

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

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

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

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

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

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

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

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

    if -3.5e18 < y

    1. Initial program 98.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*98.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.5 \cdot 10^{+18}:\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\frac{\frac{{a}^{t}}{a}}{y}}{e^{b}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 74.6% accurate, 1.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.12 \cdot 10^{+15}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.12e15

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.12e15 < y

    1. Initial program 98.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*98.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 12: 76.7% accurate, 1.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.9 \cdot 10^{+18}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -2.9e18

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.9e18 < y

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

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

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

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

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

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

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

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

Alternative 13: 71.1% accurate, 1.5× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < 5.80000000000000005e197

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

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

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

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

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

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

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

    if 5.80000000000000005e197 < 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*100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 14: 66.9% accurate, 2.8× speedup?

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

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

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


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

    1. Initial program 98.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 1.90000000000000001e-72 < b

    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. Taylor expanded in y around 0 87.2%

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

      \[\leadsto \frac{x \cdot \color{blue}{e^{-1 \cdot \log a - b}}}{y} \]
    5. Step-by-step derivation
      1. sub-neg80.8%

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

        \[\leadsto \frac{x \cdot e^{\color{blue}{\left(-\log a\right)} + \left(-b\right)}}{y} \]
      3. distribute-neg-in80.8%

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

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

        \[\leadsto \frac{x \cdot \color{blue}{\frac{1}{e^{b + \log a}}}}{y} \]
      6. +-commutative80.8%

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

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

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

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

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

Alternative 15: 64.5% accurate, 2.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq 4.8:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < 4.79999999999999982

    1. Initial program 97.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 4.79999999999999982 < t

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto x \cdot \frac{\frac{\frac{\color{blue}{{a}^{t}}}{a}}{y}}{e^{b}} \]
    11. Simplified70.2%

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

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

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

Alternative 16: 69.0% accurate, 2.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq 0.9:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= t 0.9) (/ x (* a (* 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 <= 0.9) {
		tmp = x / (a * (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 <= 0.9d0) then
        tmp = x / (a * (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 <= 0.9) {
		tmp = x / (a * (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 <= 0.9:
		tmp = x / (a * (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 <= 0.9)
		tmp = Float64(x / Float64(a * Float64(y * exp(b))));
	else
		tmp = Float64(x * Float64((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 <= 0.9)
		tmp = x / (a * (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, 0.9], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq 0.9:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < 0.900000000000000022

    1. Initial program 97.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 0.900000000000000022 < t

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 17: 64.0% accurate, 2.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 6.1 \cdot 10^{+137}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= y 6.1e+137) (/ x (* a (* y (exp b)))) (* (/ x a) (/ (pow z y) y))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (y <= 6.1e+137) {
		tmp = x / (a * (y * exp(b)));
	} else {
		tmp = (x / a) * (pow(z, y) / y);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: tmp
    if (y <= 6.1d+137) then
        tmp = x / (a * (y * exp(b)))
    else
        tmp = (x / a) * ((z ** y) / y)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (y <= 6.1e+137) {
		tmp = x / (a * (y * Math.exp(b)));
	} else {
		tmp = (x / a) * (Math.pow(z, y) / y);
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if y <= 6.1e+137:
		tmp = x / (a * (y * math.exp(b)))
	else:
		tmp = (x / a) * (math.pow(z, y) / y)
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (y <= 6.1e+137)
		tmp = Float64(x / Float64(a * Float64(y * exp(b))));
	else
		tmp = Float64(Float64(x / a) * Float64((z ^ y) / y));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if (y <= 6.1e+137)
		tmp = x / (a * (y * exp(b)));
	else
		tmp = (x / a) * ((z ^ y) / y);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, 6.1e+137], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq 6.1 \cdot 10^{+137}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < 6.10000000000000004e137

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 6.10000000000000004e137 < 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*100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 18: 66.9% accurate, 2.8× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < 5.79999999999999999e60

    1. Initial program 98.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 5.79999999999999999e60 < 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 89.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. +-commutative89.1%

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 5.8 \cdot 10^{+60}:\\ \;\;\;\;\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 19: 59.3% 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.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*98.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 20: 45.9% accurate, 12.1× speedup?

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{-\frac{-1 \cdot \frac{x}{y} + \frac{b \cdot x}{y}}{a}} \]
      2. distribute-neg-frac234.5%

        \[\leadsto \color{blue}{\frac{-1 \cdot \frac{x}{y} + \frac{b \cdot x}{y}}{-a}} \]
      3. +-commutative34.5%

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

        \[\leadsto \frac{\color{blue}{b \cdot \frac{x}{y}} + -1 \cdot \frac{x}{y}}{-a} \]
      5. distribute-rgt-out36.6%

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

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

    if 1.79999999999999993e-293 < 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*98.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 21: 45.9% accurate, 13.1× speedup?

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{-\frac{-1 \cdot \frac{x}{y} + \frac{b \cdot x}{y}}{a}} \]
      2. distribute-neg-frac234.5%

        \[\leadsto \color{blue}{\frac{-1 \cdot \frac{x}{y} + \frac{b \cdot x}{y}}{-a}} \]
      3. +-commutative34.5%

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

        \[\leadsto \frac{\color{blue}{b \cdot \frac{x}{y}} + -1 \cdot \frac{x}{y}}{-a} \]
      5. distribute-rgt-out36.6%

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

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

    if 1.54999999999999991e-293 < 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*98.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x}{a \cdot \left(y + b \cdot \left(y + b \cdot \left(\color{blue}{\left(0.16666666666666666 \cdot b\right) \cdot y} + 0.5 \cdot y\right)\right)\right)} \]
      2. distribute-rgt-out56.8%

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

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

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

Alternative 22: 44.0% accurate, 13.1× speedup?

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

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

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


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

    1. Initial program 99.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{b \cdot \frac{x}{y}} + -1 \cdot \frac{x}{y}}{-a} \]
      5. distribute-rgt-out34.7%

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

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

    if -2.79999999999999988e-169 < b

    1. Initial program 97.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{\frac{x}{a}}{\color{blue}{y + b \cdot \left(y + b \cdot \left(0.16666666666666666 \cdot \left(b \cdot y\right) + 0.5 \cdot y\right)\right)}} \]
    16. Step-by-step derivation
      1. associate-*r*52.8%

        \[\leadsto \frac{x}{a \cdot \left(y + b \cdot \left(y + b \cdot \left(\color{blue}{\left(0.16666666666666666 \cdot b\right) \cdot y} + 0.5 \cdot y\right)\right)\right)} \]
      2. distribute-rgt-out52.8%

        \[\leadsto \frac{x}{a \cdot \left(y + b \cdot \left(y + b \cdot \color{blue}{\left(y \cdot \left(0.16666666666666666 \cdot b + 0.5\right)\right)}\right)\right)} \]
    17. Simplified51.6%

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

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

Alternative 23: 39.6% accurate, 15.0× speedup?

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

\\
\frac{x}{y \cdot \left(a + b \cdot \left(a + b \cdot \left(0.16666666666666666 \cdot \left(a \cdot b\right) + a \cdot 0.5\right)\right)\right)}
\end{array}
Derivation
  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*98.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \frac{x}{\color{blue}{a \cdot y + b \cdot \left(a \cdot y + b \cdot \left(0.16666666666666666 \cdot \left(a \cdot \left(b \cdot y\right)\right) + 0.5 \cdot \left(a \cdot y\right)\right)\right)}} \]
  10. Taylor expanded in y around 0 41.7%

    \[\leadsto \color{blue}{\frac{x}{y \cdot \left(a + b \cdot \left(a + b \cdot \left(0.16666666666666666 \cdot \left(a \cdot b\right) + 0.5 \cdot a\right)\right)\right)}} \]
  11. Final simplification41.7%

    \[\leadsto \frac{x}{y \cdot \left(a + b \cdot \left(a + b \cdot \left(0.16666666666666666 \cdot \left(a \cdot b\right) + a \cdot 0.5\right)\right)\right)} \]
  12. Add Preprocessing

Alternative 24: 37.9% accurate, 21.0× speedup?

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

\\
\frac{x}{a \cdot \left(y + b \cdot \left(y \cdot \left(1 + b \cdot 0.5\right)\right)\right)}
\end{array}
Derivation
  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*98.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{x}{a \cdot \left(y + b \cdot \left(y + \color{blue}{\left(0.5 \cdot b\right) \cdot y}\right)\right)} \]
    2. distribute-rgt1-in39.4%

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

    \[\leadsto \frac{x}{a \cdot \color{blue}{\left(y + b \cdot \left(\left(0.5 \cdot b + 1\right) \cdot y\right)\right)}} \]
  12. Final simplification39.4%

    \[\leadsto \frac{x}{a \cdot \left(y + b \cdot \left(y \cdot \left(1 + b \cdot 0.5\right)\right)\right)} \]
  13. Add Preprocessing

Alternative 25: 31.2% accurate, 45.0× speedup?

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

\\
\frac{1}{a \cdot \frac{y}{x}}
\end{array}
Derivation
  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*98.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\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. Step-by-step derivation
    1. clear-num32.7%

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

      \[\leadsto \color{blue}{{\left(\frac{a \cdot y}{x}\right)}^{-1}} \]
  11. Applied egg-rr32.7%

    \[\leadsto \color{blue}{{\left(\frac{a \cdot y}{x}\right)}^{-1}} \]
  12. Step-by-step derivation
    1. unpow-132.7%

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

      \[\leadsto \frac{1}{\color{blue}{a \cdot \frac{y}{x}}} \]
  13. Simplified35.6%

    \[\leadsto \color{blue}{\frac{1}{a \cdot \frac{y}{x}}} \]
  14. Final simplification35.6%

    \[\leadsto \frac{1}{a \cdot \frac{y}{x}} \]
  15. Add Preprocessing

Alternative 26: 31.1% 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.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*98.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 27: 31.0% accurate, 63.0× speedup?

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

\\
\frac{\frac{x}{a}}{y}
\end{array}
Derivation
  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. Add Preprocessing
  3. Taylor expanded in t around 0 78.9%

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \frac{\frac{x}{a}}{y} \]
  11. Add Preprocessing

Developer target: 71.7% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
t_1 := {a}^{\left(t - 1\right)}\\
t_2 := \frac{x \cdot \frac{t\_1}{y}}{\left(b + 1\right) - y \cdot \log z}\\
\mathbf{if}\;t < -0.8845848504127471:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t < 852031.2288374073:\\
\;\;\;\;\frac{\frac{x}{y} \cdot t\_1}{e^{b - \log z \cdot y}}\\

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


\end{array}
\end{array}

Reproduce

?
herbie shell --seed 2024066 
(FPCore (x y z t a b)
  :name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
  :precision binary64

  :alt
  (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))