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

Percentage Accurate: 98.3% → 98.3%
Time: 18.2s
Alternatives: 25
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 25 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.3% 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.3% accurate, 1.0× speedup?

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

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

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

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

Alternative 2: 91.3% accurate, 1.0× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -4.99999999999999973e48

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

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

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

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

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

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

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

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

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

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

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

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

    if -4.99999999999999973e48 < y < 0.0189999999999999995

    1. Initial program 96.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. *-commutative96.8%

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

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

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

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

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

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

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

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

    if 0.0189999999999999995 < 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.6%

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

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

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

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

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

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

Alternative 3: 76.5% accurate, 1.4× speedup?

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

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

\mathbf{elif}\;y \leq 6.5 \cdot 10^{-183}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -3.3999999999999998e36 or 2.3000000000000001e-4 < y

    1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

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

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

    if -3.3999999999999998e36 < y < 6.50000000000000014e-183

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

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot \color{blue}{\frac{1}{e^{b + \log a}}}}{y} \]
      2. associate-*r/83.0%

        \[\leadsto \frac{\color{blue}{\frac{x \cdot 1}{e^{b + \log a}}}}{y} \]
      3. *-rgt-identity83.0%

        \[\leadsto \frac{\frac{\color{blue}{x}}{e^{b + \log a}}}{y} \]
      4. +-commutative83.0%

        \[\leadsto \frac{\frac{x}{e^{\color{blue}{\log a + b}}}}{y} \]
      5. exp-sum83.0%

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

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

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

    if 6.50000000000000014e-183 < y < 2.3000000000000001e-4

    1. Initial program 95.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*92.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+92.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-sum92.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*92.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. *-commutative92.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-pow92.6%

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

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

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

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

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

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

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

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

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

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

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

Alternative 4: 88.6% accurate, 1.4× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.2500000000000001e49 or 58 < 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.5%

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

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

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

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

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

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

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

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

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

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

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

    if -1.2500000000000001e49 < y < 58

    1. Initial program 96.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. *-commutative96.8%

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

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

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

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

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

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

      \[\leadsto \color{blue}{e^{\mathsf{fma}\left(y, \log z, \left(t + -1\right) \cdot \log a - b\right)} \cdot \frac{x}{y}} \]
    4. Add Preprocessing
    5. 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 simplification93.5%

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

Alternative 5: 82.1% accurate, 1.4× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -8.49999999999999954e28 or 2.3000000000000001e-4 < y

    1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

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

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

    if -8.49999999999999954e28 < y < 2.3000000000000001e-4

    1. Initial program 96.7%

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

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

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

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

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

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

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

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

