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

Percentage Accurate: 98.5% → 98.5%
Time: 21.1s
Alternatives: 24
Speedup: 1.0×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 24 alternatives:

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

Initial Program: 98.5% accurate, 1.0× speedup?

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

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

Alternative 1: 98.5% accurate, 1.0× speedup?

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

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

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

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

Alternative 2: 92.8% accurate, 1.0× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -2.4e-9 or 1.26e33 < y

    1. Initial program 99.8%

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

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

    if -2.4e-9 < y < 1.26e33

    1. Initial program 98.1%

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

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

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

Alternative 3: 77.7% accurate, 1.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := {a}^{\left(t + -1\right)}\\ t_2 := y \cdot e^{b}\\ t_3 := \frac{\frac{x \cdot {z}^{y}}{a}}{y}\\ \mathbf{if}\;y \leq -3.35 \cdot 10^{+77}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;y \leq -6200000000:\\ \;\;\;\;\frac{x}{a \cdot t\_2}\\ \mathbf{elif}\;y \leq -4.9 \cdot 10^{-13}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{t\_2}\\ \mathbf{elif}\;y \leq -8.2 \cdot 10^{-106}:\\ \;\;\;\;\frac{x \cdot t\_1}{y}\\ \mathbf{elif}\;y \leq 5.2 \cdot 10^{+103}:\\ \;\;\;\;x \cdot \frac{\frac{t\_1}{y}}{e^{b}}\\ \mathbf{else}:\\ \;\;\;\;t\_3\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (pow a (+ t -1.0)))
        (t_2 (* y (exp b)))
        (t_3 (/ (/ (* x (pow z y)) a) y)))
   (if (<= y -3.35e+77)
     t_3
     (if (<= y -6200000000.0)
       (/ x (* a t_2))
       (if (<= y -4.9e-13)
         (* (/ x a) (/ (pow z y) t_2))
         (if (<= y -8.2e-106)
           (/ (* x t_1) y)
           (if (<= y 5.2e+103) (* x (/ (/ t_1 y) (exp b))) t_3)))))))
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 = y * exp(b);
	double t_3 = ((x * pow(z, y)) / a) / y;
	double tmp;
	if (y <= -3.35e+77) {
		tmp = t_3;
	} else if (y <= -6200000000.0) {
		tmp = x / (a * t_2);
	} else if (y <= -4.9e-13) {
		tmp = (x / a) * (pow(z, y) / t_2);
	} else if (y <= -8.2e-106) {
		tmp = (x * t_1) / y;
	} else if (y <= 5.2e+103) {
		tmp = x * ((t_1 / y) / exp(b));
	} else {
		tmp = t_3;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: tmp
    t_1 = a ** (t + (-1.0d0))
    t_2 = y * exp(b)
    t_3 = ((x * (z ** y)) / a) / y
    if (y <= (-3.35d+77)) then
        tmp = t_3
    else if (y <= (-6200000000.0d0)) then
        tmp = x / (a * t_2)
    else if (y <= (-4.9d-13)) then
        tmp = (x / a) * ((z ** y) / t_2)
    else if (y <= (-8.2d-106)) then
        tmp = (x * t_1) / y
    else if (y <= 5.2d+103) then
        tmp = x * ((t_1 / y) / exp(b))
    else
        tmp = t_3
    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 = y * Math.exp(b);
	double t_3 = ((x * Math.pow(z, y)) / a) / y;
	double tmp;
	if (y <= -3.35e+77) {
		tmp = t_3;
	} else if (y <= -6200000000.0) {
		tmp = x / (a * t_2);
	} else if (y <= -4.9e-13) {
		tmp = (x / a) * (Math.pow(z, y) / t_2);
	} else if (y <= -8.2e-106) {
		tmp = (x * t_1) / y;
	} else if (y <= 5.2e+103) {
		tmp = x * ((t_1 / y) / Math.exp(b));
	} else {
		tmp = t_3;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = math.pow(a, (t + -1.0))
	t_2 = y * math.exp(b)
	t_3 = ((x * math.pow(z, y)) / a) / y
	tmp = 0
	if y <= -3.35e+77:
		tmp = t_3
	elif y <= -6200000000.0:
		tmp = x / (a * t_2)
	elif y <= -4.9e-13:
		tmp = (x / a) * (math.pow(z, y) / t_2)
	elif y <= -8.2e-106:
		tmp = (x * t_1) / y
	elif y <= 5.2e+103:
		tmp = x * ((t_1 / y) / math.exp(b))
	else:
		tmp = t_3
	return tmp
function code(x, y, z, t, a, b)
	t_1 = a ^ Float64(t + -1.0)
	t_2 = Float64(y * exp(b))
	t_3 = Float64(Float64(Float64(x * (z ^ y)) / a) / y)
	tmp = 0.0
	if (y <= -3.35e+77)
		tmp = t_3;
	elseif (y <= -6200000000.0)
		tmp = Float64(x / Float64(a * t_2));
	elseif (y <= -4.9e-13)
		tmp = Float64(Float64(x / a) * Float64((z ^ y) / t_2));
	elseif (y <= -8.2e-106)
		tmp = Float64(Float64(x * t_1) / y);
	elseif (y <= 5.2e+103)
		tmp = Float64(x * Float64(Float64(t_1 / y) / exp(b)));
	else
		tmp = t_3;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = a ^ (t + -1.0);
	t_2 = y * exp(b);
	t_3 = ((x * (z ^ y)) / a) / y;
	tmp = 0.0;
	if (y <= -3.35e+77)
		tmp = t_3;
	elseif (y <= -6200000000.0)
		tmp = x / (a * t_2);
	elseif (y <= -4.9e-13)
		tmp = (x / a) * ((z ^ y) / t_2);
	elseif (y <= -8.2e-106)
		tmp = (x * t_1) / y;
	elseif (y <= 5.2e+103)
		tmp = x * ((t_1 / y) / exp(b));
	else
		tmp = t_3;
	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[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -3.35e+77], t$95$3, If[LessEqual[y, -6200000000.0], N[(x / N[(a * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4.9e-13], N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -8.2e-106], N[(N[(x * t$95$1), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 5.2e+103], N[(x * N[(N[(t$95$1 / y), $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;y \leq -6200000000:\\
\;\;\;\;\frac{x}{a \cdot t\_2}\\

\mathbf{elif}\;y \leq -4.9 \cdot 10^{-13}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{t\_2}\\

\mathbf{elif}\;y \leq -8.2 \cdot 10^{-106}:\\
\;\;\;\;\frac{x \cdot t\_1}{y}\\

\mathbf{elif}\;y \leq 5.2 \cdot 10^{+103}:\\
\;\;\;\;x \cdot \frac{\frac{t\_1}{y}}{e^{b}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if y < -3.35000000000000014e77 or 5.2000000000000003e103 < y

    1. Initial program 100.0%

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

      \[\leadsto \frac{x \cdot \color{blue}{e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
    4. Step-by-step derivation
      1. exp-sum67.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. *-commutative67.5%

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

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

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

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

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

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

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

    if -3.35000000000000014e77 < y < -6.2e9

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\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*77.4%

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

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

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

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

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

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

    if -6.2e9 < y < -4.90000000000000033e-13

    1. Initial program 95.6%

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

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

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

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

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

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

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

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

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

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

    if -4.90000000000000033e-13 < y < -8.1999999999999998e-106

    1. Initial program 99.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -8.1999999999999998e-106 < y < 5.2000000000000003e103

    1. Initial program 98.1%

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

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

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

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

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

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

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

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

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

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

      \[\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*81.5%

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.35 \cdot 10^{+77}:\\ \;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\ \mathbf{elif}\;y \leq -6200000000:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;y \leq -4.9 \cdot 10^{-13}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}\\ \mathbf{elif}\;y \leq -8.2 \cdot 10^{-106}:\\ \;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\ \mathbf{elif}\;y \leq 5.2 \cdot 10^{+103}:\\ \;\;\;\;x \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 77.6% accurate, 1.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := {a}^{\left(t + -1\right)}\\ t_2 := \frac{\frac{x \cdot {z}^{y}}{a}}{y}\\ \mathbf{if}\;y \leq -5 \cdot 10^{+78}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;y \leq -10000000000:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;y \leq -1.65 \cdot 10^{-9}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;y \leq -1.65 \cdot 10^{-102}:\\ \;\;\;\;\frac{x \cdot t\_1}{y}\\ \mathbf{elif}\;y \leq 1.15 \cdot 10^{+105}:\\ \;\;\;\;x \cdot \frac{\frac{t\_1}{y}}{e^{b}}\\ \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 (pow z y)) a) y)))
   (if (<= y -5e+78)
     t_2
     (if (<= y -10000000000.0)
       (/ x (* a (* y (exp b))))
       (if (<= y -1.65e-9)
         t_2
         (if (<= y -1.65e-102)
           (/ (* x t_1) y)
           (if (<= y 1.15e+105) (* x (/ (/ t_1 y) (exp b))) 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 * pow(z, y)) / a) / y;
	double tmp;
	if (y <= -5e+78) {
		tmp = t_2;
	} else if (y <= -10000000000.0) {
		tmp = x / (a * (y * exp(b)));
	} else if (y <= -1.65e-9) {
		tmp = t_2;
	} else if (y <= -1.65e-102) {
		tmp = (x * t_1) / y;
	} else if (y <= 1.15e+105) {
		tmp = x * ((t_1 / y) / exp(b));
	} 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 * (z ** y)) / a) / y
    if (y <= (-5d+78)) then
        tmp = t_2
    else if (y <= (-10000000000.0d0)) then
        tmp = x / (a * (y * exp(b)))
    else if (y <= (-1.65d-9)) then
        tmp = t_2
    else if (y <= (-1.65d-102)) then
        tmp = (x * t_1) / y
    else if (y <= 1.15d+105) then
        tmp = x * ((t_1 / y) / exp(b))
    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 * Math.pow(z, y)) / a) / y;
	double tmp;
	if (y <= -5e+78) {
		tmp = t_2;
	} else if (y <= -10000000000.0) {
		tmp = x / (a * (y * Math.exp(b)));
	} else if (y <= -1.65e-9) {
		tmp = t_2;
	} else if (y <= -1.65e-102) {
		tmp = (x * t_1) / y;
	} else if (y <= 1.15e+105) {
		tmp = x * ((t_1 / y) / Math.exp(b));
	} 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 * math.pow(z, y)) / a) / y
	tmp = 0
	if y <= -5e+78:
		tmp = t_2
	elif y <= -10000000000.0:
		tmp = x / (a * (y * math.exp(b)))
	elif y <= -1.65e-9:
		tmp = t_2
	elif y <= -1.65e-102:
		tmp = (x * t_1) / y
	elif y <= 1.15e+105:
		tmp = x * ((t_1 / y) / math.exp(b))
	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(Float64(x * (z ^ y)) / a) / y)
	tmp = 0.0
	if (y <= -5e+78)
		tmp = t_2;
	elseif (y <= -10000000000.0)
		tmp = Float64(x / Float64(a * Float64(y * exp(b))));
	elseif (y <= -1.65e-9)
		tmp = t_2;
	elseif (y <= -1.65e-102)
		tmp = Float64(Float64(x * t_1) / y);
	elseif (y <= 1.15e+105)
		tmp = Float64(x * Float64(Float64(t_1 / y) / exp(b)));
	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 * (z ^ y)) / a) / y;
	tmp = 0.0;
	if (y <= -5e+78)
		tmp = t_2;
	elseif (y <= -10000000000.0)
		tmp = x / (a * (y * exp(b)));
	elseif (y <= -1.65e-9)
		tmp = t_2;
	elseif (y <= -1.65e-102)
		tmp = (x * t_1) / y;
	elseif (y <= 1.15e+105)
		tmp = x * ((t_1 / y) / exp(b));
	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[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -5e+78], t$95$2, If[LessEqual[y, -10000000000.0], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.65e-9], t$95$2, If[LessEqual[y, -1.65e-102], N[(N[(x * t$95$1), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 1.15e+105], N[(x * N[(N[(t$95$1 / y), $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;y \leq -1.65 \cdot 10^{-9}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;y \leq -1.65 \cdot 10^{-102}:\\
\;\;\;\;\frac{x \cdot t\_1}{y}\\

\mathbf{elif}\;y \leq 1.15 \cdot 10^{+105}:\\
\;\;\;\;x \cdot \frac{\frac{t\_1}{y}}{e^{b}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -4.99999999999999984e78 or -1e10 < y < -1.65000000000000009e-9 or 1.1499999999999999e105 < y

    1. Initial program 99.7%

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

      \[\leadsto \frac{x \cdot \color{blue}{e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
    4. Step-by-step derivation
      1. exp-sum66.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. *-commutative66.5%

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

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

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

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

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

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

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

    if -4.99999999999999984e78 < y < -1e10

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\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*77.4%

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

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

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

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

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

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

    if -1.65000000000000009e-9 < y < -1.65e-102

    1. Initial program 99.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.65e-102 < y < 1.1499999999999999e105

    1. Initial program 98.1%

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

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

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

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

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

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

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

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

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

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

      \[\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*81.5%

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -5 \cdot 10^{+78}:\\ \;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\ \mathbf{elif}\;y \leq -10000000000:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;y \leq -1.65 \cdot 10^{-9}:\\ \;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\ \mathbf{elif}\;y \leq -1.65 \cdot 10^{-102}:\\ \;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\ \mathbf{elif}\;y \leq 1.15 \cdot 10^{+105}:\\ \;\;\;\;x \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 78.7% accurate, 1.4× speedup?

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

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

\mathbf{elif}\;y \leq -31500000000:\\
\;\;\;\;\frac{x}{t\_1}\\

\mathbf{elif}\;y \leq -1.95 \cdot 10^{-10}:\\
\;\;\;\;\frac{t\_2}{t\_1}\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -5.1000000000000002e76 or 2.3999999999999998e103 < y

    1. Initial program 100.0%

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

      \[\leadsto \frac{x \cdot \color{blue}{e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
    4. Step-by-step derivation
      1. exp-sum67.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. *-commutative67.5%

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

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

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

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

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

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

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

    if -5.1000000000000002e76 < y < -3.15e10

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\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*77.4%

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

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

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

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

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

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

    if -3.15e10 < y < -1.95e-10

    1. Initial program 95.6%

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

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

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

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

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

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

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

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

    if -1.95e-10 < y < 2.3999999999999998e103

    1. Initial program 98.3%

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

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

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

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

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

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

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

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

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

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

      \[\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*79.7%

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

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

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

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

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

Alternative 6: 89.1% accurate, 1.4× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.25e81 or 2.0000000000000001e149 < y

    1. Initial program 100.0%

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

      \[\leadsto \frac{x \cdot \color{blue}{e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
    4. Step-by-step derivation
      1. exp-sum67.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. *-commutative67.5%

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

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

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

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

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

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

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

    if -1.25e81 < y < 2.0000000000000001e149

    1. Initial program 98.4%

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

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

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

Alternative 7: 74.7% accurate, 2.5× speedup?

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

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

\mathbf{elif}\;b \leq -6.5 \cdot 10^{-91}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;b \leq 29000000:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -7.99999999999999986e73 or 2.9e7 < 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. associate-/l*100.0%

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

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

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

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

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

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

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

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

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

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

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

      \[\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*66.5%

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

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

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

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

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

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

    if -7.99999999999999986e73 < b < -6.5000000000000001e-91 or 4.99999999999999998e-306 < b < 2.9e7

    1. Initial program 97.9%

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

      \[\leadsto \frac{x \cdot \color{blue}{e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
    4. Step-by-step derivation
      1. exp-sum82.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. *-commutative82.8%

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

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

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

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

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

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

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

    if -6.5000000000000001e-91 < b < 4.99999999999999998e-306

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

      \[\leadsto \frac{x \cdot \color{blue}{e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
    4. Step-by-step derivation
      1. exp-sum72.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. *-commutative72.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 8: 72.7% accurate, 2.5× speedup?

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

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

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

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

\mathbf{elif}\;b \leq 23000000000000:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -8.79999999999999984e60 or 2.3e13 < 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. associate-/l*100.0%

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

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

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

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

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

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

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

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

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

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

      \[\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*67.0%

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

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

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

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

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

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

    if -8.79999999999999984e60 < b < -1.15e-89 or -2.6e-308 < b < 2.3e13

    1. Initial program 97.8%

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

      \[\leadsto \frac{x \cdot \color{blue}{e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
    4. Step-by-step derivation
      1. exp-sum81.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. *-commutative81.4%

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{{z}^{y} \cdot x}}{y \cdot a} \]
      3. times-frac71.1%

        \[\leadsto \color{blue}{\frac{{z}^{y}}{y} \cdot \frac{x}{a}} \]
    8. Applied egg-rr71.1%

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

    if -1.15e-89 < b < -2.6e-308

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

      \[\leadsto \frac{x \cdot \color{blue}{e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
    4. Step-by-step derivation
      1. exp-sum72.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. *-commutative72.8%

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -8.8 \cdot 10^{+60}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;b \leq -1.15 \cdot 10^{-89}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y}\\ \mathbf{elif}\;b \leq -2.6 \cdot 10^{-308}:\\ \;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\ \mathbf{elif}\;b \leq 23000000000000:\\ \;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 71.9% accurate, 2.7× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -3.5000000000000002e60 or 8e12 < 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. associate-/l*100.0%

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

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

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

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

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

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

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

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

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

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

      \[\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*67.0%

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

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

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

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

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

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

    if -3.5000000000000002e60 < b < 8e12

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

      \[\leadsto \frac{x \cdot \color{blue}{e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
    4. Step-by-step derivation
      1. exp-sum79.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. *-commutative79.2%

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{{z}^{y} \cdot x}}{y \cdot a} \]
      3. times-frac69.1%

        \[\leadsto \color{blue}{\frac{{z}^{y}}{y} \cdot \frac{x}{a}} \]
    8. Applied egg-rr69.1%

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

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

Alternative 10: 61.4% accurate, 2.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.5 \cdot 10^{-247} \lor \neg \left(b \leq 2700\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -2.49999999999999989e-247 or 2700 < b

    1. Initial program 99.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\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*66.6%

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

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

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

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

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

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

    if -2.49999999999999989e-247 < b < 2700

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

      \[\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*64.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 11: 53.1% accurate, 9.3× speedup?

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

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

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

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


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

    1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

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

      \[\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*66.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -3.45e-248 < b < 1.3e12

    1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

      \[\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*62.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 1.3e12 < 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. associate-/l*100.0%

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

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

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

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

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

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

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

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

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

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

      \[\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*69.4%

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

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

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

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

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

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

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

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

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

Alternative 12: 51.1% accurate, 10.9× speedup?

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

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

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

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


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

    1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

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

      \[\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*66.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -4.9999999999999999e-249 < b < 5.9e12

    1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

      \[\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*62.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 5.9e12 < 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. associate-/l*100.0%

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

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

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

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

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

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

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

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

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

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

      \[\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*69.4%

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

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

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

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

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

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

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

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

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

Alternative 13: 50.4% accurate, 10.9× speedup?

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

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

\mathbf{elif}\;b \leq 1.15 \cdot 10^{+14}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\

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


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

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\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*63.0%

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{\frac{x}{a}}{y}} + -1 \cdot \frac{b \cdot x}{a \cdot y} \]
      3. associate-*r/39.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{y \cdot \left(a \cdot \frac{x}{a} + \color{blue}{\left(-x \cdot b\right)}\right)}{\left(y \cdot y\right) \cdot a} \]
      10. distribute-rgt-neg-in45.3%

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

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

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

    if -5.3999999999999998e-5 < b < 1.15e14

    1. Initial program 97.8%

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

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

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

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

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

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

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

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

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

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

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

      \[\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*65.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 1.15e14 < 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. associate-/l*100.0%

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

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

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

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

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

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

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

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

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

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

      \[\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*69.4%

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

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

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

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

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

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

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

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

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

Alternative 14: 39.5% accurate, 12.6× speedup?

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

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

\mathbf{elif}\;b \leq 5 \cdot 10^{-182}:\\
\;\;\;\;\frac{\frac{x}{a} \cdot \left(b + -1\right)}{-y}\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if b < -6.49999999999999943e-5

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\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*63.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto x \cdot \left(-\frac{b}{\color{blue}{y \cdot a}}\right) \]
      8. distribute-neg-frac240.7%

        \[\leadsto x \cdot \color{blue}{\frac{b}{-y \cdot a}} \]
      9. distribute-rgt-neg-in40.7%

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

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

    if -6.49999999999999943e-5 < b < 5.00000000000000024e-182

    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. Step-by-step derivation
      1. associate-/l*97.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\frac{x}{a} + -1 \cdot \frac{b \cdot x}{a}}}{y} \]
      2. *-lft-identity45.3%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{-1 \cdot \frac{x}{-a}} + -1 \cdot \frac{b \cdot x}{a}}{y} \]
      8. distribute-neg-frac245.3%

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

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

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

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

        \[\leadsto \color{blue}{-\frac{-1 \cdot \frac{x}{a} + \frac{b \cdot x}{a}}{y}} \]
      13. distribute-neg-frac245.3%

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

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

        \[\leadsto \frac{\color{blue}{b \cdot \frac{x}{a}} + -1 \cdot \frac{x}{a}}{-y} \]
      16. distribute-rgt-out45.3%

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

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

    if 5.00000000000000024e-182 < b < 0.819999999999999951

    1. Initial program 98.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 0.819999999999999951 < 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. associate-/l*100.0%

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

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

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

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

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

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

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

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

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

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

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

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

      \[\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*64.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 15: 47.1% accurate, 12.6× speedup?

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

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

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

\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y - b \cdot \left(y \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.59999999999999992e-5

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\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*63.0%

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{\frac{x}{a}}{y}} + -1 \cdot \frac{b \cdot x}{a \cdot y} \]
      3. associate-*r/39.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{y \cdot \left(a \cdot \frac{x}{a} + \color{blue}{\left(-x \cdot b\right)}\right)}{\left(y \cdot y\right) \cdot a} \]
      10. distribute-rgt-neg-in45.3%

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

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

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

    if -5.59999999999999992e-5 < b < 4.8e13

    1. Initial program 97.8%

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

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

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

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

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

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

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

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

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

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

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

      \[\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*65.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 4.8e13 < 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. associate-/l*100.0%

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

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

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

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

        \[\leadsto x \cdot \left(e^{\color{blue}{\log z \cdot y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      6. exp-to-pow69.4%

        \[\leadsto x \cdot \left(\color{blue}{{z}^{y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      7. exp-diff58.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. *-commutative58.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-pow58.1%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      10. sub-neg58.1%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}}}{y}\right) \]
      11. metadata-eval58.1%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y}\right) \]
    3. Simplified58.1%

      \[\leadsto \color{blue}{x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 75.9%

      \[\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*69.4%

        \[\leadsto x \cdot \color{blue}{\frac{\frac{e^{\log a \cdot \left(t - 1\right)}}{y}}{e^{b}}} \]
      2. exp-to-pow69.4%

        \[\leadsto x \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{y}}{e^{b}} \]
      3. sub-neg69.4%

        \[\leadsto x \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{y}}{e^{b}} \]
      4. metadata-eval69.4%

        \[\leadsto x \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{y}}{e^{b}} \]
    7. Simplified69.4%

      \[\leadsto x \cdot \color{blue}{\frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}} \]
    8. Taylor expanded in t around 0 90.5%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    9. Taylor expanded in b around 0 67.0%

      \[\leadsto \frac{x}{a \cdot \color{blue}{\left(y + b \cdot \left(y + 0.5 \cdot \left(b \cdot y\right)\right)\right)}} \]
    10. Step-by-step derivation
      1. associate-*r*67.0%

        \[\leadsto \frac{x}{a \cdot \left(y + b \cdot \left(y + \color{blue}{\left(0.5 \cdot b\right) \cdot y}\right)\right)} \]
      2. distribute-rgt1-in67.0%

        \[\leadsto \frac{x}{a \cdot \left(y + b \cdot \color{blue}{\left(\left(0.5 \cdot b + 1\right) \cdot y\right)}\right)} \]
    11. Simplified67.0%

      \[\leadsto \frac{x}{a \cdot \color{blue}{\left(y + b \cdot \left(\left(0.5 \cdot b + 1\right) \cdot y\right)\right)}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification49.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -5.6 \cdot 10^{-5}:\\ \;\;\;\;\frac{y \cdot \left(a \cdot \frac{x}{a} - x \cdot b\right)}{a \cdot \left(y \cdot y\right)}\\ \mathbf{elif}\;b \leq 48000000000000:\\ \;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y - b \cdot \left(y \cdot \left(-1 - b \cdot 0.5\right)\right)\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 16: 46.0% accurate, 12.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq 1.55 \cdot 10^{-289}:\\ \;\;\;\;\frac{\frac{x}{y} - x \cdot \frac{b}{y}}{a}\\ \mathbf{elif}\;b \leq 3000000000000:\\ \;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y - b \cdot \left(y \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.55e-289)
   (/ (- (/ x y) (* x (/ b y))) a)
   (if (<= b 3000000000000.0)
     (/ x (* b (* a (+ y (/ y b)))))
     (/ x (* a (- y (* b (* y (- -1.0 (* b 0.5))))))))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (b <= 1.55e-289) {
		tmp = ((x / y) - (x * (b / y))) / a;
	} else if (b <= 3000000000000.0) {
		tmp = x / (b * (a * (y + (y / b))));
	} else {
		tmp = x / (a * (y - (b * (y * (-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.55d-289) then
        tmp = ((x / y) - (x * (b / y))) / a
    else if (b <= 3000000000000.0d0) then
        tmp = x / (b * (a * (y + (y / b))))
    else
        tmp = x / (a * (y - (b * (y * ((-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.55e-289) {
		tmp = ((x / y) - (x * (b / y))) / a;
	} else if (b <= 3000000000000.0) {
		tmp = x / (b * (a * (y + (y / b))));
	} else {
		tmp = x / (a * (y - (b * (y * (-1.0 - (b * 0.5))))));
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if b <= 1.55e-289:
		tmp = ((x / y) - (x * (b / y))) / a
	elif b <= 3000000000000.0:
		tmp = x / (b * (a * (y + (y / b))))
	else:
		tmp = x / (a * (y - (b * (y * (-1.0 - (b * 0.5))))))
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (b <= 1.55e-289)
		tmp = Float64(Float64(Float64(x / y) - Float64(x * Float64(b / y))) / a);
	elseif (b <= 3000000000000.0)
		tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b)))));
	else
		tmp = Float64(x / Float64(a * Float64(y - Float64(b * Float64(y * 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.55e-289)
		tmp = ((x / y) - (x * (b / y))) / a;
	elseif (b <= 3000000000000.0)
		tmp = x / (b * (a * (y + (y / b))));
	else
		tmp = x / (a * (y - (b * (y * (-1.0 - (b * 0.5))))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1.55e-289], N[(N[(N[(x / y), $MachinePrecision] - N[(x * N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b, 3000000000000.0], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y - N[(b * N[(y * N[(-1.0 - N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.55 \cdot 10^{-289}:\\
\;\;\;\;\frac{\frac{x}{y} - x \cdot \frac{b}{y}}{a}\\

\mathbf{elif}\;b \leq 3000000000000:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\

\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y - b \cdot \left(y \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.55e-289

    1. Initial program 98.6%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-/l*98.5%

        \[\leadsto \color{blue}{x \cdot \frac{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}} \]
      2. associate--l+98.5%

        \[\leadsto x \cdot \frac{e^{\color{blue}{y \cdot \log z + \left(\left(t - 1\right) \cdot \log a - b\right)}}}{y} \]
      3. exp-sum70.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*69.5%

        \[\leadsto x \cdot \color{blue}{\left(e^{y \cdot \log z} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right)} \]
      5. *-commutative69.5%

        \[\leadsto x \cdot \left(e^{\color{blue}{\log z \cdot y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      6. exp-to-pow69.5%

        \[\leadsto x \cdot \left(\color{blue}{{z}^{y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      7. exp-diff59.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. *-commutative59.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-pow60.5%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      10. sub-neg60.5%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}}}{y}\right) \]
      11. metadata-eval60.5%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y}\right) \]
    3. Simplified60.5%

      \[\leadsto \color{blue}{x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 68.7%

      \[\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*67.1%

        \[\leadsto x \cdot \color{blue}{\frac{\frac{e^{\log a \cdot \left(t - 1\right)}}{y}}{e^{b}}} \]
      2. exp-to-pow67.6%

        \[\leadsto x \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{y}}{e^{b}} \]
      3. sub-neg67.6%

        \[\leadsto x \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{y}}{e^{b}} \]
      4. metadata-eval67.6%

        \[\leadsto x \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{y}}{e^{b}} \]
    7. Simplified67.6%

      \[\leadsto x \cdot \color{blue}{\frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}} \]
    8. Taylor expanded in t around 0 61.1%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    9. Taylor expanded in b around 0 39.9%

      \[\leadsto \color{blue}{-1 \cdot \frac{b \cdot x}{a \cdot y} + \frac{x}{a \cdot y}} \]
    10. Taylor expanded in a around 0 42.3%

      \[\leadsto \color{blue}{\frac{-1 \cdot \frac{b \cdot x}{y} + \frac{x}{y}}{a}} \]
    11. Step-by-step derivation
      1. +-commutative42.3%

        \[\leadsto \frac{\color{blue}{\frac{x}{y} + -1 \cdot \frac{b \cdot x}{y}}}{a} \]
      2. mul-1-neg42.3%

        \[\leadsto \frac{\frac{x}{y} + \color{blue}{\left(-\frac{b \cdot x}{y}\right)}}{a} \]
      3. unsub-neg42.3%

        \[\leadsto \frac{\color{blue}{\frac{x}{y} - \frac{b \cdot x}{y}}}{a} \]
      4. *-commutative42.3%

        \[\leadsto \frac{\frac{x}{y} - \frac{\color{blue}{x \cdot b}}{y}}{a} \]
      5. associate-/l*43.8%

        \[\leadsto \frac{\frac{x}{y} - \color{blue}{x \cdot \frac{b}{y}}}{a} \]
    12. Simplified43.8%

      \[\leadsto \color{blue}{\frac{\frac{x}{y} - x \cdot \frac{b}{y}}{a}} \]

    if 1.55e-289 < b < 3e12

    1. Initial program 98.6%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-/l*98.6%

        \[\leadsto \color{blue}{x \cdot \frac{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}} \]
      2. associate--l+98.6%

        \[\leadsto x \cdot \frac{e^{\color{blue}{y \cdot \log z + \left(\left(t - 1\right) \cdot \log a - b\right)}}}{y} \]
      3. exp-sum88.7%

        \[\leadsto x \cdot \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a - b}}}{y} \]
      4. associate-/l*84.4%

        \[\leadsto x \cdot \color{blue}{\left(e^{y \cdot \log z} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right)} \]
      5. *-commutative84.4%

        \[\leadsto x \cdot \left(e^{\color{blue}{\log z \cdot y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      6. exp-to-pow84.5%

        \[\leadsto x \cdot \left(\color{blue}{{z}^{y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      7. exp-diff83.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. *-commutative83.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-pow84.2%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      10. sub-neg84.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-eval84.2%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y}\right) \]
    3. Simplified84.2%

      \[\leadsto \color{blue}{x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 62.4%

      \[\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*61.0%

        \[\leadsto x \cdot \color{blue}{\frac{\frac{e^{\log a \cdot \left(t - 1\right)}}{y}}{e^{b}}} \]
      2. exp-to-pow61.9%

        \[\leadsto x \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{y}}{e^{b}} \]
      3. sub-neg61.9%

        \[\leadsto x \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{y}}{e^{b}} \]
      4. metadata-eval61.9%

        \[\leadsto x \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{y}}{e^{b}} \]
    7. Simplified61.9%

      \[\leadsto x \cdot \color{blue}{\frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}} \]
    8. Taylor expanded in t around 0 34.3%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    9. Step-by-step derivation
      1. associate-*r*32.9%

        \[\leadsto \frac{x}{\color{blue}{\left(a \cdot y\right) \cdot e^{b}}} \]
    10. Simplified32.9%

      \[\leadsto \color{blue}{\frac{x}{\left(a \cdot y\right) \cdot e^{b}}} \]
    11. Taylor expanded in b around 0 33.0%

      \[\leadsto \frac{x}{\color{blue}{a \cdot y + a \cdot \left(b \cdot y\right)}} \]
    12. Step-by-step derivation
      1. distribute-lft-out33.0%

        \[\leadsto \frac{x}{\color{blue}{a \cdot \left(y + b \cdot y\right)}} \]
      2. distribute-rgt1-in33.0%

        \[\leadsto \frac{x}{a \cdot \color{blue}{\left(\left(b + 1\right) \cdot y\right)}} \]
    13. Simplified33.0%

      \[\leadsto \frac{x}{\color{blue}{a \cdot \left(\left(b + 1\right) \cdot y\right)}} \]
    14. Taylor expanded in b around inf 33.9%

      \[\leadsto \frac{x}{\color{blue}{b \cdot \left(a \cdot y + \frac{a \cdot y}{b}\right)}} \]
    15. Step-by-step derivation
      1. associate-/l*43.1%

        \[\leadsto \frac{x}{b \cdot \left(a \cdot y + \color{blue}{a \cdot \frac{y}{b}}\right)} \]
      2. distribute-lft-out43.1%

        \[\leadsto \frac{x}{b \cdot \color{blue}{\left(a \cdot \left(y + \frac{y}{b}\right)\right)}} \]
    16. Simplified43.1%

      \[\leadsto \frac{x}{\color{blue}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}} \]

    if 3e12 < 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. associate-/l*100.0%

        \[\leadsto \color{blue}{x \cdot \frac{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}} \]
      2. associate--l+100.0%

        \[\leadsto x \cdot \frac{e^{\color{blue}{y \cdot \log z + \left(\left(t - 1\right) \cdot \log a - b\right)}}}{y} \]
      3. exp-sum69.4%

        \[\leadsto x \cdot \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a - b}}}{y} \]
      4. associate-/l*69.4%

        \[\leadsto x \cdot \color{blue}{\left(e^{y \cdot \log z} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right)} \]
      5. *-commutative69.4%

        \[\leadsto x \cdot \left(e^{\color{blue}{\log z \cdot y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      6. exp-to-pow69.4%

        \[\leadsto x \cdot \left(\color{blue}{{z}^{y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      7. exp-diff58.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. *-commutative58.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-pow58.1%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      10. sub-neg58.1%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}}}{y}\right) \]
      11. metadata-eval58.1%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y}\right) \]
    3. Simplified58.1%

      \[\leadsto \color{blue}{x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 75.9%

      \[\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*69.4%

        \[\leadsto x \cdot \color{blue}{\frac{\frac{e^{\log a \cdot \left(t - 1\right)}}{y}}{e^{b}}} \]
      2. exp-to-pow69.4%

        \[\leadsto x \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{y}}{e^{b}} \]
      3. sub-neg69.4%

        \[\leadsto x \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{y}}{e^{b}} \]
      4. metadata-eval69.4%

        \[\leadsto x \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{y}}{e^{b}} \]
    7. Simplified69.4%

      \[\leadsto x \cdot \color{blue}{\frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}} \]
    8. Taylor expanded in t around 0 90.5%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    9. Taylor expanded in b around 0 67.0%

      \[\leadsto \frac{x}{a \cdot \color{blue}{\left(y + b \cdot \left(y + 0.5 \cdot \left(b \cdot y\right)\right)\right)}} \]
    10. Step-by-step derivation
      1. associate-*r*67.0%

        \[\leadsto \frac{x}{a \cdot \left(y + b \cdot \left(y + \color{blue}{\left(0.5 \cdot b\right) \cdot y}\right)\right)} \]
      2. distribute-rgt1-in67.0%

        \[\leadsto \frac{x}{a \cdot \left(y + b \cdot \color{blue}{\left(\left(0.5 \cdot b + 1\right) \cdot y\right)}\right)} \]
    11. Simplified67.0%

      \[\leadsto \frac{x}{a \cdot \color{blue}{\left(y + b \cdot \left(\left(0.5 \cdot b + 1\right) \cdot y\right)\right)}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification49.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq 1.55 \cdot 10^{-289}:\\ \;\;\;\;\frac{\frac{x}{y} - x \cdot \frac{b}{y}}{a}\\ \mathbf{elif}\;b \leq 3000000000000:\\ \;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y - b \cdot \left(y \cdot \left(-1 - b \cdot 0.5\right)\right)\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 17: 38.4% accurate, 15.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -6.5 \cdot 10^{-5}:\\ \;\;\;\;x \cdot \frac{b}{y \cdot \left(-a\right)}\\ \mathbf{elif}\;b \leq 2.22 \cdot 10^{-122}:\\ \;\;\;\;\frac{\frac{x}{a} \cdot \left(b + -1\right)}{-y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= b -6.5e-5)
   (* x (/ b (* y (- a))))
   (if (<= b 2.22e-122) (/ (* (/ x a) (+ b -1.0)) (- y)) (/ x (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (b <= -6.5e-5) {
		tmp = x * (b / (y * -a));
	} else if (b <= 2.22e-122) {
		tmp = ((x / a) * (b + -1.0)) / -y;
	} else {
		tmp = x / (y * (a * 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 <= (-6.5d-5)) then
        tmp = x * (b / (y * -a))
    else if (b <= 2.22d-122) then
        tmp = ((x / a) * (b + (-1.0d0))) / -y
    else
        tmp = x / (y * (a * 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 <= -6.5e-5) {
		tmp = x * (b / (y * -a));
	} else if (b <= 2.22e-122) {
		tmp = ((x / a) * (b + -1.0)) / -y;
	} else {
		tmp = x / (y * (a * b));
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if b <= -6.5e-5:
		tmp = x * (b / (y * -a))
	elif b <= 2.22e-122:
		tmp = ((x / a) * (b + -1.0)) / -y
	else:
		tmp = x / (y * (a * b))
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (b <= -6.5e-5)
		tmp = Float64(x * Float64(b / Float64(y * Float64(-a))));
	elseif (b <= 2.22e-122)
		tmp = Float64(Float64(Float64(x / a) * Float64(b + -1.0)) / Float64(-y));
	else
		tmp = Float64(x / Float64(y * Float64(a * b)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if (b <= -6.5e-5)
		tmp = x * (b / (y * -a));
	elseif (b <= 2.22e-122)
		tmp = ((x / a) * (b + -1.0)) / -y;
	else
		tmp = x / (y * (a * b));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -6.5e-5], N[(x * N[(b / N[(y * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.22e-122], N[(N[(N[(x / a), $MachinePrecision] * N[(b + -1.0), $MachinePrecision]), $MachinePrecision] / (-y)), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.5 \cdot 10^{-5}:\\
\;\;\;\;x \cdot \frac{b}{y \cdot \left(-a\right)}\\

\mathbf{elif}\;b \leq 2.22 \cdot 10^{-122}:\\
\;\;\;\;\frac{\frac{x}{a} \cdot \left(b + -1\right)}{-y}\\

\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -6.49999999999999943e-5

    1. Initial program 100.0%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-/l*100.0%

        \[\leadsto \color{blue}{x \cdot \frac{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}} \]
      2. associate--l+100.0%

        \[\leadsto x \cdot \frac{e^{\color{blue}{y \cdot \log z + \left(\left(t - 1\right) \cdot \log a - b\right)}}}{y} \]
      3. exp-sum70.0%

        \[\leadsto x \cdot \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a - b}}}{y} \]
      4. associate-/l*70.0%

        \[\leadsto x \cdot \color{blue}{\left(e^{y \cdot \log z} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right)} \]
      5. *-commutative70.0%

        \[\leadsto x \cdot \left(e^{\color{blue}{\log z \cdot y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      6. exp-to-pow70.0%

        \[\leadsto x \cdot \left(\color{blue}{{z}^{y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      7. exp-diff52.9%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\color{blue}{\frac{e^{\left(t - 1\right) \cdot \log a}}{e^{b}}}}{y}\right) \]
      8. *-commutative52.9%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      9. exp-to-pow52.9%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      10. sub-neg52.9%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}}}{y}\right) \]
      11. metadata-eval52.9%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y}\right) \]
    3. Simplified52.9%

      \[\leadsto \color{blue}{x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 65.9%

      \[\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*63.0%

        \[\leadsto x \cdot \color{blue}{\frac{\frac{e^{\log a \cdot \left(t - 1\right)}}{y}}{e^{b}}} \]
      2. exp-to-pow63.0%

        \[\leadsto x \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{y}}{e^{b}} \]
      3. sub-neg63.0%

        \[\leadsto x \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{y}}{e^{b}} \]
      4. metadata-eval63.0%

        \[\leadsto x \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{y}}{e^{b}} \]
    7. Simplified63.0%

      \[\leadsto x \cdot \color{blue}{\frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}} \]
    8. Taylor expanded in t around 0 76.1%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    9. Taylor expanded in b around 0 39.3%

      \[\leadsto \color{blue}{-1 \cdot \frac{b \cdot x}{a \cdot y} + \frac{x}{a \cdot y}} \]
    10. Taylor expanded in b around inf 39.3%

      \[\leadsto \color{blue}{-1 \cdot \frac{b \cdot x}{a \cdot y}} \]
    11. Step-by-step derivation
      1. mul-1-neg39.3%

        \[\leadsto \color{blue}{-\frac{b \cdot x}{a \cdot y}} \]
      2. *-commutative39.3%

        \[\leadsto -\frac{b \cdot x}{\color{blue}{y \cdot a}} \]
      3. *-commutative39.3%

        \[\leadsto -\frac{\color{blue}{x \cdot b}}{y \cdot a} \]
      4. associate-/l*40.7%

        \[\leadsto -\color{blue}{x \cdot \frac{b}{y \cdot a}} \]
      5. *-commutative40.7%

        \[\leadsto -x \cdot \frac{b}{\color{blue}{a \cdot y}} \]
      6. distribute-rgt-neg-out40.7%

        \[\leadsto \color{blue}{x \cdot \left(-\frac{b}{a \cdot y}\right)} \]
      7. *-commutative40.7%

        \[\leadsto x \cdot \left(-\frac{b}{\color{blue}{y \cdot a}}\right) \]
      8. distribute-neg-frac240.7%

        \[\leadsto x \cdot \color{blue}{\frac{b}{-y \cdot a}} \]
      9. distribute-rgt-neg-in40.7%

        \[\leadsto x \cdot \frac{b}{\color{blue}{y \cdot \left(-a\right)}} \]
    12. Simplified40.7%

      \[\leadsto \color{blue}{x \cdot \frac{b}{y \cdot \left(-a\right)}} \]

    if -6.49999999999999943e-5 < b < 2.22e-122

    1. Initial program 97.4%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-/l*97.3%

        \[\leadsto \color{blue}{x \cdot \frac{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}} \]
      2. associate--l+97.3%

        \[\leadsto x \cdot \frac{e^{\color{blue}{y \cdot \log z + \left(\left(t - 1\right) \cdot \log a - b\right)}}}{y} \]
      3. exp-sum78.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*77.6%

        \[\leadsto x \cdot \color{blue}{\left(e^{y \cdot \log z} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right)} \]
      5. *-commutative77.6%

        \[\leadsto x \cdot \left(e^{\color{blue}{\log z \cdot y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      6. exp-to-pow77.6%

        \[\leadsto x \cdot \left(\color{blue}{{z}^{y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      7. exp-diff77.5%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\color{blue}{\frac{e^{\left(t - 1\right) \cdot \log a}}{e^{b}}}}{y}\right) \]
      8. *-commutative77.5%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      9. exp-to-pow79.1%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      10. sub-neg79.1%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}}}{y}\right) \]
      11. metadata-eval79.1%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y}\right) \]
    3. Simplified79.1%

      \[\leadsto \color{blue}{x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 69.3%

      \[\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*69.3%

        \[\leadsto x \cdot \color{blue}{\frac{\frac{e^{\log a \cdot \left(t - 1\right)}}{y}}{e^{b}}} \]
      2. exp-to-pow70.5%

        \[\leadsto x \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{y}}{e^{b}} \]
      3. sub-neg70.5%

        \[\leadsto x \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{y}}{e^{b}} \]
      4. metadata-eval70.5%

        \[\leadsto x \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{y}}{e^{b}} \]
    7. Simplified70.5%

      \[\leadsto x \cdot \color{blue}{\frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}} \]
    8. Taylor expanded in t around 0 40.4%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    9. Taylor expanded in b around 0 36.8%

      \[\leadsto \color{blue}{-1 \cdot \frac{b \cdot x}{a \cdot y} + \frac{x}{a \cdot y}} \]
    10. Taylor expanded in y around 0 43.9%

      \[\leadsto \color{blue}{\frac{-1 \cdot \frac{b \cdot x}{a} + \frac{x}{a}}{y}} \]
    11. Step-by-step derivation
      1. +-commutative43.9%

        \[\leadsto \frac{\color{blue}{\frac{x}{a} + -1 \cdot \frac{b \cdot x}{a}}}{y} \]
      2. *-lft-identity43.9%

        \[\leadsto \frac{\frac{\color{blue}{1 \cdot x}}{a} + -1 \cdot \frac{b \cdot x}{a}}{y} \]
      3. associate-/l*43.9%

        \[\leadsto \frac{\color{blue}{1 \cdot \frac{x}{a}} + -1 \cdot \frac{b \cdot x}{a}}{y} \]
      4. metadata-eval43.9%

        \[\leadsto \frac{\color{blue}{\frac{-1}{-1}} \cdot \frac{x}{a} + -1 \cdot \frac{b \cdot x}{a}}{y} \]
      5. times-frac43.9%

        \[\leadsto \frac{\color{blue}{\frac{-1 \cdot x}{-1 \cdot a}} + -1 \cdot \frac{b \cdot x}{a}}{y} \]
      6. neg-mul-143.9%

        \[\leadsto \frac{\frac{-1 \cdot x}{\color{blue}{-a}} + -1 \cdot \frac{b \cdot x}{a}}{y} \]
      7. associate-/l*43.9%

        \[\leadsto \frac{\color{blue}{-1 \cdot \frac{x}{-a}} + -1 \cdot \frac{b \cdot x}{a}}{y} \]
      8. distribute-neg-frac243.9%

        \[\leadsto \frac{-1 \cdot \color{blue}{\left(-\frac{x}{a}\right)} + -1 \cdot \frac{b \cdot x}{a}}{y} \]
      9. mul-1-neg43.9%

        \[\leadsto \frac{-1 \cdot \color{blue}{\left(-1 \cdot \frac{x}{a}\right)} + -1 \cdot \frac{b \cdot x}{a}}{y} \]
      10. distribute-lft-in43.9%

        \[\leadsto \frac{\color{blue}{-1 \cdot \left(-1 \cdot \frac{x}{a} + \frac{b \cdot x}{a}\right)}}{y} \]
      11. associate-*r/43.9%

        \[\leadsto \color{blue}{-1 \cdot \frac{-1 \cdot \frac{x}{a} + \frac{b \cdot x}{a}}{y}} \]
      12. mul-1-neg43.9%

        \[\leadsto \color{blue}{-\frac{-1 \cdot \frac{x}{a} + \frac{b \cdot x}{a}}{y}} \]
      13. distribute-neg-frac243.9%

        \[\leadsto \color{blue}{\frac{-1 \cdot \frac{x}{a} + \frac{b \cdot x}{a}}{-y}} \]
      14. +-commutative43.9%

        \[\leadsto \frac{\color{blue}{\frac{b \cdot x}{a} + -1 \cdot \frac{x}{a}}}{-y} \]
      15. associate-/l*38.6%

        \[\leadsto \frac{\color{blue}{b \cdot \frac{x}{a}} + -1 \cdot \frac{x}{a}}{-y} \]
      16. distribute-rgt-out43.9%

        \[\leadsto \frac{\color{blue}{\frac{x}{a} \cdot \left(b + -1\right)}}{-y} \]
    12. Simplified43.9%

      \[\leadsto \color{blue}{\frac{\frac{x}{a} \cdot \left(b + -1\right)}{-y}} \]

    if 2.22e-122 < b

    1. Initial program 99.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*99.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+99.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-sum75.3%

        \[\leadsto x \cdot \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a - b}}}{y} \]
      4. associate-/l*72.0%

        \[\leadsto x \cdot \color{blue}{\left(e^{y \cdot \log z} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right)} \]
      5. *-commutative72.0%

        \[\leadsto x \cdot \left(e^{\color{blue}{\log z \cdot y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      6. exp-to-pow72.1%

        \[\leadsto x \cdot \left(\color{blue}{{z}^{y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      7. exp-diff63.2%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\color{blue}{\frac{e^{\left(t - 1\right) \cdot \log a}}{e^{b}}}}{y}\right) \]
      8. *-commutative63.2%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      9. exp-to-pow63.3%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      10. sub-neg63.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-eval63.3%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y}\right) \]
    3. Simplified63.3%

      \[\leadsto \color{blue}{x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 70.3%

      \[\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*64.8%

        \[\leadsto x \cdot \color{blue}{\frac{\frac{e^{\log a \cdot \left(t - 1\right)}}{y}}{e^{b}}} \]
      2. exp-to-pow64.9%

        \[\leadsto x \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{y}}{e^{b}} \]
      3. sub-neg64.9%

        \[\leadsto x \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{y}}{e^{b}} \]
      4. metadata-eval64.9%

        \[\leadsto x \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{y}}{e^{b}} \]
    7. Simplified64.9%

      \[\leadsto x \cdot \color{blue}{\frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}} \]
    8. Taylor expanded in t around 0 70.9%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    9. Step-by-step derivation
      1. associate-*r*60.9%

        \[\leadsto \frac{x}{\color{blue}{\left(a \cdot y\right) \cdot e^{b}}} \]
    10. Simplified60.9%

      \[\leadsto \color{blue}{\frac{x}{\left(a \cdot y\right) \cdot e^{b}}} \]
    11. Taylor expanded in b around 0 37.6%

      \[\leadsto \frac{x}{\color{blue}{a \cdot y + a \cdot \left(b \cdot y\right)}} \]
    12. Step-by-step derivation
      1. distribute-lft-out37.6%

        \[\leadsto \frac{x}{\color{blue}{a \cdot \left(y + b \cdot y\right)}} \]
      2. distribute-rgt1-in37.6%

        \[\leadsto \frac{x}{a \cdot \color{blue}{\left(\left(b + 1\right) \cdot y\right)}} \]
    13. Simplified37.6%

      \[\leadsto \frac{x}{\color{blue}{a \cdot \left(\left(b + 1\right) \cdot y\right)}} \]
    14. Taylor expanded in b around inf 37.6%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(b \cdot y\right)}} \]
    15. Step-by-step derivation
      1. associate-*r*38.7%

        \[\leadsto \frac{x}{\color{blue}{\left(a \cdot b\right) \cdot y}} \]
      2. *-commutative38.7%

        \[\leadsto \frac{x}{\color{blue}{y \cdot \left(a \cdot b\right)}} \]
    16. Simplified38.7%

      \[\leadsto \color{blue}{\frac{x}{y \cdot \left(a \cdot b\right)}} \]
  3. Recombined 3 regimes into one program.
  4. Add Preprocessing

Alternative 18: 38.3% accurate, 18.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -6 \cdot 10^{-5}:\\ \;\;\;\;x \cdot \frac{b}{y \cdot \left(-a\right)}\\ \mathbf{elif}\;b \leq 2.22 \cdot 10^{-122}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= b -6e-5)
   (* x (/ b (* y (- a))))
   (if (<= b 2.22e-122) (* (/ x a) (/ 1.0 y)) (/ x (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (b <= -6e-5) {
		tmp = x * (b / (y * -a));
	} else if (b <= 2.22e-122) {
		tmp = (x / a) * (1.0 / y);
	} else {
		tmp = x / (y * (a * b));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: tmp
    if (b <= (-6d-5)) then
        tmp = x * (b / (y * -a))
    else if (b <= 2.22d-122) then
        tmp = (x / a) * (1.0d0 / y)
    else
        tmp = x / (y * (a * b))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (b <= -6e-5) {
		tmp = x * (b / (y * -a));
	} else if (b <= 2.22e-122) {
		tmp = (x / a) * (1.0 / y);
	} else {
		tmp = x / (y * (a * b));
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if b <= -6e-5:
		tmp = x * (b / (y * -a))
	elif b <= 2.22e-122:
		tmp = (x / a) * (1.0 / y)
	else:
		tmp = x / (y * (a * b))
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (b <= -6e-5)
		tmp = Float64(x * Float64(b / Float64(y * Float64(-a))));
	elseif (b <= 2.22e-122)
		tmp = Float64(Float64(x / a) * Float64(1.0 / y));
	else
		tmp = Float64(x / Float64(y * Float64(a * b)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if (b <= -6e-5)
		tmp = x * (b / (y * -a));
	elseif (b <= 2.22e-122)
		tmp = (x / a) * (1.0 / y);
	else
		tmp = x / (y * (a * b));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -6e-5], N[(x * N[(b / N[(y * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.22e-122], N[(N[(x / a), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;b \leq -6 \cdot 10^{-5}:\\
\;\;\;\;x \cdot \frac{b}{y \cdot \left(-a\right)}\\

\mathbf{elif}\;b \leq 2.22 \cdot 10^{-122}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\

\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -6.00000000000000015e-5

    1. Initial program 100.0%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-/l*100.0%

        \[\leadsto \color{blue}{x \cdot \frac{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}} \]
      2. associate--l+100.0%

        \[\leadsto x \cdot \frac{e^{\color{blue}{y \cdot \log z + \left(\left(t - 1\right) \cdot \log a - b\right)}}}{y} \]
      3. exp-sum70.0%

        \[\leadsto x \cdot \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a - b}}}{y} \]
      4. associate-/l*70.0%

        \[\leadsto x \cdot \color{blue}{\left(e^{y \cdot \log z} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right)} \]
      5. *-commutative70.0%

        \[\leadsto x \cdot \left(e^{\color{blue}{\log z \cdot y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      6. exp-to-pow70.0%

        \[\leadsto x \cdot \left(\color{blue}{{z}^{y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      7. exp-diff52.9%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\color{blue}{\frac{e^{\left(t - 1\right) \cdot \log a}}{e^{b}}}}{y}\right) \]
      8. *-commutative52.9%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      9. exp-to-pow52.9%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      10. sub-neg52.9%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}}}{y}\right) \]
      11. metadata-eval52.9%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y}\right) \]
    3. Simplified52.9%

      \[\leadsto \color{blue}{x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 65.9%

      \[\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*63.0%

        \[\leadsto x \cdot \color{blue}{\frac{\frac{e^{\log a \cdot \left(t - 1\right)}}{y}}{e^{b}}} \]
      2. exp-to-pow63.0%

        \[\leadsto x \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{y}}{e^{b}} \]
      3. sub-neg63.0%

        \[\leadsto x \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{y}}{e^{b}} \]
      4. metadata-eval63.0%

        \[\leadsto x \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{y}}{e^{b}} \]
    7. Simplified63.0%

      \[\leadsto x \cdot \color{blue}{\frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}} \]
    8. Taylor expanded in t around 0 76.1%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    9. Taylor expanded in b around 0 39.3%

      \[\leadsto \color{blue}{-1 \cdot \frac{b \cdot x}{a \cdot y} + \frac{x}{a \cdot y}} \]
    10. Taylor expanded in b around inf 39.3%

      \[\leadsto \color{blue}{-1 \cdot \frac{b \cdot x}{a \cdot y}} \]
    11. Step-by-step derivation
      1. mul-1-neg39.3%

        \[\leadsto \color{blue}{-\frac{b \cdot x}{a \cdot y}} \]
      2. *-commutative39.3%

        \[\leadsto -\frac{b \cdot x}{\color{blue}{y \cdot a}} \]
      3. *-commutative39.3%

        \[\leadsto -\frac{\color{blue}{x \cdot b}}{y \cdot a} \]
      4. associate-/l*40.7%

        \[\leadsto -\color{blue}{x \cdot \frac{b}{y \cdot a}} \]
      5. *-commutative40.7%

        \[\leadsto -x \cdot \frac{b}{\color{blue}{a \cdot y}} \]
      6. distribute-rgt-neg-out40.7%

        \[\leadsto \color{blue}{x \cdot \left(-\frac{b}{a \cdot y}\right)} \]
      7. *-commutative40.7%

        \[\leadsto x \cdot \left(-\frac{b}{\color{blue}{y \cdot a}}\right) \]
      8. distribute-neg-frac240.7%

        \[\leadsto x \cdot \color{blue}{\frac{b}{-y \cdot a}} \]
      9. distribute-rgt-neg-in40.7%

        \[\leadsto x \cdot \frac{b}{\color{blue}{y \cdot \left(-a\right)}} \]
    12. Simplified40.7%

      \[\leadsto \color{blue}{x \cdot \frac{b}{y \cdot \left(-a\right)}} \]

    if -6.00000000000000015e-5 < b < 2.22e-122

    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 96.8%

      \[\leadsto \frac{x \cdot \color{blue}{e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
    4. Step-by-step derivation
      1. exp-sum78.1%

        \[\leadsto \frac{x \cdot \color{blue}{\left(e^{y \cdot \log z} \cdot e^{\log a \cdot \left(t - 1\right)}\right)}}{y} \]
      2. *-commutative78.1%

        \[\leadsto \frac{x \cdot \left(e^{\color{blue}{\log z \cdot y}} \cdot e^{\log a \cdot \left(t - 1\right)}\right)}{y} \]
      3. exp-to-pow78.1%

        \[\leadsto \frac{x \cdot \left(\color{blue}{{z}^{y}} \cdot e^{\log a \cdot \left(t - 1\right)}\right)}{y} \]
      4. exp-to-pow79.5%

        \[\leadsto \frac{x \cdot \left({z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}\right)}{y} \]
      5. sub-neg79.5%

        \[\leadsto \frac{x \cdot \left({z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}\right)}{y} \]
      6. metadata-eval79.5%

        \[\leadsto \frac{x \cdot \left({z}^{y} \cdot {a}^{\left(t + \color{blue}{-1}\right)}\right)}{y} \]
    5. Simplified79.5%

      \[\leadsto \frac{x \cdot \color{blue}{\left({z}^{y} \cdot {a}^{\left(t + -1\right)}\right)}}{y} \]
    6. Taylor expanded in t around 0 75.9%

      \[\leadsto \frac{\color{blue}{\frac{x \cdot {z}^{y}}{a}}}{y} \]
    7. Step-by-step derivation
      1. associate-/l/67.7%

        \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{y \cdot a}} \]
      2. *-commutative67.7%

        \[\leadsto \frac{\color{blue}{{z}^{y} \cdot x}}{y \cdot a} \]
      3. times-frac71.8%

        \[\leadsto \color{blue}{\frac{{z}^{y}}{y} \cdot \frac{x}{a}} \]
    8. Applied egg-rr71.8%

      \[\leadsto \color{blue}{\frac{{z}^{y}}{y} \cdot \frac{x}{a}} \]
    9. Taylor expanded in y around 0 43.7%

      \[\leadsto \color{blue}{\frac{1}{y}} \cdot \frac{x}{a} \]

    if 2.22e-122 < b

    1. Initial program 99.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*99.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+99.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-sum75.3%

        \[\leadsto x \cdot \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a - b}}}{y} \]
      4. associate-/l*72.0%

        \[\leadsto x \cdot \color{blue}{\left(e^{y \cdot \log z} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right)} \]
      5. *-commutative72.0%

        \[\leadsto x \cdot \left(e^{\color{blue}{\log z \cdot y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      6. exp-to-pow72.1%

        \[\leadsto x \cdot \left(\color{blue}{{z}^{y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      7. exp-diff63.2%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\color{blue}{\frac{e^{\left(t - 1\right) \cdot \log a}}{e^{b}}}}{y}\right) \]
      8. *-commutative63.2%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      9. exp-to-pow63.3%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      10. sub-neg63.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-eval63.3%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y}\right) \]
    3. Simplified63.3%

      \[\leadsto \color{blue}{x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 70.3%

      \[\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*64.8%

        \[\leadsto x \cdot \color{blue}{\frac{\frac{e^{\log a \cdot \left(t - 1\right)}}{y}}{e^{b}}} \]
      2. exp-to-pow64.9%

        \[\leadsto x \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{y}}{e^{b}} \]
      3. sub-neg64.9%

        \[\leadsto x \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{y}}{e^{b}} \]
      4. metadata-eval64.9%

        \[\leadsto x \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{y}}{e^{b}} \]
    7. Simplified64.9%

      \[\leadsto x \cdot \color{blue}{\frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}} \]
    8. Taylor expanded in t around 0 70.9%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    9. Step-by-step derivation
      1. associate-*r*60.9%

        \[\leadsto \frac{x}{\color{blue}{\left(a \cdot y\right) \cdot e^{b}}} \]
    10. Simplified60.9%

      \[\leadsto \color{blue}{\frac{x}{\left(a \cdot y\right) \cdot e^{b}}} \]
    11. Taylor expanded in b around 0 37.6%

      \[\leadsto \frac{x}{\color{blue}{a \cdot y + a \cdot \left(b \cdot y\right)}} \]
    12. Step-by-step derivation
      1. distribute-lft-out37.6%

        \[\leadsto \frac{x}{\color{blue}{a \cdot \left(y + b \cdot y\right)}} \]
      2. distribute-rgt1-in37.6%

        \[\leadsto \frac{x}{a \cdot \color{blue}{\left(\left(b + 1\right) \cdot y\right)}} \]
    13. Simplified37.6%

      \[\leadsto \frac{x}{\color{blue}{a \cdot \left(\left(b + 1\right) \cdot y\right)}} \]
    14. Taylor expanded in b around inf 37.6%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(b \cdot y\right)}} \]
    15. Step-by-step derivation
      1. associate-*r*38.7%

        \[\leadsto \frac{x}{\color{blue}{\left(a \cdot b\right) \cdot y}} \]
      2. *-commutative38.7%

        \[\leadsto \frac{x}{\color{blue}{y \cdot \left(a \cdot b\right)}} \]
    16. Simplified38.7%

      \[\leadsto \color{blue}{\frac{x}{y \cdot \left(a \cdot b\right)}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification41.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -6 \cdot 10^{-5}:\\ \;\;\;\;x \cdot \frac{b}{y \cdot \left(-a\right)}\\ \mathbf{elif}\;b \leq 2.22 \cdot 10^{-122}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 19: 34.3% accurate, 18.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -1.65 \cdot 10^{-63}:\\ \;\;\;\;x \cdot \frac{1}{y \cdot a}\\ \mathbf{elif}\;b \leq 5.5 \cdot 10^{-124}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= b -1.65e-63)
   (* x (/ 1.0 (* y a)))
   (if (<= b 5.5e-124) (* (/ x a) (/ 1.0 y)) (/ x (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (b <= -1.65e-63) {
		tmp = x * (1.0 / (y * a));
	} else if (b <= 5.5e-124) {
		tmp = (x / a) * (1.0 / y);
	} else {
		tmp = x / (y * (a * b));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: tmp
    if (b <= (-1.65d-63)) then
        tmp = x * (1.0d0 / (y * a))
    else if (b <= 5.5d-124) then
        tmp = (x / a) * (1.0d0 / y)
    else
        tmp = x / (y * (a * b))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (b <= -1.65e-63) {
		tmp = x * (1.0 / (y * a));
	} else if (b <= 5.5e-124) {
		tmp = (x / a) * (1.0 / y);
	} else {
		tmp = x / (y * (a * b));
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if b <= -1.65e-63:
		tmp = x * (1.0 / (y * a))
	elif b <= 5.5e-124:
		tmp = (x / a) * (1.0 / y)
	else:
		tmp = x / (y * (a * b))
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (b <= -1.65e-63)
		tmp = Float64(x * Float64(1.0 / Float64(y * a)));
	elseif (b <= 5.5e-124)
		tmp = Float64(Float64(x / a) * Float64(1.0 / y));
	else
		tmp = Float64(x / Float64(y * Float64(a * b)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if (b <= -1.65e-63)
		tmp = x * (1.0 / (y * a));
	elseif (b <= 5.5e-124)
		tmp = (x / a) * (1.0 / y);
	else
		tmp = x / (y * (a * b));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.65e-63], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.5e-124], N[(N[(x / a), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.65 \cdot 10^{-63}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\

\mathbf{elif}\;b \leq 5.5 \cdot 10^{-124}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\

\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -1.64999999999999997e-63

    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*99.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+99.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-sum69.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*68.4%

        \[\leadsto x \cdot \color{blue}{\left(e^{y \cdot \log z} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right)} \]
      5. *-commutative68.4%

        \[\leadsto x \cdot \left(e^{\color{blue}{\log z \cdot y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      6. exp-to-pow68.4%

        \[\leadsto x \cdot \left(\color{blue}{{z}^{y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      7. exp-diff53.4%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\color{blue}{\frac{e^{\left(t - 1\right) \cdot \log a}}{e^{b}}}}{y}\right) \]
      8. *-commutative53.4%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      9. exp-to-pow53.7%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      10. sub-neg53.7%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}}}{y}\right) \]
      11. metadata-eval53.7%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y}\right) \]
    3. Simplified53.7%

      \[\leadsto \color{blue}{x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 63.7%

      \[\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*61.1%

        \[\leadsto x \cdot \color{blue}{\frac{\frac{e^{\log a \cdot \left(t - 1\right)}}{y}}{e^{b}}} \]
      2. exp-to-pow61.4%

        \[\leadsto x \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{y}}{e^{b}} \]
      3. sub-neg61.4%

        \[\leadsto x \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{y}}{e^{b}} \]
      4. metadata-eval61.4%

        \[\leadsto x \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{y}}{e^{b}} \]
    7. Simplified61.4%

      \[\leadsto x \cdot \color{blue}{\frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}} \]
    8. Taylor expanded in t around 0 71.7%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    9. Taylor expanded in b around 0 27.9%

      \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
    10. Step-by-step derivation
      1. div-inv30.2%

        \[\leadsto \color{blue}{x \cdot \frac{1}{a \cdot y}} \]
      2. *-commutative30.2%

        \[\leadsto x \cdot \frac{1}{\color{blue}{y \cdot a}} \]
    11. Applied egg-rr30.2%

      \[\leadsto \color{blue}{x \cdot \frac{1}{y \cdot a}} \]

    if -1.64999999999999997e-63 < b < 5.50000000000000016e-124

    1. Initial program 98.3%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Add Preprocessing
    3. Taylor expanded in b around 0 98.3%

      \[\leadsto \frac{x \cdot \color{blue}{e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
    4. Step-by-step derivation
      1. exp-sum80.9%

        \[\leadsto \frac{x \cdot \color{blue}{\left(e^{y \cdot \log z} \cdot e^{\log a \cdot \left(t - 1\right)}\right)}}{y} \]
      2. *-commutative80.9%

        \[\leadsto \frac{x \cdot \left(e^{\color{blue}{\log z \cdot y}} \cdot e^{\log a \cdot \left(t - 1\right)}\right)}{y} \]
      3. exp-to-pow80.9%

        \[\leadsto \frac{x \cdot \left(\color{blue}{{z}^{y}} \cdot e^{\log a \cdot \left(t - 1\right)}\right)}{y} \]
      4. exp-to-pow82.5%

        \[\leadsto \frac{x \cdot \left({z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}\right)}{y} \]
      5. sub-neg82.5%

        \[\leadsto \frac{x \cdot \left({z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}\right)}{y} \]
      6. metadata-eval82.5%

        \[\leadsto \frac{x \cdot \left({z}^{y} \cdot {a}^{\left(t + \color{blue}{-1}\right)}\right)}{y} \]
    5. Simplified82.5%

      \[\leadsto \frac{x \cdot \color{blue}{\left({z}^{y} \cdot {a}^{\left(t + -1\right)}\right)}}{y} \]
    6. Taylor expanded in t around 0 74.9%

      \[\leadsto \frac{\color{blue}{\frac{x \cdot {z}^{y}}{a}}}{y} \]
    7. Step-by-step derivation
      1. associate-/l/67.0%

        \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{y \cdot a}} \]
      2. *-commutative67.0%

        \[\leadsto \frac{\color{blue}{{z}^{y} \cdot x}}{y \cdot a} \]
      3. times-frac70.3%

        \[\leadsto \color{blue}{\frac{{z}^{y}}{y} \cdot \frac{x}{a}} \]
    8. Applied egg-rr70.3%

      \[\leadsto \color{blue}{\frac{{z}^{y}}{y} \cdot \frac{x}{a}} \]
    9. Taylor expanded in y around 0 45.8%

      \[\leadsto \color{blue}{\frac{1}{y}} \cdot \frac{x}{a} \]

    if 5.50000000000000016e-124 < b

    1. Initial program 99.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*99.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+99.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-sum75.3%

        \[\leadsto x \cdot \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a - b}}}{y} \]
      4. associate-/l*72.0%

        \[\leadsto x \cdot \color{blue}{\left(e^{y \cdot \log z} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right)} \]
      5. *-commutative72.0%

        \[\leadsto x \cdot \left(e^{\color{blue}{\log z \cdot y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      6. exp-to-pow72.1%

        \[\leadsto x \cdot \left(\color{blue}{{z}^{y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      7. exp-diff63.2%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\color{blue}{\frac{e^{\left(t - 1\right) \cdot \log a}}{e^{b}}}}{y}\right) \]
      8. *-commutative63.2%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      9. exp-to-pow63.3%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      10. sub-neg63.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-eval63.3%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y}\right) \]
    3. Simplified63.3%

      \[\leadsto \color{blue}{x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 70.3%

      \[\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*64.8%

        \[\leadsto x \cdot \color{blue}{\frac{\frac{e^{\log a \cdot \left(t - 1\right)}}{y}}{e^{b}}} \]
      2. exp-to-pow64.9%

        \[\leadsto x \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{y}}{e^{b}} \]
      3. sub-neg64.9%

        \[\leadsto x \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{y}}{e^{b}} \]
      4. metadata-eval64.9%

        \[\leadsto x \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{y}}{e^{b}} \]
    7. Simplified64.9%

      \[\leadsto x \cdot \color{blue}{\frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}} \]
    8. Taylor expanded in t around 0 70.9%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    9. Step-by-step derivation
      1. associate-*r*60.9%

        \[\leadsto \frac{x}{\color{blue}{\left(a \cdot y\right) \cdot e^{b}}} \]
    10. Simplified60.9%

      \[\leadsto \color{blue}{\frac{x}{\left(a \cdot y\right) \cdot e^{b}}} \]
    11. Taylor expanded in b around 0 37.6%

      \[\leadsto \frac{x}{\color{blue}{a \cdot y + a \cdot \left(b \cdot y\right)}} \]
    12. Step-by-step derivation
      1. distribute-lft-out37.6%

        \[\leadsto \frac{x}{\color{blue}{a \cdot \left(y + b \cdot y\right)}} \]
      2. distribute-rgt1-in37.6%

        \[\leadsto \frac{x}{a \cdot \color{blue}{\left(\left(b + 1\right) \cdot y\right)}} \]
    13. Simplified37.6%

      \[\leadsto \frac{x}{\color{blue}{a \cdot \left(\left(b + 1\right) \cdot y\right)}} \]
    14. Taylor expanded in b around inf 37.6%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(b \cdot y\right)}} \]
    15. Step-by-step derivation
      1. associate-*r*38.7%

        \[\leadsto \frac{x}{\color{blue}{\left(a \cdot b\right) \cdot y}} \]
      2. *-commutative38.7%

        \[\leadsto \frac{x}{\color{blue}{y \cdot \left(a \cdot b\right)}} \]
    16. Simplified38.7%

      \[\leadsto \color{blue}{\frac{x}{y \cdot \left(a \cdot b\right)}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification38.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.65 \cdot 10^{-63}:\\ \;\;\;\;x \cdot \frac{1}{y \cdot a}\\ \mathbf{elif}\;b \leq 5.5 \cdot 10^{-124}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 20: 34.4% accurate, 18.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -1.4 \cdot 10^{-64}:\\ \;\;\;\;x \cdot \frac{1}{y \cdot a}\\ \mathbf{elif}\;b \leq 2.22 \cdot 10^{-122}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= b -1.4e-64)
   (* x (/ 1.0 (* y a)))
   (if (<= b 2.22e-122) (* (/ x a) (/ 1.0 y)) (/ x (* a (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (b <= -1.4e-64) {
		tmp = x * (1.0 / (y * a));
	} else if (b <= 2.22e-122) {
		tmp = (x / a) * (1.0 / y);
	} else {
		tmp = x / (a * (y * b));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: tmp
    if (b <= (-1.4d-64)) then
        tmp = x * (1.0d0 / (y * a))
    else if (b <= 2.22d-122) then
        tmp = (x / a) * (1.0d0 / y)
    else
        tmp = x / (a * (y * b))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (b <= -1.4e-64) {
		tmp = x * (1.0 / (y * a));
	} else if (b <= 2.22e-122) {
		tmp = (x / a) * (1.0 / y);
	} else {
		tmp = x / (a * (y * b));
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if b <= -1.4e-64:
		tmp = x * (1.0 / (y * a))
	elif b <= 2.22e-122:
		tmp = (x / a) * (1.0 / y)
	else:
		tmp = x / (a * (y * b))
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (b <= -1.4e-64)
		tmp = Float64(x * Float64(1.0 / Float64(y * a)));
	elseif (b <= 2.22e-122)
		tmp = Float64(Float64(x / a) * Float64(1.0 / y));
	else
		tmp = Float64(x / Float64(a * Float64(y * b)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if (b <= -1.4e-64)
		tmp = x * (1.0 / (y * a));
	elseif (b <= 2.22e-122)
		tmp = (x / a) * (1.0 / y);
	else
		tmp = x / (a * (y * b));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.4e-64], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.22e-122], N[(N[(x / a), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.4 \cdot 10^{-64}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\

\mathbf{elif}\;b \leq 2.22 \cdot 10^{-122}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\

\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -1.40000000000000002e-64

    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*99.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+99.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-sum69.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*68.4%

        \[\leadsto x \cdot \color{blue}{\left(e^{y \cdot \log z} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right)} \]
      5. *-commutative68.4%

        \[\leadsto x \cdot \left(e^{\color{blue}{\log z \cdot y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      6. exp-to-pow68.4%

        \[\leadsto x \cdot \left(\color{blue}{{z}^{y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      7. exp-diff53.4%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\color{blue}{\frac{e^{\left(t - 1\right) \cdot \log a}}{e^{b}}}}{y}\right) \]
      8. *-commutative53.4%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      9. exp-to-pow53.7%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      10. sub-neg53.7%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}}}{y}\right) \]
      11. metadata-eval53.7%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y}\right) \]
    3. Simplified53.7%

      \[\leadsto \color{blue}{x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 63.7%

      \[\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*61.1%

        \[\leadsto x \cdot \color{blue}{\frac{\frac{e^{\log a \cdot \left(t - 1\right)}}{y}}{e^{b}}} \]
      2. exp-to-pow61.4%

        \[\leadsto x \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{y}}{e^{b}} \]
      3. sub-neg61.4%

        \[\leadsto x \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{y}}{e^{b}} \]
      4. metadata-eval61.4%

        \[\leadsto x \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{y}}{e^{b}} \]
    7. Simplified61.4%

      \[\leadsto x \cdot \color{blue}{\frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}} \]
    8. Taylor expanded in t around 0 71.7%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    9. Taylor expanded in b around 0 27.9%

      \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
    10. Step-by-step derivation
      1. div-inv30.2%

        \[\leadsto \color{blue}{x \cdot \frac{1}{a \cdot y}} \]
      2. *-commutative30.2%

        \[\leadsto x \cdot \frac{1}{\color{blue}{y \cdot a}} \]
    11. Applied egg-rr30.2%

      \[\leadsto \color{blue}{x \cdot \frac{1}{y \cdot a}} \]

    if -1.40000000000000002e-64 < b < 2.22e-122

    1. Initial program 98.3%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Add Preprocessing
    3. Taylor expanded in b around 0 98.3%

      \[\leadsto \frac{x \cdot \color{blue}{e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
    4. Step-by-step derivation
      1. exp-sum80.9%

        \[\leadsto \frac{x \cdot \color{blue}{\left(e^{y \cdot \log z} \cdot e^{\log a \cdot \left(t - 1\right)}\right)}}{y} \]
      2. *-commutative80.9%

        \[\leadsto \frac{x \cdot \left(e^{\color{blue}{\log z \cdot y}} \cdot e^{\log a \cdot \left(t - 1\right)}\right)}{y} \]
      3. exp-to-pow80.9%

        \[\leadsto \frac{x \cdot \left(\color{blue}{{z}^{y}} \cdot e^{\log a \cdot \left(t - 1\right)}\right)}{y} \]
      4. exp-to-pow82.5%

        \[\leadsto \frac{x \cdot \left({z}^{y} \cdot \color{blue}{{a}^{\left(t - 1\right)}}\right)}{y} \]
      5. sub-neg82.5%

        \[\leadsto \frac{x \cdot \left({z}^{y} \cdot {a}^{\color{blue}{\left(t + \left(-1\right)\right)}}\right)}{y} \]
      6. metadata-eval82.5%

        \[\leadsto \frac{x \cdot \left({z}^{y} \cdot {a}^{\left(t + \color{blue}{-1}\right)}\right)}{y} \]
    5. Simplified82.5%

      \[\leadsto \frac{x \cdot \color{blue}{\left({z}^{y} \cdot {a}^{\left(t + -1\right)}\right)}}{y} \]
    6. Taylor expanded in t around 0 74.9%

      \[\leadsto \frac{\color{blue}{\frac{x \cdot {z}^{y}}{a}}}{y} \]
    7. Step-by-step derivation
      1. associate-/l/67.0%

        \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{y \cdot a}} \]
      2. *-commutative67.0%

        \[\leadsto \frac{\color{blue}{{z}^{y} \cdot x}}{y \cdot a} \]
      3. times-frac70.3%

        \[\leadsto \color{blue}{\frac{{z}^{y}}{y} \cdot \frac{x}{a}} \]
    8. Applied egg-rr70.3%

      \[\leadsto \color{blue}{\frac{{z}^{y}}{y} \cdot \frac{x}{a}} \]
    9. Taylor expanded in y around 0 45.8%

      \[\leadsto \color{blue}{\frac{1}{y}} \cdot \frac{x}{a} \]

    if 2.22e-122 < b

    1. Initial program 99.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*99.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+99.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-sum75.3%

        \[\leadsto x \cdot \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a - b}}}{y} \]
      4. associate-/l*72.0%

        \[\leadsto x \cdot \color{blue}{\left(e^{y \cdot \log z} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right)} \]
      5. *-commutative72.0%

        \[\leadsto x \cdot \left(e^{\color{blue}{\log z \cdot y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      6. exp-to-pow72.1%

        \[\leadsto x \cdot \left(\color{blue}{{z}^{y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      7. exp-diff63.2%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\color{blue}{\frac{e^{\left(t - 1\right) \cdot \log a}}{e^{b}}}}{y}\right) \]
      8. *-commutative63.2%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      9. exp-to-pow63.3%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      10. sub-neg63.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-eval63.3%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y}\right) \]
    3. Simplified63.3%

      \[\leadsto \color{blue}{x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 70.3%

      \[\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*64.8%

        \[\leadsto x \cdot \color{blue}{\frac{\frac{e^{\log a \cdot \left(t - 1\right)}}{y}}{e^{b}}} \]
      2. exp-to-pow64.9%

        \[\leadsto x \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{y}}{e^{b}} \]
      3. sub-neg64.9%

        \[\leadsto x \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{y}}{e^{b}} \]
      4. metadata-eval64.9%

        \[\leadsto x \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{y}}{e^{b}} \]
    7. Simplified64.9%

      \[\leadsto x \cdot \color{blue}{\frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}} \]
    8. Taylor expanded in t around 0 70.9%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    9. Step-by-step derivation
      1. associate-*r*60.9%

        \[\leadsto \frac{x}{\color{blue}{\left(a \cdot y\right) \cdot e^{b}}} \]
    10. Simplified60.9%

      \[\leadsto \color{blue}{\frac{x}{\left(a \cdot y\right) \cdot e^{b}}} \]
    11. Taylor expanded in b around 0 37.6%

      \[\leadsto \frac{x}{\color{blue}{a \cdot y + a \cdot \left(b \cdot y\right)}} \]
    12. Step-by-step derivation
      1. distribute-lft-out37.6%

        \[\leadsto \frac{x}{\color{blue}{a \cdot \left(y + b \cdot y\right)}} \]
      2. distribute-rgt1-in37.6%

        \[\leadsto \frac{x}{a \cdot \color{blue}{\left(\left(b + 1\right) \cdot y\right)}} \]
    13. Simplified37.6%

      \[\leadsto \frac{x}{\color{blue}{a \cdot \left(\left(b + 1\right) \cdot y\right)}} \]
    14. Taylor expanded in b around inf 37.6%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(b \cdot y\right)}} \]
    15. Step-by-step derivation
      1. *-commutative37.6%

        \[\leadsto \frac{x}{a \cdot \color{blue}{\left(y \cdot b\right)}} \]
    16. Simplified37.6%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot b\right)}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification38.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.4 \cdot 10^{-64}:\\ \;\;\;\;x \cdot \frac{1}{y \cdot a}\\ \mathbf{elif}\;b \leq 2.22 \cdot 10^{-122}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{1}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 21: 41.2% accurate, 19.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq 8.5 \cdot 10^{-289}:\\ \;\;\;\;\frac{\frac{x}{y} - x \cdot \frac{b}{y}}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= b 8.5e-289)
   (/ (- (/ x y) (* x (/ b y))) a)
   (/ x (* b (* a (+ y (/ y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (b <= 8.5e-289) {
		tmp = ((x / y) - (x * (b / y))) / a;
	} else {
		tmp = x / (b * (a * (y + (y / b))));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: tmp
    if (b <= 8.5d-289) then
        tmp = ((x / y) - (x * (b / y))) / a
    else
        tmp = x / (b * (a * (y + (y / b))))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (b <= 8.5e-289) {
		tmp = ((x / y) - (x * (b / y))) / a;
	} else {
		tmp = x / (b * (a * (y + (y / b))));
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if b <= 8.5e-289:
		tmp = ((x / y) - (x * (b / y))) / a
	else:
		tmp = x / (b * (a * (y + (y / b))))
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (b <= 8.5e-289)
		tmp = Float64(Float64(Float64(x / y) - Float64(x * Float64(b / y))) / a);
	else
		tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b)))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if (b <= 8.5e-289)
		tmp = ((x / y) - (x * (b / y))) / a;
	else
		tmp = x / (b * (a * (y + (y / b))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 8.5e-289], N[(N[(N[(x / y), $MachinePrecision] - N[(x * N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;b \leq 8.5 \cdot 10^{-289}:\\
\;\;\;\;\frac{\frac{x}{y} - x \cdot \frac{b}{y}}{a}\\

\mathbf{else}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < 8.49999999999999931e-289

    1. Initial program 98.6%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-/l*98.5%

        \[\leadsto \color{blue}{x \cdot \frac{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}} \]
      2. associate--l+98.5%

        \[\leadsto x \cdot \frac{e^{\color{blue}{y \cdot \log z + \left(\left(t - 1\right) \cdot \log a - b\right)}}}{y} \]
      3. exp-sum70.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*69.5%

        \[\leadsto x \cdot \color{blue}{\left(e^{y \cdot \log z} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right)} \]
      5. *-commutative69.5%

        \[\leadsto x \cdot \left(e^{\color{blue}{\log z \cdot y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      6. exp-to-pow69.5%

        \[\leadsto x \cdot \left(\color{blue}{{z}^{y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      7. exp-diff59.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. *-commutative59.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-pow60.5%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      10. sub-neg60.5%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}}}{y}\right) \]
      11. metadata-eval60.5%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y}\right) \]
    3. Simplified60.5%

      \[\leadsto \color{blue}{x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 68.7%

      \[\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*67.1%

        \[\leadsto x \cdot \color{blue}{\frac{\frac{e^{\log a \cdot \left(t - 1\right)}}{y}}{e^{b}}} \]
      2. exp-to-pow67.6%

        \[\leadsto x \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{y}}{e^{b}} \]
      3. sub-neg67.6%

        \[\leadsto x \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{y}}{e^{b}} \]
      4. metadata-eval67.6%

        \[\leadsto x \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{y}}{e^{b}} \]
    7. Simplified67.6%

      \[\leadsto x \cdot \color{blue}{\frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}} \]
    8. Taylor expanded in t around 0 61.1%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    9. Taylor expanded in b around 0 39.9%

      \[\leadsto \color{blue}{-1 \cdot \frac{b \cdot x}{a \cdot y} + \frac{x}{a \cdot y}} \]
    10. Taylor expanded in a around 0 42.3%

      \[\leadsto \color{blue}{\frac{-1 \cdot \frac{b \cdot x}{y} + \frac{x}{y}}{a}} \]
    11. Step-by-step derivation
      1. +-commutative42.3%

        \[\leadsto \frac{\color{blue}{\frac{x}{y} + -1 \cdot \frac{b \cdot x}{y}}}{a} \]
      2. mul-1-neg42.3%

        \[\leadsto \frac{\frac{x}{y} + \color{blue}{\left(-\frac{b \cdot x}{y}\right)}}{a} \]
      3. unsub-neg42.3%

        \[\leadsto \frac{\color{blue}{\frac{x}{y} - \frac{b \cdot x}{y}}}{a} \]
      4. *-commutative42.3%

        \[\leadsto \frac{\frac{x}{y} - \frac{\color{blue}{x \cdot b}}{y}}{a} \]
      5. associate-/l*43.8%

        \[\leadsto \frac{\frac{x}{y} - \color{blue}{x \cdot \frac{b}{y}}}{a} \]
    12. Simplified43.8%

      \[\leadsto \color{blue}{\frac{\frac{x}{y} - x \cdot \frac{b}{y}}{a}} \]

    if 8.49999999999999931e-289 < b

    1. Initial program 99.3%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-/l*99.3%

        \[\leadsto \color{blue}{x \cdot \frac{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}} \]
      2. associate--l+99.3%

        \[\leadsto x \cdot \frac{e^{\color{blue}{y \cdot \log z + \left(\left(t - 1\right) \cdot \log a - b\right)}}}{y} \]
      3. exp-sum79.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*77.3%

        \[\leadsto x \cdot \color{blue}{\left(e^{y \cdot \log z} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right)} \]
      5. *-commutative77.3%

        \[\leadsto x \cdot \left(e^{\color{blue}{\log z \cdot y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      6. exp-to-pow77.4%

        \[\leadsto x \cdot \left(\color{blue}{{z}^{y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      7. exp-diff71.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. *-commutative71.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-pow71.9%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      10. sub-neg71.9%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}}}{y}\right) \]
      11. metadata-eval71.9%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y}\right) \]
    3. Simplified71.9%

      \[\leadsto \color{blue}{x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 68.7%

      \[\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*65.0%

        \[\leadsto x \cdot \color{blue}{\frac{\frac{e^{\log a \cdot \left(t - 1\right)}}{y}}{e^{b}}} \]
      2. exp-to-pow65.4%

        \[\leadsto x \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{y}}{e^{b}} \]
      3. sub-neg65.4%

        \[\leadsto x \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{y}}{e^{b}} \]
      4. metadata-eval65.4%

        \[\leadsto x \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{y}}{e^{b}} \]
    7. Simplified65.4%

      \[\leadsto x \cdot \color{blue}{\frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}} \]
    8. Taylor expanded in t around 0 60.7%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    9. Step-by-step derivation
      1. associate-*r*53.9%

        \[\leadsto \frac{x}{\color{blue}{\left(a \cdot y\right) \cdot e^{b}}} \]
    10. Simplified53.9%

      \[\leadsto \color{blue}{\frac{x}{\left(a \cdot y\right) \cdot e^{b}}} \]
    11. Taylor expanded in b around 0 38.0%

      \[\leadsto \frac{x}{\color{blue}{a \cdot y + a \cdot \left(b \cdot y\right)}} \]
    12. Step-by-step derivation
      1. distribute-lft-out38.0%

        \[\leadsto \frac{x}{\color{blue}{a \cdot \left(y + b \cdot y\right)}} \]
      2. distribute-rgt1-in38.0%

        \[\leadsto \frac{x}{a \cdot \color{blue}{\left(\left(b + 1\right) \cdot y\right)}} \]
    13. Simplified38.0%

      \[\leadsto \frac{x}{\color{blue}{a \cdot \left(\left(b + 1\right) \cdot y\right)}} \]
    14. Taylor expanded in b around inf 37.0%

      \[\leadsto \frac{x}{\color{blue}{b \cdot \left(a \cdot y + \frac{a \cdot y}{b}\right)}} \]
    15. Step-by-step derivation
      1. associate-/l*41.9%

        \[\leadsto \frac{x}{b \cdot \left(a \cdot y + \color{blue}{a \cdot \frac{y}{b}}\right)} \]
      2. distribute-lft-out41.9%

        \[\leadsto \frac{x}{b \cdot \color{blue}{\left(a \cdot \left(y + \frac{y}{b}\right)\right)}} \]
    16. Simplified41.9%

      \[\leadsto \frac{x}{\color{blue}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 22: 41.9% accurate, 19.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -6.5 \cdot 10^{-5}:\\ \;\;\;\;x \cdot \frac{b}{y \cdot \left(-a\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= b -6.5e-5) (* x (/ b (* y (- a)))) (/ x (* b (* a (+ y (/ y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (b <= -6.5e-5) {
		tmp = x * (b / (y * -a));
	} else {
		tmp = x / (b * (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 <= (-6.5d-5)) then
        tmp = x * (b / (y * -a))
    else
        tmp = x / (b * (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 <= -6.5e-5) {
		tmp = x * (b / (y * -a));
	} else {
		tmp = x / (b * (a * (y + (y / b))));
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if b <= -6.5e-5:
		tmp = x * (b / (y * -a))
	else:
		tmp = x / (b * (a * (y + (y / b))))
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (b <= -6.5e-5)
		tmp = Float64(x * Float64(b / Float64(y * Float64(-a))));
	else
		tmp = Float64(x / Float64(b * 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 <= -6.5e-5)
		tmp = x * (b / (y * -a));
	else
		tmp = x / (b * (a * (y + (y / b))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -6.5e-5], N[(x * N[(b / N[(y * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.5 \cdot 10^{-5}:\\
\;\;\;\;x \cdot \frac{b}{y \cdot \left(-a\right)}\\

\mathbf{else}:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -6.49999999999999943e-5

    1. Initial program 100.0%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-/l*100.0%

        \[\leadsto \color{blue}{x \cdot \frac{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}} \]
      2. associate--l+100.0%

        \[\leadsto x \cdot \frac{e^{\color{blue}{y \cdot \log z + \left(\left(t - 1\right) \cdot \log a - b\right)}}}{y} \]
      3. exp-sum70.0%

        \[\leadsto x \cdot \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a - b}}}{y} \]
      4. associate-/l*70.0%

        \[\leadsto x \cdot \color{blue}{\left(e^{y \cdot \log z} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right)} \]
      5. *-commutative70.0%

        \[\leadsto x \cdot \left(e^{\color{blue}{\log z \cdot y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      6. exp-to-pow70.0%

        \[\leadsto x \cdot \left(\color{blue}{{z}^{y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      7. exp-diff52.9%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\color{blue}{\frac{e^{\left(t - 1\right) \cdot \log a}}{e^{b}}}}{y}\right) \]
      8. *-commutative52.9%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      9. exp-to-pow52.9%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      10. sub-neg52.9%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}}}{y}\right) \]
      11. metadata-eval52.9%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y}\right) \]
    3. Simplified52.9%

      \[\leadsto \color{blue}{x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 65.9%

      \[\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*63.0%

        \[\leadsto x \cdot \color{blue}{\frac{\frac{e^{\log a \cdot \left(t - 1\right)}}{y}}{e^{b}}} \]
      2. exp-to-pow63.0%

        \[\leadsto x \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{y}}{e^{b}} \]
      3. sub-neg63.0%

        \[\leadsto x \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{y}}{e^{b}} \]
      4. metadata-eval63.0%

        \[\leadsto x \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{y}}{e^{b}} \]
    7. Simplified63.0%

      \[\leadsto x \cdot \color{blue}{\frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}} \]
    8. Taylor expanded in t around 0 76.1%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    9. Taylor expanded in b around 0 39.3%

      \[\leadsto \color{blue}{-1 \cdot \frac{b \cdot x}{a \cdot y} + \frac{x}{a \cdot y}} \]
    10. Taylor expanded in b around inf 39.3%

      \[\leadsto \color{blue}{-1 \cdot \frac{b \cdot x}{a \cdot y}} \]
    11. Step-by-step derivation
      1. mul-1-neg39.3%

        \[\leadsto \color{blue}{-\frac{b \cdot x}{a \cdot y}} \]
      2. *-commutative39.3%

        \[\leadsto -\frac{b \cdot x}{\color{blue}{y \cdot a}} \]
      3. *-commutative39.3%

        \[\leadsto -\frac{\color{blue}{x \cdot b}}{y \cdot a} \]
      4. associate-/l*40.7%

        \[\leadsto -\color{blue}{x \cdot \frac{b}{y \cdot a}} \]
      5. *-commutative40.7%

        \[\leadsto -x \cdot \frac{b}{\color{blue}{a \cdot y}} \]
      6. distribute-rgt-neg-out40.7%

        \[\leadsto \color{blue}{x \cdot \left(-\frac{b}{a \cdot y}\right)} \]
      7. *-commutative40.7%

        \[\leadsto x \cdot \left(-\frac{b}{\color{blue}{y \cdot a}}\right) \]
      8. distribute-neg-frac240.7%

        \[\leadsto x \cdot \color{blue}{\frac{b}{-y \cdot a}} \]
      9. distribute-rgt-neg-in40.7%

        \[\leadsto x \cdot \frac{b}{\color{blue}{y \cdot \left(-a\right)}} \]
    12. Simplified40.7%

      \[\leadsto \color{blue}{x \cdot \frac{b}{y \cdot \left(-a\right)}} \]

    if -6.49999999999999943e-5 < b

    1. Initial program 98.5%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-/l*98.5%

        \[\leadsto \color{blue}{x \cdot \frac{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}} \]
      2. associate--l+98.5%

        \[\leadsto x \cdot \frac{e^{\color{blue}{y \cdot \log z + \left(\left(t - 1\right) \cdot \log a - b\right)}}}{y} \]
      3. exp-sum77.0%

        \[\leadsto x \cdot \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a - b}}}{y} \]
      4. associate-/l*74.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. *-commutative74.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-pow74.9%

        \[\leadsto x \cdot \left(\color{blue}{{z}^{y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
      7. exp-diff70.6%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\color{blue}{\frac{e^{\left(t - 1\right) \cdot \log a}}{e^{b}}}}{y}\right) \]
      8. *-commutative70.6%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{e^{\color{blue}{\log a \cdot \left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      9. exp-to-pow71.5%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y}\right) \]
      10. sub-neg71.5%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{e^{b}}}{y}\right) \]
      11. metadata-eval71.5%

        \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y}\right) \]
    3. Simplified71.5%

      \[\leadsto \color{blue}{x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 69.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*67.1%

        \[\leadsto x \cdot \color{blue}{\frac{\frac{e^{\log a \cdot \left(t - 1\right)}}{y}}{e^{b}}} \]
      2. exp-to-pow67.8%

        \[\leadsto x \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{y}}{e^{b}} \]
      3. sub-neg67.8%

        \[\leadsto x \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{y}}{e^{b}} \]
      4. metadata-eval67.8%

        \[\leadsto x \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{y}}{e^{b}} \]
    7. Simplified67.8%

      \[\leadsto x \cdot \color{blue}{\frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}} \]
    8. Taylor expanded in t around 0 55.2%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    9. Step-by-step derivation
      1. associate-*r*50.3%

        \[\leadsto \frac{x}{\color{blue}{\left(a \cdot y\right) \cdot e^{b}}} \]
    10. Simplified50.3%

      \[\leadsto \color{blue}{\frac{x}{\left(a \cdot y\right) \cdot e^{b}}} \]
    11. Taylor expanded in b around 0 38.3%

      \[\leadsto \frac{x}{\color{blue}{a \cdot y + a \cdot \left(b \cdot y\right)}} \]
    12. Step-by-step derivation
      1. distribute-lft-out38.9%

        \[\leadsto \frac{x}{\color{blue}{a \cdot \left(y + b \cdot y\right)}} \]
      2. distribute-rgt1-in38.9%

        \[\leadsto \frac{x}{a \cdot \color{blue}{\left(\left(b + 1\right) \cdot y\right)}} \]
    13. Simplified38.9%

      \[\leadsto \frac{x}{\color{blue}{a \cdot \left(\left(b + 1\right) \cdot y\right)}} \]
    14. Taylor expanded in b around inf 39.1%

      \[\leadsto \frac{x}{\color{blue}{b \cdot \left(a \cdot y + \frac{a \cdot y}{b}\right)}} \]
    15. Step-by-step derivation
      1. associate-/l*42.0%

        \[\leadsto \frac{x}{b \cdot \left(a \cdot y + \color{blue}{a \cdot \frac{y}{b}}\right)} \]
      2. distribute-lft-out42.1%

        \[\leadsto \frac{x}{b \cdot \color{blue}{\left(a \cdot \left(y + \frac{y}{b}\right)\right)}} \]
    16. Simplified42.1%

      \[\leadsto \frac{x}{\color{blue}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 23: 30.9% accurate, 45.0× speedup?

\[\begin{array}{l} \\ x \cdot \frac{1}{y \cdot a} \end{array} \]
(FPCore (x y z t a b) :precision binary64 (* x (/ 1.0 (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
	return x * (1.0 / (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 * (1.0d0 / (y * a))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return x * (1.0 / (y * a));
}
def code(x, y, z, t, a, b):
	return x * (1.0 / (y * a))
function code(x, y, z, t, a, b)
	return Float64(x * Float64(1.0 / Float64(y * a)))
end
function tmp = code(x, y, z, t, a, b)
	tmp = x * (1.0 / (y * a));
end
code[x_, y_, z_, t_, a_, b_] := N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x \cdot \frac{1}{y \cdot a}
\end{array}
Derivation
  1. Initial program 98.9%

    \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
  2. Step-by-step derivation
    1. associate-/l*98.9%

      \[\leadsto \color{blue}{x \cdot \frac{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}} \]
    2. associate--l+98.9%

      \[\leadsto x \cdot \frac{e^{\color{blue}{y \cdot \log z + \left(\left(t - 1\right) \cdot \log a - b\right)}}}{y} \]
    3. exp-sum75.1%

      \[\leadsto x \cdot \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a - b}}}{y} \]
    4. associate-/l*73.5%

      \[\leadsto x \cdot \color{blue}{\left(e^{y \cdot \log z} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right)} \]
    5. *-commutative73.5%

      \[\leadsto x \cdot \left(e^{\color{blue}{\log z \cdot y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
    6. exp-to-pow73.6%

      \[\leadsto x \cdot \left(\color{blue}{{z}^{y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
    7. exp-diff65.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. *-commutative65.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-pow66.4%

      \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y}\right) \]
    10. sub-neg66.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-eval66.4%

      \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y}\right) \]
  3. Simplified66.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 68.7%

    \[\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*66.0%

      \[\leadsto x \cdot \color{blue}{\frac{\frac{e^{\log a \cdot \left(t - 1\right)}}{y}}{e^{b}}} \]
    2. exp-to-pow66.5%

      \[\leadsto x \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{y}}{e^{b}} \]
    3. sub-neg66.5%

      \[\leadsto x \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{y}}{e^{b}} \]
    4. metadata-eval66.5%

      \[\leadsto x \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{y}}{e^{b}} \]
  7. Simplified66.5%

    \[\leadsto x \cdot \color{blue}{\frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}} \]
  8. Taylor expanded in t around 0 60.9%

    \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
  9. Taylor expanded in b around 0 29.4%

    \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
  10. Step-by-step derivation
    1. div-inv30.1%

      \[\leadsto \color{blue}{x \cdot \frac{1}{a \cdot y}} \]
    2. *-commutative30.1%

      \[\leadsto x \cdot \frac{1}{\color{blue}{y \cdot a}} \]
  11. Applied egg-rr30.1%

    \[\leadsto \color{blue}{x \cdot \frac{1}{y \cdot a}} \]
  12. Add Preprocessing

Alternative 24: 30.9% accurate, 63.0× speedup?

\[\begin{array}{l} \\ \frac{x}{y \cdot a} \end{array} \]
(FPCore (x y z t a b) :precision binary64 (/ x (* y a)))
double code(double x, double y, double z, double t, double a, double b) {
	return x / (y * a);
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    code = x / (y * a)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return x / (y * a);
}
def code(x, y, z, t, a, b):
	return x / (y * a)
function code(x, y, z, t, a, b)
	return Float64(x / Float64(y * a))
end
function tmp = code(x, y, z, t, a, b)
	tmp = x / (y * a);
end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{x}{y \cdot a}
\end{array}
Derivation
  1. Initial program 98.9%

    \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
  2. Step-by-step derivation
    1. associate-/l*98.9%

      \[\leadsto \color{blue}{x \cdot \frac{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}} \]
    2. associate--l+98.9%

      \[\leadsto x \cdot \frac{e^{\color{blue}{y \cdot \log z + \left(\left(t - 1\right) \cdot \log a - b\right)}}}{y} \]
    3. exp-sum75.1%

      \[\leadsto x \cdot \frac{\color{blue}{e^{y \cdot \log z} \cdot e^{\left(t - 1\right) \cdot \log a - b}}}{y} \]
    4. associate-/l*73.5%

      \[\leadsto x \cdot \color{blue}{\left(e^{y \cdot \log z} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right)} \]
    5. *-commutative73.5%

      \[\leadsto x \cdot \left(e^{\color{blue}{\log z \cdot y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
    6. exp-to-pow73.6%

      \[\leadsto x \cdot \left(\color{blue}{{z}^{y}} \cdot \frac{e^{\left(t - 1\right) \cdot \log a - b}}{y}\right) \]
    7. exp-diff65.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. *-commutative65.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-pow66.4%

      \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{e^{b}}}{y}\right) \]
    10. sub-neg66.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-eval66.4%

      \[\leadsto x \cdot \left({z}^{y} \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{e^{b}}}{y}\right) \]
  3. Simplified66.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 68.7%

    \[\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*66.0%

      \[\leadsto x \cdot \color{blue}{\frac{\frac{e^{\log a \cdot \left(t - 1\right)}}{y}}{e^{b}}} \]
    2. exp-to-pow66.5%

      \[\leadsto x \cdot \frac{\frac{\color{blue}{{a}^{\left(t - 1\right)}}}{y}}{e^{b}} \]
    3. sub-neg66.5%

      \[\leadsto x \cdot \frac{\frac{{a}^{\color{blue}{\left(t + \left(-1\right)\right)}}}{y}}{e^{b}} \]
    4. metadata-eval66.5%

      \[\leadsto x \cdot \frac{\frac{{a}^{\left(t + \color{blue}{-1}\right)}}{y}}{e^{b}} \]
  7. Simplified66.5%

    \[\leadsto x \cdot \color{blue}{\frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}} \]
  8. Taylor expanded in t around 0 60.9%

    \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
  9. Taylor expanded in b around 0 29.4%

    \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
  10. Final simplification29.4%

    \[\leadsto \frac{x}{y \cdot a} \]
  11. Add Preprocessing

Developer target: 72.6% 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 2024103 
(FPCore (x y z t a b)
  :name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
  :precision binary64

  :alt
  (if (< t -0.8845848504127471) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z)))) (if (< t 852031.2288374073) (/ (* (/ x y) (pow a (- t 1.0))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z))))))

  (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))