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

Percentage Accurate: 98.4% → 98.4%
Time: 18.6s
Alternatives: 24
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 24 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 98.4% accurate, 1.0× speedup?

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

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

Alternative 1: 98.4% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \frac{x \cdot e^{\left(y \cdot \log z + \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.9%

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

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

Alternative 2: 92.4% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2.2 \cdot 10^{+104} \lor \neg \left(y \leq 1.5 \cdot 10^{+53}\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 -2.2e+104) (not (<= y 1.5e+53)))
   (/ (* 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 <= -2.2e+104) || !(y <= 1.5e+53)) {
		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 <= (-2.2d+104)) .or. (.not. (y <= 1.5d+53))) 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 <= -2.2e+104) || !(y <= 1.5e+53)) {
		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 <= -2.2e+104) or not (y <= 1.5e+53):
		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 <= -2.2e+104) || !(y <= 1.5e+53))
		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 <= -2.2e+104) || ~((y <= 1.5e+53)))
		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, -2.2e+104], N[Not[LessEqual[y, 1.5e+53]], $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 -2.2 \cdot 10^{+104} \lor \neg \left(y \leq 1.5 \cdot 10^{+53}\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 < -2.2e104 or 1.49999999999999999e53 < 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 95.0%

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

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

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

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

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

    if -2.2e104 < y < 1.49999999999999999e53

    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 96.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 simplification95.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.2 \cdot 10^{+104} \lor \neg \left(y \leq 1.5 \cdot 10^{+53}\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: 89.2% accurate, 1.4× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.12 \cdot 10^{+105} \lor \neg \left(y \leq 7.2 \cdot 10^{+61}\right):\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.12e105 or 7.20000000000000021e61 < 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 95.8%

      \[\leadsto \frac{x \cdot \color{blue}{e^{\left(-1 \cdot \log a + y \cdot \log z\right) - b}}}{y} \]
    4. Step-by-step derivation
      1. +-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{x \cdot \color{blue}{e^{\left(y \cdot \log z - \log a\right) - b}}}{y} \]
    6. Taylor expanded in b around 0 85.3%

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

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

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

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

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

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

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

    if -1.12e105 < y < 7.20000000000000021e61

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

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

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

Alternative 4: 82.1% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.6 \cdot 10^{+68} \lor \neg \left(y \leq 1.02 \cdot 10^{+46}\right):\\ \;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (or (<= y -1.6e+68) (not (<= y 1.02e+46)))
   (* 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 <= -1.6e+68) || !(y <= 1.02e+46)) {
		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 <= (-1.6d+68)) .or. (.not. (y <= 1.02d+46))) 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 <= -1.6e+68) || !(y <= 1.02e+46)) {
		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 <= -1.6e+68) or not (y <= 1.02e+46):
		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 <= -1.6e+68) || !(y <= 1.02e+46))
		tmp = Float64(x * Float64(Float64((z ^ y) / a) / y));
	else
		tmp = Float64(Float64(x * Float64((a ^ Float64(t + -1.0)) / exp(b))) / y);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if ((y <= -1.6e+68) || ~((y <= 1.02e+46)))
		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, -1.6e+68], N[Not[LessEqual[y, 1.02e+46]], $MachinePrecision]], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $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 -1.6 \cdot 10^{+68} \lor \neg \left(y \leq 1.02 \cdot 10^{+46}\right):\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.59999999999999997e68 or 1.0199999999999999e46 < 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 93.5%

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.59999999999999997e68 < y < 1.0199999999999999e46

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

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

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

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

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

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

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

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

