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

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

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

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

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

Alternative 2: 92.3% accurate, 1.0× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.05e7 or 1.6499999999999999e109 < y

    1. Initial program 100.0%

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

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

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

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

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

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

    if -1.05e7 < y < 1.6499999999999999e109

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

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

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

Alternative 3: 88.7% accurate, 1.4× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.6 \cdot 10^{+178} \lor \neg \left(y \leq 2.1 \cdot 10^{+109}\right):\\
\;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -2.6000000000000001e178 or 2.1000000000000001e109 < y

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.6000000000000001e178 < y < 2.1000000000000001e109

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

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

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

Alternative 4: 81.8% accurate, 1.4× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -850 \lor \neg \left(y \leq 1.65 \cdot 10^{+109}\right):\\
\;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -850 or 1.6499999999999999e109 < y

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -850 < y < 1.6499999999999999e109

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

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

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

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

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

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

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

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

Alternative 5: 80.3% accurate, 1.4× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.6 \cdot 10^{+27} \lor \neg \left(t \leq 12000\right):\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -2.60000000000000009e27 or 12000 < t

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.60000000000000009e27 < t < 12000

    1. Initial program 97.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 6: 75.1% accurate, 2.5× speedup?

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

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

\mathbf{elif}\;t \leq 1.35 \cdot 10^{-225}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 2.15 \cdot 10^{-38}:\\
\;\;\;\;\frac{\frac{\frac{x}{a}}{e^{b}}}{y}\\

\mathbf{elif}\;t \leq 11000:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;t\_2\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -2.8000000000000001e28 or 11000 < t

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.8000000000000001e28 < t < 1.34999999999999996e-225 or 2.1500000000000001e-38 < t < 11000

    1. Initial program 98.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 1.34999999999999996e-225 < t < 2.1500000000000001e-38

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{\frac{x}{a}}{e^{b}}}}{y} \]
    8. Simplified80.3%

      \[\leadsto \frac{\color{blue}{\frac{\frac{x}{a}}{e^{b}}}}{y} \]
  3. Recombined 3 regimes into one program.
  4. Add Preprocessing

Alternative 7: 72.6% accurate, 2.5× speedup?

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

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

\mathbf{elif}\;t \leq 2.9 \cdot 10^{-249}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 7.2 \cdot 10^{-37}:\\
\;\;\;\;\frac{\frac{\frac{x}{a}}{e^{b}}}{y}\\

\mathbf{elif}\;t \leq 10000:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;t\_2\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -2.39999999999999981e28 or 1e4 < t

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.39999999999999981e28 < t < 2.90000000000000022e-249 or 7.20000000000000014e-37 < t < 1e4

    1. Initial program 97.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 2.90000000000000022e-249 < t < 7.20000000000000014e-37

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{\frac{x}{a}}{e^{b}}}}{y} \]
    8. Simplified78.0%

      \[\leadsto \frac{\color{blue}{\frac{\frac{x}{a}}{e^{b}}}}{y} \]
  3. Recombined 3 regimes into one program.
  4. Add Preprocessing

Alternative 8: 59.0% accurate, 2.6× speedup?

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

