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

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

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

Initial Program: 98.4% accurate, 1.0× speedup?

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

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

Alternative 1: 98.4% accurate, 1.0× speedup?

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

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

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

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

Alternative 2: 92.4% accurate, 1.0× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (-.f64 t 1) < -1.00000000000000004e93 or -1 < (-.f64 t 1)

    1. Initial program 100.0%

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

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

    if -1.00000000000000004e93 < (-.f64 t 1) < -1

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

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

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

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

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

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

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

Alternative 3: 75.4% accurate, 1.3× speedup?

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

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

\mathbf{elif}\;t \leq -1.65 \cdot 10^{+68}:\\
\;\;\;\;t\_2\\

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

\mathbf{elif}\;t \leq -1 \cdot 10^{-298}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t \leq 8.2 \cdot 10^{+64}:\\
\;\;\;\;\frac{{z}^{y}}{t\_1} \cdot \frac{x}{a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -3.00000000000000013e92 or 8.19999999999999956e64 < t

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -3.00000000000000013e92 < t < -1.65e68 or -3.29999999999999996e-182 < t < -9.99999999999999912e-299

    1. Initial program 94.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/88.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Simplified71.3%

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

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

    if -1.65e68 < t < -3.29999999999999996e-182

    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. Add Preprocessing
    3. Taylor expanded in t around 0 96.4%

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

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

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

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

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

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

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

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

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

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

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

    if -9.99999999999999912e-299 < t < 8.19999999999999956e64

    1. Initial program 99.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -3 \cdot 10^{+92}:\\ \;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\ \mathbf{elif}\;t \leq -1.65 \cdot 10^{+68}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;t \leq -3.3 \cdot 10^{-182}:\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\ \mathbf{elif}\;t \leq -1 \cdot 10^{-298}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;t \leq 8.2 \cdot 10^{+64}:\\ \;\;\;\;\frac{{z}^{y}}{y \cdot e^{b}} \cdot \frac{x}{a}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 80.6% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := {a}^{\left(t + -1\right)}\\ t_2 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\ \mathbf{if}\;y \leq -3.4 \cdot 10^{+68}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;y \leq -7 \cdot 10^{-50}:\\ \;\;\;\;\frac{x}{y} \cdot \frac{t\_1}{e^{b}}\\ \mathbf{elif}\;y \leq -3 \cdot 10^{-194}:\\ \;\;\;\;x \cdot \frac{t\_1}{y}\\ \mathbf{elif}\;y \leq 6.8 \cdot 10^{+41}:\\ \;\;\;\;\frac{x}{y \cdot \frac{e^{b}}{t\_1}}\\ \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 -3.4e+68)
     t_2
     (if (<= y -7e-50)
       (* (/ x y) (/ t_1 (exp b)))
       (if (<= y -3e-194)
         (* x (/ t_1 y))
         (if (<= y 6.8e+41) (/ x (* y (/ (exp b) t_1))) 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 <= -3.4e+68) {
		tmp = t_2;
	} else if (y <= -7e-50) {
		tmp = (x / y) * (t_1 / exp(b));
	} else if (y <= -3e-194) {
		tmp = x * (t_1 / y);
	} else if (y <= 6.8e+41) {
		tmp = x / (y * (exp(b) / 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 = a ** (t + (-1.0d0))
    t_2 = (x * ((z ** y) / a)) / y
    if (y <= (-3.4d+68)) then
        tmp = t_2
    else if (y <= (-7d-50)) then
        tmp = (x / y) * (t_1 / exp(b))
    else if (y <= (-3d-194)) then
        tmp = x * (t_1 / y)
    else if (y <= 6.8d+41) then
        tmp = x / (y * (exp(b) / t_1))
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = Math.pow(a, (t + -1.0));
	double t_2 = (x * (Math.pow(z, y) / a)) / y;
	double tmp;
	if (y <= -3.4e+68) {
		tmp = t_2;
	} else if (y <= -7e-50) {
		tmp = (x / y) * (t_1 / Math.exp(b));
	} else if (y <= -3e-194) {
		tmp = x * (t_1 / y);
	} else if (y <= 6.8e+41) {
		tmp = x / (y * (Math.exp(b) / t_1));
	} 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 <= -3.4e+68:
		tmp = t_2
	elif y <= -7e-50:
		tmp = (x / y) * (t_1 / math.exp(b))
	elif y <= -3e-194:
		tmp = x * (t_1 / y)
	elif y <= 6.8e+41:
		tmp = x / (y * (math.exp(b) / t_1))
	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((z ^ y) / a)) / y)
	tmp = 0.0
	if (y <= -3.4e+68)
		tmp = t_2;
	elseif (y <= -7e-50)
		tmp = Float64(Float64(x / y) * Float64(t_1 / exp(b)));
	elseif (y <= -3e-194)
		tmp = Float64(x * Float64(t_1 / y));
	elseif (y <= 6.8e+41)
		tmp = Float64(x / Float64(y * Float64(exp(b) / t_1)));
	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 <= -3.4e+68)
		tmp = t_2;
	elseif (y <= -7e-50)
		tmp = (x / y) * (t_1 / exp(b));
	elseif (y <= -3e-194)
		tmp = x * (t_1 / y);
	elseif (y <= 6.8e+41)
		tmp = x / (y * (exp(b) / t_1));
	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[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -3.4e+68], t$95$2, If[LessEqual[y, -7e-50], N[(N[(x / y), $MachinePrecision] * N[(t$95$1 / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3e-194], N[(x * N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.8e+41], N[(x / N[(y * N[(N[Exp[b], $MachinePrecision] / t$95$1), $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{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -3.4 \cdot 10^{+68}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;y \leq -7 \cdot 10^{-50}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{t\_1}{e^{b}}\\

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -3.40000000000000015e68 or 6.79999999999999996e41 < y

    1. Initial program 100.0%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Add Preprocessing
    3. Taylor expanded in t around 0 90.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. +-commutative90.5%

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

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

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

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

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

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

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

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

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

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

    if -3.40000000000000015e68 < y < -6.99999999999999993e-50

    1. Initial program 99.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -6.99999999999999993e-50 < y < -3e-194

    1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -3e-194 < y < 6.79999999999999996e41

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.4 \cdot 10^{+68}:\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\ \mathbf{elif}\;y \leq -7 \cdot 10^{-50}:\\ \;\;\;\;\frac{x}{y} \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}\\ \mathbf{elif}\;y \leq -3 \cdot 10^{-194}:\\ \;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\ \mathbf{elif}\;y \leq 6.8 \cdot 10^{+41}:\\ \;\;\;\;\frac{x}{y \cdot \frac{e^{b}}{{a}^{\left(t + -1\right)}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 89.1% accurate, 1.4× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -3.5999999999999999e68 or 8.50000000000000063e131 < y

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

    if -3.5999999999999999e68 < y < 8.50000000000000063e131

    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 y around 0 93.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 simplification92.8%

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

Alternative 6: 81.9% accurate, 1.4× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.25 \cdot 10^{+92} \lor \neg \left(t \leq 3.9 \cdot 10^{+67}\right):\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.25000000000000005e92 or 3.90000000000000007e67 < t

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.25000000000000005e92 < t < 3.90000000000000007e67

    1. Initial program 97.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x}{\color{blue}{\frac{a}{\frac{{z}^{y}}{y \cdot e^{b}}}}} \]
    7. Simplified85.1%

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

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

Alternative 7: 73.4% accurate, 2.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\frac{x}{a \cdot e^{b}}}{y}\\ t_2 := x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\ t_3 := \frac{x}{a} \cdot \frac{{z}^{y}}{y}\\ \mathbf{if}\;t \leq -1.75 \cdot 10^{+92}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq -1.52 \cdot 10^{-5}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -1.7 \cdot 10^{-157}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;t \leq 4.7 \cdot 10^{-306}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;t \leq 1.76 \cdot 10^{-149}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;t \leq 19.5:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ (/ x (* a (exp b))) y))
        (t_2 (* x (/ (pow a (+ t -1.0)) y)))
        (t_3 (* (/ x a) (/ (pow z y) y))))
   (if (<= t -1.75e+92)
     t_2
     (if (<= t -1.52e-5)
       t_1
       (if (<= t -1.7e-157)
         t_3
         (if (<= t 4.7e-306)
           (/ x (* a (* y (exp b))))
           (if (<= t 1.76e-149) t_3 (if (<= t 19.5) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x / (a * exp(b))) / y;
	double t_2 = x * (pow(a, (t + -1.0)) / y);
	double t_3 = (x / a) * (pow(z, y) / y);
	double tmp;
	if (t <= -1.75e+92) {
		tmp = t_2;
	} else if (t <= -1.52e-5) {
		tmp = t_1;
	} else if (t <= -1.7e-157) {
		tmp = t_3;
	} else if (t <= 4.7e-306) {
		tmp = x / (a * (y * exp(b)));
	} else if (t <= 1.76e-149) {
		tmp = t_3;
	} else if (t <= 19.5) {
		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) :: t_3
    real(8) :: tmp
    t_1 = (x / (a * exp(b))) / y
    t_2 = x * ((a ** (t + (-1.0d0))) / y)
    t_3 = (x / a) * ((z ** y) / y)
    if (t <= (-1.75d+92)) then
        tmp = t_2
    else if (t <= (-1.52d-5)) then
        tmp = t_1
    else if (t <= (-1.7d-157)) then
        tmp = t_3
    else if (t <= 4.7d-306) then
        tmp = x / (a * (y * exp(b)))
    else if (t <= 1.76d-149) then
        tmp = t_3
    else if (t <= 19.5d0) 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.exp(b))) / y;
	double t_2 = x * (Math.pow(a, (t + -1.0)) / y);
	double t_3 = (x / a) * (Math.pow(z, y) / y);
	double tmp;
	if (t <= -1.75e+92) {
		tmp = t_2;
	} else if (t <= -1.52e-5) {
		tmp = t_1;
	} else if (t <= -1.7e-157) {
		tmp = t_3;
	} else if (t <= 4.7e-306) {
		tmp = x / (a * (y * Math.exp(b)));
	} else if (t <= 1.76e-149) {
		tmp = t_3;
	} else if (t <= 19.5) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (x / (a * math.exp(b))) / y
	t_2 = x * (math.pow(a, (t + -1.0)) / y)
	t_3 = (x / a) * (math.pow(z, y) / y)
	tmp = 0
	if t <= -1.75e+92:
		tmp = t_2
	elif t <= -1.52e-5:
		tmp = t_1
	elif t <= -1.7e-157:
		tmp = t_3
	elif t <= 4.7e-306:
		tmp = x / (a * (y * math.exp(b)))
	elif t <= 1.76e-149:
		tmp = t_3
	elif t <= 19.5:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(x / Float64(a * exp(b))) / y)
	t_2 = Float64(x * Float64((a ^ Float64(t + -1.0)) / y))
	t_3 = Float64(Float64(x / a) * Float64((z ^ y) / y))
	tmp = 0.0
	if (t <= -1.75e+92)
		tmp = t_2;
	elseif (t <= -1.52e-5)
		tmp = t_1;
	elseif (t <= -1.7e-157)
		tmp = t_3;
	elseif (t <= 4.7e-306)
		tmp = Float64(x / Float64(a * Float64(y * exp(b))));
	elseif (t <= 1.76e-149)
		tmp = t_3;
	elseif (t <= 19.5)
		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 * exp(b))) / y;
	t_2 = x * ((a ^ (t + -1.0)) / y);
	t_3 = (x / a) * ((z ^ y) / y);
	tmp = 0.0;
	if (t <= -1.75e+92)
		tmp = t_2;
	elseif (t <= -1.52e-5)
		tmp = t_1;
	elseif (t <= -1.7e-157)
		tmp = t_3;
	elseif (t <= 4.7e-306)
		tmp = x / (a * (y * exp(b)));
	elseif (t <= 1.76e-149)
		tmp = t_3;
	elseif (t <= 19.5)
		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 / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.75e+92], t$95$2, If[LessEqual[t, -1.52e-5], t$95$1, If[LessEqual[t, -1.7e-157], t$95$3, If[LessEqual[t, 4.7e-306], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.76e-149], t$95$3, If[LessEqual[t, 19.5], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;t \leq -1.52 \cdot 10^{-5}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq -1.7 \cdot 10^{-157}:\\
\;\;\;\;t\_3\\

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

\mathbf{elif}\;t \leq 1.76 \cdot 10^{-149}:\\
\;\;\;\;t\_3\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -1.74999999999999993e92 or 19.5 < t

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.74999999999999993e92 < t < -1.52e-5 or 1.7599999999999999e-149 < t < 19.5

    1. Initial program 99.4%

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

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

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

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

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

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

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

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

    if -1.52e-5 < t < -1.69999999999999989e-157 or 4.7000000000000001e-306 < t < 1.7599999999999999e-149

    1. Initial program 98.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.69999999999999989e-157 < t < 4.7000000000000001e-306

    1. Initial program 93.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/86.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.75 \cdot 10^{+92}:\\ \;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\ \mathbf{elif}\;t \leq -1.52 \cdot 10^{-5}:\\ \;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\ \mathbf{elif}\;t \leq -1.7 \cdot 10^{-157}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y}\\ \mathbf{elif}\;t \leq 4.7 \cdot 10^{-306}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;t \leq 1.76 \cdot 10^{-149}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y}\\ \mathbf{elif}\;t \leq 19.5:\\ \;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 74.6% accurate, 2.3× speedup?

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

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

\mathbf{elif}\;t \leq -2.45 \cdot 10^{+67}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq -1.7 \cdot 10^{-183}:\\
\;\;\;\;t\_3\\

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

\mathbf{elif}\;t \leq 1.12 \cdot 10^{-129}:\\
\;\;\;\;t\_3\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -2.0000000000000001e92 or 1.5 < t

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.0000000000000001e92 < t < -2.44999999999999995e67 or -1.70000000000000007e-183 < t < 4.90000000000000025e-306 or 1.12000000000000006e-129 < t < 1.5

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.44999999999999995e67 < t < -1.70000000000000007e-183 or 4.90000000000000025e-306 < t < 1.12000000000000006e-129

    1. Initial program 99.0%

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2 \cdot 10^{+92}:\\ \;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\ \mathbf{elif}\;t \leq -2.45 \cdot 10^{+67}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;t \leq -1.7 \cdot 10^{-183}:\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\ \mathbf{elif}\;t \leq 4.9 \cdot 10^{-306}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;t \leq 1.12 \cdot 10^{-129}:\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\ \mathbf{elif}\;t \leq 1.5:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 74.5% accurate, 2.3× speedup?

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

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

\mathbf{elif}\;t \leq -1.9 \cdot 10^{+68}:\\
\;\;\;\;t\_1\\

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -1.95000000000000006e92 or 3.35000000000000009 < t

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.95000000000000006e92 < t < -1.9e68 or -1.74999999999999992e-182 < t < -1.15e-261 or 7.49999999999999944e-129 < t < 3.35000000000000009

    1. Initial program 99.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Simplified81.5%

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

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

    if -1.9e68 < t < -1.74999999999999992e-182

    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. Add Preprocessing
    3. Taylor expanded in t around 0 96.4%

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

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

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

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

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

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

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

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

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

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

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

    if -1.15e-261 < t < 7.49999999999999944e-129

    1. Initial program 94.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/92.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Simplified78.9%

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

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

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

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

        \[\leadsto \color{blue}{\frac{x \cdot \frac{{z}^{y}}{y}}{a}} \]
    12. Applied egg-rr81.4%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.95 \cdot 10^{+92}:\\ \;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\ \mathbf{elif}\;t \leq -1.9 \cdot 10^{+68}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;t \leq -1.75 \cdot 10^{-182}:\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\ \mathbf{elif}\;t \leq -1.15 \cdot 10^{-261}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;t \leq 7.5 \cdot 10^{-129}:\\ \;\;\;\;\frac{x \cdot \frac{{z}^{y}}{y}}{a}\\ \mathbf{elif}\;t \leq 3.35:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 74.3% accurate, 2.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.45 \cdot 10^{+92} \lor \neg \left(t \leq 1.5\right):\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.45e92 or 1.5 < t

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.45e92 < t < 1.5

    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/89.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Simplified79.4%

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

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

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

Alternative 11: 59.2% accurate, 2.9× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
  7. Simplified65.4%

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

    \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
  9. Final simplification60.1%

    \[\leadsto \frac{x}{a \cdot \left(y \cdot e^{b}\right)} \]
  10. Add Preprocessing

Alternative 12: 38.1% accurate, 18.5× speedup?

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

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

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

\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 < -3.4e45

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\frac{x}{a} - \color{blue}{\frac{b}{\frac{a}{x}}}}{y} \]
    9. Simplified45.0%

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

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

        \[\leadsto \color{blue}{-\frac{b \cdot x}{a \cdot y}} \]
      2. times-frac46.5%

        \[\leadsto -\color{blue}{\frac{b}{a} \cdot \frac{x}{y}} \]
      3. distribute-rgt-neg-in46.5%

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

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

    if -3.4e45 < b < 4.89999999999999983e101

    1. Initial program 97.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Simplified64.3%

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

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

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

        \[\leadsto \frac{\color{blue}{1 \cdot x}}{a \cdot y} \]
      2. times-frac38.9%

        \[\leadsto \color{blue}{\frac{1}{a} \cdot \frac{x}{y}} \]
    11. Applied egg-rr38.9%

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

    if 4.89999999999999983e101 < 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/86.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x}{y \cdot \color{blue}{\left(a \cdot b\right)}} \]
    14. Simplified47.3%

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

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

Alternative 13: 38.1% accurate, 18.5× speedup?

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

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

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

\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 < -2.7999999999999999e45

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\frac{x}{a} - \color{blue}{\frac{b}{\frac{a}{x}}}}{y} \]
    9. Simplified45.0%

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

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

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

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

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

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

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

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

    if -2.7999999999999999e45 < b < 5.2e101

    1. Initial program 97.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Simplified64.3%

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

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

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

        \[\leadsto \frac{\color{blue}{1 \cdot x}}{a \cdot y} \]
      2. times-frac38.9%

        \[\leadsto \color{blue}{\frac{1}{a} \cdot \frac{x}{y}} \]
    11. Applied egg-rr38.9%

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

    if 5.2e101 < 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/86.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x}{y \cdot \color{blue}{\left(a \cdot b\right)}} \]
    14. Simplified47.3%

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

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