Alternative 6: 78.5% accurate, 1.4× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -5.8000000000000002e28 or 1.56e-4 < y

    1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

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

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

    if -5.8000000000000002e28 < y < 1.56e-4

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 7: 61.2% accurate, 2.5× speedup?

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

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if b < -1.22e10 or 66000 < b

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{x \cdot \frac{e^{-b}}{y}} \]
    10. Simplified86.1%

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

    if -1.22e10 < b < -2.20000000000000002e-300

    1. Initial program 97.6%

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.20000000000000002e-300 < b < 3.7999999999999997e-132

    1. Initial program 97.0%

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

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

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

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

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

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

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

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

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

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

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

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

    if 3.7999999999999997e-132 < b < 66000

    1. Initial program 95.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*93.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+93.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-sum82.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*80.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. *-commutative80.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-pow80.1%

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -12200000000:\\ \;\;\;\;x \cdot \frac{e^{-b}}{y}\\ \mathbf{elif}\;b \leq -2.2 \cdot 10^{-300}:\\ \;\;\;\;\frac{\frac{x}{a}}{y}\\ \mathbf{elif}\;b \leq 3.8 \cdot 10^{-132}:\\ \;\;\;\;\frac{x \cdot {a}^{t}}{y}\\ \mathbf{elif}\;b \leq 66000:\\ \;\;\;\;\frac{x}{y \cdot a + b \cdot \left(y \cdot a + b \cdot \left(0.16666666666666666 \cdot \left(a \cdot \left(y \cdot b\right)\right) + \left(y \cdot a\right) \cdot 0.5\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{e^{-b}}{y}\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 55.3% accurate, 2.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.05 \cdot 10^{+86}:\\
\;\;\;\;\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 \cdot 10^{+22} \lor \neg \left(b \leq 190000\right):\\
\;\;\;\;\frac{\frac{x}{y}}{e^{b}}\\

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


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

    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. *-commutative100.0%

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.0499999999999999e86 < b < -7e22 or 1.9e5 < b

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{e^{-b} \cdot \frac{x}{y}} \]
      3. *-commutative77.9%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{-b}} \]
      4. rec-exp77.9%

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

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

        \[\leadsto \frac{\color{blue}{\frac{x}{y}}}{e^{b}} \]
    10. Simplified77.9%

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

    if -7e22 < b < 1.9e5

    1. Initial program 97.0%

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.05 \cdot 10^{+86}:\\ \;\;\;\;\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 \cdot 10^{+22} \lor \neg \left(b \leq 190000\right):\\ \;\;\;\;\frac{\frac{x}{y}}{e^{b}}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{a}}{y}\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 75.0% accurate, 2.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.4 \cdot 10^{+36} \lor \neg \left(y \leq 3.8 \cdot 10^{-5}\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -3.3999999999999998e36 or 3.8000000000000002e-5 < y

    1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

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

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

    if -3.3999999999999998e36 < y < 3.8000000000000002e-5

    1. Initial program 96.7%

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

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot \color{blue}{\frac{1}{e^{b + \log a}}}}{y} \]
      2. associate-*r/77.3%

        \[\leadsto \frac{\color{blue}{\frac{x \cdot 1}{e^{b + \log a}}}}{y} \]
      3. *-rgt-identity77.3%

        \[\leadsto \frac{\frac{\color{blue}{x}}{e^{b + \log a}}}{y} \]
      4. +-commutative77.3%

        \[\leadsto \frac{\frac{x}{e^{\color{blue}{\log a + b}}}}{y} \]
      5. exp-sum77.3%

        \[\leadsto \frac{\frac{x}{\color{blue}{e^{\log a} \cdot e^{b}}}}{y} \]
      6. rem-exp-log78.5%

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

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

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

Alternative 10: 71.6% accurate, 2.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.8 \cdot 10^{+31}:\\
\;\;\;\;x \cdot \frac{e^{-b}}{y}\\

\mathbf{elif}\;b \leq 1.35 \cdot 10^{-18}:\\
\;\;\;\;x \cdot \frac{{z}^{y}}{y \cdot a}\\

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


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

    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. *-commutative100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -4.79999999999999965e31 < b < 1.34999999999999994e-18

    1. Initial program 97.7%

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto x \cdot \frac{\frac{{z}^{y}}{\color{blue}{a}}}{y} \]
      6. associate-/r*70.8%

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

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

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

    if 1.34999999999999994e-18 < 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. Add Preprocessing
    3. Taylor expanded in t around 0 85.8%

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot \color{blue}{\frac{1}{e^{b + \log a}}}}{y} \]
      2. associate-*r/81.9%

        \[\leadsto \frac{\color{blue}{\frac{x \cdot 1}{e^{b + \log a}}}}{y} \]
      3. *-rgt-identity81.9%

        \[\leadsto \frac{\frac{\color{blue}{x}}{e^{b + \log a}}}{y} \]
      4. +-commutative81.9%

        \[\leadsto \frac{\frac{x}{e^{\color{blue}{\log a + b}}}}{y} \]
      5. exp-sum81.9%

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

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

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

Alternative 11: 73.3% accurate, 2.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.4 \cdot 10^{+124} \lor \neg \left(t \leq 5.8 \cdot 10^{+46}\right):\\
\;\;\;\;\frac{x \cdot {a}^{t}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -2.40000000000000006e124 or 5.8000000000000004e46 < t

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.40000000000000006e124 < t < 5.8000000000000004e46

    1. Initial program 97.5%

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

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot \color{blue}{\frac{1}{e^{b + \log a}}}}{y} \]
      2. associate-*r/70.6%

        \[\leadsto \frac{\color{blue}{\frac{x \cdot 1}{e^{b + \log a}}}}{y} \]
      3. *-rgt-identity70.6%

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

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

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

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

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

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