\\
\begin{array}{l}
t_1 := \frac{\frac{x}{e^{b}}}{y}\\
\mathbf{if}\;b \leq -0.000216:\\
\;\;\;\;t\_1\\

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

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

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -2.1599999999999999e-4 or 4.2999999999999999e-13 < b

    1. Initial program 99.9%

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

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

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

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

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

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

      \[\leadsto \frac{x \cdot e^{\color{blue}{-1 \cdot b}}}{y} \]
    7. Step-by-step derivation
      1. neg-mul-179.0%

        \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
    8. Simplified79.0%

      \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
    9. Taylor expanded in b around -inf 79.0%

      \[\leadsto \frac{\color{blue}{x \cdot e^{-1 \cdot b}}}{y} \]
    10. Step-by-step derivation
      1. mul-1-neg79.0%

        \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
      2. rec-exp79.0%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{1}{e^{b}}}}{y} \]
      3. associate-*r/79.0%

        \[\leadsto \frac{\color{blue}{\frac{x \cdot 1}{e^{b}}}}{y} \]
      4. *-rgt-identity79.0%

        \[\leadsto \frac{\frac{\color{blue}{x}}{e^{b}}}{y} \]
    11. Simplified79.0%

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

    if -2.1599999999999999e-4 < b < 2.2e-279

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{\frac{x}{a}}{e^{b}}}}{y} \]
    8. Simplified40.4%

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

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

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

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

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

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

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

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

    if 2.2e-279 < b < 4.2999999999999999e-13

    1. Initial program 97.4%

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{\frac{x}{a}}{e^{b}}}}{y} \]
    8. Simplified41.0%

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -0.000216:\\ \;\;\;\;\frac{\frac{x}{e^{b}}}{y}\\ \mathbf{elif}\;b \leq 2.2 \cdot 10^{-279}:\\ \;\;\;\;\frac{b \cdot \left(\frac{x}{a \cdot b} - \frac{x}{a}\right)}{y}\\ \mathbf{elif}\;b \leq 4.3 \cdot 10^{-13}:\\ \;\;\;\;\frac{\frac{x \cdot a - a \cdot \left(x \cdot b\right)}{a \cdot a}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{e^{b}}}{y}\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 74.3% accurate, 2.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.6 \cdot 10^{+25} \lor \neg \left(b \leq 2.55 \cdot 10^{+49}\right):\\
\;\;\;\;\frac{\frac{x}{e^{b}}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -3.60000000000000015e25 or 2.54999999999999978e49 < 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 t around 0 95.8%

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

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

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

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

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

      \[\leadsto \frac{x \cdot e^{\color{blue}{-1 \cdot b}}}{y} \]
    7. Step-by-step derivation
      1. neg-mul-184.2%

        \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
    8. Simplified84.2%

      \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
    9. Taylor expanded in b around -inf 84.2%

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

        \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
      2. rec-exp84.2%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{1}{e^{b}}}}{y} \]
      3. associate-*r/84.2%

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

        \[\leadsto \frac{\frac{\color{blue}{x}}{e^{b}}}{y} \]
    11. Simplified84.2%

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

    if -3.60000000000000015e25 < b < 2.54999999999999978e49

    1. Initial program 97.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 10: 72.5% accurate, 2.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.4 \cdot 10^{+27} \lor \neg \left(t \leq 9000\right):\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -4.3999999999999997e27 or 9e3 < t

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -4.3999999999999997e27 < t < 9e3

    1. Initial program 97.7%

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{\frac{x}{a}}{e^{b}}}}{y} \]
    8. Simplified68.1%

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

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

Alternative 11: 73.0% accurate, 2.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.9 \cdot 10^{+28} \lor \neg \left(t \leq 9000\right):\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.8999999999999999e28 or 9e3 < t

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.8999999999999999e28 < t < 9e3

    1. Initial program 97.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 12: 64.6% accurate, 2.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.82 \cdot 10^{+31} \lor \neg \left(b \leq 2.55 \cdot 10^{+49}\right):\\