Alternative 14: 39.1% accurate, 18.5× speedup?

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

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

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

\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 < -2.30000000000000012e45

    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/87.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{x}{y \cdot a} - \frac{b \cdot x}{a \cdot y}} \]
      5. *-lft-identity48.1%

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

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

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

        \[\leadsto \frac{1}{\color{blue}{y \cdot \frac{a}{x}}} - \frac{b \cdot x}{a \cdot y} \]
      9. *-commutative46.5%

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

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

        \[\leadsto \frac{1}{y \cdot \frac{a}{x}} - \frac{b}{\color{blue}{y \cdot \frac{a}{x}}} \]
      12. div-sub40.0%

        \[\leadsto \color{blue}{\frac{1 - b}{y \cdot \frac{a}{x}}} \]
      13. associate-/l/45.0%

        \[\leadsto \color{blue}{\frac{\frac{1 - b}{\frac{a}{x}}}{y}} \]
      14. associate-/r/53.5%

        \[\leadsto \frac{\color{blue}{\frac{1 - b}{a} \cdot x}}{y} \]
      15. div-sub53.5%

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

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

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

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

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

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

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

    if -2.30000000000000012e45 < b < 5.40000000000000012e101

    1. Initial program 97.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Simplified64.3%

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

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

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

        \[\leadsto \frac{\color{blue}{1 \cdot x}}{a \cdot y} \]
      2. times-frac38.9%

        \[\leadsto \color{blue}{\frac{1}{a} \cdot \frac{x}{y}} \]
    11. Applied egg-rr38.9%

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

    if 5.40000000000000012e101 < 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/86.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x}{y \cdot \color{blue}{\left(a \cdot b\right)}} \]
    14. Simplified47.3%

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

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