Alternative 12: 73.4% accurate, 2.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -8.2 \cdot 10^{+124} \lor \neg \left(t \leq 1.6 \cdot 10^{+44}\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 -8.2e+124) (not (<= t 1.6e+44)))
   (/ (* 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 <= -8.2e+124) || !(t <= 1.6e+44)) {
		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 <= (-8.2d+124)) .or. (.not. (t <= 1.6d+44))) 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 <= -8.2e+124) || !(t <= 1.6e+44)) {
		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 <= -8.2e+124) or not (t <= 1.6e+44):
		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 <= -8.2e+124) || !(t <= 1.6e+44))
		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 <= -8.2e+124) || ~((t <= 1.6e+44)))
		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, -8.2e+124], N[Not[LessEqual[t, 1.6e+44]], $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 -8.2 \cdot 10^{+124} \lor \neg \left(t \leq 1.6 \cdot 10^{+44}\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 < -8.20000000000000002e124 or 1.60000000000000002e44 < t

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

    if -8.20000000000000002e124 < t < 1.60000000000000002e44

    1. Initial program 97.5%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. 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-sum84.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -8.2 \cdot 10^{+124} \lor \neg \left(t \leq 1.6 \cdot 10^{+44}\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 13: 58.8% accurate, 2.7× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -1.22e10 or 66000 < b

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{x \cdot \frac{e^{-b}}{y}} \]
    10. Simplified86.1%

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

    if -1.22e10 < b < 66000

    1. Initial program 97.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 14: 53.0% accurate, 10.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -4500000000000:\\
\;\;\;\;\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 2.05 \cdot 10^{-112}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\

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


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

    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. *-commutative100.0%

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

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

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

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

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

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

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

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

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

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

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

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

    if -4.5e12 < b < 2.04999999999999998e-112

    1. Initial program 97.3%

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

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

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

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

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

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

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

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

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

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

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

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

    if 2.04999999999999998e-112 < 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*98.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 15: 51.3% accurate, 12.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -55000000000:\\ \;\;\;\;\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 3.7 \cdot 10^{-112}:\\ \;\;\;\;\frac{\frac{x}{a}}{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 -55000000000.0)
   (/ (* x (+ 1.0 (* b (+ -1.0 (* b (+ 0.5 (* b -0.16666666666666666))))))) y)
   (if (<= b 3.7e-112)
     (/ (/ x a) 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 <= -55000000000.0) {
		tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
	} else if (b <= 3.7e-112) {
		tmp = (x / a) / 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 <= (-55000000000.0d0)) then
        tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * (0.5d0 + (b * (-0.16666666666666666d0)))))))) / y
    else if (b <= 3.7d-112) then
        tmp = (x / a) / 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 <= -55000000000.0) {
		tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
	} else if (b <= 3.7e-112) {
		tmp = (x / a) / 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 <= -55000000000.0:
		tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y
	elif b <= 3.7e-112:
		tmp = (x / a) / 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 <= -55000000000.0)
		tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(-1.0 + Float64(b * Float64(0.5 + Float64(b * -0.16666666666666666))))))) / y);
	elseif (b <= 3.7e-112)
		tmp = Float64(Float64(x / a) / 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 <= -55000000000.0)
		tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / y;
	elseif (b <= 3.7e-112)
		tmp = (x / a) / 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, -55000000000.0], 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, 3.7e-112], N[(N[(x / a), $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 -55000000000:\\
\;\;\;\;\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 3.7 \cdot 10^{-112}:\\
\;\;\;\;\frac{\frac{x}{a}}{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 3 regimes
  2. if b < -5.5e10

    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. *-commutative100.0%

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

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

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

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

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

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

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

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

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

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

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

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

    if -5.5e10 < b < 3.6999999999999998e-112

    1. Initial program 97.3%

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

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

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

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

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

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

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

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

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

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

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

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

    if 3.6999999999999998e-112 < 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*98.7%

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    9. Taylor expanded in b around 0 63.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. *-commutative63.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. Simplified63.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 3 regimes into one program.
  4. Final simplification57.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -55000000000:\\ \;\;\;\;\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 3.7 \cdot 10^{-112}:\\ \;\;\;\;\frac{\frac{x}{a}}{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 16: 49.6% accurate, 12.6× speedup?

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

\mathbf{elif}\;b \leq 3 \cdot 10^{-112}:\\
\;\;\;\;\frac{\frac{x}{a}}{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 3 regimes
  2. if b < -1.8000000000000001e30

    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. *-commutative100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.8000000000000001e30 < b < 3.0000000000000001e-112

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

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

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

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

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

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

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

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

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

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

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

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

    if 3.0000000000000001e-112 < 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*98.7%

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    9. Taylor expanded in b around 0 63.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. *-commutative63.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. Simplified63.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 3 regimes into one program.
  4. Final simplification55.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.8 \cdot 10^{+30}:\\ \;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(-1 + b \cdot 0.5\right)\right)}{y}\\ \mathbf{elif}\;b \leq 3 \cdot 10^{-112}:\\ \;\;\;\;\frac{\frac{x}{a}}{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.3% accurate, 16.6× speedup?

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

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

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

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


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

    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. *-commutative100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.29999999999999984e28 < b < 2.75e-112

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

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

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

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

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

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

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

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

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

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

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

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

    if 2.75e-112 < 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*98.7%

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 18: 43.4% accurate, 16.6× speedup?

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

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

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

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


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

    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. *-commutative100.0%

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

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

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

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

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

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

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

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

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

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

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

    if -3.10000000000000011e24 < b < 1.99999999999999996e-113

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

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

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

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

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

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

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

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

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

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

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

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

    if 1.99999999999999996e-113 < 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*98.7%

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 19: 39.0% accurate, 16.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -9.5 \cdot 10^{+26}:\\
\;\;\;\;\frac{x}{y} - x \cdot \frac{b}{y}\\

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

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


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

    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. *-commutative100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x}{y} - \color{blue}{x \cdot \frac{b}{y}} \]
    14. Simplified36.5%

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

    if -9.50000000000000054e26 < b < 5.00000000000000044e-112

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

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

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

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

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

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

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

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

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

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

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

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

    if 5.00000000000000044e-112 < 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*98.7%

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 20: 34.4% accurate, 22.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -12500000000000:\\
\;\;\;\;\frac{x}{y} - x \cdot \frac{b}{y}\\

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


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

    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. *-commutative100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x}{y} - \color{blue}{x \cdot \frac{b}{y}} \]
    14. Simplified38.3%

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

    if -1.25e13 < b

    1. Initial program 98.0%

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 21: 33.1% accurate, 26.2× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -360000000000:\\
\;\;\;\;\frac{x}{y} \cdot \left(1 - b\right)\\

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


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

    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. *-commutative100.0%

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\left(1 + -1 \cdot b\right)} \cdot \frac{x}{y} \]
    9. Step-by-step derivation
      1. neg-mul-134.5%

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

        \[\leadsto \color{blue}{\left(1 - b\right)} \cdot \frac{x}{y} \]
    10. Simplified34.5%

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

    if -3.6e11 < b

    1. Initial program 98.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 22: 30.9% accurate, 63.0× speedup?

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