\;\;\;\;\frac{\frac{x}{e^{b}}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -1.8200000000000001e31 or 2.54999999999999978e49 < 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 t around 0 95.8%

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

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

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

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

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

      \[\leadsto \frac{x \cdot e^{\color{blue}{-1 \cdot b}}}{y} \]
    7. Step-by-step derivation
      1. neg-mul-184.2%

        \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
    8. Simplified84.2%

      \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
    9. Taylor expanded in b around -inf 84.2%

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

        \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
      2. rec-exp84.2%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{1}{e^{b}}}}{y} \]
      3. associate-*r/84.2%

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

        \[\leadsto \frac{\frac{\color{blue}{x}}{e^{b}}}{y} \]
    11. Simplified84.2%

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

    if -1.8200000000000001e31 < b < 2.54999999999999978e49

    1. Initial program 97.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 13: 53.7% accurate, 9.3× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.7 \cdot 10^{+37}:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(-1 + b \cdot \left(0.5 + b \cdot -0.16666666666666666\right)\right)\right)}{y}\\

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

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

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


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

    1. Initial program 100.0%

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

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

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

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

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

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

      \[\leadsto \frac{x \cdot e^{\color{blue}{-1 \cdot b}}}{y} \]
    7. Step-by-step derivation
      1. neg-mul-184.5%

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

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

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

    if -2.69999999999999986e37 < b < 6.59999999999999982e-280

    1. Initial program 97.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{x}{a} - \frac{b \cdot x}{a}}}{y} \]
      4. *-commutative40.7%

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

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

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

    if 6.59999999999999982e-280 < b < 2.3000000000000001e-23

    1. Initial program 97.3%

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{\frac{x}{a}}{e^{b}}}}{y} \]
    8. Simplified42.4%

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{x}{a} - \frac{b \cdot x}{a}}}{y} \]
      4. *-commutative40.5%

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

      \[\leadsto \frac{\color{blue}{\frac{x}{a} - \frac{x \cdot b}{a}}}{y} \]
    12. Step-by-step derivation
      1. frac-2neg40.5%

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

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

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

    if 2.3000000000000001e-23 < b

    1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 14: 49.8% accurate, 12.6× speedup?

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

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

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

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


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

    1. Initial program 100.0%

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

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

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

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

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

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

      \[\leadsto \frac{x \cdot e^{\color{blue}{-1 \cdot b}}}{y} \]
    7. Step-by-step derivation
      1. neg-mul-183.0%

        \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
    8. Simplified83.0%

      \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
    9. Step-by-step derivation
      1. pow183.0%

        \[\leadsto \frac{\color{blue}{{\left(x \cdot e^{-b}\right)}^{1}}}{y} \]
      2. add-sqr-sqrt83.0%

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

        \[\leadsto \frac{{\left(x \cdot e^{\color{blue}{\sqrt{\left(-b\right) \cdot \left(-b\right)}}}\right)}^{1}}{y} \]
      4. sqr-neg83.0%

        \[\leadsto \frac{{\left(x \cdot e^{\sqrt{\color{blue}{b \cdot b}}}\right)}^{1}}{y} \]
      5. sqrt-unprod0.0%

        \[\leadsto \frac{{\left(x \cdot e^{\color{blue}{\sqrt{b} \cdot \sqrt{b}}}\right)}^{1}}{y} \]
      6. add-sqr-sqrt18.6%

        \[\leadsto \frac{{\left(x \cdot e^{\color{blue}{b}}\right)}^{1}}{y} \]
    10. Applied egg-rr18.6%

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

        \[\leadsto \frac{\color{blue}{x \cdot e^{b}}}{y} \]
    12. Simplified18.6%

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

      \[\leadsto \frac{x \cdot \color{blue}{\left(1 + b \cdot \left(1 + 0.5 \cdot b\right)\right)}}{y} \]
    14. Step-by-step derivation
      1. *-commutative17.0%

        \[\leadsto \frac{\frac{\frac{x}{a}}{1 + b \cdot \left(1 + \color{blue}{b \cdot 0.5}\right)}}{y} \]
    15. Simplified71.0%

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

    if -1.6999999999999999e63 < b < 1.1e-279

    1. Initial program 97.7%

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{\frac{x}{a}}{e^{b}}}}{y} \]
    8. Simplified44.5%

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{x}{a} - \frac{b \cdot x}{a}}}{y} \]
      4. *-commutative40.8%

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

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

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

    if 1.1e-279 < b

    1. Initial program 98.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 15: 45.7% accurate, 13.7× speedup?

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

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

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

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


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

    1. Initial program 100.0%

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

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

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

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

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

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

      \[\leadsto \frac{x \cdot e^{\color{blue}{-1 \cdot b}}}{y} \]
    7. Step-by-step derivation
      1. neg-mul-183.0%

        \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
    8. Simplified83.0%

      \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
    9. Step-by-step derivation
      1. pow183.0%

        \[\leadsto \frac{\color{blue}{{\left(x \cdot e^{-b}\right)}^{1}}}{y} \]
      2. add-sqr-sqrt83.0%

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

        \[\leadsto \frac{{\left(x \cdot e^{\color{blue}{\sqrt{\left(-b\right) \cdot \left(-b\right)}}}\right)}^{1}}{y} \]
      4. sqr-neg83.0%

        \[\leadsto \frac{{\left(x \cdot e^{\sqrt{\color{blue}{b \cdot b}}}\right)}^{1}}{y} \]
      5. sqrt-unprod0.0%

        \[\leadsto \frac{{\left(x \cdot e^{\color{blue}{\sqrt{b} \cdot \sqrt{b}}}\right)}^{1}}{y} \]
      6. add-sqr-sqrt18.6%

        \[\leadsto \frac{{\left(x \cdot e^{\color{blue}{b}}\right)}^{1}}{y} \]
    10. Applied egg-rr18.6%

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

        \[\leadsto \frac{\color{blue}{x \cdot e^{b}}}{y} \]
    12. Simplified18.6%

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

      \[\leadsto \frac{x \cdot \color{blue}{\left(1 + b \cdot \left(1 + 0.5 \cdot b\right)\right)}}{y} \]
    14. Step-by-step derivation
      1. *-commutative17.0%

        \[\leadsto \frac{\frac{\frac{x}{a}}{1 + b \cdot \left(1 + \color{blue}{b \cdot 0.5}\right)}}{y} \]
    15. Simplified71.0%

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

    if -1.6999999999999999e63 < b < 1.3000000000000001e-279

    1. Initial program 97.7%

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{\frac{x}{a}}{e^{b}}}}{y} \]
    8. Simplified44.5%

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{x}{a} - \frac{b \cdot x}{a}}}{y} \]
      4. *-commutative40.8%

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

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

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

    if 1.3000000000000001e-279 < b

    1. Initial program 98.8%

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{x}{\color{blue}{a \cdot y + a \cdot \left(b \cdot y\right)}} \]
    10. Step-by-step derivation
      1. distribute-lft-out42.7%

        \[\leadsto \frac{x}{\color{blue}{a \cdot \left(y + b \cdot y\right)}} \]
      2. *-commutative42.7%

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

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