Alternative 15: 31.0% accurate, 26.2× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq 0.0009:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < 8.9999999999999998e-4

    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/88.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{1 \cdot x}}{a \cdot y} \]
      2. times-frac37.5%

        \[\leadsto \color{blue}{\frac{1}{a} \cdot \frac{x}{y}} \]
    11. Applied egg-rr37.5%

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

    if 8.9999999999999998e-4 < z

    1. Initial program 99.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq 0.0009:\\ \;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \end{array} \]
  5. Add Preprocessing

Alternative 16: 34.8% accurate, 26.2× speedup?

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

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

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


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

    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/89.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
    10. Step-by-step derivation
      1. *-un-lft-identity34.5%

        \[\leadsto \frac{\color{blue}{1 \cdot x}}{a \cdot y} \]
      2. times-frac35.2%

        \[\leadsto \color{blue}{\frac{1}{a} \cdot \frac{x}{y}} \]
    11. Applied egg-rr35.2%

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

    if 5.80000000000000015e108 < 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/89.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 17: 35.1% accurate, 26.2× speedup?

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

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

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


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

    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/90.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Simplified65.3%

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

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

      \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
    10. Step-by-step derivation
      1. *-un-lft-identity34.8%

        \[\leadsto \frac{\color{blue}{1 \cdot x}}{a \cdot y} \]
      2. times-frac35.5%

        \[\leadsto \color{blue}{\frac{1}{a} \cdot \frac{x}{y}} \]
    11. Applied egg-rr35.5%

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

    if 1.1499999999999999e102 < 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/86.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x}{y \cdot \color{blue}{\left(a \cdot b\right)}} \]
    14. Simplified47.3%

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

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