\\
\frac{\frac{x}{a}}{y}
\end{array}
Derivation
  1. Initial program 98.4%

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \frac{\color{blue}{\frac{x}{a}}}{y} \]
  9. Add Preprocessing

Alternative 23: 30.8% accurate, 63.0× speedup?

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

\\
\frac{x}{y \cdot a}
\end{array}
Derivation
  1. Initial program 98.4%

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

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

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

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

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

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

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

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

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

    \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
  10. Final simplification29.7%

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

Alternative 24: 16.6% accurate, 63.0× speedup?

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

\\
\frac{1}{\frac{y}{x}}
\end{array}
Derivation
  1. Initial program 98.4%

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \color{blue}{\frac{x}{y}} \]
  9. Step-by-step derivation
    1. clear-num18.4%

      \[\leadsto \color{blue}{\frac{1}{\frac{y}{x}}} \]
    2. inv-pow18.4%

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

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

      \[\leadsto \color{blue}{\frac{1}{\frac{y}{x}}} \]
  12. Simplified18.4%

    \[\leadsto \color{blue}{\frac{1}{\frac{y}{x}}} \]
  13. Add Preprocessing

Alternative 25: 16.3% 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.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. *-commutative98.4%

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \color{blue}{\frac{x}{y}} \]
  9. Add Preprocessing

Developer Target 1: 72.2% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
t_1 := {a}^{\left(t - 1\right)}\\
t_2 := \frac{x \cdot \frac{t\_1}{y}}{\left(b + 1\right) - y \cdot \log z}\\
\mathbf{if}\;t < -0.8845848504127471:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t < 852031.2288374073:\\
\;\;\;\;\frac{\frac{x}{y} \cdot t\_1}{e^{b - \log z \cdot y}}\\

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


\end{array}
\end{array}

Reproduce

?
herbie shell --seed 2024172 
(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))