Alternative 16: 50.2% accurate, 14.3× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.4 \cdot 10^{+37}:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(-1 + b \cdot \left(0.5 + b \cdot -0.16666666666666666\right)\right)\right)}{y}\\

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


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

    1. Initial program 100.0%

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

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

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

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

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

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

      \[\leadsto \frac{x \cdot e^{\color{blue}{-1 \cdot b}}}{y} \]
    7. Step-by-step derivation
      1. neg-mul-184.5%

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

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

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

    if -2.4e37 < b

    1. Initial program 98.3%

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{\frac{x}{a}}{e^{b}}}}{y} \]
    8. Simplified51.0%

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

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

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

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

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

Alternative 17: 48.5% accurate, 15.7× speedup?

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

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

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


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

    1. Initial program 100.0%

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

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

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

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

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

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

      \[\leadsto \frac{x \cdot e^{\color{blue}{-1 \cdot b}}}{y} \]
    7. Step-by-step derivation
      1. neg-mul-184.5%

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

      \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
    9. Step-by-step derivation
      1. pow184.5%

        \[\leadsto \frac{\color{blue}{{\left(x \cdot e^{-b}\right)}^{1}}}{y} \]
      2. add-sqr-sqrt84.5%

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

        \[\leadsto \frac{{\left(x \cdot e^{\color{blue}{\sqrt{\left(-b\right) \cdot \left(-b\right)}}}\right)}^{1}}{y} \]
      4. sqr-neg84.5%

        \[\leadsto \frac{{\left(x \cdot e^{\sqrt{\color{blue}{b \cdot b}}}\right)}^{1}}{y} \]
      5. sqrt-unprod0.0%

        \[\leadsto \frac{{\left(x \cdot e^{\color{blue}{\sqrt{b} \cdot \sqrt{b}}}\right)}^{1}}{y} \]
      6. add-sqr-sqrt17.1%

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

      \[\leadsto \frac{\color{blue}{{\left(x \cdot e^{b}\right)}^{1}}}{y} \]
    11. Step-by-step derivation
      1. unpow117.1%

        \[\leadsto \frac{\color{blue}{x \cdot e^{b}}}{y} \]
    12. Simplified17.1%

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

      \[\leadsto \frac{x \cdot \color{blue}{\left(1 + b \cdot \left(1 + 0.5 \cdot b\right)\right)}}{y} \]
    14. Step-by-step derivation
      1. *-commutative16.0%

        \[\leadsto \frac{\frac{\frac{x}{a}}{1 + b \cdot \left(1 + \color{blue}{b \cdot 0.5}\right)}}{y} \]
    15. Simplified68.5%

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

    if -1.1500000000000001e38 < b

    1. Initial program 98.3%

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{\frac{x}{a}}{e^{b}}}}{y} \]
    8. Simplified51.0%

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

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

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

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