Alternative 18: 31.2% accurate, 31.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -2 \cdot 10^{-214}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.99999999999999983e-214

    1. Initial program 99.6%

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

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

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

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

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

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

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

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

      \[\leadsto \frac{\frac{x}{\color{blue}{a}}}{y} \]

    if -1.99999999999999983e-214 < t

    1. Initial program 97.9%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-*l/89.4%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative89.4%

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. +-commutative89.4%

        \[\leadsto e^{\color{blue}{\left(\left(t - 1\right) \cdot \log a + y \cdot \log z\right)} - b} \cdot \frac{x}{y} \]
      4. associate--l+89.4%

        \[\leadsto e^{\color{blue}{\left(t - 1\right) \cdot \log a + \left(y \cdot \log z - b\right)}} \cdot \frac{x}{y} \]
      5. exp-sum74.8%

        \[\leadsto \color{blue}{\left(e^{\left(t - 1\right) \cdot \log a} \cdot e^{y \cdot \log z - b}\right)} \cdot \frac{x}{y} \]
      6. *-commutative74.8%

        \[\leadsto \left(e^{\color{blue}{\log a \cdot \left(t - 1\right)}} \cdot e^{y \cdot \log z - b}\right) \cdot \frac{x}{y} \]
      7. exp-to-pow75.4%

        \[\leadsto \left(\color{blue}{{a}^{\left(t - 1\right)}} \cdot e^{y \cdot \log z - b}\right) \cdot \frac{x}{y} \]
      8. sub-neg75.4%

        \[\leadsto \left({a}^{\color{blue}{\left(t + \left(-1\right)\right)}} \cdot e^{y \cdot \log z - b}\right) \cdot \frac{x}{y} \]
      9. metadata-eval75.4%

        \[\leadsto \left({a}^{\left(t + \color{blue}{-1}\right)} \cdot e^{y \cdot \log z - b}\right) \cdot \frac{x}{y} \]
      10. exp-diff67.0%

        \[\leadsto \left({a}^{\left(t + -1\right)} \cdot \color{blue}{\frac{e^{y \cdot \log z}}{e^{b}}}\right) \cdot \frac{x}{y} \]
      11. *-commutative67.0%

        \[\leadsto \left({a}^{\left(t + -1\right)} \cdot \frac{e^{\color{blue}{\log z \cdot y}}}{e^{b}}\right) \cdot \frac{x}{y} \]
      12. exp-to-pow67.0%

        \[\leadsto \left({a}^{\left(t + -1\right)} \cdot \frac{\color{blue}{{z}^{y}}}{e^{b}}\right) \cdot \frac{x}{y} \]
    3. Simplified67.0%

      \[\leadsto \color{blue}{\left({a}^{\left(t + -1\right)} \cdot \frac{{z}^{y}}{e^{b}}\right) \cdot \frac{x}{y}} \]
    4. Add Preprocessing
    5. Taylor expanded in t around 0 65.8%

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    6. Step-by-step derivation
      1. times-frac65.0%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Simplified65.0%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    8. Taylor expanded in y around 0 56.8%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    9. Taylor expanded in b around 0 28.6%

      \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification33.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2 \cdot 10^{-214}:\\ \;\;\;\;\frac{\frac{x}{a}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \end{array} \]
  5. Add Preprocessing