Alternative 5: 82.2% accurate, 1.4× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.2 \cdot 10^{+63} \lor \neg \left(y \leq 7.5 \cdot 10^{+41}\right):\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -5.2000000000000002e63 or 7.50000000000000072e41 < 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 93.5%

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

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

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

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

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

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

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

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

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

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

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

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

    if -5.2000000000000002e63 < y < 7.50000000000000072e41

    1. Initial program 98.2%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-/l*96.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+96.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-sum84.7%

        \[\leadsto x \cdot \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a - b}}}{y} \]
      4. associate-/l*84.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. *-commutative84.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-pow84.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 6: 74.1% accurate, 2.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ t_2 := x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\ \mathbf{if}\;y \leq -1.15 \cdot 10^{+65}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;y \leq -1.85 \cdot 10^{-167}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 2.5 \cdot 10^{-158}:\\ \;\;\;\;\frac{\frac{x \cdot {a}^{t}}{a}}{y}\\ \mathbf{elif}\;y \leq 9 \cdot 10^{-8}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 6 \cdot 10^{+53}:\\ \;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ x (* a (* y (exp b))))) (t_2 (* x (/ (/ (pow z y) a) y))))
   (if (<= y -1.15e+65)
     t_2
     (if (<= y -1.85e-167)
       t_1
       (if (<= y 2.5e-158)
         (/ (/ (* x (pow a t)) a) y)
         (if (<= y 9e-8)
           t_1
           (if (<= y 6e+53) (/ (* x (pow a (+ t -1.0))) y) t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = x / (a * (y * exp(b)));
	double t_2 = x * ((pow(z, y) / a) / y);
	double tmp;
	if (y <= -1.15e+65) {
		tmp = t_2;
	} else if (y <= -1.85e-167) {
		tmp = t_1;
	} else if (y <= 2.5e-158) {
		tmp = ((x * pow(a, t)) / a) / y;
	} else if (y <= 9e-8) {
		tmp = t_1;
	} else if (y <= 6e+53) {
		tmp = (x * pow(a, (t + -1.0))) / 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 = x / (a * (y * exp(b)))
    t_2 = x * (((z ** y) / a) / y)
    if (y <= (-1.15d+65)) then
        tmp = t_2
    else if (y <= (-1.85d-167)) then
        tmp = t_1
    else if (y <= 2.5d-158) then
        tmp = ((x * (a ** t)) / a) / y
    else if (y <= 9d-8) then
        tmp = t_1
    else if (y <= 6d+53) then
        tmp = (x * (a ** (t + (-1.0d0)))) / 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 = x / (a * (y * Math.exp(b)));
	double t_2 = x * ((Math.pow(z, y) / a) / y);
	double tmp;
	if (y <= -1.15e+65) {
		tmp = t_2;
	} else if (y <= -1.85e-167) {
		tmp = t_1;
	} else if (y <= 2.5e-158) {
		tmp = ((x * Math.pow(a, t)) / a) / y;
	} else if (y <= 9e-8) {
		tmp = t_1;
	} else if (y <= 6e+53) {
		tmp = (x * Math.pow(a, (t + -1.0))) / y;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = x / (a * (y * math.exp(b)))
	t_2 = x * ((math.pow(z, y) / a) / y)
	tmp = 0
	if y <= -1.15e+65:
		tmp = t_2
	elif y <= -1.85e-167:
		tmp = t_1
	elif y <= 2.5e-158:
		tmp = ((x * math.pow(a, t)) / a) / y
	elif y <= 9e-8:
		tmp = t_1
	elif y <= 6e+53:
		tmp = (x * math.pow(a, (t + -1.0))) / y
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(x / Float64(a * Float64(y * exp(b))))
	t_2 = Float64(x * Float64(Float64((z ^ y) / a) / y))
	tmp = 0.0
	if (y <= -1.15e+65)
		tmp = t_2;
	elseif (y <= -1.85e-167)
		tmp = t_1;
	elseif (y <= 2.5e-158)
		tmp = Float64(Float64(Float64(x * (a ^ t)) / a) / y);
	elseif (y <= 9e-8)
		tmp = t_1;
	elseif (y <= 6e+53)
		tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y);
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = x / (a * (y * exp(b)));
	t_2 = x * (((z ^ y) / a) / y);
	tmp = 0.0;
	if (y <= -1.15e+65)
		tmp = t_2;
	elseif (y <= -1.85e-167)
		tmp = t_1;
	elseif (y <= 2.5e-158)
		tmp = ((x * (a ^ t)) / a) / y;
	elseif (y <= 9e-8)
		tmp = t_1;
	elseif (y <= 6e+53)
		tmp = (x * (a ^ (t + -1.0))) / y;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.15e+65], t$95$2, If[LessEqual[y, -1.85e-167], t$95$1, If[LessEqual[y, 2.5e-158], N[(N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 9e-8], t$95$1, If[LessEqual[y, 6e+53], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;y \leq -1.85 \cdot 10^{-167}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;y \leq 9 \cdot 10^{-8}:\\
\;\;\;\;t\_1\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -1.15e65 or 5.99999999999999996e53 < 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{x \cdot \color{blue}{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{x \cdot \color{blue}{e^{\left(y \cdot \log z - \log a\right) - b}}}{y} \]
    6. Taylor expanded in b around 0 84.9%

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

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

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

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

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

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

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

    if -1.15e65 < y < -1.8500000000000001e-167 or 2.49999999999999986e-158 < y < 8.99999999999999986e-8

    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*99.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+99.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-sum85.1%

        \[\leadsto x \cdot \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a - b}}}{y} \]
      4. associate-/l*85.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. *-commutative85.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-pow85.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.8500000000000001e-167 < y < 2.49999999999999986e-158

    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*91.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+91.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-sum91.1%

        \[\leadsto x \cdot \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a - b}}}{y} \]
      4. associate-/l*91.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. *-commutative91.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-pow91.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\left(x \cdot {z}^{y}\right) \cdot \frac{\color{blue}{{a}^{t}}}{a}}{y} \]
    11. Simplified82.7%

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

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

    if 8.99999999999999986e-8 < y < 5.99999999999999996e53

    1. Initial program 99.6%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-/l*99.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+99.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-sum49.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*49.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 7: 74.1% accurate, 2.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ t_2 := x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\ t_3 := \frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\ \mathbf{if}\;y \leq -5 \cdot 10^{+63}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;y \leq -4.9 \cdot 10^{-167}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 1.9 \cdot 10^{-158}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;y \leq 3.3 \cdot 10^{-13}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 9.4 \cdot 10^{+52}:\\ \;\;\;\;t\_3\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ x (* a (* y (exp b)))))
        (t_2 (* x (/ (/ (pow z y) a) y)))
        (t_3 (/ (* x (pow a (+ t -1.0))) y)))
   (if (<= y -5e+63)
     t_2
     (if (<= y -4.9e-167)
       t_1
       (if (<= y 1.9e-158)
         t_3
         (if (<= y 3.3e-13) t_1 (if (<= y 9.4e+52) t_3 t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = x / (a * (y * exp(b)));
	double t_2 = x * ((pow(z, y) / a) / y);
	double t_3 = (x * pow(a, (t + -1.0))) / y;
	double tmp;
	if (y <= -5e+63) {
		tmp = t_2;
	} else if (y <= -4.9e-167) {
		tmp = t_1;
	} else if (y <= 1.9e-158) {
		tmp = t_3;
	} else if (y <= 3.3e-13) {
		tmp = t_1;
	} else if (y <= 9.4e+52) {
		tmp = t_3;
	} 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) :: t_3
    real(8) :: tmp
    t_1 = x / (a * (y * exp(b)))
    t_2 = x * (((z ** y) / a) / y)
    t_3 = (x * (a ** (t + (-1.0d0)))) / y
    if (y <= (-5d+63)) then
        tmp = t_2
    else if (y <= (-4.9d-167)) then
        tmp = t_1
    else if (y <= 1.9d-158) then
        tmp = t_3
    else if (y <= 3.3d-13) then
        tmp = t_1
    else if (y <= 9.4d+52) then
        tmp = t_3
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = x / (a * (y * Math.exp(b)));
	double t_2 = x * ((Math.pow(z, y) / a) / y);
	double t_3 = (x * Math.pow(a, (t + -1.0))) / y;
	double tmp;
	if (y <= -5e+63) {
		tmp = t_2;
	} else if (y <= -4.9e-167) {
		tmp = t_1;
	} else if (y <= 1.9e-158) {
		tmp = t_3;
	} else if (y <= 3.3e-13) {
		tmp = t_1;
	} else if (y <= 9.4e+52) {
		tmp = t_3;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = x / (a * (y * math.exp(b)))
	t_2 = x * ((math.pow(z, y) / a) / y)
	t_3 = (x * math.pow(a, (t + -1.0))) / y
	tmp = 0
	if y <= -5e+63:
		tmp = t_2
	elif y <= -4.9e-167:
		tmp = t_1
	elif y <= 1.9e-158:
		tmp = t_3
	elif y <= 3.3e-13:
		tmp = t_1
	elif y <= 9.4e+52:
		tmp = t_3
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(x / Float64(a * Float64(y * exp(b))))
	t_2 = Float64(x * Float64(Float64((z ^ y) / a) / y))
	t_3 = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y)
	tmp = 0.0
	if (y <= -5e+63)
		tmp = t_2;
	elseif (y <= -4.9e-167)
		tmp = t_1;
	elseif (y <= 1.9e-158)
		tmp = t_3;
	elseif (y <= 3.3e-13)
		tmp = t_1;
	elseif (y <= 9.4e+52)
		tmp = t_3;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = x / (a * (y * exp(b)));
	t_2 = x * (((z ^ y) / a) / y);
	t_3 = (x * (a ^ (t + -1.0))) / y;
	tmp = 0.0;
	if (y <= -5e+63)
		tmp = t_2;
	elseif (y <= -4.9e-167)
		tmp = t_1;
	elseif (y <= 1.9e-158)
		tmp = t_3;
	elseif (y <= 3.3e-13)
		tmp = t_1;
	elseif (y <= 9.4e+52)
		tmp = t_3;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -5e+63], t$95$2, If[LessEqual[y, -4.9e-167], t$95$1, If[LessEqual[y, 1.9e-158], t$95$3, If[LessEqual[y, 3.3e-13], t$95$1, If[LessEqual[y, 9.4e+52], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;y \leq -4.9 \cdot 10^{-167}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq 1.9 \cdot 10^{-158}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;y \leq 3.3 \cdot 10^{-13}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq 9.4 \cdot 10^{+52}:\\
\;\;\;\;t\_3\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -5.00000000000000011e63 or 9.3999999999999999e52 < 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{x \cdot \color{blue}{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{x \cdot \color{blue}{e^{\left(y \cdot \log z - \log a\right) - b}}}{y} \]
    6. Taylor expanded in b around 0 84.9%

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

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

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

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

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

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

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

    if -5.00000000000000011e63 < y < -4.90000000000000003e-167 or 1.8999999999999999e-158 < y < 3.3000000000000001e-13

    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*99.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+99.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-sum85.1%

        \[\leadsto x \cdot \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a - b}}}{y} \]
      4. associate-/l*85.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. *-commutative85.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-pow85.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -4.90000000000000003e-167 < y < 1.8999999999999999e-158 or 3.3000000000000001e-13 < y < 9.3999999999999999e52

    1. Initial program 98.4%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-/l*93.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+93.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-sum82.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*82.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. *-commutative82.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-pow82.0%

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

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

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

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

      \[\leadsto \color{blue}{x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in b around 0 75.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. *-commutative75.6%

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

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

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

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

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

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

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

Alternative 8: 73.9% accurate, 2.5× speedup?

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

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

\mathbf{elif}\;t \leq -1.15 \cdot 10^{-254}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 2 \cdot 10^{-277}:\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\

\mathbf{elif}\;t \leq 2.25 \cdot 10^{+64}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -4.50000000000000001e103 or 2.24999999999999987e64 < 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-sum64.3%

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

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

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

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

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

      \[\leadsto \color{blue}{x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in b around 0 64.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. *-commutative64.3%

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

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

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

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

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

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

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

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

    if -4.50000000000000001e103 < t < -1.1499999999999999e-254 or 1.99999999999999994e-277 < t < 2.24999999999999987e64

    1. Initial program 98.6%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-/l*97.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+97.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-sum77.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*75.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. *-commutative75.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-pow75.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.1499999999999999e-254 < t < 1.99999999999999994e-277

    1. Initial program 97.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 9: 62.3% accurate, 2.6× speedup?

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

\\
\begin{array}{l}
t_1 := \frac{x \cdot {a}^{t}}{y}\\
\mathbf{if}\;t \leq -6.2 \cdot 10^{+102}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq -9 \cdot 10^{-40}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(b \cdot \left(y \cdot 0.5 + \frac{y}{b}\right)\right)\right)}\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -6.19999999999999973e102 or 2.90000000000000017e72 < 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-sum64.3%

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

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

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

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

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

      \[\leadsto \color{blue}{x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in b around 0 64.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. *-commutative64.3%

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

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

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

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

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

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

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

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

    if -6.19999999999999973e102 < t < -9.0000000000000002e-40

    1. Initial program 98.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -9.0000000000000002e-40 < t < 2.90000000000000017e72

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 10: 73.8% accurate, 2.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.2 \cdot 10^{+102} \lor \neg \left(t \leq 1.7 \cdot 10^{+64}\right):\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -7.2000000000000003e102 or 1.7000000000000001e64 < 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-sum64.3%

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

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

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

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

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

      \[\leadsto \color{blue}{x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in b around 0 64.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. *-commutative64.3%

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

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

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

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

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

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

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

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

    if -7.2000000000000003e102 < t < 1.7000000000000001e64

    1. Initial program 98.4%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-/l*96.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+96.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-sum75.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 11: 62.6% accurate, 2.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.2 \cdot 10^{-15} \lor \neg \left(b \leq 330\right):\\
\;\;\;\;\frac{\frac{x}{e^{b}}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -7.2000000000000002e-15 or 330 < 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 90.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -7.2000000000000002e-15 < b < 330

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 12: 54.6% accurate, 2.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -3.2 \cdot 10^{+81}:\\ \;\;\;\;\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 -7.2 \cdot 10^{-15}:\\ \;\;\;\;x \cdot \frac{e^{b}}{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 -3.2e+81)
   (/ (* x (+ 1.0 (* b (+ -1.0 (* b (+ 0.5 (* b -0.16666666666666666))))))) y)
   (if (<= b -7.2e-15)
     (* x (/ (exp b) 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 <= -3.2e+81) {
		tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
	} else if (b <= -7.2e-15) {
		tmp = x * (exp(b) / 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 <= (-3.2d+81)) then
        tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * (0.5d0 + (b * (-0.16666666666666666d0)))))))) / y
    else if (b <= (-7.2d-15)) then
        tmp = x * (exp(b) / 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 <= -3.2e+81) {
		tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
	} else if (b <= -7.2e-15) {
		tmp = x * (Math.exp(b) / 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 <= -3.2e+81:
		tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y
	elif b <= -7.2e-15:
		tmp = x * (math.exp(b) / 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 <= -3.2e+81)
		tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(-1.0 + Float64(b * Float64(0.5 + Float64(b * -0.16666666666666666))))))) / y);
	elseif (b <= -7.2e-15)
		tmp = Float64(x * Float64(exp(b) / 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 <= -3.2e+81)
		tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
	elseif (b <= -7.2e-15)
		tmp = x * (exp(b) / 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, -3.2e+81], 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, -7.2e-15], N[(x * N[(N[Exp[b], $MachinePrecision] / y), $MachinePrecision]), $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 -3.2 \cdot 10^{+81}:\\
\;\;\;\;\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 -7.2 \cdot 10^{-15}:\\
\;\;\;\;x \cdot \frac{e^{b}}{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 3 regimes
  2. if b < -3.2e81

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

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

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

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

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

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

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

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

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

      \[\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 -3.2e81 < b < -7.2000000000000002e-15

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{x \cdot \frac{e^{-b}}{y}} \]
      2. add-sqr-sqrt46.4%

        \[\leadsto x \cdot \frac{e^{\color{blue}{\sqrt{-b} \cdot \sqrt{-b}}}}{y} \]
      3. sqrt-unprod46.4%

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

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

        \[\leadsto x \cdot \frac{e^{\color{blue}{\sqrt{b} \cdot \sqrt{b}}}}{y} \]
      6. add-sqr-sqrt59.8%

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

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

    if -7.2000000000000002e-15 < b

    1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3.2 \cdot 10^{+81}:\\ \;\;\;\;\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 -7.2 \cdot 10^{-15}:\\ \;\;\;\;x \cdot \frac{e^{b}}{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 13: 57.3% accurate, 10.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -3 \cdot 10^{+80}:\\ \;\;\;\;\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 4 \cdot 10^{-98}:\\ \;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(b \cdot \left(y \cdot 0.5 + \frac{y}{b}\right)\right)\right)}\\ \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 -3e+80)
   (/ (* x (+ 1.0 (* b (+ -1.0 (* b (+ 0.5 (* b -0.16666666666666666))))))) y)
   (if (<= b 4e-98)
     (/ x (* a (+ y (* b (* b (+ (* y 0.5) (/ y b)))))))
     (/
      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 <= -3e+80) {
		tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
	} else if (b <= 4e-98) {
		tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b))))));
	} 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 <= (-3d+80)) then
        tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * (0.5d0 + (b * (-0.16666666666666666d0)))))))) / y
    else if (b <= 4d-98) then
        tmp = x / (a * (y + (b * (b * ((y * 0.5d0) + (y / b))))))
    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 <= -3e+80) {
		tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
	} else if (b <= 4e-98) {
		tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b))))));
	} 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 <= -3e+80:
		tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y
	elif b <= 4e-98:
		tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b))))))
	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 <= -3e+80)
		tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(-1.0 + Float64(b * Float64(0.5 + Float64(b * -0.16666666666666666))))))) / y);
	elseif (b <= 4e-98)
		tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(b * Float64(Float64(y * 0.5) + Float64(y / b)))))));
	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 <= -3e+80)
		tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
	elseif (b <= 4e-98)
		tmp = x / (a * (y + (b * (b * ((y * 0.5) + (y / b))))));
	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, -3e+80], 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, 4e-98], N[(x / N[(a * N[(y + N[(b * N[(b * N[(N[(y * 0.5), $MachinePrecision] + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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 -3 \cdot 10^{+80}:\\
\;\;\;\;\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 4 \cdot 10^{-98}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(b \cdot \left(y \cdot 0.5 + \frac{y}{b}\right)\right)\right)}\\

\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 3 regimes
  2. if b < -2.99999999999999987e80

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

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

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

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

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

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

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

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

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

      \[\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.99999999999999987e80 < b < 3.99999999999999976e-98

    1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 3.99999999999999976e-98 < 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. Step-by-step derivation
      1. associate-/l*98.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3 \cdot 10^{+80}:\\ \;\;\;\;\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 4 \cdot 10^{-98}:\\ \;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(b \cdot \left(y \cdot 0.5 + \frac{y}{b}\right)\right)\right)}\\ \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: 54.2% accurate, 14.3× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.2 \cdot 10^{+80}:\\
\;\;\;\;\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{x}{a \cdot \left(y + b \cdot \left(b \cdot \left(y \cdot 0.5 + \frac{y}{b}\right)\right)\right)}\\


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

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

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

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

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

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

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

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

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

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

      \[\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 -3.1999999999999999e80 < b

    1. Initial program 98.7%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-/l*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-sum71.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*69.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3.2 \cdot 10^{+80}:\\ \;\;\;\;\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{x}{a \cdot \left(y + b \cdot \left(b \cdot \left(y \cdot 0.5 + \frac{y}{b}\right)\right)\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 15: 52.7% accurate, 14.3× speedup?

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

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

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


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

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

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

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

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

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

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

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

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

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

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

    if -2.39999999999999991e83 < b

    1. Initial program 98.7%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-/l*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-sum71.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*69.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 16: 51.2% accurate, 15.7× speedup?

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

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

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


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

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

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

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

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

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

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

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

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

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

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

    if -1.69999999999999997e82 < b

    1. Initial program 98.7%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-/l*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-sum71.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*69.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 17: 44.4% accurate, 17.5× speedup?

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

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

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

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

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

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

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

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

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

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

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

    if -1.11999999999999998e82 < b

    1. Initial program 98.7%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-/l*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-sum71.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*69.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 18: 40.3% accurate, 17.5× speedup?

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

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


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

    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-sum71.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*71.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. *-commutative71.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-pow71.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -0.014999999999999999 < b

    1. Initial program 98.6%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-/l*97.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+97.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-sum72.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*70.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. *-commutative70.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-pow70.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 19: 37.8% accurate, 22.5× speedup?

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

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

\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 < -8.4999999999999998e79

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\left(1 + -1 \cdot b\right)} \cdot x}{y} \]
      4. mul-1-neg39.3%

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

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

      \[\leadsto \frac{\color{blue}{\left(1 - b\right) \cdot x}}{y} \]
    12. Taylor expanded in b around inf 39.3%

      \[\leadsto \color{blue}{-1 \cdot \frac{b \cdot x}{y}} \]
    13. Step-by-step derivation
      1. mul-1-neg39.3%

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

        \[\leadsto -\color{blue}{b \cdot \frac{x}{y}} \]
      3. *-commutative43.6%

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

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

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

    if -8.4999999999999998e79 < b

    1. Initial program 98.7%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-/l*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-sum71.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*69.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 20: 32.0% accurate, 26.2× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq 6.5 \cdot 10^{+142}:\\
\;\;\;\;\frac{x \cdot \frac{1}{a}}{y}\\

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


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

    1. Initial program 99.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 6.4999999999999997e142 < a

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto x \cdot \frac{\color{blue}{\frac{1}{a}}}{y} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 21: 32.1% accurate, 26.2× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq 5 \cdot 10^{+143}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\

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


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

    1. Initial program 99.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 5.00000000000000012e143 < a

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto x \cdot \frac{\color{blue}{\frac{1}{a}}}{y} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 22: 32.1% accurate, 31.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq 1.2 \cdot 10^{+142}:\\
\;\;\;\;\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 < 1.2e142

    1. Initial program 99.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 1.2e142 < a

    1. Initial program 97.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 23: 31.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.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.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-sum71.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*70.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. *-commutative70.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-pow70.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \frac{x}{\color{blue}{y \cdot a}} \]
  12. Add Preprocessing

Alternative 24: 15.9% 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.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 81.9%

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

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

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

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

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

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

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

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

    \[\leadsto \color{blue}{\frac{x}{y}} \]
  10. Add Preprocessing

Developer Target 1: 72.1% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
t_1 := {a}^{\left(t - 1\right)}\\
t_2 := \frac{x \cdot \frac{t\_1}{y}}{\left(b + 1\right) - y \cdot \log z}\\
\mathbf{if}\;t < -0.8845848504127471:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t < 852031.2288374073:\\
\;\;\;\;\frac{\frac{x}{y} \cdot t\_1}{e^{b - \log z \cdot y}}\\

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


\end{array}
\end{array}

Reproduce

?
herbie shell --seed 2024146 
(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))