Alternative 18: 40.0% accurate, 16.6× speedup?

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

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

\mathbf{elif}\;b \leq 4 \cdot 10^{+125}:\\
\;\;\;\;\frac{\frac{\frac{x}{a}}{1 + b}}{y}\\

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


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

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{\frac{x}{a}}{e^{b}}}}{y} \]
    8. Simplified72.2%

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{x \cdot \frac{\frac{1}{a} - \frac{b}{a}}{y}} \]
    14. Simplified51.4%

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

    if -4.29999999999999985e-12 < b < 3.9999999999999997e125

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{\frac{x}{a}}{e^{b}}}}{y} \]
    8. Simplified45.0%

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

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

        \[\leadsto \frac{\frac{\frac{x}{a}}{\color{blue}{b + 1}}}{y} \]
    11. Simplified38.9%

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

    if 3.9999999999999997e125 < 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 y around 0 89.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 19: 39.7% accurate, 19.7× speedup?

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

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

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


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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{\frac{x}{a}}{e^{b}}}}{y} \]
    8. Simplified52.9%

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{x}{a} - \frac{b \cdot x}{a}}}{y} \]
      4. *-commutative44.1%

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

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

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

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

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

    if 9.19999999999999945e-88 < b

    1. Initial program 99.6%

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{x}{\color{blue}{a \cdot y + a \cdot \left(b \cdot y\right)}} \]
    10. Step-by-step derivation
      1. distribute-lft-out44.5%

        \[\leadsto \frac{x}{\color{blue}{a \cdot \left(y + b \cdot y\right)}} \]
      2. *-commutative44.5%

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

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

Alternative 20: 38.5% accurate, 22.5× speedup?

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

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

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


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

    1. Initial program 99.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{x}{a} - \frac{b \cdot x}{a}}}{y} \]
      4. *-commutative52.7%

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

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

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

    if -6.0000000000000003e-94 < b

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{x}{\color{blue}{a \cdot y + a \cdot \left(b \cdot y\right)}} \]
    10. Step-by-step derivation
      1. distribute-lft-out39.7%

        \[\leadsto \frac{x}{\color{blue}{a \cdot \left(y + b \cdot y\right)}} \]
      2. *-commutative39.7%

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

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

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

Alternative 21: 38.1% accurate, 22.5× speedup?

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{-1 \cdot \left(b \cdot x\right)}{a \cdot y}} \]
      2. mul-1-neg47.6%

        \[\leadsto \frac{\color{blue}{-b \cdot x}}{a \cdot y} \]
      3. *-commutative47.6%

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

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

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{-b}{y}} \]
    14. Simplified51.6%

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

    if -1.20000000000000004e-44 < b

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{x}{\color{blue}{a \cdot y + a \cdot \left(b \cdot y\right)}} \]
    10. Step-by-step derivation
      1. distribute-lft-out39.9%

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

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

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

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

Alternative 22: 34.5% accurate, 24.2× speedup?

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

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

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


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

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{\frac{x}{a}}{e^{b}}}}{y} \]
    8. Simplified72.2%

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{-1 \cdot \left(b \cdot x\right)}{a \cdot y}} \]
      2. mul-1-neg47.0%

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

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

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

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

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

    if -1.03999999999999994e-4 < b

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{\frac{x}{a}}{e^{b}}}}{y} \]
    8. Simplified51.3%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -0.000104:\\ \;\;\;\;\frac{x}{-a} \cdot \frac{b}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{a}}{y}\\ \end{array} \]
  5. Add Preprocessing