Alternative 19: 31.0% accurate, 31.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq 0.00095:\\ \;\;\;\;\frac{\frac{x}{y}}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= z 0.00095) (/ (/ x y) a) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (z <= 0.00095) {
		tmp = (x / y) / a;
	} else {
		tmp = x / (y * a);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: tmp
    if (z <= 0.00095d0) then
        tmp = (x / y) / a
    else
        tmp = x / (y * a)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (z <= 0.00095) {
		tmp = (x / y) / a;
	} else {
		tmp = x / (y * a);
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if z <= 0.00095:
		tmp = (x / y) / a
	else:
		tmp = x / (y * a)
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (z <= 0.00095)
		tmp = Float64(Float64(x / y) / a);
	else
		tmp = Float64(x / Float64(y * a));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if (z <= 0.00095)
		tmp = (x / y) / a;
	else
		tmp = x / (y * a);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, 0.00095], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq 0.00095:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\

\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < 9.49999999999999998e-4

    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/88.9%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative88.9%

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. +-commutative88.9%

        \[\leadsto e^{\color{blue}{\left(\left(t - 1\right) \cdot \log a + y \cdot \log z\right)} - b} \cdot \frac{x}{y} \]
      4. associate--l+88.9%

        \[\leadsto e^{\color{blue}{\left(t - 1\right) \cdot \log a + \left(y \cdot \log z - b\right)}} \cdot \frac{x}{y} \]
      5. exp-sum71.5%

        \[\leadsto \color{blue}{\left(e^{\left(t - 1\right) \cdot \log a} \cdot e^{y \cdot \log z - b}\right)} \cdot \frac{x}{y} \]
      6. *-commutative71.5%

        \[\leadsto \left(e^{\color{blue}{\log a \cdot \left(t - 1\right)}} \cdot e^{y \cdot \log z - b}\right) \cdot \frac{x}{y} \]
      7. exp-to-pow72.1%

        \[\leadsto \left(\color{blue}{{a}^{\left(t - 1\right)}} \cdot e^{y \cdot \log z - b}\right) \cdot \frac{x}{y} \]
      8. sub-neg72.1%

        \[\leadsto \left({a}^{\color{blue}{\left(t + \left(-1\right)\right)}} \cdot e^{y \cdot \log z - b}\right) \cdot \frac{x}{y} \]
      9. metadata-eval72.1%

        \[\leadsto \left({a}^{\left(t + \color{blue}{-1}\right)} \cdot e^{y \cdot \log z - b}\right) \cdot \frac{x}{y} \]
      10. exp-diff64.3%

        \[\leadsto \left({a}^{\left(t + -1\right)} \cdot \color{blue}{\frac{e^{y \cdot \log z}}{e^{b}}}\right) \cdot \frac{x}{y} \]
      11. *-commutative64.3%

        \[\leadsto \left({a}^{\left(t + -1\right)} \cdot \frac{e^{\color{blue}{\log z \cdot y}}}{e^{b}}\right) \cdot \frac{x}{y} \]
      12. exp-to-pow64.3%

        \[\leadsto \left({a}^{\left(t + -1\right)} \cdot \frac{\color{blue}{{z}^{y}}}{e^{b}}\right) \cdot \frac{x}{y} \]
    3. Simplified64.3%

      \[\leadsto \color{blue}{\left({a}^{\left(t + -1\right)} \cdot \frac{{z}^{y}}{e^{b}}\right) \cdot \frac{x}{y}} \]
    4. Add Preprocessing
    5. Taylor expanded in t around 0 66.2%

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    6. Step-by-step derivation
      1. times-frac66.9%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Simplified66.9%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    8. Taylor expanded in b around 0 58.9%

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot y}} \]
    9. Step-by-step derivation
      1. times-frac60.6%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y}} \]
    10. Simplified60.6%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y}} \]
    11. Step-by-step derivation
      1. associate-*l/66.6%

        \[\leadsto \color{blue}{\frac{x \cdot \frac{{z}^{y}}{y}}{a}} \]
    12. Applied egg-rr66.6%

      \[\leadsto \color{blue}{\frac{x \cdot \frac{{z}^{y}}{y}}{a}} \]
    13. Taylor expanded in y around 0 37.5%

      \[\leadsto \frac{\color{blue}{\frac{x}{y}}}{a} \]

    if 9.49999999999999998e-4 < z

    1. Initial program 99.0%

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
    2. Step-by-step derivation
      1. associate-*l/89.8%

        \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
      2. *-commutative89.8%

        \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
      3. +-commutative89.8%

        \[\leadsto e^{\color{blue}{\left(\left(t - 1\right) \cdot \log a + y \cdot \log z\right)} - b} \cdot \frac{x}{y} \]
      4. associate--l+89.8%

        \[\leadsto e^{\color{blue}{\left(t - 1\right) \cdot \log a + \left(y \cdot \log z - b\right)}} \cdot \frac{x}{y} \]
      5. exp-sum69.2%

        \[\leadsto \color{blue}{\left(e^{\left(t - 1\right) \cdot \log a} \cdot e^{y \cdot \log z - b}\right)} \cdot \frac{x}{y} \]
      6. *-commutative69.2%

        \[\leadsto \left(e^{\color{blue}{\log a \cdot \left(t - 1\right)}} \cdot e^{y \cdot \log z - b}\right) \cdot \frac{x}{y} \]
      7. exp-to-pow69.5%

        \[\leadsto \left(\color{blue}{{a}^{\left(t - 1\right)}} \cdot e^{y \cdot \log z - b}\right) \cdot \frac{x}{y} \]
      8. sub-neg69.5%

        \[\leadsto \left({a}^{\color{blue}{\left(t + \left(-1\right)\right)}} \cdot e^{y \cdot \log z - b}\right) \cdot \frac{x}{y} \]
      9. metadata-eval69.5%

        \[\leadsto \left({a}^{\left(t + \color{blue}{-1}\right)} \cdot e^{y \cdot \log z - b}\right) \cdot \frac{x}{y} \]
      10. exp-diff62.4%

        \[\leadsto \left({a}^{\left(t + -1\right)} \cdot \color{blue}{\frac{e^{y \cdot \log z}}{e^{b}}}\right) \cdot \frac{x}{y} \]
      11. *-commutative62.4%

        \[\leadsto \left({a}^{\left(t + -1\right)} \cdot \frac{e^{\color{blue}{\log z \cdot y}}}{e^{b}}\right) \cdot \frac{x}{y} \]
      12. exp-to-pow62.4%

        \[\leadsto \left({a}^{\left(t + -1\right)} \cdot \frac{\color{blue}{{z}^{y}}}{e^{b}}\right) \cdot \frac{x}{y} \]
    3. Simplified62.4%

      \[\leadsto \color{blue}{\left({a}^{\left(t + -1\right)} \cdot \frac{{z}^{y}}{e^{b}}\right) \cdot \frac{x}{y}} \]
    4. Add Preprocessing
    5. Taylor expanded in t around 0 66.3%

      \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
    6. Step-by-step derivation
      1. times-frac64.2%

        \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    7. Simplified64.2%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
    8. Taylor expanded in y around 0 62.6%

      \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
    9. Taylor expanded in b around 0 31.9%

      \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification34.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq 0.00095:\\ \;\;\;\;\frac{\frac{x}{y}}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \end{array} \]
  5. Add Preprocessing

