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

Percentage Accurate: 98.5% → 98.5%
Time: 20.5s
Alternatives: 27
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 27 alternatives:

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

Initial Program: 98.5% accurate, 1.0× speedup?

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

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

Alternative 1: 98.5% accurate, 1.0× speedup?

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

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

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

    \[\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^{+132} \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+132) (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+132) || !((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+132)) .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+132) || !((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+132) 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+132) || !(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+132) || ~(((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+132], 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^{+132} \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 #s(literal 1 binary64)) < -9.99999999999999991e131 or -1 < (-.f64 t #s(literal 1 binary64))

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

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

    if -9.99999999999999991e131 < (-.f64 t #s(literal 1 binary64)) < -1

    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 t around 0 95.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. +-commutative95.4%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t + -1 \leq -1 \cdot 10^{+132} \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: 89.6% accurate, 1.4× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.22 \cdot 10^{+72} \lor \neg \left(y \leq 1.26 \cdot 10^{+88}\right):\\
\;\;\;\;x \cdot \left(\frac{1}{a} \cdot \frac{{z}^{y}}{y}\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.2200000000000001e72 or 1.26e88 < y

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.2200000000000001e72 < y < 1.26e88

    1. Initial program 98.2%

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

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

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

Alternative 4: 82.2% accurate, 1.4× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.2 \cdot 10^{+26} \lor \neg \left(y \leq 2.4 \cdot 10^{+88}\right):\\
\;\;\;\;x \cdot \left(\frac{1}{a} \cdot \frac{{z}^{y}}{y}\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -2.20000000000000007e26 or 2.3999999999999999e88 < y

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.20000000000000007e26 < y < 2.3999999999999999e88

    1. Initial program 98.1%

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

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

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

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

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

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

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

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

Alternative 5: 80.6% accurate, 1.4× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -7.1999999999999999e28 or 1.75e35 < 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 89.1%

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

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

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

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

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

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

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

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

    if -7.1999999999999999e28 < t < 1.75e35

    1. Initial program 97.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 6: 74.1% accurate, 2.5× speedup?

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

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

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

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

\mathbf{elif}\;t \leq 8.5 \cdot 10^{+35}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -1.05e30 or 8.4999999999999995e35 < 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 89.1%

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

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

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

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

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

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

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

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

    if -1.05e30 < t < 5.1999999999999999e-287

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

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

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

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

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

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

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

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

    if 5.1999999999999999e-287 < t < 2.90000000000000002e-111

    1. Initial program 94.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*92.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 2.90000000000000002e-111 < t < 8.4999999999999995e35

    1. Initial program 98.1%

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.05 \cdot 10^{+30}:\\ \;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\ \mathbf{elif}\;t \leq 5.2 \cdot 10^{-287}:\\ \;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\ \mathbf{elif}\;t \leq 2.9 \cdot 10^{-111}:\\ \;\;\;\;\frac{{z}^{y}}{y} \cdot \frac{x}{a}\\ \mathbf{elif}\;t \leq 8.5 \cdot 10^{+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 7: 74.8% accurate, 2.7× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -2.09999999999999989e28 or 1.0499999999999999e39 < 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 89.1%

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

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

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

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

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

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

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

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

    if -2.09999999999999989e28 < t < 1.0499999999999999e39

    1. Initial program 97.9%

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

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

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

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

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

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

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

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

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

Alternative 8: 58.8% accurate, 2.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.95 \cdot 10^{+129}:\\
\;\;\;\;\frac{\frac{x}{a + b \cdot \left(b \cdot \left(a \cdot 0.5 + \frac{a}{b}\right)\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.9499999999999999e129

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.9499999999999999e129 < t

    1. Initial program 98.7%

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

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

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

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

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

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

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

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

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

Alternative 9: 50.7% accurate, 9.8× speedup?

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

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

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


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

    1. Initial program 98.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{e^{-b}}{a} \cdot \frac{x}{y}} \]
    10. Simplified51.6%

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

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

    if 2.9000000000000001e-31 < b

    1. Initial program 99.8%

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

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

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

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

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

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

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

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

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

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

Alternative 10: 47.6% accurate, 11.7× speedup?

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

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

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

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


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

    1. Initial program 98.3%

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

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

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

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

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

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

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

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

      \[\leadsto \frac{\frac{x}{\color{blue}{a + a \cdot b}}}{y} \]
    8. Taylor expanded in b around 0 48.0%

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

    if 2.40000000000000014e-219 < b < 1.0499999999999999e104

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

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

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

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

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

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

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

      \[\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 + b \cdot \left(a + 0.5 \cdot \left(a \cdot b\right)\right)}}}{y} \]
    8. Step-by-step derivation
      1. associate-*r*38.5%

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

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

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

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

    if 1.0499999999999999e104 < b

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 11: 47.3% accurate, 12.1× speedup?

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

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

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

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


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

    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. div-exp76.9%

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

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

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

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

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

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

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

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

    if -1.45999999999999999e53 < b < 3.3999999999999997e104

    1. Initial program 98.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 3.3999999999999997e104 < b

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 12: 47.7% accurate, 12.1× speedup?

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

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

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


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

    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. div-exp76.9%

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

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

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

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

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

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

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

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

    if -1.26000000000000001e50 < b

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

Alternative 13: 49.3% accurate, 12.1× speedup?

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

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

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


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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{\frac{x}{\color{blue}{a + a \cdot b}}}{y} \]
    8. Taylor expanded in b around 0 54.6%

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

    if -2.5000000000000001e-210 < b

    1. Initial program 99.1%

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

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

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

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

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

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

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

Alternative 14: 48.5% accurate, 12.1× speedup?

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

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

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


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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{\frac{x}{\color{blue}{a + a \cdot b}}}{y} \]
    8. Taylor expanded in b around 0 61.6%

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

    if -8.4999999999999999e-47 < b

    1. Initial program 98.9%

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

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

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

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

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

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

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

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

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

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

Alternative 15: 45.3% accurate, 12.6× speedup?

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

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

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

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


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

    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. div-exp76.9%

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

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

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

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

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

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

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

    if -7.5999999999999999e55 < b < 3.6999999999999998e104

    1. Initial program 98.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 3.6999999999999998e104 < b

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 16: 48.2% accurate, 12.6× speedup?

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

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

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

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


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

    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. div-exp76.9%

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

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

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

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

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

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

      \[\leadsto \frac{\frac{x}{\color{blue}{a + a \cdot b}}}{y} \]
    8. Taylor expanded in b around 0 70.6%

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

    if -8.19999999999999962e55 < b < 3.3999999999999997e104

    1. Initial program 98.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 3.3999999999999997e104 < b

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 17: 43.8% accurate, 17.5× speedup?

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

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

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


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

    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. div-exp76.9%

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

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

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

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

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

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

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

    if -5.8000000000000003e57 < b

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 18: 39.5% accurate, 19.7× speedup?

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

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

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


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

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

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

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

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

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

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

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

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

    if -16000 < b

    1. Initial program 98.4%

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

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

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

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

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

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

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

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

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

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

Alternative 19: 38.5% accurate, 21.0× speedup?

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

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

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


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

    1. Initial program 98.4%

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

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

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

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

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

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

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

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

      \[\leadsto \frac{\frac{x}{\color{blue}{a + a \cdot b}}}{y} \]
    8. Taylor expanded in b around 0 42.9%

      \[\leadsto \color{blue}{-1 \cdot \frac{b \cdot x}{a \cdot y} + \frac{x}{a \cdot y}} \]
    9. Step-by-step derivation
      1. remove-double-neg42.9%

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

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

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

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

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

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

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

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

    if 1.95e-162 < b

    1. Initial program 99.5%

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

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

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

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

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

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

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

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

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

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

Alternative 20: 38.2% accurate, 21.0× speedup?

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

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

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


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

    1. Initial program 98.4%

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

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

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

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

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

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

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

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

      \[\leadsto \frac{\frac{x}{\color{blue}{a + a \cdot b}}}{y} \]
    8. Taylor expanded in b around 0 42.3%

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

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

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

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

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

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

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

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

    if 1.49999999999999997e-16 < b

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

      \[\leadsto \frac{\frac{x}{\color{blue}{a + a \cdot b}}}{y} \]
    8. Taylor expanded in b around inf 31.1%

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

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

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

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

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

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

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

Alternative 21: 35.8% accurate, 22.5× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < 2.99999999999999989e-38

    1. Initial program 99.5%

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
    8. Step-by-step derivation
      1. clear-num28.3%

        \[\leadsto \color{blue}{\frac{1}{\frac{a \cdot y}{x}}} \]
      2. inv-pow28.3%

        \[\leadsto \color{blue}{{\left(\frac{a \cdot y}{x}\right)}^{-1}} \]
      3. *-commutative28.3%

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

      \[\leadsto \color{blue}{{\left(\frac{y \cdot a}{x}\right)}^{-1}} \]
    10. Step-by-step derivation
      1. unpow-128.3%

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

        \[\leadsto \frac{1}{\color{blue}{y \cdot \frac{a}{x}}} \]
    11. Simplified32.6%

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

    if 2.99999999999999989e-38 < a

    1. Initial program 98.4%

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

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

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

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

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

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

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

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

      \[\leadsto \frac{\frac{x}{\color{blue}{a + a \cdot b}}}{y} \]
    8. Taylor expanded in x around 0 39.4%

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

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

Alternative 22: 33.9% accurate, 26.2× speedup?

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

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

\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 < 7.40000000000000018e168

    1. Initial program 98.7%

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
    8. Step-by-step derivation
      1. clear-num31.2%

        \[\leadsto \color{blue}{\frac{1}{\frac{a \cdot y}{x}}} \]
      2. inv-pow31.2%

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

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

      \[\leadsto \color{blue}{{\left(\frac{y \cdot a}{x}\right)}^{-1}} \]
    10. Step-by-step derivation
      1. unpow-131.2%

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

        \[\leadsto \frac{1}{\color{blue}{y \cdot \frac{a}{x}}} \]
    11. Simplified33.3%

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

    if 7.40000000000000018e168 < b

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

      \[\leadsto \frac{\frac{x}{\color{blue}{a + a \cdot b}}}{y} \]
    8. Taylor expanded in b around inf 43.2%

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

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

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

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

Alternative 23: 35.0% accurate, 26.2× speedup?

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

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

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


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

    1. Initial program 98.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 1.49999999999999997e-16 < b

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

      \[\leadsto \frac{\frac{x}{\color{blue}{a + a \cdot b}}}{y} \]
    8. Taylor expanded in b around inf 31.1%

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

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

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

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

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

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

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

Alternative 24: 30.7% accurate, 45.0× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \color{blue}{\frac{1}{y}} \cdot \frac{x}{a} \]
  10. Final simplification31.5%

    \[\leadsto \frac{x}{a} \cdot \frac{1}{y} \]
  11. Add Preprocessing

Alternative 25: 30.8% accurate, 45.0× speedup?

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
  8. Step-by-step derivation
    1. clear-num29.5%

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

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

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

    \[\leadsto \color{blue}{{\left(\frac{y \cdot a}{x}\right)}^{-1}} \]
  10. Step-by-step derivation
    1. unpow-129.5%

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

      \[\leadsto \frac{1}{\color{blue}{y \cdot \frac{a}{x}}} \]
  11. Simplified31.7%

    \[\leadsto \color{blue}{\frac{1}{y \cdot \frac{a}{x}}} \]
  12. Final simplification31.7%

    \[\leadsto \frac{1}{y \cdot \frac{a}{x}} \]
  13. Add Preprocessing

Alternative 26: 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.8%

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

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

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

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

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

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

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

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

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

    \[\leadsto \color{blue}{\frac{x}{a \cdot y}} \]
  8. Final simplification29.4%

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

Alternative 27: 30.7% accurate, 63.0× speedup?

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \frac{\color{blue}{\frac{x}{a}}}{y} \]
  8. Final simplification31.5%

    \[\leadsto \frac{\frac{x}{a}}{y} \]
  9. 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 2024077 
(FPCore (x y z t a b)
  :name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
  :precision binary64

  :alt
  (if (< t -0.8845848504127471) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z)))) (if (< t 852031.2288374073) (/ (* (/ x y) (pow a (- t 1.0))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z))))))

  (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))