Alternative 23: 34.3% accurate, 26.2× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -2.80000000000000024e64

    1. Initial program 100.0%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Add Preprocessing
    3. Taylor expanded in t around 0 98.1%

      \[\leadsto \frac{\color{blue}{x \cdot e^{\left(-1 \cdot \log a + y \cdot \log z\right) - b}}}{y} \]
    4. Step-by-step derivation
      1. +-commutative98.1%

        \[\leadsto \frac{x \cdot e^{\color{blue}{\left(y \cdot \log z + -1 \cdot \log a\right)} - b}}{y} \]
      2. mul-1-neg98.1%

        \[\leadsto \frac{x \cdot e^{\left(y \cdot \log z + \color{blue}{\left(-\log a\right)}\right) - b}}{y} \]
      3. unsub-neg98.1%

        \[\leadsto \frac{x \cdot e^{\color{blue}{\left(y \cdot \log z - \log a\right)} - b}}{y} \]
    5. Simplified98.1%

      \[\leadsto \frac{\color{blue}{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}}{y} \]
    6. Taylor expanded in b around inf 83.0%

      \[\leadsto \frac{x \cdot e^{\color{blue}{-1 \cdot b}}}{y} \]
    7. Step-by-step derivation
      1. neg-mul-183.0%

        \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
    8. Simplified83.0%

      \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
    9. Taylor expanded in b around 0 40.8%

      \[\leadsto \frac{\color{blue}{x + -1 \cdot \left(b \cdot x\right)}}{y} \]
    10. Step-by-step derivation
      1. *-lft-identity40.8%

        \[\leadsto \frac{\color{blue}{1 \cdot x} + -1 \cdot \left(b \cdot x\right)}{y} \]
      2. associate-*r*40.8%

        \[\leadsto \frac{1 \cdot x + \color{blue}{\left(-1 \cdot b\right) \cdot x}}{y} \]
      3. mul-1-neg40.8%

        \[\leadsto \frac{1 \cdot x + \color{blue}{\left(-b\right)} \cdot x}{y} \]
      4. distribute-rgt-out40.8%

        \[\leadsto \frac{\color{blue}{x \cdot \left(1 + \left(-b\right)\right)}}{y} \]
      5. unsub-neg40.8%

        \[\leadsto \frac{x \cdot \color{blue}{\left(1 - b\right)}}{y} \]
    11. Simplified40.8%

      \[\leadsto \frac{\color{blue}{x \cdot \left(1 - b\right)}}{y} \]

    if -2.80000000000000024e64 < b

    1. Initial program 98.4%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Add Preprocessing
    3. Taylor expanded in y around 0 78.8%

      \[\leadsto \frac{\color{blue}{x \cdot e^{\log a \cdot \left(t - 1\right) - b}}}{y} \]
    4. Step-by-step derivation
      1. div-exp73.0%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)}}{e^{b}}}}{y} \]
      2. exp-to-pow73.6%

        \[\leadsto \frac{x \cdot \frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y} \]
      3. sub-neg73.6%

        \[\leadsto \frac{x \cdot \frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}}}{y} \]
      4. metadata-eval73.6%

        \[\leadsto \frac{x \cdot \frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y} \]
    5. Simplified73.6%

      \[\leadsto \frac{\color{blue}{x \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}}}{y} \]
    6. Taylor expanded in t around 0 55.6%

      \[\leadsto \frac{\color{blue}{\frac{x}{a \cdot e^{b}}}}{y} \]
    7. Step-by-step derivation
      1. associate-/r*52.2%

        \[\leadsto \frac{\color{blue}{\frac{\frac{x}{a}}{e^{b}}}}{y} \]
    8. Simplified52.2%

      \[\leadsto \frac{\color{blue}{\frac{\frac{x}{a}}{e^{b}}}}{y} \]
    9. Taylor expanded in b around 0 35.3%

      \[\leadsto \frac{\color{blue}{\frac{x}{a}}}{y} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 24: 32.2% accurate, 31.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq 5 \cdot 10^{-21}:\\ \;\;\;\;\frac{\frac{x}{a}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= a 5e-21) (/ (/ x a) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (a <= 5e-21) {
		tmp = (x / a) / y;
	} else {
		tmp = x / (y * a);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: tmp
    if (a <= 5d-21) then
        tmp = (x / a) / y
    else
        tmp = x / (y * a)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (a <= 5e-21) {
		tmp = (x / a) / y;
	} else {
		tmp = x / (y * a);
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if a <= 5e-21:
		tmp = (x / a) / y
	else:
		tmp = x / (y * a)
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (a <= 5e-21)
		tmp = Float64(Float64(x / a) / y);
	else
		tmp = Float64(x / Float64(y * a));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if (a <= 5e-21)
		tmp = (x / a) / y;
	else
		tmp = x / (y * a);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 5e-21], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;a \leq 5 \cdot 10^{-21}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\

\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < 4.99999999999999973e-21

    1. Initial program 99.5%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Add Preprocessing
    3. Taylor expanded in y around 0 82.2%

      \[\leadsto \frac{\color{blue}{x \cdot e^{\log a \cdot \left(t - 1\right) - b}}}{y} \]
    4. Step-by-step derivation
      1. div-exp76.1%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)}}{e^{b}}}}{y} \]
      2. exp-to-pow76.6%

        \[\leadsto \frac{x \cdot \frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y} \]
      3. sub-neg76.6%

        \[\leadsto \frac{x \cdot \frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}}}{y} \]
      4. metadata-eval76.6%

        \[\leadsto \frac{x \cdot \frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y} \]
    5. Simplified76.6%

      \[\leadsto \frac{\color{blue}{x \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}}}{y} \]
    6. Taylor expanded in t around 0 59.5%

      \[\leadsto \frac{\color{blue}{\frac{x}{a \cdot e^{b}}}}{y} \]
    7. Step-by-step derivation
      1. associate-/r*54.8%

        \[\leadsto \frac{\color{blue}{\frac{\frac{x}{a}}{e^{b}}}}{y} \]
    8. Simplified54.8%

      \[\leadsto \frac{\color{blue}{\frac{\frac{x}{a}}{e^{b}}}}{y} \]
    9. Taylor expanded in b around 0 29.8%

      \[\leadsto \frac{\color{blue}{\frac{x}{a}}}{y} \]

    if 4.99999999999999973e-21 < a

    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 y around 0 78.5%

      \[\leadsto \frac{\color{blue}{x \cdot e^{\log a \cdot \left(t - 1\right) - b}}}{y} \]
    4. Step-by-step derivation
      1. div-exp70.7%

        \[\leadsto \frac{x \cdot \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)}}{e^{b}}}}{y} \]
      2. exp-to-pow71.2%

        \[\leadsto \frac{x \cdot \frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y} \]
      3. sub-neg71.2%

        \[\leadsto \frac{x \cdot \frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}}}{y} \]
      4. metadata-eval71.2%

        \[\leadsto \frac{x \cdot \frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y} \]
    5. Simplified71.2%

      \[\leadsto \frac{\color{blue}{x \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}}}{y} \]
    6. Taylor expanded in t around 0 64.5%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    7. Step-by-step derivation
      1. associate-*r*59.7%

        \[\leadsto \frac{x}{\color{blue}{\left(a \cdot y\right) \cdot e^{b}}} \]
      2. *-commutative59.7%

        \[\leadsto \frac{x}{\color{blue}{e^{b} \cdot \left(a \cdot y\right)}} \]
      3. *-commutative59.7%

        \[\leadsto \frac{x}{e^{b} \cdot \color{blue}{\left(y \cdot a\right)}} \]
    8. Simplified59.7%

      \[\leadsto \color{blue}{\frac{x}{e^{b} \cdot \left(y \cdot a\right)}} \]
    9. Taylor expanded in b around 0 40.4%

      \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
    10. Step-by-step derivation
      1. *-commutative40.4%

        \[\leadsto \frac{x}{\color{blue}{y \cdot a}} \]
    11. Simplified40.4%

      \[\leadsto \color{blue}{\frac{x}{y \cdot a}} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 25: 30.3% accurate, 63.0× speedup?

\[\begin{array}{l} \\ \frac{x}{y \cdot a} \end{array} \]
(FPCore (x y z t a b) :precision binary64 (/ x (* y a)))
double code(double x, double y, double z, double t, double a, double b) {
	return x / (y * a);
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    code = x / (y * a)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return x / (y * a);
}
def code(x, y, z, t, a, b):
	return x / (y * a)
function code(x, y, z, t, a, b)
	return Float64(x / Float64(y * a))
end
function tmp = code(x, y, z, t, a, b)
	tmp = x / (y * a);
end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{x}{y \cdot a}
\end{array}
Derivation
  1. Initial program 98.7%

    \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
  2. Add Preprocessing
  3. Taylor expanded in y around 0 80.4%

    \[\leadsto \frac{\color{blue}{x \cdot e^{\log a \cdot \left(t - 1\right) - b}}}{y} \]
  4. Step-by-step derivation
    1. div-exp73.4%

      \[\leadsto \frac{x \cdot \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)}}{e^{b}}}}{y} \]
    2. exp-to-pow73.9%

      \[\leadsto \frac{x \cdot \frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y} \]
    3. sub-neg73.9%

      \[\leadsto \frac{x \cdot \frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}}}{y} \]
    4. metadata-eval73.9%

      \[\leadsto \frac{x \cdot \frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y} \]
  5. Simplified73.9%

    \[\leadsto \frac{\color{blue}{x \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}}}{y} \]
  6. Taylor expanded in t around 0 59.8%

    \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
  7. Step-by-step derivation
    1. associate-*r*53.9%

      \[\leadsto \frac{x}{\color{blue}{\left(a \cdot y\right) \cdot e^{b}}} \]
    2. *-commutative53.9%

      \[\leadsto \frac{x}{\color{blue}{e^{b} \cdot \left(a \cdot y\right)}} \]
    3. *-commutative53.9%

      \[\leadsto \frac{x}{e^{b} \cdot \color{blue}{\left(y \cdot a\right)}} \]
  8. Simplified53.9%

    \[\leadsto \color{blue}{\frac{x}{e^{b} \cdot \left(y \cdot a\right)}} \]
  9. Taylor expanded in b around 0 33.2%

    \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
  10. Step-by-step derivation
    1. *-commutative33.2%

      \[\leadsto \frac{x}{\color{blue}{y \cdot a}} \]
  11. Simplified33.2%

    \[\leadsto \color{blue}{\frac{x}{y \cdot a}} \]
  12. Add Preprocessing