Alternative 20: 30.8% accurate, 63.0× speedup?

\[\begin{array}{l} \\ \frac{x}{y \cdot a} \end{array} \]
(FPCore (x y z t a b) :precision binary64 (/ x (* y a)))
double code(double x, double y, double z, double t, double a, double b) {
	return x / (y * a);
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    code = x / (y * a)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return x / (y * a);
}
def code(x, y, z, t, a, b):
	return x / (y * a)
function code(x, y, z, t, a, b)
	return Float64(x / Float64(y * a))
end
function tmp = code(x, y, z, t, a, b)
	tmp = x / (y * a);
end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{x}{y \cdot a}
\end{array}
Derivation
  1. Initial program 98.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/89.4%

      \[\leadsto \color{blue}{\frac{x}{y} \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}} \]
    2. *-commutative89.4%

      \[\leadsto \color{blue}{e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b} \cdot \frac{x}{y}} \]
    3. +-commutative89.4%

      \[\leadsto e^{\color{blue}{\left(\left(t - 1\right) \cdot \log a + y \cdot \log z\right)} - b} \cdot \frac{x}{y} \]
    4. associate--l+89.4%

      \[\leadsto e^{\color{blue}{\left(t - 1\right) \cdot \log a + \left(y \cdot \log z - b\right)}} \cdot \frac{x}{y} \]
    5. exp-sum70.2%

      \[\leadsto \color{blue}{\left(e^{\left(t - 1\right) \cdot \log a} \cdot e^{y \cdot \log z - b}\right)} \cdot \frac{x}{y} \]
    6. *-commutative70.2%

      \[\leadsto \left(e^{\color{blue}{\log a \cdot \left(t - 1\right)}} \cdot e^{y \cdot \log z - b}\right) \cdot \frac{x}{y} \]
    7. exp-to-pow70.7%

      \[\leadsto \left(\color{blue}{{a}^{\left(t - 1\right)}} \cdot e^{y \cdot \log z - b}\right) \cdot \frac{x}{y} \]
    8. sub-neg70.7%

      \[\leadsto \left({a}^{\color{blue}{\left(t + \left(-1\right)\right)}} \cdot e^{y \cdot \log z - b}\right) \cdot \frac{x}{y} \]
    9. metadata-eval70.7%

      \[\leadsto \left({a}^{\left(t + \color{blue}{-1}\right)} \cdot e^{y \cdot \log z - b}\right) \cdot \frac{x}{y} \]
    10. exp-diff63.3%

      \[\leadsto \left({a}^{\left(t + -1\right)} \cdot \color{blue}{\frac{e^{y \cdot \log z}}{e^{b}}}\right) \cdot \frac{x}{y} \]
    11. *-commutative63.3%

      \[\leadsto \left({a}^{\left(t + -1\right)} \cdot \frac{e^{\color{blue}{\log z \cdot y}}}{e^{b}}\right) \cdot \frac{x}{y} \]
    12. exp-to-pow63.3%

      \[\leadsto \left({a}^{\left(t + -1\right)} \cdot \frac{\color{blue}{{z}^{y}}}{e^{b}}\right) \cdot \frac{x}{y} \]
  3. Simplified63.3%

    \[\leadsto \color{blue}{\left({a}^{\left(t + -1\right)} \cdot \frac{{z}^{y}}{e^{b}}\right) \cdot \frac{x}{y}} \]
  4. Add Preprocessing
  5. Taylor expanded in t around 0 66.3%

    \[\leadsto \color{blue}{\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}} \]
  6. Step-by-step derivation
    1. times-frac65.4%

      \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
  7. Simplified65.4%

    \[\leadsto \color{blue}{\frac{x}{a} \cdot \frac{{z}^{y}}{y \cdot e^{b}}} \]
  8. Taylor expanded in y around 0 60.1%

    \[\leadsto \color{blue}{\frac{x}{a \cdot \left(y \cdot e^{b}\right)}} \]
  9. Taylor expanded in b around 0 31.6%

    \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
  10. Final simplification31.6%

    \[\leadsto \frac{x}{y \cdot a} \]
  11. Add Preprocessing

Developer target: 71.4% 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 2024027 
(FPCore (x y z t a b)
  :name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
  :precision binary64

  :herbie-target
  (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))