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

Percentage Accurate: 98.5% → 98.5%
Time: 11.8s
Alternatives: 10
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 10 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.5% 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.5% accurate, 1.0× speedup?

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

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

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

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

Alternative 2: 71.1% accurate, 1.4× speedup?

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

\\
\begin{array}{l}
t_1 := {a}^{\left(t - 1\right)} \cdot x\\
\mathbf{if}\;t \leq -1.3 \cdot 10^{+172}:\\
\;\;\;\;\frac{t\_1}{y}\\

\mathbf{elif}\;t \leq -6.4 \cdot 10^{-156}:\\
\;\;\;\;\frac{--1}{y} \cdot \frac{{z}^{y} \cdot x}{a}\\

\mathbf{elif}\;t \leq 3.8 \cdot 10^{-258}:\\
\;\;\;\;\frac{e^{\left(-\log a\right) - b} \cdot x}{y}\\

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

\mathbf{else}:\\
\;\;\;\;\frac{1}{y} \cdot t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if t < -1.3e172

    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 b around 0

      \[\leadsto \frac{\color{blue}{x \cdot e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
    4. Step-by-step derivation
      1. exp-sumN/A

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

        \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
      3. lower-*.f64N/A

        \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
      4. lower-*.f64N/A

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

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

        \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
      7. lower-pow.f64N/A

        \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
      8. exp-prodN/A

        \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
      9. lower-pow.f64N/A

        \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
      10. rem-exp-logN/A

        \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot {\color{blue}{a}}^{\left(t - 1\right)}}{y} \]
      11. lower--.f6471.6

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

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

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

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

      if -1.3e172 < t < -6.39999999999999964e-156

      1. Initial program 99.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 b around 0

        \[\leadsto \frac{\color{blue}{x \cdot e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
      4. Step-by-step derivation
        1. exp-sumN/A

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

          \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
        3. lower-*.f64N/A

          \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
        4. lower-*.f64N/A

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

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

          \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
        7. lower-pow.f64N/A

          \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
        8. exp-prodN/A

          \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
        9. lower-pow.f64N/A

          \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
        10. rem-exp-logN/A

          \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot {\color{blue}{a}}^{\left(t - 1\right)}}{y} \]
        11. lower--.f6471.5

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

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

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

          \[\leadsto \frac{\frac{{z}^{y} \cdot x}{\color{blue}{a}}}{y} \]
        2. Step-by-step derivation
          1. lift-/.f64N/A

            \[\leadsto \color{blue}{\frac{\frac{{z}^{y} \cdot x}{a}}{y}} \]
          2. frac-2negN/A

            \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(\frac{{z}^{y} \cdot x}{a}\right)}{\mathsf{neg}\left(y\right)}} \]
          3. div-invN/A

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{{z}^{y} \cdot x}{a}\right)\right) \cdot \frac{1}{\mathsf{neg}\left(y\right)}} \]
          4. lower-*.f64N/A

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{{z}^{y} \cdot x}{a}\right)\right) \cdot \frac{1}{\mathsf{neg}\left(y\right)}} \]
        3. Applied rewrites77.7%

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

        if -6.39999999999999964e-156 < t < 3.7999999999999998e-258

        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

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

            \[\leadsto \frac{x \cdot e^{\color{blue}{\left(t - 1\right) \cdot \log a} - b}}{y} \]
          2. lower-*.f64N/A

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

            \[\leadsto \frac{x \cdot e^{\color{blue}{\left(t - 1\right)} \cdot \log a - b}}{y} \]
          4. rem-exp-logN/A

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

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

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

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

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

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

          if 3.7999999999999998e-258 < t < 7.99999999999999955e58

          1. Initial program 97.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 b around 0

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

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

              \[\leadsto \frac{x \cdot e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}{y} + \color{blue}{\left(\mathsf{neg}\left(\frac{b \cdot \left(x \cdot e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}\right)}{y}\right)\right)} \]
            3. unsub-negN/A

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

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

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

              \[\leadsto x \cdot \frac{e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}{y} - \color{blue}{\left(b \cdot x\right) \cdot \frac{e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}{y}} \]
            7. distribute-rgt-out--N/A

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

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

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

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

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

            if 7.99999999999999955e58 < t

            1. Initial program 100.0%

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

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

                \[\leadsto \frac{x \cdot e^{\color{blue}{\left(t - 1\right) \cdot \log a} - b}}{y} \]
              2. lower-*.f64N/A

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

                \[\leadsto \frac{x \cdot e^{\color{blue}{\left(t - 1\right)} \cdot \log a - b}}{y} \]
              4. rem-exp-logN/A

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

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

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

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

              \[\leadsto \color{blue}{\frac{x \cdot e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}{y}} \]
            7. Step-by-step derivation
              1. +-commutativeN/A

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

                \[\leadsto \frac{x \cdot \color{blue}{\left(e^{\log a \cdot \left(t - 1\right)} \cdot e^{y \cdot \log z}\right)}}{y} \]
              3. *-commutativeN/A

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

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

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

                \[\leadsto \color{blue}{\left(x \cdot e^{\log a \cdot \left(t - 1\right)}\right) \cdot \frac{{z}^{y}}{y}} \]
              7. lower-*.f64N/A

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

                \[\leadsto \color{blue}{\left(e^{\log a \cdot \left(t - 1\right)} \cdot x\right)} \cdot \frac{{z}^{y}}{y} \]
              9. lower-*.f64N/A

                \[\leadsto \color{blue}{\left(e^{\log a \cdot \left(t - 1\right)} \cdot x\right)} \cdot \frac{{z}^{y}}{y} \]
              10. exp-to-powN/A

                \[\leadsto \left(\color{blue}{{a}^{\left(t - 1\right)}} \cdot x\right) \cdot \frac{{z}^{y}}{y} \]
              11. lower-pow.f64N/A

                \[\leadsto \left(\color{blue}{{a}^{\left(t - 1\right)}} \cdot x\right) \cdot \frac{{z}^{y}}{y} \]
              12. lower--.f64N/A

                \[\leadsto \left({a}^{\color{blue}{\left(t - 1\right)}} \cdot x\right) \cdot \frac{{z}^{y}}{y} \]
              13. lower-/.f64N/A

                \[\leadsto \left({a}^{\left(t - 1\right)} \cdot x\right) \cdot \color{blue}{\frac{{z}^{y}}{y}} \]
              14. lower-pow.f6467.3

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

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

              \[\leadsto \left({a}^{\left(t - 1\right)} \cdot x\right) \cdot \frac{1}{y} \]
            10. Step-by-step derivation
              1. Applied rewrites84.7%

                \[\leadsto \left({a}^{\left(t - 1\right)} \cdot x\right) \cdot \frac{1}{y} \]
            11. Recombined 5 regimes into one program.
            12. Final simplification82.5%

              \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.3 \cdot 10^{+172}:\\ \;\;\;\;\frac{{a}^{\left(t - 1\right)} \cdot x}{y}\\ \mathbf{elif}\;t \leq -6.4 \cdot 10^{-156}:\\ \;\;\;\;\frac{--1}{y} \cdot \frac{{z}^{y} \cdot x}{a}\\ \mathbf{elif}\;t \leq 3.8 \cdot 10^{-258}:\\ \;\;\;\;\frac{e^{\left(-\log a\right) - b} \cdot x}{y}\\ \mathbf{elif}\;t \leq 8 \cdot 10^{+58}:\\ \;\;\;\;\frac{{z}^{y}}{a} \cdot \frac{x - b \cdot x}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{y} \cdot \left({a}^{\left(t - 1\right)} \cdot x\right)\\ \end{array} \]
            13. Add Preprocessing

            Alternative 3: 89.1% accurate, 1.4× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\frac{{z}^{y} \cdot x}{a}}{y}\\ \mathbf{if}\;y \leq -3.9 \cdot 10^{+112}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 2.2 \cdot 10^{+48}:\\ \;\;\;\;\frac{e^{\log a \cdot \left(t - 1\right) - b} \cdot x}{y}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (let* ((t_1 (/ (/ (* (pow z y) x) a) y)))
               (if (<= y -3.9e+112)
                 t_1
                 (if (<= y 2.2e+48) (/ (* (exp (- (* (log a) (- t 1.0)) b)) x) y) t_1))))
            double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = ((pow(z, y) * x) / a) / y;
            	double tmp;
            	if (y <= -3.9e+112) {
            		tmp = t_1;
            	} else if (y <= 2.2e+48) {
            		tmp = (exp(((log(a) * (t - 1.0)) - b)) * x) / y;
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            real(8) function code(x, y, z, t, a, b)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                real(8), intent (in) :: z
                real(8), intent (in) :: t
                real(8), intent (in) :: a
                real(8), intent (in) :: b
                real(8) :: t_1
                real(8) :: tmp
                t_1 = (((z ** y) * x) / a) / y
                if (y <= (-3.9d+112)) then
                    tmp = t_1
                else if (y <= 2.2d+48) then
                    tmp = (exp(((log(a) * (t - 1.0d0)) - b)) * x) / y
                else
                    tmp = t_1
                end if
                code = tmp
            end function
            
            public static double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = ((Math.pow(z, y) * x) / a) / y;
            	double tmp;
            	if (y <= -3.9e+112) {
            		tmp = t_1;
            	} else if (y <= 2.2e+48) {
            		tmp = (Math.exp(((Math.log(a) * (t - 1.0)) - b)) * x) / y;
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t, a, b):
            	t_1 = ((math.pow(z, y) * x) / a) / y
            	tmp = 0
            	if y <= -3.9e+112:
            		tmp = t_1
            	elif y <= 2.2e+48:
            		tmp = (math.exp(((math.log(a) * (t - 1.0)) - b)) * x) / y
            	else:
            		tmp = t_1
            	return tmp
            
            function code(x, y, z, t, a, b)
            	t_1 = Float64(Float64(Float64((z ^ y) * x) / a) / y)
            	tmp = 0.0
            	if (y <= -3.9e+112)
            		tmp = t_1;
            	elseif (y <= 2.2e+48)
            		tmp = Float64(Float64(exp(Float64(Float64(log(a) * Float64(t - 1.0)) - b)) * x) / y);
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t, a, b)
            	t_1 = (((z ^ y) * x) / a) / y;
            	tmp = 0.0;
            	if (y <= -3.9e+112)
            		tmp = t_1;
            	elseif (y <= 2.2e+48)
            		tmp = (exp(((log(a) * (t - 1.0)) - b)) * x) / y;
            	else
            		tmp = t_1;
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(N[Power[z, y], $MachinePrecision] * x), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -3.9e+112], t$95$1, If[LessEqual[y, 2.2e+48], N[(N[(N[Exp[N[(N[(N[Log[a], $MachinePrecision] * N[(t - 1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \frac{\frac{{z}^{y} \cdot x}{a}}{y}\\
            \mathbf{if}\;y \leq -3.9 \cdot 10^{+112}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;y \leq 2.2 \cdot 10^{+48}:\\
            \;\;\;\;\frac{e^{\log a \cdot \left(t - 1\right) - b} \cdot x}{y}\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if y < -3.89999999999999968e112 or 2.1999999999999999e48 < 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 b around 0

                \[\leadsto \frac{\color{blue}{x \cdot e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
              4. Step-by-step derivation
                1. exp-sumN/A

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

                  \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                3. lower-*.f64N/A

                  \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                4. lower-*.f64N/A

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

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

                  \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                7. lower-pow.f64N/A

                  \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                8. exp-prodN/A

                  \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                9. lower-pow.f64N/A

                  \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                10. rem-exp-logN/A

                  \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot {\color{blue}{a}}^{\left(t - 1\right)}}{y} \]
                11. lower--.f6466.3

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

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

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

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

                if -3.89999999999999968e112 < y < 2.1999999999999999e48

                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

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

                    \[\leadsto \frac{x \cdot e^{\color{blue}{\left(t - 1\right) \cdot \log a} - b}}{y} \]
                  2. lower-*.f64N/A

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

                    \[\leadsto \frac{x \cdot e^{\color{blue}{\left(t - 1\right)} \cdot \log a - b}}{y} \]
                  4. rem-exp-logN/A

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

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

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

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

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

              Alternative 4: 82.4% accurate, 1.4× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\frac{{z}^{y} \cdot x}{a}}{y}\\ \mathbf{if}\;y \leq -92:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 190000000:\\ \;\;\;\;\frac{{a}^{\left(t - 1\right)}}{e^{b} \cdot y} \cdot x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
              (FPCore (x y z t a b)
               :precision binary64
               (let* ((t_1 (/ (/ (* (pow z y) x) a) y)))
                 (if (<= y -92.0)
                   t_1
                   (if (<= y 190000000.0) (* (/ (pow a (- t 1.0)) (* (exp b) y)) x) t_1))))
              double code(double x, double y, double z, double t, double a, double b) {
              	double t_1 = ((pow(z, y) * x) / a) / y;
              	double tmp;
              	if (y <= -92.0) {
              		tmp = t_1;
              	} else if (y <= 190000000.0) {
              		tmp = (pow(a, (t - 1.0)) / (exp(b) * y)) * x;
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              real(8) function code(x, y, z, t, a, b)
                  real(8), intent (in) :: x
                  real(8), intent (in) :: y
                  real(8), intent (in) :: z
                  real(8), intent (in) :: t
                  real(8), intent (in) :: a
                  real(8), intent (in) :: b
                  real(8) :: t_1
                  real(8) :: tmp
                  t_1 = (((z ** y) * x) / a) / y
                  if (y <= (-92.0d0)) then
                      tmp = t_1
                  else if (y <= 190000000.0d0) then
                      tmp = ((a ** (t - 1.0d0)) / (exp(b) * y)) * x
                  else
                      tmp = t_1
                  end if
                  code = tmp
              end function
              
              public static double code(double x, double y, double z, double t, double a, double b) {
              	double t_1 = ((Math.pow(z, y) * x) / a) / y;
              	double tmp;
              	if (y <= -92.0) {
              		tmp = t_1;
              	} else if (y <= 190000000.0) {
              		tmp = (Math.pow(a, (t - 1.0)) / (Math.exp(b) * y)) * x;
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              def code(x, y, z, t, a, b):
              	t_1 = ((math.pow(z, y) * x) / a) / y
              	tmp = 0
              	if y <= -92.0:
              		tmp = t_1
              	elif y <= 190000000.0:
              		tmp = (math.pow(a, (t - 1.0)) / (math.exp(b) * y)) * x
              	else:
              		tmp = t_1
              	return tmp
              
              function code(x, y, z, t, a, b)
              	t_1 = Float64(Float64(Float64((z ^ y) * x) / a) / y)
              	tmp = 0.0
              	if (y <= -92.0)
              		tmp = t_1;
              	elseif (y <= 190000000.0)
              		tmp = Float64(Float64((a ^ Float64(t - 1.0)) / Float64(exp(b) * y)) * x);
              	else
              		tmp = t_1;
              	end
              	return tmp
              end
              
              function tmp_2 = code(x, y, z, t, a, b)
              	t_1 = (((z ^ y) * x) / a) / y;
              	tmp = 0.0;
              	if (y <= -92.0)
              		tmp = t_1;
              	elseif (y <= 190000000.0)
              		tmp = ((a ^ (t - 1.0)) / (exp(b) * y)) * x;
              	else
              		tmp = t_1;
              	end
              	tmp_2 = tmp;
              end
              
              code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(N[Power[z, y], $MachinePrecision] * x), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -92.0], t$95$1, If[LessEqual[y, 190000000.0], N[(N[(N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision] / N[(N[Exp[b], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := \frac{\frac{{z}^{y} \cdot x}{a}}{y}\\
              \mathbf{if}\;y \leq -92:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;y \leq 190000000:\\
              \;\;\;\;\frac{{a}^{\left(t - 1\right)}}{e^{b} \cdot y} \cdot x\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if y < -92 or 1.9e8 < 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 b around 0

                  \[\leadsto \frac{\color{blue}{x \cdot e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
                4. Step-by-step derivation
                  1. exp-sumN/A

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

                    \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                  3. lower-*.f64N/A

                    \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                  4. lower-*.f64N/A

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

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

                    \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                  7. lower-pow.f64N/A

                    \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                  8. exp-prodN/A

                    \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                  9. lower-pow.f64N/A

                    \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                  10. rem-exp-logN/A

                    \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot {\color{blue}{a}}^{\left(t - 1\right)}}{y} \]
                  11. lower--.f6467.5

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

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

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

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

                  if -92 < y < 1.9e8

                  1. Initial program 97.7%

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

                    \[\leadsto \frac{x \cdot e^{\color{blue}{-1 \cdot b}}}{y} \]
                  4. Step-by-step derivation
                    1. mul-1-negN/A

                      \[\leadsto \frac{x \cdot e^{\color{blue}{\mathsf{neg}\left(b\right)}}}{y} \]
                    2. lower-neg.f6455.7

                      \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
                  5. Applied rewrites55.7%

                    \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
                  6. Step-by-step derivation
                    1. lift-/.f64N/A

                      \[\leadsto \color{blue}{\frac{x \cdot e^{-b}}{y}} \]
                    2. lift-*.f64N/A

                      \[\leadsto \frac{\color{blue}{x \cdot e^{-b}}}{y} \]
                    3. associate-/l*N/A

                      \[\leadsto \color{blue}{x \cdot \frac{e^{-b}}{y}} \]
                    4. *-commutativeN/A

                      \[\leadsto \color{blue}{\frac{e^{-b}}{y} \cdot x} \]
                    5. lower-*.f64N/A

                      \[\leadsto \color{blue}{\frac{e^{-b}}{y} \cdot x} \]
                    6. lower-/.f6455.7

                      \[\leadsto \color{blue}{\frac{e^{-b}}{y}} \cdot x \]
                  7. Applied rewrites55.7%

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

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

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

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

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

                      \[\leadsto \frac{\color{blue}{{a}^{\left(t - 1\right)}}}{y \cdot e^{b}} \cdot x \]
                    5. lower-pow.f64N/A

                      \[\leadsto \frac{\color{blue}{{a}^{\left(t - 1\right)}}}{y \cdot e^{b}} \cdot x \]
                    6. lower--.f64N/A

                      \[\leadsto \frac{{a}^{\color{blue}{\left(t - 1\right)}}}{y \cdot e^{b}} \cdot x \]
                    7. lower-*.f64N/A

                      \[\leadsto \frac{{a}^{\left(t - 1\right)}}{\color{blue}{y \cdot e^{b}}} \cdot x \]
                    8. lower-exp.f6483.4

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

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

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

                Alternative 5: 71.1% accurate, 2.2× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := {a}^{\left(t - 1\right)} \cdot x\\ \mathbf{if}\;t \leq -1.3 \cdot 10^{+172}:\\ \;\;\;\;\frac{t\_1}{y}\\ \mathbf{elif}\;t \leq -1.65 \cdot 10^{-301}:\\ \;\;\;\;\frac{\frac{{z}^{y} \cdot x}{a}}{y}\\ \mathbf{elif}\;t \leq 8 \cdot 10^{+58}:\\ \;\;\;\;\frac{{z}^{y}}{a} \cdot \frac{x - b \cdot x}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{y} \cdot t\_1\\ \end{array} \end{array} \]
                (FPCore (x y z t a b)
                 :precision binary64
                 (let* ((t_1 (* (pow a (- t 1.0)) x)))
                   (if (<= t -1.3e+172)
                     (/ t_1 y)
                     (if (<= t -1.65e-301)
                       (/ (/ (* (pow z y) x) a) y)
                       (if (<= t 8e+58)
                         (* (/ (pow z y) a) (/ (- x (* b x)) y))
                         (* (/ 1.0 y) t_1))))))
                double code(double x, double y, double z, double t, double a, double b) {
                	double t_1 = pow(a, (t - 1.0)) * x;
                	double tmp;
                	if (t <= -1.3e+172) {
                		tmp = t_1 / y;
                	} else if (t <= -1.65e-301) {
                		tmp = ((pow(z, y) * x) / a) / y;
                	} else if (t <= 8e+58) {
                		tmp = (pow(z, y) / a) * ((x - (b * x)) / y);
                	} else {
                		tmp = (1.0 / y) * t_1;
                	}
                	return tmp;
                }
                
                real(8) function code(x, y, z, t, a, b)
                    real(8), intent (in) :: x
                    real(8), intent (in) :: y
                    real(8), intent (in) :: z
                    real(8), intent (in) :: t
                    real(8), intent (in) :: a
                    real(8), intent (in) :: b
                    real(8) :: t_1
                    real(8) :: tmp
                    t_1 = (a ** (t - 1.0d0)) * x
                    if (t <= (-1.3d+172)) then
                        tmp = t_1 / y
                    else if (t <= (-1.65d-301)) then
                        tmp = (((z ** y) * x) / a) / y
                    else if (t <= 8d+58) then
                        tmp = ((z ** y) / a) * ((x - (b * x)) / y)
                    else
                        tmp = (1.0d0 / y) * t_1
                    end if
                    code = tmp
                end function
                
                public static double code(double x, double y, double z, double t, double a, double b) {
                	double t_1 = Math.pow(a, (t - 1.0)) * x;
                	double tmp;
                	if (t <= -1.3e+172) {
                		tmp = t_1 / y;
                	} else if (t <= -1.65e-301) {
                		tmp = ((Math.pow(z, y) * x) / a) / y;
                	} else if (t <= 8e+58) {
                		tmp = (Math.pow(z, y) / a) * ((x - (b * x)) / y);
                	} else {
                		tmp = (1.0 / y) * t_1;
                	}
                	return tmp;
                }
                
                def code(x, y, z, t, a, b):
                	t_1 = math.pow(a, (t - 1.0)) * x
                	tmp = 0
                	if t <= -1.3e+172:
                		tmp = t_1 / y
                	elif t <= -1.65e-301:
                		tmp = ((math.pow(z, y) * x) / a) / y
                	elif t <= 8e+58:
                		tmp = (math.pow(z, y) / a) * ((x - (b * x)) / y)
                	else:
                		tmp = (1.0 / y) * t_1
                	return tmp
                
                function code(x, y, z, t, a, b)
                	t_1 = Float64((a ^ Float64(t - 1.0)) * x)
                	tmp = 0.0
                	if (t <= -1.3e+172)
                		tmp = Float64(t_1 / y);
                	elseif (t <= -1.65e-301)
                		tmp = Float64(Float64(Float64((z ^ y) * x) / a) / y);
                	elseif (t <= 8e+58)
                		tmp = Float64(Float64((z ^ y) / a) * Float64(Float64(x - Float64(b * x)) / y));
                	else
                		tmp = Float64(Float64(1.0 / y) * t_1);
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t, a, b)
                	t_1 = (a ^ (t - 1.0)) * x;
                	tmp = 0.0;
                	if (t <= -1.3e+172)
                		tmp = t_1 / y;
                	elseif (t <= -1.65e-301)
                		tmp = (((z ^ y) * x) / a) / y;
                	elseif (t <= 8e+58)
                		tmp = ((z ^ y) / a) * ((x - (b * x)) / y);
                	else
                		tmp = (1.0 / y) * t_1;
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[t, -1.3e+172], N[(t$95$1 / y), $MachinePrecision], If[LessEqual[t, -1.65e-301], N[(N[(N[(N[Power[z, y], $MachinePrecision] * x), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t, 8e+58], N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] * N[(N[(x - N[(b * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / y), $MachinePrecision] * t$95$1), $MachinePrecision]]]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := {a}^{\left(t - 1\right)} \cdot x\\
                \mathbf{if}\;t \leq -1.3 \cdot 10^{+172}:\\
                \;\;\;\;\frac{t\_1}{y}\\
                
                \mathbf{elif}\;t \leq -1.65 \cdot 10^{-301}:\\
                \;\;\;\;\frac{\frac{{z}^{y} \cdot x}{a}}{y}\\
                
                \mathbf{elif}\;t \leq 8 \cdot 10^{+58}:\\
                \;\;\;\;\frac{{z}^{y}}{a} \cdot \frac{x - b \cdot x}{y}\\
                
                \mathbf{else}:\\
                \;\;\;\;\frac{1}{y} \cdot t\_1\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 4 regimes
                2. if t < -1.3e172

                  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 b around 0

                    \[\leadsto \frac{\color{blue}{x \cdot e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
                  4. Step-by-step derivation
                    1. exp-sumN/A

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

                      \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                    3. lower-*.f64N/A

                      \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                    4. lower-*.f64N/A

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

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

                      \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                    7. lower-pow.f64N/A

                      \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                    8. exp-prodN/A

                      \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                    9. lower-pow.f64N/A

                      \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                    10. rem-exp-logN/A

                      \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot {\color{blue}{a}}^{\left(t - 1\right)}}{y} \]
                    11. lower--.f6471.6

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

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

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

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

                    if -1.3e172 < t < -1.65e-301

                    1. Initial program 99.0%

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

                      \[\leadsto \frac{\color{blue}{x \cdot e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
                    4. Step-by-step derivation
                      1. exp-sumN/A

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

                        \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                      3. lower-*.f64N/A

                        \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                      4. lower-*.f64N/A

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

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

                        \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                      7. lower-pow.f64N/A

                        \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                      8. exp-prodN/A

                        \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                      9. lower-pow.f64N/A

                        \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                      10. rem-exp-logN/A

                        \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot {\color{blue}{a}}^{\left(t - 1\right)}}{y} \]
                      11. lower--.f6468.5

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

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

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

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

                      if -1.65e-301 < t < 7.99999999999999955e58

                      1. Initial program 97.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 b around 0

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

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

                          \[\leadsto \frac{x \cdot e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}{y} + \color{blue}{\left(\mathsf{neg}\left(\frac{b \cdot \left(x \cdot e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}\right)}{y}\right)\right)} \]
                        3. unsub-negN/A

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

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

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

                          \[\leadsto x \cdot \frac{e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}{y} - \color{blue}{\left(b \cdot x\right) \cdot \frac{e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}{y}} \]
                        7. distribute-rgt-out--N/A

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

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

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

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

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

                        if 7.99999999999999955e58 < t

                        1. Initial program 100.0%

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

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

                            \[\leadsto \frac{x \cdot e^{\color{blue}{\left(t - 1\right) \cdot \log a} - b}}{y} \]
                          2. lower-*.f64N/A

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

                            \[\leadsto \frac{x \cdot e^{\color{blue}{\left(t - 1\right)} \cdot \log a - b}}{y} \]
                          4. rem-exp-logN/A

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

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

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

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

                          \[\leadsto \color{blue}{\frac{x \cdot e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}{y}} \]
                        7. Step-by-step derivation
                          1. +-commutativeN/A

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

                            \[\leadsto \frac{x \cdot \color{blue}{\left(e^{\log a \cdot \left(t - 1\right)} \cdot e^{y \cdot \log z}\right)}}{y} \]
                          3. *-commutativeN/A

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

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

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

                            \[\leadsto \color{blue}{\left(x \cdot e^{\log a \cdot \left(t - 1\right)}\right) \cdot \frac{{z}^{y}}{y}} \]
                          7. lower-*.f64N/A

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

                            \[\leadsto \color{blue}{\left(e^{\log a \cdot \left(t - 1\right)} \cdot x\right)} \cdot \frac{{z}^{y}}{y} \]
                          9. lower-*.f64N/A

                            \[\leadsto \color{blue}{\left(e^{\log a \cdot \left(t - 1\right)} \cdot x\right)} \cdot \frac{{z}^{y}}{y} \]
                          10. exp-to-powN/A

                            \[\leadsto \left(\color{blue}{{a}^{\left(t - 1\right)}} \cdot x\right) \cdot \frac{{z}^{y}}{y} \]
                          11. lower-pow.f64N/A

                            \[\leadsto \left(\color{blue}{{a}^{\left(t - 1\right)}} \cdot x\right) \cdot \frac{{z}^{y}}{y} \]
                          12. lower--.f64N/A

                            \[\leadsto \left({a}^{\color{blue}{\left(t - 1\right)}} \cdot x\right) \cdot \frac{{z}^{y}}{y} \]
                          13. lower-/.f64N/A

                            \[\leadsto \left({a}^{\left(t - 1\right)} \cdot x\right) \cdot \color{blue}{\frac{{z}^{y}}{y}} \]
                          14. lower-pow.f6467.3

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

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

                          \[\leadsto \left({a}^{\left(t - 1\right)} \cdot x\right) \cdot \frac{1}{y} \]
                        10. Step-by-step derivation
                          1. Applied rewrites84.7%

                            \[\leadsto \left({a}^{\left(t - 1\right)} \cdot x\right) \cdot \frac{1}{y} \]
                        11. Recombined 4 regimes into one program.
                        12. Final simplification80.1%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.3 \cdot 10^{+172}:\\ \;\;\;\;\frac{{a}^{\left(t - 1\right)} \cdot x}{y}\\ \mathbf{elif}\;t \leq -1.65 \cdot 10^{-301}:\\ \;\;\;\;\frac{\frac{{z}^{y} \cdot x}{a}}{y}\\ \mathbf{elif}\;t \leq 8 \cdot 10^{+58}:\\ \;\;\;\;\frac{{z}^{y}}{a} \cdot \frac{x - b \cdot x}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{y} \cdot \left({a}^{\left(t - 1\right)} \cdot x\right)\\ \end{array} \]
                        13. Add Preprocessing

                        Alternative 6: 72.6% accurate, 2.3× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := {a}^{\left(t - 1\right)} \cdot x\\ \mathbf{if}\;t - 1 \leq -1.0000002:\\ \;\;\;\;\frac{1}{y} \cdot t\_1\\ \mathbf{elif}\;t - 1 \leq 5 \cdot 10^{+29}:\\ \;\;\;\;\frac{\frac{x}{a} \cdot {z}^{y}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{t\_1}{y}\\ \end{array} \end{array} \]
                        (FPCore (x y z t a b)
                         :precision binary64
                         (let* ((t_1 (* (pow a (- t 1.0)) x)))
                           (if (<= (- t 1.0) -1.0000002)
                             (* (/ 1.0 y) t_1)
                             (if (<= (- t 1.0) 5e+29) (/ (* (/ x a) (pow z y)) y) (/ t_1 y)))))
                        double code(double x, double y, double z, double t, double a, double b) {
                        	double t_1 = pow(a, (t - 1.0)) * x;
                        	double tmp;
                        	if ((t - 1.0) <= -1.0000002) {
                        		tmp = (1.0 / y) * t_1;
                        	} else if ((t - 1.0) <= 5e+29) {
                        		tmp = ((x / a) * pow(z, y)) / y;
                        	} else {
                        		tmp = t_1 / y;
                        	}
                        	return tmp;
                        }
                        
                        real(8) function code(x, y, z, t, a, b)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            real(8), intent (in) :: z
                            real(8), intent (in) :: t
                            real(8), intent (in) :: a
                            real(8), intent (in) :: b
                            real(8) :: t_1
                            real(8) :: tmp
                            t_1 = (a ** (t - 1.0d0)) * x
                            if ((t - 1.0d0) <= (-1.0000002d0)) then
                                tmp = (1.0d0 / y) * t_1
                            else if ((t - 1.0d0) <= 5d+29) then
                                tmp = ((x / a) * (z ** y)) / y
                            else
                                tmp = t_1 / y
                            end if
                            code = tmp
                        end function
                        
                        public static double code(double x, double y, double z, double t, double a, double b) {
                        	double t_1 = Math.pow(a, (t - 1.0)) * x;
                        	double tmp;
                        	if ((t - 1.0) <= -1.0000002) {
                        		tmp = (1.0 / y) * t_1;
                        	} else if ((t - 1.0) <= 5e+29) {
                        		tmp = ((x / a) * Math.pow(z, y)) / y;
                        	} else {
                        		tmp = t_1 / y;
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y, z, t, a, b):
                        	t_1 = math.pow(a, (t - 1.0)) * x
                        	tmp = 0
                        	if (t - 1.0) <= -1.0000002:
                        		tmp = (1.0 / y) * t_1
                        	elif (t - 1.0) <= 5e+29:
                        		tmp = ((x / a) * math.pow(z, y)) / y
                        	else:
                        		tmp = t_1 / y
                        	return tmp
                        
                        function code(x, y, z, t, a, b)
                        	t_1 = Float64((a ^ Float64(t - 1.0)) * x)
                        	tmp = 0.0
                        	if (Float64(t - 1.0) <= -1.0000002)
                        		tmp = Float64(Float64(1.0 / y) * t_1);
                        	elseif (Float64(t - 1.0) <= 5e+29)
                        		tmp = Float64(Float64(Float64(x / a) * (z ^ y)) / y);
                        	else
                        		tmp = Float64(t_1 / y);
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(x, y, z, t, a, b)
                        	t_1 = (a ^ (t - 1.0)) * x;
                        	tmp = 0.0;
                        	if ((t - 1.0) <= -1.0000002)
                        		tmp = (1.0 / y) * t_1;
                        	elseif ((t - 1.0) <= 5e+29)
                        		tmp = ((x / a) * (z ^ y)) / y;
                        	else
                        		tmp = t_1 / y;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[N[(t - 1.0), $MachinePrecision], -1.0000002], N[(N[(1.0 / y), $MachinePrecision] * t$95$1), $MachinePrecision], If[LessEqual[N[(t - 1.0), $MachinePrecision], 5e+29], N[(N[(N[(x / a), $MachinePrecision] * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(t$95$1 / y), $MachinePrecision]]]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        t_1 := {a}^{\left(t - 1\right)} \cdot x\\
                        \mathbf{if}\;t - 1 \leq -1.0000002:\\
                        \;\;\;\;\frac{1}{y} \cdot t\_1\\
                        
                        \mathbf{elif}\;t - 1 \leq 5 \cdot 10^{+29}:\\
                        \;\;\;\;\frac{\frac{x}{a} \cdot {z}^{y}}{y}\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;\frac{t\_1}{y}\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 3 regimes
                        2. if (-.f64 t #s(literal 1 binary64)) < -1.00000019999999989

                          1. Initial program 99.9%

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

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

                              \[\leadsto \frac{x \cdot e^{\color{blue}{\left(t - 1\right) \cdot \log a} - b}}{y} \]
                            2. lower-*.f64N/A

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

                              \[\leadsto \frac{x \cdot e^{\color{blue}{\left(t - 1\right)} \cdot \log a - b}}{y} \]
                            4. rem-exp-logN/A

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

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

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

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

                            \[\leadsto \color{blue}{\frac{x \cdot e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}{y}} \]
                          7. Step-by-step derivation
                            1. +-commutativeN/A

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

                              \[\leadsto \frac{x \cdot \color{blue}{\left(e^{\log a \cdot \left(t - 1\right)} \cdot e^{y \cdot \log z}\right)}}{y} \]
                            3. *-commutativeN/A

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

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

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

                              \[\leadsto \color{blue}{\left(x \cdot e^{\log a \cdot \left(t - 1\right)}\right) \cdot \frac{{z}^{y}}{y}} \]
                            7. lower-*.f64N/A

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

                              \[\leadsto \color{blue}{\left(e^{\log a \cdot \left(t - 1\right)} \cdot x\right)} \cdot \frac{{z}^{y}}{y} \]
                            9. lower-*.f64N/A

                              \[\leadsto \color{blue}{\left(e^{\log a \cdot \left(t - 1\right)} \cdot x\right)} \cdot \frac{{z}^{y}}{y} \]
                            10. exp-to-powN/A

                              \[\leadsto \left(\color{blue}{{a}^{\left(t - 1\right)}} \cdot x\right) \cdot \frac{{z}^{y}}{y} \]
                            11. lower-pow.f64N/A

                              \[\leadsto \left(\color{blue}{{a}^{\left(t - 1\right)}} \cdot x\right) \cdot \frac{{z}^{y}}{y} \]
                            12. lower--.f64N/A

                              \[\leadsto \left({a}^{\color{blue}{\left(t - 1\right)}} \cdot x\right) \cdot \frac{{z}^{y}}{y} \]
                            13. lower-/.f64N/A

                              \[\leadsto \left({a}^{\left(t - 1\right)} \cdot x\right) \cdot \color{blue}{\frac{{z}^{y}}{y}} \]
                            14. lower-pow.f6464.3

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

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

                            \[\leadsto \left({a}^{\left(t - 1\right)} \cdot x\right) \cdot \frac{1}{y} \]
                          10. Step-by-step derivation
                            1. Applied rewrites76.0%

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

                            if -1.00000019999999989 < (-.f64 t #s(literal 1 binary64)) < 5.0000000000000001e29

                            1. Initial program 97.7%

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

                              \[\leadsto \frac{\color{blue}{x \cdot e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
                            4. Step-by-step derivation
                              1. exp-sumN/A

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

                                \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                              3. lower-*.f64N/A

                                \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                              4. lower-*.f64N/A

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

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

                                \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                              7. lower-pow.f64N/A

                                \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                              8. exp-prodN/A

                                \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                              9. lower-pow.f64N/A

                                \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                              10. rem-exp-logN/A

                                \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot {\color{blue}{a}}^{\left(t - 1\right)}}{y} \]
                              11. lower--.f6474.2

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

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

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

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

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

                                if 5.0000000000000001e29 < (-.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 b around 0

                                  \[\leadsto \frac{\color{blue}{x \cdot e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
                                4. Step-by-step derivation
                                  1. exp-sumN/A

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

                                    \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                                  3. lower-*.f64N/A

                                    \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                                  4. lower-*.f64N/A

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

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

                                    \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                                  7. lower-pow.f64N/A

                                    \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                                  8. exp-prodN/A

                                    \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                                  9. lower-pow.f64N/A

                                    \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                                  10. rem-exp-logN/A

                                    \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot {\color{blue}{a}}^{\left(t - 1\right)}}{y} \]
                                  11. lower--.f6466.2

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

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

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

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

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

                                Alternative 7: 73.3% accurate, 2.4× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{{a}^{\left(t - 1\right)} \cdot x}{y}\\ \mathbf{if}\;t \leq -1.3 \cdot 10^{+172}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 3.5 \cdot 10^{+30}:\\ \;\;\;\;\frac{\frac{{z}^{y} \cdot x}{a}}{y}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                (FPCore (x y z t a b)
                                 :precision binary64
                                 (let* ((t_1 (/ (* (pow a (- t 1.0)) x) y)))
                                   (if (<= t -1.3e+172)
                                     t_1
                                     (if (<= t 3.5e+30) (/ (/ (* (pow z y) x) a) y) t_1))))
                                double code(double x, double y, double z, double t, double a, double b) {
                                	double t_1 = (pow(a, (t - 1.0)) * x) / y;
                                	double tmp;
                                	if (t <= -1.3e+172) {
                                		tmp = t_1;
                                	} else if (t <= 3.5e+30) {
                                		tmp = ((pow(z, y) * x) / a) / y;
                                	} else {
                                		tmp = t_1;
                                	}
                                	return tmp;
                                }
                                
                                real(8) function code(x, y, z, t, a, b)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    real(8), intent (in) :: z
                                    real(8), intent (in) :: t
                                    real(8), intent (in) :: a
                                    real(8), intent (in) :: b
                                    real(8) :: t_1
                                    real(8) :: tmp
                                    t_1 = ((a ** (t - 1.0d0)) * x) / y
                                    if (t <= (-1.3d+172)) then
                                        tmp = t_1
                                    else if (t <= 3.5d+30) then
                                        tmp = (((z ** y) * x) / a) / y
                                    else
                                        tmp = t_1
                                    end if
                                    code = tmp
                                end function
                                
                                public static double code(double x, double y, double z, double t, double a, double b) {
                                	double t_1 = (Math.pow(a, (t - 1.0)) * x) / y;
                                	double tmp;
                                	if (t <= -1.3e+172) {
                                		tmp = t_1;
                                	} else if (t <= 3.5e+30) {
                                		tmp = ((Math.pow(z, y) * x) / a) / y;
                                	} else {
                                		tmp = t_1;
                                	}
                                	return tmp;
                                }
                                
                                def code(x, y, z, t, a, b):
                                	t_1 = (math.pow(a, (t - 1.0)) * x) / y
                                	tmp = 0
                                	if t <= -1.3e+172:
                                		tmp = t_1
                                	elif t <= 3.5e+30:
                                		tmp = ((math.pow(z, y) * x) / a) / y
                                	else:
                                		tmp = t_1
                                	return tmp
                                
                                function code(x, y, z, t, a, b)
                                	t_1 = Float64(Float64((a ^ Float64(t - 1.0)) * x) / y)
                                	tmp = 0.0
                                	if (t <= -1.3e+172)
                                		tmp = t_1;
                                	elseif (t <= 3.5e+30)
                                		tmp = Float64(Float64(Float64((z ^ y) * x) / a) / y);
                                	else
                                		tmp = t_1;
                                	end
                                	return tmp
                                end
                                
                                function tmp_2 = code(x, y, z, t, a, b)
                                	t_1 = ((a ^ (t - 1.0)) * x) / y;
                                	tmp = 0.0;
                                	if (t <= -1.3e+172)
                                		tmp = t_1;
                                	elseif (t <= 3.5e+30)
                                		tmp = (((z ^ y) * x) / a) / y;
                                	else
                                		tmp = t_1;
                                	end
                                	tmp_2 = tmp;
                                end
                                
                                code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t, -1.3e+172], t$95$1, If[LessEqual[t, 3.5e+30], N[(N[(N[(N[Power[z, y], $MachinePrecision] * x), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                t_1 := \frac{{a}^{\left(t - 1\right)} \cdot x}{y}\\
                                \mathbf{if}\;t \leq -1.3 \cdot 10^{+172}:\\
                                \;\;\;\;t\_1\\
                                
                                \mathbf{elif}\;t \leq 3.5 \cdot 10^{+30}:\\
                                \;\;\;\;\frac{\frac{{z}^{y} \cdot x}{a}}{y}\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;t\_1\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 2 regimes
                                2. if t < -1.3e172 or 3.50000000000000021e30 < t

                                  1. Initial program 100.0%

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

                                    \[\leadsto \frac{\color{blue}{x \cdot e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
                                  4. Step-by-step derivation
                                    1. exp-sumN/A

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

                                      \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                                    3. lower-*.f64N/A

                                      \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                                    4. lower-*.f64N/A

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

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

                                      \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                                    7. lower-pow.f64N/A

                                      \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                                    8. exp-prodN/A

                                      \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                                    9. lower-pow.f64N/A

                                      \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                                    10. rem-exp-logN/A

                                      \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot {\color{blue}{a}}^{\left(t - 1\right)}}{y} \]
                                    11. lower--.f6468.2

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

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

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

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

                                    if -1.3e172 < t < 3.50000000000000021e30

                                    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 b around 0

                                      \[\leadsto \frac{\color{blue}{x \cdot e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
                                    4. Step-by-step derivation
                                      1. exp-sumN/A

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

                                        \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                                      3. lower-*.f64N/A

                                        \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                                      4. lower-*.f64N/A

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

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

                                        \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                                      7. lower-pow.f64N/A

                                        \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                                      8. exp-prodN/A

                                        \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                                      9. lower-pow.f64N/A

                                        \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                                      10. rem-exp-logN/A

                                        \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot {\color{blue}{a}}^{\left(t - 1\right)}}{y} \]
                                      11. lower--.f6470.5

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

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

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

                                        \[\leadsto \frac{\frac{{z}^{y} \cdot x}{\color{blue}{a}}}{y} \]
                                    8. Recombined 2 regimes into one program.
                                    9. Add Preprocessing

                                    Alternative 8: 70.7% accurate, 2.5× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{e^{-b}}{y} \cdot x\\ \mathbf{if}\;b \leq -7.2 \cdot 10^{+19}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 4.2 \cdot 10^{+250}:\\ \;\;\;\;\frac{{a}^{\left(t - 1\right)} \cdot x}{y}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a b)
                                     :precision binary64
                                     (let* ((t_1 (* (/ (exp (- b)) y) x)))
                                       (if (<= b -7.2e+19)
                                         t_1
                                         (if (<= b 4.2e+250) (/ (* (pow a (- t 1.0)) x) y) t_1))))
                                    double code(double x, double y, double z, double t, double a, double b) {
                                    	double t_1 = (exp(-b) / y) * x;
                                    	double tmp;
                                    	if (b <= -7.2e+19) {
                                    		tmp = t_1;
                                    	} else if (b <= 4.2e+250) {
                                    		tmp = (pow(a, (t - 1.0)) * x) / y;
                                    	} else {
                                    		tmp = t_1;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    real(8) function code(x, y, z, t, a, b)
                                        real(8), intent (in) :: x
                                        real(8), intent (in) :: y
                                        real(8), intent (in) :: z
                                        real(8), intent (in) :: t
                                        real(8), intent (in) :: a
                                        real(8), intent (in) :: b
                                        real(8) :: t_1
                                        real(8) :: tmp
                                        t_1 = (exp(-b) / y) * x
                                        if (b <= (-7.2d+19)) then
                                            tmp = t_1
                                        else if (b <= 4.2d+250) then
                                            tmp = ((a ** (t - 1.0d0)) * x) / y
                                        else
                                            tmp = t_1
                                        end if
                                        code = tmp
                                    end function
                                    
                                    public static double code(double x, double y, double z, double t, double a, double b) {
                                    	double t_1 = (Math.exp(-b) / y) * x;
                                    	double tmp;
                                    	if (b <= -7.2e+19) {
                                    		tmp = t_1;
                                    	} else if (b <= 4.2e+250) {
                                    		tmp = (Math.pow(a, (t - 1.0)) * x) / y;
                                    	} else {
                                    		tmp = t_1;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    def code(x, y, z, t, a, b):
                                    	t_1 = (math.exp(-b) / y) * x
                                    	tmp = 0
                                    	if b <= -7.2e+19:
                                    		tmp = t_1
                                    	elif b <= 4.2e+250:
                                    		tmp = (math.pow(a, (t - 1.0)) * x) / y
                                    	else:
                                    		tmp = t_1
                                    	return tmp
                                    
                                    function code(x, y, z, t, a, b)
                                    	t_1 = Float64(Float64(exp(Float64(-b)) / y) * x)
                                    	tmp = 0.0
                                    	if (b <= -7.2e+19)
                                    		tmp = t_1;
                                    	elseif (b <= 4.2e+250)
                                    		tmp = Float64(Float64((a ^ Float64(t - 1.0)) * x) / y);
                                    	else
                                    		tmp = t_1;
                                    	end
                                    	return tmp
                                    end
                                    
                                    function tmp_2 = code(x, y, z, t, a, b)
                                    	t_1 = (exp(-b) / y) * x;
                                    	tmp = 0.0;
                                    	if (b <= -7.2e+19)
                                    		tmp = t_1;
                                    	elseif (b <= 4.2e+250)
                                    		tmp = ((a ^ (t - 1.0)) * x) / y;
                                    	else
                                    		tmp = t_1;
                                    	end
                                    	tmp_2 = tmp;
                                    end
                                    
                                    code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[Exp[(-b)], $MachinePrecision] / y), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[b, -7.2e+19], t$95$1, If[LessEqual[b, 4.2e+250], N[(N[(N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    t_1 := \frac{e^{-b}}{y} \cdot x\\
                                    \mathbf{if}\;b \leq -7.2 \cdot 10^{+19}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    \mathbf{elif}\;b \leq 4.2 \cdot 10^{+250}:\\
                                    \;\;\;\;\frac{{a}^{\left(t - 1\right)} \cdot x}{y}\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 2 regimes
                                    2. if b < -7.2e19 or 4.2000000000000003e250 < b

                                      1. Initial program 100.0%

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

                                        \[\leadsto \frac{x \cdot e^{\color{blue}{-1 \cdot b}}}{y} \]
                                      4. Step-by-step derivation
                                        1. mul-1-negN/A

                                          \[\leadsto \frac{x \cdot e^{\color{blue}{\mathsf{neg}\left(b\right)}}}{y} \]
                                        2. lower-neg.f6480.8

                                          \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
                                      5. Applied rewrites80.8%

                                        \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
                                      6. Step-by-step derivation
                                        1. lift-/.f64N/A

                                          \[\leadsto \color{blue}{\frac{x \cdot e^{-b}}{y}} \]
                                        2. lift-*.f64N/A

                                          \[\leadsto \frac{\color{blue}{x \cdot e^{-b}}}{y} \]
                                        3. associate-/l*N/A

                                          \[\leadsto \color{blue}{x \cdot \frac{e^{-b}}{y}} \]
                                        4. *-commutativeN/A

                                          \[\leadsto \color{blue}{\frac{e^{-b}}{y} \cdot x} \]
                                        5. lower-*.f64N/A

                                          \[\leadsto \color{blue}{\frac{e^{-b}}{y} \cdot x} \]
                                        6. lower-/.f6480.8

                                          \[\leadsto \color{blue}{\frac{e^{-b}}{y}} \cdot x \]
                                      7. Applied rewrites80.8%

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

                                      if -7.2e19 < b < 4.2000000000000003e250

                                      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 b around 0

                                        \[\leadsto \frac{\color{blue}{x \cdot e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
                                      4. Step-by-step derivation
                                        1. exp-sumN/A

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

                                          \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                                        3. lower-*.f64N/A

                                          \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                                        4. lower-*.f64N/A

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

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

                                          \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                                        7. lower-pow.f64N/A

                                          \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                                        8. exp-prodN/A

                                          \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                                        9. lower-pow.f64N/A

                                          \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                                        10. rem-exp-logN/A

                                          \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot {\color{blue}{a}}^{\left(t - 1\right)}}{y} \]
                                        11. lower--.f6478.9

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

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

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

                                          \[\leadsto \frac{{a}^{\left(t - 1\right)} \cdot \color{blue}{x}}{y} \]
                                      8. Recombined 2 regimes into one program.
                                      9. Add Preprocessing

                                      Alternative 9: 58.7% accurate, 2.6× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{e^{-b}}{y} \cdot x\\ \mathbf{if}\;b \leq -1160000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 84000000000:\\ \;\;\;\;\frac{\frac{x}{a}}{y}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                      (FPCore (x y z t a b)
                                       :precision binary64
                                       (let* ((t_1 (* (/ (exp (- b)) y) x)))
                                         (if (<= b -1160000000.0) t_1 (if (<= b 84000000000.0) (/ (/ x a) y) t_1))))
                                      double code(double x, double y, double z, double t, double a, double b) {
                                      	double t_1 = (exp(-b) / y) * x;
                                      	double tmp;
                                      	if (b <= -1160000000.0) {
                                      		tmp = t_1;
                                      	} else if (b <= 84000000000.0) {
                                      		tmp = (x / a) / y;
                                      	} else {
                                      		tmp = t_1;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      real(8) function code(x, y, z, t, a, b)
                                          real(8), intent (in) :: x
                                          real(8), intent (in) :: y
                                          real(8), intent (in) :: z
                                          real(8), intent (in) :: t
                                          real(8), intent (in) :: a
                                          real(8), intent (in) :: b
                                          real(8) :: t_1
                                          real(8) :: tmp
                                          t_1 = (exp(-b) / y) * x
                                          if (b <= (-1160000000.0d0)) then
                                              tmp = t_1
                                          else if (b <= 84000000000.0d0) then
                                              tmp = (x / a) / y
                                          else
                                              tmp = t_1
                                          end if
                                          code = tmp
                                      end function
                                      
                                      public static double code(double x, double y, double z, double t, double a, double b) {
                                      	double t_1 = (Math.exp(-b) / y) * x;
                                      	double tmp;
                                      	if (b <= -1160000000.0) {
                                      		tmp = t_1;
                                      	} else if (b <= 84000000000.0) {
                                      		tmp = (x / a) / y;
                                      	} else {
                                      		tmp = t_1;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      def code(x, y, z, t, a, b):
                                      	t_1 = (math.exp(-b) / y) * x
                                      	tmp = 0
                                      	if b <= -1160000000.0:
                                      		tmp = t_1
                                      	elif b <= 84000000000.0:
                                      		tmp = (x / a) / y
                                      	else:
                                      		tmp = t_1
                                      	return tmp
                                      
                                      function code(x, y, z, t, a, b)
                                      	t_1 = Float64(Float64(exp(Float64(-b)) / y) * x)
                                      	tmp = 0.0
                                      	if (b <= -1160000000.0)
                                      		tmp = t_1;
                                      	elseif (b <= 84000000000.0)
                                      		tmp = Float64(Float64(x / a) / y);
                                      	else
                                      		tmp = t_1;
                                      	end
                                      	return tmp
                                      end
                                      
                                      function tmp_2 = code(x, y, z, t, a, b)
                                      	t_1 = (exp(-b) / y) * x;
                                      	tmp = 0.0;
                                      	if (b <= -1160000000.0)
                                      		tmp = t_1;
                                      	elseif (b <= 84000000000.0)
                                      		tmp = (x / a) / y;
                                      	else
                                      		tmp = t_1;
                                      	end
                                      	tmp_2 = tmp;
                                      end
                                      
                                      code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[Exp[(-b)], $MachinePrecision] / y), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[b, -1160000000.0], t$95$1, If[LessEqual[b, 84000000000.0], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      t_1 := \frac{e^{-b}}{y} \cdot x\\
                                      \mathbf{if}\;b \leq -1160000000:\\
                                      \;\;\;\;t\_1\\
                                      
                                      \mathbf{elif}\;b \leq 84000000000:\\
                                      \;\;\;\;\frac{\frac{x}{a}}{y}\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 2 regimes
                                      2. if b < -1.16e9 or 8.4e10 < b

                                        1. Initial program 100.0%

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

                                          \[\leadsto \frac{x \cdot e^{\color{blue}{-1 \cdot b}}}{y} \]
                                        4. Step-by-step derivation
                                          1. mul-1-negN/A

                                            \[\leadsto \frac{x \cdot e^{\color{blue}{\mathsf{neg}\left(b\right)}}}{y} \]
                                          2. lower-neg.f6475.4

                                            \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
                                        5. Applied rewrites75.4%

                                          \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
                                        6. Step-by-step derivation
                                          1. lift-/.f64N/A

                                            \[\leadsto \color{blue}{\frac{x \cdot e^{-b}}{y}} \]
                                          2. lift-*.f64N/A

                                            \[\leadsto \frac{\color{blue}{x \cdot e^{-b}}}{y} \]
                                          3. associate-/l*N/A

                                            \[\leadsto \color{blue}{x \cdot \frac{e^{-b}}{y}} \]
                                          4. *-commutativeN/A

                                            \[\leadsto \color{blue}{\frac{e^{-b}}{y} \cdot x} \]
                                          5. lower-*.f64N/A

                                            \[\leadsto \color{blue}{\frac{e^{-b}}{y} \cdot x} \]
                                          6. lower-/.f6475.4

                                            \[\leadsto \color{blue}{\frac{e^{-b}}{y}} \cdot x \]
                                        7. Applied rewrites75.4%

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

                                        if -1.16e9 < b < 8.4e10

                                        1. Initial program 97.8%

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

                                          \[\leadsto \frac{\color{blue}{x \cdot e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
                                        4. Step-by-step derivation
                                          1. exp-sumN/A

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

                                            \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                                          3. lower-*.f64N/A

                                            \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                                          4. lower-*.f64N/A

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

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

                                            \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                                          7. lower-pow.f64N/A

                                            \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                                          8. exp-prodN/A

                                            \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                                          9. lower-pow.f64N/A

                                            \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                                          10. rem-exp-logN/A

                                            \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot {\color{blue}{a}}^{\left(t - 1\right)}}{y} \]
                                          11. lower--.f6483.3

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

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

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

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

                                            \[\leadsto \frac{\frac{x}{a}}{y} \]
                                          3. Step-by-step derivation
                                            1. Applied rewrites40.6%

                                              \[\leadsto \frac{\frac{x}{a}}{y} \]
                                          4. Recombined 2 regimes into one program.
                                          5. Add Preprocessing

                                          Alternative 10: 30.8% accurate, 14.6× 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.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 b around 0

                                            \[\leadsto \frac{\color{blue}{x \cdot e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
                                          4. Step-by-step derivation
                                            1. exp-sumN/A

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

                                              \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                                            3. lower-*.f64N/A

                                              \[\leadsto \frac{\color{blue}{\left(x \cdot e^{y \cdot \log z}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}}{y} \]
                                            4. lower-*.f64N/A

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

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

                                              \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                                            7. lower-pow.f64N/A

                                              \[\leadsto \frac{\left(x \cdot \color{blue}{{z}^{y}}\right) \cdot e^{\log a \cdot \left(t - 1\right)}}{y} \]
                                            8. exp-prodN/A

                                              \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                                            9. lower-pow.f64N/A

                                              \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}}}{y} \]
                                            10. rem-exp-logN/A

                                              \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot {\color{blue}{a}}^{\left(t - 1\right)}}{y} \]
                                            11. lower--.f6469.6

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

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

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

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

                                              \[\leadsto \frac{\frac{x}{a}}{y} \]
                                            3. Step-by-step derivation
                                              1. Applied rewrites31.7%

                                                \[\leadsto \frac{\frac{x}{a}}{y} \]
                                              2. Add Preprocessing

                                              Developer Target 1: 71.8% 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 2024277 
                                              (FPCore (x y z t a b)
                                                :name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
                                                :precision binary64
                                              
                                                :alt
                                                (! :herbie-platform default (if (< t -8845848504127471/10000000000000000) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))) (if (< t 8520312288374073/10000000000) (/ (* (/ x y) (pow a (- t 1))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))))))
                                              
                                                (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))