Alternative 26: 15.8% accurate, 105.0× speedup?

\[\begin{array}{l} \\ \frac{x}{y} \end{array} \]
(FPCore (x y z t a b) :precision binary64 (/ x y))
double code(double x, double y, double z, double t, double a, double b) {
	return 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 = x / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return x / y;
}
def code(x, y, z, t, a, b):
	return x / y
function code(x, y, z, t, a, b)
	return Float64(x / y)
end
function tmp = code(x, y, z, t, a, b)
	tmp = x / y;
end
code[x_, y_, z_, t_, a_, b_] := N[(x / y), $MachinePrecision]
\begin{array}{l}

\\
\frac{x}{y}
\end{array}
Derivation
  1. Initial program 98.7%

    \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
  2. Add Preprocessing
  3. Taylor expanded in t around 0 81.5%

    \[\leadsto \frac{\color{blue}{x \cdot e^{\left(-1 \cdot \log a + y \cdot \log z\right) - b}}}{y} \]
  4. Step-by-step derivation
    1. +-commutative81.5%

      \[\leadsto \frac{x \cdot e^{\color{blue}{\left(y \cdot \log z + -1 \cdot \log a\right)} - b}}{y} \]
    2. mul-1-neg81.5%

      \[\leadsto \frac{x \cdot e^{\left(y \cdot \log z + \color{blue}{\left(-\log a\right)}\right) - b}}{y} \]
    3. unsub-neg81.5%

      \[\leadsto \frac{x \cdot e^{\color{blue}{\left(y \cdot \log z - \log a\right)} - b}}{y} \]
  5. Simplified81.5%

    \[\leadsto \frac{\color{blue}{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}}{y} \]
  6. Taylor expanded in b around inf 47.2%

    \[\leadsto \frac{x \cdot e^{\color{blue}{-1 \cdot b}}}{y} \]
  7. Step-by-step derivation
    1. neg-mul-147.2%

      \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
  8. Simplified47.2%

    \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
  9. Taylor expanded in b around 0 14.8%

    \[\leadsto \frac{\color{blue}{x}}{y} \]
  10. Add Preprocessing

Developer Target 1: 71.9% 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 2024186 
(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))