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

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

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

Initial Program: 98.5% accurate, 1.0× speedup?

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

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

Alternative 1: 98.5% accurate, 1.0× speedup?

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

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

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

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

Alternative 2: 53.3% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x \cdot e^{\left(y \cdot \log z + \log a \cdot \left(t + -1\right)\right) - b}}{y}\\ t_2 := \frac{\mathsf{fma}\left(b, \mathsf{fma}\left(0.5, x \cdot \frac{b}{a}, \frac{x}{-a}\right), \frac{x}{a}\right)}{y}\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_1 \leq 0:\\ \;\;\;\;\frac{x}{a \cdot \mathsf{fma}\left(b, \mathsf{fma}\left(b, y \cdot \mathsf{fma}\left(0.16666666666666666, b, 0.5\right), y\right), y\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ (* x (exp (- (+ (* y (log z)) (* (log a) (+ t -1.0))) b))) y))
        (t_2 (/ (fma b (fma 0.5 (* x (/ b a)) (/ x (- a))) (/ x a)) y)))
   (if (<= t_1 (- INFINITY))
     t_2
     (if (<= t_1 0.0)
       (/ x (* a (fma b (fma b (* y (fma 0.16666666666666666 b 0.5)) y) y)))
       t_2))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x * exp((((y * log(z)) + (log(a) * (t + -1.0))) - b))) / y;
	double t_2 = fma(b, fma(0.5, (x * (b / a)), (x / -a)), (x / a)) / y;
	double tmp;
	if (t_1 <= -((double) INFINITY)) {
		tmp = t_2;
	} else if (t_1 <= 0.0) {
		tmp = x / (a * fma(b, fma(b, (y * fma(0.16666666666666666, b, 0.5)), y), y));
	} else {
		tmp = t_2;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(log(a) * Float64(t + -1.0))) - b))) / y)
	t_2 = Float64(fma(b, fma(0.5, Float64(x * Float64(b / a)), Float64(x / Float64(-a))), Float64(x / a)) / y)
	tmp = 0.0
	if (t_1 <= Float64(-Inf))
		tmp = t_2;
	elseif (t_1 <= 0.0)
		tmp = Float64(x / Float64(a * fma(b, fma(b, Float64(y * fma(0.16666666666666666, b, 0.5)), y), y)));
	else
		tmp = t_2;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * N[(0.5 * N[(x * N[(b / a), $MachinePrecision]), $MachinePrecision] + N[(x / (-a)), $MachinePrecision]), $MachinePrecision] + N[(x / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], t$95$2, If[LessEqual[t$95$1, 0.0], N[(x / N[(a * N[(b * N[(b * N[(y * N[(0.16666666666666666 * b + 0.5), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{x \cdot e^{\left(y \cdot \log z + \log a \cdot \left(t + -1\right)\right) - b}}{y}\\
t_2 := \frac{\mathsf{fma}\left(b, \mathsf{fma}\left(0.5, x \cdot \frac{b}{a}, \frac{x}{-a}\right), \frac{x}{a}\right)}{y}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{x}{a \cdot \mathsf{fma}\left(b, \mathsf{fma}\left(b, y \cdot \mathsf{fma}\left(0.16666666666666666, b, 0.5\right), y\right), y\right)}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (*.f64 x (exp.f64 (-.f64 (+.f64 (*.f64 y (log.f64 z)) (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a))) b))) y) < -inf.0 or -0.0 < (/.f64 (*.f64 x (exp.f64 (-.f64 (+.f64 (*.f64 y (log.f64 z)) (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a))) b))) y)

    1. Initial program 99.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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
      6. lower-*.f64N/A

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

        \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
      8. lower-pow.f64N/A

        \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
      9. rem-exp-logN/A

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

        \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
      11. metadata-evalN/A

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

        \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
      13. lower-*.f64N/A

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

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

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

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

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

        \[\leadsto b \cdot \left(-1 \cdot \left(b \cdot \left(-1 \cdot \frac{x}{a \cdot y} + \frac{1}{2} \cdot \frac{x}{a \cdot y}\right)\right) - \frac{x}{a \cdot y}\right) + \frac{x}{\color{blue}{a \cdot y}} \]
      3. Step-by-step derivation
        1. Applied rewrites35.0%

          \[\leadsto \mathsf{fma}\left(b, b \cdot \left(0.5 \cdot \frac{x}{a \cdot y}\right) - \color{blue}{\frac{x}{a \cdot y}}, \frac{x}{a \cdot y}\right) \]
        2. Taylor expanded in y around 0

          \[\leadsto \frac{b \cdot \left(\frac{1}{2} \cdot \frac{b \cdot x}{a} - \frac{x}{a}\right) + \frac{x}{a}}{y} \]
        3. Step-by-step derivation
          1. Applied rewrites45.9%

            \[\leadsto \frac{\mathsf{fma}\left(b, \mathsf{fma}\left(0.5, x \cdot \frac{b}{a}, \frac{-x}{a}\right), \frac{x}{a}\right)}{y} \]

          if -inf.0 < (/.f64 (*.f64 x (exp.f64 (-.f64 (+.f64 (*.f64 y (log.f64 z)) (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a))) b))) y) < -0.0

          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

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

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

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

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

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

              \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
            6. lower-*.f64N/A

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

              \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
            8. lower-pow.f64N/A

              \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
            9. rem-exp-logN/A

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

              \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
            11. metadata-evalN/A

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

              \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
            13. lower-*.f64N/A

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

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

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

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

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

              \[\leadsto \frac{x}{a \cdot \left(y + b \cdot \color{blue}{\left(y + b \cdot \left(\frac{1}{6} \cdot \left(b \cdot y\right) + \frac{1}{2} \cdot y\right)\right)}\right)} \]
            3. Step-by-step derivation
              1. Applied rewrites57.8%

                \[\leadsto \frac{x}{a \cdot \mathsf{fma}\left(b, \mathsf{fma}\left(b, \color{blue}{y \cdot \mathsf{fma}\left(0.16666666666666666, b, 0.5\right)}, y\right), y\right)} \]
            4. Recombined 2 regimes into one program.
            5. Final simplification51.1%

              \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{x \cdot e^{\left(y \cdot \log z + \log a \cdot \left(t + -1\right)\right) - b}}{y} \leq -\infty:\\ \;\;\;\;\frac{\mathsf{fma}\left(b, \mathsf{fma}\left(0.5, x \cdot \frac{b}{a}, \frac{x}{-a}\right), \frac{x}{a}\right)}{y}\\ \mathbf{elif}\;\frac{x \cdot e^{\left(y \cdot \log z + \log a \cdot \left(t + -1\right)\right) - b}}{y} \leq 0:\\ \;\;\;\;\frac{x}{a \cdot \mathsf{fma}\left(b, \mathsf{fma}\left(b, y \cdot \mathsf{fma}\left(0.16666666666666666, b, 0.5\right), y\right), y\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(b, \mathsf{fma}\left(0.5, x \cdot \frac{b}{a}, \frac{x}{-a}\right), \frac{x}{a}\right)}{y}\\ \end{array} \]
            6. Add Preprocessing

            Alternative 3: 74.4% accurate, 0.7× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := {a}^{\left(t + -1\right)}\\ t_2 := \log a \cdot \left(t + -1\right)\\ \mathbf{if}\;t\_2 \leq -1 \cdot 10^{+41}:\\ \;\;\;\;\frac{x \cdot t\_1}{\mathsf{fma}\left(b, y, y\right)}\\ \mathbf{elif}\;t\_2 \leq -320:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+31}:\\ \;\;\;\;x \cdot \frac{\frac{{z}^{y}}{y}}{a}\\ \mathbf{else}:\\ \;\;\;\;t\_1 \cdot \frac{x}{y}\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (let* ((t_1 (pow a (+ t -1.0))) (t_2 (* (log a) (+ t -1.0))))
               (if (<= t_2 -1e+41)
                 (/ (* x t_1) (fma b y y))
                 (if (<= t_2 -320.0)
                   (/ x (* a (* y (exp b))))
                   (if (<= t_2 5e+31) (* x (/ (/ (pow z y) y) a)) (* t_1 (/ x y)))))))
            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 = log(a) * (t + -1.0);
            	double tmp;
            	if (t_2 <= -1e+41) {
            		tmp = (x * t_1) / fma(b, y, y);
            	} else if (t_2 <= -320.0) {
            		tmp = x / (a * (y * exp(b)));
            	} else if (t_2 <= 5e+31) {
            		tmp = x * ((pow(z, y) / y) / a);
            	} else {
            		tmp = t_1 * (x / y);
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a, b)
            	t_1 = a ^ Float64(t + -1.0)
            	t_2 = Float64(log(a) * Float64(t + -1.0))
            	tmp = 0.0
            	if (t_2 <= -1e+41)
            		tmp = Float64(Float64(x * t_1) / fma(b, y, y));
            	elseif (t_2 <= -320.0)
            		tmp = Float64(x / Float64(a * Float64(y * exp(b))));
            	elseif (t_2 <= 5e+31)
            		tmp = Float64(x * Float64(Float64((z ^ y) / y) / a));
            	else
            		tmp = Float64(t_1 * Float64(x / y));
            	end
            	return 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[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+41], N[(N[(x * t$95$1), $MachinePrecision] / N[(b * y + y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, -320.0], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 5e+31], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * N[(x / y), $MachinePrecision]), $MachinePrecision]]]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := {a}^{\left(t + -1\right)}\\
            t_2 := \log a \cdot \left(t + -1\right)\\
            \mathbf{if}\;t\_2 \leq -1 \cdot 10^{+41}:\\
            \;\;\;\;\frac{x \cdot t\_1}{\mathsf{fma}\left(b, y, y\right)}\\
            
            \mathbf{elif}\;t\_2 \leq -320:\\
            \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
            
            \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+31}:\\
            \;\;\;\;x \cdot \frac{\frac{{z}^{y}}{y}}{a}\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1 \cdot \frac{x}{y}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 4 regimes
            2. if (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -1.00000000000000001e41

              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

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

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

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

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

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

                  \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                6. lower-*.f64N/A

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

                  \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                8. lower-pow.f64N/A

                  \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                9. rem-exp-logN/A

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

                  \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                11. metadata-evalN/A

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

                  \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                13. lower-*.f64N/A

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

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

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

                \[\leadsto \frac{{a}^{\left(t + -1\right)} \cdot x}{y + \color{blue}{b \cdot y}} \]
              7. Step-by-step derivation
                1. Applied rewrites73.2%

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

                if -1.00000000000000001e41 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -320

                1. Initial program 99.0%

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

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

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

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

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

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

                    \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                  6. lower-*.f64N/A

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

                    \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                  8. lower-pow.f64N/A

                    \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                  9. rem-exp-logN/A

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

                    \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                  11. metadata-evalN/A

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

                    \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                  13. lower-*.f64N/A

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

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

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

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

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

                  if -320 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < 5.00000000000000027e31

                  1. Initial program 97.8%

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

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

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

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

                      \[\leadsto x \cdot \frac{\color{blue}{\frac{e^{-1 \cdot \log a + y \cdot \log z}}{e^{b}}}}{y} \]
                    4. associate-/l/N/A

                      \[\leadsto x \cdot \color{blue}{\frac{e^{-1 \cdot \log a + y \cdot \log z}}{y \cdot e^{b}}} \]
                    5. lower-/.f64N/A

                      \[\leadsto x \cdot \color{blue}{\frac{e^{-1 \cdot \log a + y \cdot \log z}}{y \cdot e^{b}}} \]
                    6. +-commutativeN/A

                      \[\leadsto x \cdot \frac{e^{\color{blue}{y \cdot \log z + -1 \cdot \log a}}}{y \cdot e^{b}} \]
                    7. mul-1-negN/A

                      \[\leadsto x \cdot \frac{e^{y \cdot \log z + \color{blue}{\left(\mathsf{neg}\left(\log a\right)\right)}}}{y \cdot e^{b}} \]
                    8. unsub-negN/A

                      \[\leadsto x \cdot \frac{e^{\color{blue}{y \cdot \log z - \log a}}}{y \cdot e^{b}} \]
                    9. exp-diffN/A

                      \[\leadsto x \cdot \frac{\color{blue}{\frac{e^{y \cdot \log z}}{e^{\log a}}}}{y \cdot e^{b}} \]
                    10. lower-/.f64N/A

                      \[\leadsto x \cdot \frac{\color{blue}{\frac{e^{y \cdot \log z}}{e^{\log a}}}}{y \cdot e^{b}} \]
                    11. *-commutativeN/A

                      \[\leadsto x \cdot \frac{\frac{e^{\color{blue}{\log z \cdot y}}}{e^{\log a}}}{y \cdot e^{b}} \]
                    12. exp-to-powN/A

                      \[\leadsto x \cdot \frac{\frac{\color{blue}{{z}^{y}}}{e^{\log a}}}{y \cdot e^{b}} \]
                    13. lower-pow.f64N/A

                      \[\leadsto x \cdot \frac{\frac{\color{blue}{{z}^{y}}}{e^{\log a}}}{y \cdot e^{b}} \]
                    14. rem-exp-logN/A

                      \[\leadsto x \cdot \frac{\frac{{z}^{y}}{\color{blue}{a}}}{y \cdot e^{b}} \]
                    15. lower-*.f64N/A

                      \[\leadsto x \cdot \frac{\frac{{z}^{y}}{a}}{\color{blue}{y \cdot e^{b}}} \]
                    16. lower-exp.f6479.5

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

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

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

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

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

                      if 5.00000000000000027e31 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a))

                      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

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

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

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

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

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

                          \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                        6. lower-*.f64N/A

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

                          \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                        8. lower-pow.f64N/A

                          \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                        9. rem-exp-logN/A

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

                          \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                        11. metadata-evalN/A

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

                          \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                        13. lower-*.f64N/A

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

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

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

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

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

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

                      Alternative 4: 73.7% accurate, 0.7× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := {a}^{\left(t + -1\right)}\\ t_2 := \log a \cdot \left(t + -1\right)\\ \mathbf{if}\;t\_2 \leq -1 \cdot 10^{+41}:\\ \;\;\;\;\frac{x \cdot t\_1}{\mathsf{fma}\left(b, y, y\right)}\\ \mathbf{elif}\;t\_2 \leq -320:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+31}:\\ \;\;\;\;\frac{x \cdot {z}^{y}}{y \cdot a}\\ \mathbf{else}:\\ \;\;\;\;t\_1 \cdot \frac{x}{y}\\ \end{array} \end{array} \]
                      (FPCore (x y z t a b)
                       :precision binary64
                       (let* ((t_1 (pow a (+ t -1.0))) (t_2 (* (log a) (+ t -1.0))))
                         (if (<= t_2 -1e+41)
                           (/ (* x t_1) (fma b y y))
                           (if (<= t_2 -320.0)
                             (/ x (* a (* y (exp b))))
                             (if (<= t_2 5e+31) (/ (* x (pow z y)) (* y a)) (* t_1 (/ x y)))))))
                      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 = log(a) * (t + -1.0);
                      	double tmp;
                      	if (t_2 <= -1e+41) {
                      		tmp = (x * t_1) / fma(b, y, y);
                      	} else if (t_2 <= -320.0) {
                      		tmp = x / (a * (y * exp(b)));
                      	} else if (t_2 <= 5e+31) {
                      		tmp = (x * pow(z, y)) / (y * a);
                      	} else {
                      		tmp = t_1 * (x / y);
                      	}
                      	return tmp;
                      }
                      
                      function code(x, y, z, t, a, b)
                      	t_1 = a ^ Float64(t + -1.0)
                      	t_2 = Float64(log(a) * Float64(t + -1.0))
                      	tmp = 0.0
                      	if (t_2 <= -1e+41)
                      		tmp = Float64(Float64(x * t_1) / fma(b, y, y));
                      	elseif (t_2 <= -320.0)
                      		tmp = Float64(x / Float64(a * Float64(y * exp(b))));
                      	elseif (t_2 <= 5e+31)
                      		tmp = Float64(Float64(x * (z ^ y)) / Float64(y * a));
                      	else
                      		tmp = Float64(t_1 * Float64(x / y));
                      	end
                      	return 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[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+41], N[(N[(x * t$95$1), $MachinePrecision] / N[(b * y + y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, -320.0], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 5e+31], N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * N[(x / y), $MachinePrecision]), $MachinePrecision]]]]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      t_1 := {a}^{\left(t + -1\right)}\\
                      t_2 := \log a \cdot \left(t + -1\right)\\
                      \mathbf{if}\;t\_2 \leq -1 \cdot 10^{+41}:\\
                      \;\;\;\;\frac{x \cdot t\_1}{\mathsf{fma}\left(b, y, y\right)}\\
                      
                      \mathbf{elif}\;t\_2 \leq -320:\\
                      \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
                      
                      \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+31}:\\
                      \;\;\;\;\frac{x \cdot {z}^{y}}{y \cdot a}\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;t\_1 \cdot \frac{x}{y}\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 4 regimes
                      2. if (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -1.00000000000000001e41

                        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

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

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

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

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

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

                            \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                          6. lower-*.f64N/A

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

                            \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                          8. lower-pow.f64N/A

                            \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                          9. rem-exp-logN/A

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

                            \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                          11. metadata-evalN/A

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

                            \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                          13. lower-*.f64N/A

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

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

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

                          \[\leadsto \frac{{a}^{\left(t + -1\right)} \cdot x}{y + \color{blue}{b \cdot y}} \]
                        7. Step-by-step derivation
                          1. Applied rewrites73.2%

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

                          if -1.00000000000000001e41 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -320

                          1. Initial program 99.0%

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

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

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

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

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

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

                              \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                            6. lower-*.f64N/A

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

                              \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                            8. lower-pow.f64N/A

                              \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                            9. rem-exp-logN/A

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

                              \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                            11. metadata-evalN/A

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

                              \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                            13. lower-*.f64N/A

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

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

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

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

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

                            if -320 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < 5.00000000000000027e31

                            1. Initial program 97.8%

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

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

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

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

                                \[\leadsto x \cdot \frac{\color{blue}{\frac{e^{-1 \cdot \log a + y \cdot \log z}}{e^{b}}}}{y} \]
                              4. associate-/l/N/A

                                \[\leadsto x \cdot \color{blue}{\frac{e^{-1 \cdot \log a + y \cdot \log z}}{y \cdot e^{b}}} \]
                              5. lower-/.f64N/A

                                \[\leadsto x \cdot \color{blue}{\frac{e^{-1 \cdot \log a + y \cdot \log z}}{y \cdot e^{b}}} \]
                              6. +-commutativeN/A

                                \[\leadsto x \cdot \frac{e^{\color{blue}{y \cdot \log z + -1 \cdot \log a}}}{y \cdot e^{b}} \]
                              7. mul-1-negN/A

                                \[\leadsto x \cdot \frac{e^{y \cdot \log z + \color{blue}{\left(\mathsf{neg}\left(\log a\right)\right)}}}{y \cdot e^{b}} \]
                              8. unsub-negN/A

                                \[\leadsto x \cdot \frac{e^{\color{blue}{y \cdot \log z - \log a}}}{y \cdot e^{b}} \]
                              9. exp-diffN/A

                                \[\leadsto x \cdot \frac{\color{blue}{\frac{e^{y \cdot \log z}}{e^{\log a}}}}{y \cdot e^{b}} \]
                              10. lower-/.f64N/A

                                \[\leadsto x \cdot \frac{\color{blue}{\frac{e^{y \cdot \log z}}{e^{\log a}}}}{y \cdot e^{b}} \]
                              11. *-commutativeN/A

                                \[\leadsto x \cdot \frac{\frac{e^{\color{blue}{\log z \cdot y}}}{e^{\log a}}}{y \cdot e^{b}} \]
                              12. exp-to-powN/A

                                \[\leadsto x \cdot \frac{\frac{\color{blue}{{z}^{y}}}{e^{\log a}}}{y \cdot e^{b}} \]
                              13. lower-pow.f64N/A

                                \[\leadsto x \cdot \frac{\frac{\color{blue}{{z}^{y}}}{e^{\log a}}}{y \cdot e^{b}} \]
                              14. rem-exp-logN/A

                                \[\leadsto x \cdot \frac{\frac{{z}^{y}}{\color{blue}{a}}}{y \cdot e^{b}} \]
                              15. lower-*.f64N/A

                                \[\leadsto x \cdot \frac{\frac{{z}^{y}}{a}}{\color{blue}{y \cdot e^{b}}} \]
                              16. lower-exp.f6479.5

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

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

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

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

                              if 5.00000000000000027e31 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a))

                              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

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

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

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

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

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

                                  \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                6. lower-*.f64N/A

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

                                  \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                8. lower-pow.f64N/A

                                  \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                9. rem-exp-logN/A

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

                                  \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                11. metadata-evalN/A

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

                                  \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                13. lower-*.f64N/A

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

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

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

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

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

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

                              Alternative 5: 71.0% accurate, 0.7× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \log a \cdot \left(t + -1\right)\\ t_2 := {a}^{\left(t + -1\right)} \cdot \frac{x}{y}\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+41}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_1 \leq -320:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+31}:\\ \;\;\;\;\frac{x \cdot {z}^{y}}{y \cdot a}\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                              (FPCore (x y z t a b)
                               :precision binary64
                               (let* ((t_1 (* (log a) (+ t -1.0))) (t_2 (* (pow a (+ t -1.0)) (/ x y))))
                                 (if (<= t_1 -1e+41)
                                   t_2
                                   (if (<= t_1 -320.0)
                                     (/ x (* a (* y (exp b))))
                                     (if (<= t_1 5e+31) (/ (* x (pow z y)) (* y a)) t_2)))))
                              double code(double x, double y, double z, double t, double a, double b) {
                              	double t_1 = log(a) * (t + -1.0);
                              	double t_2 = pow(a, (t + -1.0)) * (x / y);
                              	double tmp;
                              	if (t_1 <= -1e+41) {
                              		tmp = t_2;
                              	} else if (t_1 <= -320.0) {
                              		tmp = x / (a * (y * exp(b)));
                              	} else if (t_1 <= 5e+31) {
                              		tmp = (x * pow(z, y)) / (y * a);
                              	} 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 = log(a) * (t + (-1.0d0))
                                  t_2 = (a ** (t + (-1.0d0))) * (x / y)
                                  if (t_1 <= (-1d+41)) then
                                      tmp = t_2
                                  else if (t_1 <= (-320.0d0)) then
                                      tmp = x / (a * (y * exp(b)))
                                  else if (t_1 <= 5d+31) then
                                      tmp = (x * (z ** y)) / (y * a)
                                  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.log(a) * (t + -1.0);
                              	double t_2 = Math.pow(a, (t + -1.0)) * (x / y);
                              	double tmp;
                              	if (t_1 <= -1e+41) {
                              		tmp = t_2;
                              	} else if (t_1 <= -320.0) {
                              		tmp = x / (a * (y * Math.exp(b)));
                              	} else if (t_1 <= 5e+31) {
                              		tmp = (x * Math.pow(z, y)) / (y * a);
                              	} else {
                              		tmp = t_2;
                              	}
                              	return tmp;
                              }
                              
                              def code(x, y, z, t, a, b):
                              	t_1 = math.log(a) * (t + -1.0)
                              	t_2 = math.pow(a, (t + -1.0)) * (x / y)
                              	tmp = 0
                              	if t_1 <= -1e+41:
                              		tmp = t_2
                              	elif t_1 <= -320.0:
                              		tmp = x / (a * (y * math.exp(b)))
                              	elif t_1 <= 5e+31:
                              		tmp = (x * math.pow(z, y)) / (y * a)
                              	else:
                              		tmp = t_2
                              	return tmp
                              
                              function code(x, y, z, t, a, b)
                              	t_1 = Float64(log(a) * Float64(t + -1.0))
                              	t_2 = Float64((a ^ Float64(t + -1.0)) * Float64(x / y))
                              	tmp = 0.0
                              	if (t_1 <= -1e+41)
                              		tmp = t_2;
                              	elseif (t_1 <= -320.0)
                              		tmp = Float64(x / Float64(a * Float64(y * exp(b))));
                              	elseif (t_1 <= 5e+31)
                              		tmp = Float64(Float64(x * (z ^ y)) / Float64(y * a));
                              	else
                              		tmp = t_2;
                              	end
                              	return tmp
                              end
                              
                              function tmp_2 = code(x, y, z, t, a, b)
                              	t_1 = log(a) * (t + -1.0);
                              	t_2 = (a ^ (t + -1.0)) * (x / y);
                              	tmp = 0.0;
                              	if (t_1 <= -1e+41)
                              		tmp = t_2;
                              	elseif (t_1 <= -320.0)
                              		tmp = x / (a * (y * exp(b)));
                              	elseif (t_1 <= 5e+31)
                              		tmp = (x * (z ^ y)) / (y * a);
                              	else
                              		tmp = t_2;
                              	end
                              	tmp_2 = tmp;
                              end
                              
                              code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+41], t$95$2, If[LessEqual[t$95$1, -320.0], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+31], N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              t_1 := \log a \cdot \left(t + -1\right)\\
                              t_2 := {a}^{\left(t + -1\right)} \cdot \frac{x}{y}\\
                              \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+41}:\\
                              \;\;\;\;t\_2\\
                              
                              \mathbf{elif}\;t\_1 \leq -320:\\
                              \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
                              
                              \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+31}:\\
                              \;\;\;\;\frac{x \cdot {z}^{y}}{y \cdot a}\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;t\_2\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 3 regimes
                              2. if (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -1.00000000000000001e41 or 5.00000000000000027e31 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a))

                                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

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

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

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

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

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

                                    \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                  6. lower-*.f64N/A

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

                                    \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                  8. lower-pow.f64N/A

                                    \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                  9. rem-exp-logN/A

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

                                    \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                  11. metadata-evalN/A

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

                                    \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                  13. lower-*.f64N/A

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

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

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

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

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

                                  if -1.00000000000000001e41 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -320

                                  1. Initial program 99.0%

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

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

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

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

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

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

                                      \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                    6. lower-*.f64N/A

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

                                      \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                    8. lower-pow.f64N/A

                                      \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                    9. rem-exp-logN/A

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

                                      \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                    11. metadata-evalN/A

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

                                      \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                    13. lower-*.f64N/A

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

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

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

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

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

                                    if -320 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < 5.00000000000000027e31

                                    1. Initial program 97.8%

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

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

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

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

                                        \[\leadsto x \cdot \frac{\color{blue}{\frac{e^{-1 \cdot \log a + y \cdot \log z}}{e^{b}}}}{y} \]
                                      4. associate-/l/N/A

                                        \[\leadsto x \cdot \color{blue}{\frac{e^{-1 \cdot \log a + y \cdot \log z}}{y \cdot e^{b}}} \]
                                      5. lower-/.f64N/A

                                        \[\leadsto x \cdot \color{blue}{\frac{e^{-1 \cdot \log a + y \cdot \log z}}{y \cdot e^{b}}} \]
                                      6. +-commutativeN/A

                                        \[\leadsto x \cdot \frac{e^{\color{blue}{y \cdot \log z + -1 \cdot \log a}}}{y \cdot e^{b}} \]
                                      7. mul-1-negN/A

                                        \[\leadsto x \cdot \frac{e^{y \cdot \log z + \color{blue}{\left(\mathsf{neg}\left(\log a\right)\right)}}}{y \cdot e^{b}} \]
                                      8. unsub-negN/A

                                        \[\leadsto x \cdot \frac{e^{\color{blue}{y \cdot \log z - \log a}}}{y \cdot e^{b}} \]
                                      9. exp-diffN/A

                                        \[\leadsto x \cdot \frac{\color{blue}{\frac{e^{y \cdot \log z}}{e^{\log a}}}}{y \cdot e^{b}} \]
                                      10. lower-/.f64N/A

                                        \[\leadsto x \cdot \frac{\color{blue}{\frac{e^{y \cdot \log z}}{e^{\log a}}}}{y \cdot e^{b}} \]
                                      11. *-commutativeN/A

                                        \[\leadsto x \cdot \frac{\frac{e^{\color{blue}{\log z \cdot y}}}{e^{\log a}}}{y \cdot e^{b}} \]
                                      12. exp-to-powN/A

                                        \[\leadsto x \cdot \frac{\frac{\color{blue}{{z}^{y}}}{e^{\log a}}}{y \cdot e^{b}} \]
                                      13. lower-pow.f64N/A

                                        \[\leadsto x \cdot \frac{\frac{\color{blue}{{z}^{y}}}{e^{\log a}}}{y \cdot e^{b}} \]
                                      14. rem-exp-logN/A

                                        \[\leadsto x \cdot \frac{\frac{{z}^{y}}{\color{blue}{a}}}{y \cdot e^{b}} \]
                                      15. lower-*.f64N/A

                                        \[\leadsto x \cdot \frac{\frac{{z}^{y}}{a}}{\color{blue}{y \cdot e^{b}}} \]
                                      16. lower-exp.f6479.5

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

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

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

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

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

                                    Alternative 6: 84.9% accurate, 1.3× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x \cdot e^{y \cdot \log z - b}}{y}\\ \mathbf{if}\;y \leq -2.95 \cdot 10^{+56}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -1.08 \cdot 10^{-11}:\\ \;\;\;\;\frac{x \cdot e^{t \cdot \log a - b}}{y}\\ \mathbf{elif}\;y \leq 6.3 \cdot 10^{+32}:\\ \;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y \cdot e^{b}}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a b)
                                     :precision binary64
                                     (let* ((t_1 (/ (* x (exp (- (* y (log z)) b))) y)))
                                       (if (<= y -2.95e+56)
                                         t_1
                                         (if (<= y -1.08e-11)
                                           (/ (* x (exp (- (* t (log a)) b))) y)
                                           (if (<= y 6.3e+32) (/ (* x (/ (pow a t) a)) (* y (exp b))) t_1)))))
                                    double code(double x, double y, double z, double t, double a, double b) {
                                    	double t_1 = (x * exp(((y * log(z)) - b))) / y;
                                    	double tmp;
                                    	if (y <= -2.95e+56) {
                                    		tmp = t_1;
                                    	} else if (y <= -1.08e-11) {
                                    		tmp = (x * exp(((t * log(a)) - b))) / y;
                                    	} else if (y <= 6.3e+32) {
                                    		tmp = (x * (pow(a, t) / 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 * exp(((y * log(z)) - b))) / y
                                        if (y <= (-2.95d+56)) then
                                            tmp = t_1
                                        else if (y <= (-1.08d-11)) then
                                            tmp = (x * exp(((t * log(a)) - b))) / y
                                        else if (y <= 6.3d+32) then
                                            tmp = (x * ((a ** t) / 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.exp(((y * Math.log(z)) - b))) / y;
                                    	double tmp;
                                    	if (y <= -2.95e+56) {
                                    		tmp = t_1;
                                    	} else if (y <= -1.08e-11) {
                                    		tmp = (x * Math.exp(((t * Math.log(a)) - b))) / y;
                                    	} else if (y <= 6.3e+32) {
                                    		tmp = (x * (Math.pow(a, t) / a)) / (y * Math.exp(b));
                                    	} else {
                                    		tmp = t_1;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    def code(x, y, z, t, a, b):
                                    	t_1 = (x * math.exp(((y * math.log(z)) - b))) / y
                                    	tmp = 0
                                    	if y <= -2.95e+56:
                                    		tmp = t_1
                                    	elif y <= -1.08e-11:
                                    		tmp = (x * math.exp(((t * math.log(a)) - b))) / y
                                    	elif y <= 6.3e+32:
                                    		tmp = (x * (math.pow(a, t) / a)) / (y * math.exp(b))
                                    	else:
                                    		tmp = t_1
                                    	return tmp
                                    
                                    function code(x, y, z, t, a, b)
                                    	t_1 = Float64(Float64(x * exp(Float64(Float64(y * log(z)) - b))) / y)
                                    	tmp = 0.0
                                    	if (y <= -2.95e+56)
                                    		tmp = t_1;
                                    	elseif (y <= -1.08e-11)
                                    		tmp = Float64(Float64(x * exp(Float64(Float64(t * log(a)) - b))) / y);
                                    	elseif (y <= 6.3e+32)
                                    		tmp = Float64(Float64(x * Float64((a ^ t) / 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 * exp(((y * log(z)) - b))) / y;
                                    	tmp = 0.0;
                                    	if (y <= -2.95e+56)
                                    		tmp = t_1;
                                    	elseif (y <= -1.08e-11)
                                    		tmp = (x * exp(((t * log(a)) - b))) / y;
                                    	elseif (y <= 6.3e+32)
                                    		tmp = (x * ((a ^ t) / 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[(N[(x * N[Exp[N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -2.95e+56], t$95$1, If[LessEqual[y, -1.08e-11], N[(N[(x * N[Exp[N[(N[(t * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 6.3e+32], N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    t_1 := \frac{x \cdot e^{y \cdot \log z - b}}{y}\\
                                    \mathbf{if}\;y \leq -2.95 \cdot 10^{+56}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    \mathbf{elif}\;y \leq -1.08 \cdot 10^{-11}:\\
                                    \;\;\;\;\frac{x \cdot e^{t \cdot \log a - b}}{y}\\
                                    
                                    \mathbf{elif}\;y \leq 6.3 \cdot 10^{+32}:\\
                                    \;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y \cdot e^{b}}\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 3 regimes
                                    2. if y < -2.9500000000000001e56 or 6.3000000000000002e32 < y

                                      1. Initial program 100.0%

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

                                        \[\leadsto \frac{x \cdot e^{\color{blue}{y \cdot \log z} - b}}{y} \]
                                      4. Step-by-step derivation
                                        1. lower-*.f64N/A

                                          \[\leadsto \frac{x \cdot e^{\color{blue}{y \cdot \log z} - b}}{y} \]
                                        2. lower-log.f6493.6

                                          \[\leadsto \frac{x \cdot e^{y \cdot \color{blue}{\log z} - b}}{y} \]
                                      5. Applied rewrites93.6%

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

                                      if -2.9500000000000001e56 < y < -1.07999999999999992e-11

                                      1. Initial program 100.0%

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

                                        \[\leadsto \frac{x \cdot e^{\color{blue}{t \cdot \log a} - b}}{y} \]
                                      4. Step-by-step derivation
                                        1. *-commutativeN/A

                                          \[\leadsto \frac{x \cdot e^{\color{blue}{\log a \cdot t} - b}}{y} \]
                                        2. lower-*.f64N/A

                                          \[\leadsto \frac{x \cdot e^{\color{blue}{\log a \cdot t} - b}}{y} \]
                                        3. rem-exp-logN/A

                                          \[\leadsto \frac{x \cdot e^{\log \color{blue}{\left(e^{\log a}\right)} \cdot t - b}}{y} \]
                                        4. lower-log.f64N/A

                                          \[\leadsto \frac{x \cdot e^{\color{blue}{\log \left(e^{\log a}\right)} \cdot t - b}}{y} \]
                                        5. rem-exp-log100.0

                                          \[\leadsto \frac{x \cdot e^{\log \color{blue}{a} \cdot t - b}}{y} \]
                                      5. Applied rewrites100.0%

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

                                      if -1.07999999999999992e-11 < y < 6.3000000000000002e32

                                      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

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

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

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

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

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

                                          \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                        6. lower-*.f64N/A

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

                                          \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                        8. lower-pow.f64N/A

                                          \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                        9. rem-exp-logN/A

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

                                          \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                        11. metadata-evalN/A

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

                                          \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                        13. lower-*.f64N/A

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

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

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

                                          \[\leadsto \frac{\frac{{a}^{t}}{a} \cdot x}{y \cdot e^{b}} \]
                                      7. Recombined 3 regimes into one program.
                                      8. Final simplification89.8%

                                        \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.95 \cdot 10^{+56}:\\ \;\;\;\;\frac{x \cdot e^{y \cdot \log z - b}}{y}\\ \mathbf{elif}\;y \leq -1.08 \cdot 10^{-11}:\\ \;\;\;\;\frac{x \cdot e^{t \cdot \log a - b}}{y}\\ \mathbf{elif}\;y \leq 6.3 \cdot 10^{+32}:\\ \;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{y \cdot e^{b}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot e^{y \cdot \log z - b}}{y}\\ \end{array} \]
                                      9. Add Preprocessing

                                      Alternative 7: 84.9% accurate, 1.4× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x \cdot e^{y \cdot \log z - b}}{y}\\ \mathbf{if}\;y \leq -2.95 \cdot 10^{+56}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -1.08 \cdot 10^{-11}:\\ \;\;\;\;\frac{x \cdot e^{t \cdot \log a - b}}{y}\\ \mathbf{elif}\;y \leq 6.3 \cdot 10^{+32}:\\ \;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y \cdot e^{b}}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                      (FPCore (x y z t a b)
                                       :precision binary64
                                       (let* ((t_1 (/ (* x (exp (- (* y (log z)) b))) y)))
                                         (if (<= y -2.95e+56)
                                           t_1
                                           (if (<= y -1.08e-11)
                                             (/ (* x (exp (- (* t (log a)) b))) y)
                                             (if (<= y 6.3e+32) (/ (* x (pow a (+ t -1.0))) (* y (exp b))) t_1)))))
                                      double code(double x, double y, double z, double t, double a, double b) {
                                      	double t_1 = (x * exp(((y * log(z)) - b))) / y;
                                      	double tmp;
                                      	if (y <= -2.95e+56) {
                                      		tmp = t_1;
                                      	} else if (y <= -1.08e-11) {
                                      		tmp = (x * exp(((t * log(a)) - b))) / y;
                                      	} else if (y <= 6.3e+32) {
                                      		tmp = (x * pow(a, (t + -1.0))) / (y * exp(b));
                                      	} else {
                                      		tmp = t_1;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      real(8) function code(x, y, z, t, a, b)
                                          real(8), intent (in) :: x
                                          real(8), intent (in) :: y
                                          real(8), intent (in) :: z
                                          real(8), intent (in) :: t
                                          real(8), intent (in) :: a
                                          real(8), intent (in) :: b
                                          real(8) :: t_1
                                          real(8) :: tmp
                                          t_1 = (x * exp(((y * log(z)) - b))) / y
                                          if (y <= (-2.95d+56)) then
                                              tmp = t_1
                                          else if (y <= (-1.08d-11)) then
                                              tmp = (x * exp(((t * log(a)) - b))) / y
                                          else if (y <= 6.3d+32) then
                                              tmp = (x * (a ** (t + (-1.0d0)))) / (y * exp(b))
                                          else
                                              tmp = t_1
                                          end if
                                          code = tmp
                                      end function
                                      
                                      public static double code(double x, double y, double z, double t, double a, double b) {
                                      	double t_1 = (x * Math.exp(((y * Math.log(z)) - b))) / y;
                                      	double tmp;
                                      	if (y <= -2.95e+56) {
                                      		tmp = t_1;
                                      	} else if (y <= -1.08e-11) {
                                      		tmp = (x * Math.exp(((t * Math.log(a)) - b))) / y;
                                      	} else if (y <= 6.3e+32) {
                                      		tmp = (x * Math.pow(a, (t + -1.0))) / (y * Math.exp(b));
                                      	} else {
                                      		tmp = t_1;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      def code(x, y, z, t, a, b):
                                      	t_1 = (x * math.exp(((y * math.log(z)) - b))) / y
                                      	tmp = 0
                                      	if y <= -2.95e+56:
                                      		tmp = t_1
                                      	elif y <= -1.08e-11:
                                      		tmp = (x * math.exp(((t * math.log(a)) - b))) / y
                                      	elif y <= 6.3e+32:
                                      		tmp = (x * math.pow(a, (t + -1.0))) / (y * math.exp(b))
                                      	else:
                                      		tmp = t_1
                                      	return tmp
                                      
                                      function code(x, y, z, t, a, b)
                                      	t_1 = Float64(Float64(x * exp(Float64(Float64(y * log(z)) - b))) / y)
                                      	tmp = 0.0
                                      	if (y <= -2.95e+56)
                                      		tmp = t_1;
                                      	elseif (y <= -1.08e-11)
                                      		tmp = Float64(Float64(x * exp(Float64(Float64(t * log(a)) - b))) / y);
                                      	elseif (y <= 6.3e+32)
                                      		tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / 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 * exp(((y * log(z)) - b))) / y;
                                      	tmp = 0.0;
                                      	if (y <= -2.95e+56)
                                      		tmp = t_1;
                                      	elseif (y <= -1.08e-11)
                                      		tmp = (x * exp(((t * log(a)) - b))) / y;
                                      	elseif (y <= 6.3e+32)
                                      		tmp = (x * (a ^ (t + -1.0))) / (y * exp(b));
                                      	else
                                      		tmp = t_1;
                                      	end
                                      	tmp_2 = tmp;
                                      end
                                      
                                      code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[Exp[N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -2.95e+56], t$95$1, If[LessEqual[y, -1.08e-11], N[(N[(x * N[Exp[N[(N[(t * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 6.3e+32], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      t_1 := \frac{x \cdot e^{y \cdot \log z - b}}{y}\\
                                      \mathbf{if}\;y \leq -2.95 \cdot 10^{+56}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      \mathbf{elif}\;y \leq -1.08 \cdot 10^{-11}:\\
                                      \;\;\;\;\frac{x \cdot e^{t \cdot \log a - b}}{y}\\
                                      
                                      \mathbf{elif}\;y \leq 6.3 \cdot 10^{+32}:\\
                                      \;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y \cdot e^{b}}\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 3 regimes
                                      2. if y < -2.9500000000000001e56 or 6.3000000000000002e32 < y

                                        1. Initial program 100.0%

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

                                          \[\leadsto \frac{x \cdot e^{\color{blue}{y \cdot \log z} - b}}{y} \]
                                        4. Step-by-step derivation
                                          1. lower-*.f64N/A

                                            \[\leadsto \frac{x \cdot e^{\color{blue}{y \cdot \log z} - b}}{y} \]
                                          2. lower-log.f6493.6

                                            \[\leadsto \frac{x \cdot e^{y \cdot \color{blue}{\log z} - b}}{y} \]
                                        5. Applied rewrites93.6%

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

                                        if -2.9500000000000001e56 < y < -1.07999999999999992e-11

                                        1. Initial program 100.0%

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

                                          \[\leadsto \frac{x \cdot e^{\color{blue}{t \cdot \log a} - b}}{y} \]
                                        4. Step-by-step derivation
                                          1. *-commutativeN/A

                                            \[\leadsto \frac{x \cdot e^{\color{blue}{\log a \cdot t} - b}}{y} \]
                                          2. lower-*.f64N/A

                                            \[\leadsto \frac{x \cdot e^{\color{blue}{\log a \cdot t} - b}}{y} \]
                                          3. rem-exp-logN/A

                                            \[\leadsto \frac{x \cdot e^{\log \color{blue}{\left(e^{\log a}\right)} \cdot t - b}}{y} \]
                                          4. lower-log.f64N/A

                                            \[\leadsto \frac{x \cdot e^{\color{blue}{\log \left(e^{\log a}\right)} \cdot t - b}}{y} \]
                                          5. rem-exp-log100.0

                                            \[\leadsto \frac{x \cdot e^{\log \color{blue}{a} \cdot t - b}}{y} \]
                                        5. Applied rewrites100.0%

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

                                        if -1.07999999999999992e-11 < y < 6.3000000000000002e32

                                        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

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

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

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

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

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

                                            \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                          6. lower-*.f64N/A

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

                                            \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                          8. lower-pow.f64N/A

                                            \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                          9. rem-exp-logN/A

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

                                            \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                          11. metadata-evalN/A

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

                                            \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                          13. lower-*.f64N/A

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

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

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

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

                                      Alternative 8: 84.8% accurate, 1.4× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x \cdot e^{y \cdot \log z - b}}{y}\\ \mathbf{if}\;y \leq -2.95 \cdot 10^{+56}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 1.52 \cdot 10^{+33}:\\ \;\;\;\;\frac{x \cdot e^{t \cdot \log a - b}}{y}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                      (FPCore (x y z t a b)
                                       :precision binary64
                                       (let* ((t_1 (/ (* x (exp (- (* y (log z)) b))) y)))
                                         (if (<= y -2.95e+56)
                                           t_1
                                           (if (<= y 1.52e+33) (/ (* x (exp (- (* t (log a)) b))) y) t_1))))
                                      double code(double x, double y, double z, double t, double a, double b) {
                                      	double t_1 = (x * exp(((y * log(z)) - b))) / y;
                                      	double tmp;
                                      	if (y <= -2.95e+56) {
                                      		tmp = t_1;
                                      	} else if (y <= 1.52e+33) {
                                      		tmp = (x * exp(((t * log(a)) - b))) / y;
                                      	} else {
                                      		tmp = t_1;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      real(8) function code(x, y, z, t, a, b)
                                          real(8), intent (in) :: x
                                          real(8), intent (in) :: y
                                          real(8), intent (in) :: z
                                          real(8), intent (in) :: t
                                          real(8), intent (in) :: a
                                          real(8), intent (in) :: b
                                          real(8) :: t_1
                                          real(8) :: tmp
                                          t_1 = (x * exp(((y * log(z)) - b))) / y
                                          if (y <= (-2.95d+56)) then
                                              tmp = t_1
                                          else if (y <= 1.52d+33) then
                                              tmp = (x * exp(((t * log(a)) - b))) / y
                                          else
                                              tmp = t_1
                                          end if
                                          code = tmp
                                      end function
                                      
                                      public static double code(double x, double y, double z, double t, double a, double b) {
                                      	double t_1 = (x * Math.exp(((y * Math.log(z)) - b))) / y;
                                      	double tmp;
                                      	if (y <= -2.95e+56) {
                                      		tmp = t_1;
                                      	} else if (y <= 1.52e+33) {
                                      		tmp = (x * Math.exp(((t * Math.log(a)) - b))) / y;
                                      	} else {
                                      		tmp = t_1;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      def code(x, y, z, t, a, b):
                                      	t_1 = (x * math.exp(((y * math.log(z)) - b))) / y
                                      	tmp = 0
                                      	if y <= -2.95e+56:
                                      		tmp = t_1
                                      	elif y <= 1.52e+33:
                                      		tmp = (x * math.exp(((t * math.log(a)) - b))) / y
                                      	else:
                                      		tmp = t_1
                                      	return tmp
                                      
                                      function code(x, y, z, t, a, b)
                                      	t_1 = Float64(Float64(x * exp(Float64(Float64(y * log(z)) - b))) / y)
                                      	tmp = 0.0
                                      	if (y <= -2.95e+56)
                                      		tmp = t_1;
                                      	elseif (y <= 1.52e+33)
                                      		tmp = Float64(Float64(x * exp(Float64(Float64(t * log(a)) - b))) / y);
                                      	else
                                      		tmp = t_1;
                                      	end
                                      	return tmp
                                      end
                                      
                                      function tmp_2 = code(x, y, z, t, a, b)
                                      	t_1 = (x * exp(((y * log(z)) - b))) / y;
                                      	tmp = 0.0;
                                      	if (y <= -2.95e+56)
                                      		tmp = t_1;
                                      	elseif (y <= 1.52e+33)
                                      		tmp = (x * exp(((t * log(a)) - b))) / y;
                                      	else
                                      		tmp = t_1;
                                      	end
                                      	tmp_2 = tmp;
                                      end
                                      
                                      code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[Exp[N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -2.95e+56], t$95$1, If[LessEqual[y, 1.52e+33], N[(N[(x * N[Exp[N[(N[(t * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      t_1 := \frac{x \cdot e^{y \cdot \log z - b}}{y}\\
                                      \mathbf{if}\;y \leq -2.95 \cdot 10^{+56}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      \mathbf{elif}\;y \leq 1.52 \cdot 10^{+33}:\\
                                      \;\;\;\;\frac{x \cdot e^{t \cdot \log a - b}}{y}\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 2 regimes
                                      2. if y < -2.9500000000000001e56 or 1.5200000000000001e33 < y

                                        1. Initial program 100.0%

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

                                          \[\leadsto \frac{x \cdot e^{\color{blue}{y \cdot \log z} - b}}{y} \]
                                        4. Step-by-step derivation
                                          1. lower-*.f64N/A

                                            \[\leadsto \frac{x \cdot e^{\color{blue}{y \cdot \log z} - b}}{y} \]
                                          2. lower-log.f6493.6

                                            \[\leadsto \frac{x \cdot e^{y \cdot \color{blue}{\log z} - b}}{y} \]
                                        5. Applied rewrites93.6%

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

                                        if -2.9500000000000001e56 < y < 1.5200000000000001e33

                                        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 t around inf

                                          \[\leadsto \frac{x \cdot e^{\color{blue}{t \cdot \log a} - b}}{y} \]
                                        4. Step-by-step derivation
                                          1. *-commutativeN/A

                                            \[\leadsto \frac{x \cdot e^{\color{blue}{\log a \cdot t} - b}}{y} \]
                                          2. lower-*.f64N/A

                                            \[\leadsto \frac{x \cdot e^{\color{blue}{\log a \cdot t} - b}}{y} \]
                                          3. rem-exp-logN/A

                                            \[\leadsto \frac{x \cdot e^{\log \color{blue}{\left(e^{\log a}\right)} \cdot t - b}}{y} \]
                                          4. lower-log.f64N/A

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

                                            \[\leadsto \frac{x \cdot e^{\log \color{blue}{a} \cdot t - b}}{y} \]
                                        5. Applied rewrites79.7%

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

                                        \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.95 \cdot 10^{+56}:\\ \;\;\;\;\frac{x \cdot e^{y \cdot \log z - b}}{y}\\ \mathbf{elif}\;y \leq 1.52 \cdot 10^{+33}:\\ \;\;\;\;\frac{x \cdot e^{t \cdot \log a - b}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot e^{y \cdot \log z - b}}{y}\\ \end{array} \]
                                      5. Add Preprocessing

                                      Alternative 9: 81.6% accurate, 1.4× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x \cdot e^{y \cdot \log z - b}}{y}\\ \mathbf{if}\;b \leq -0.00092:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 1.5 \cdot 10^{-14}:\\ \;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{\mathsf{fma}\left(y, b, y\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                      (FPCore (x y z t a b)
                                       :precision binary64
                                       (let* ((t_1 (/ (* x (exp (- (* y (log z)) b))) y)))
                                         (if (<= b -0.00092)
                                           t_1
                                           (if (<= b 1.5e-14) (/ (* x (/ (pow a t) a)) (fma y b y)) t_1))))
                                      double code(double x, double y, double z, double t, double a, double b) {
                                      	double t_1 = (x * exp(((y * log(z)) - b))) / y;
                                      	double tmp;
                                      	if (b <= -0.00092) {
                                      		tmp = t_1;
                                      	} else if (b <= 1.5e-14) {
                                      		tmp = (x * (pow(a, t) / a)) / fma(y, b, y);
                                      	} else {
                                      		tmp = t_1;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      function code(x, y, z, t, a, b)
                                      	t_1 = Float64(Float64(x * exp(Float64(Float64(y * log(z)) - b))) / y)
                                      	tmp = 0.0
                                      	if (b <= -0.00092)
                                      		tmp = t_1;
                                      	elseif (b <= 1.5e-14)
                                      		tmp = Float64(Float64(x * Float64((a ^ t) / a)) / fma(y, b, y));
                                      	else
                                      		tmp = t_1;
                                      	end
                                      	return tmp
                                      end
                                      
                                      code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[Exp[N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[b, -0.00092], t$95$1, If[LessEqual[b, 1.5e-14], N[(N[(x * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / N[(y * b + y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      t_1 := \frac{x \cdot e^{y \cdot \log z - b}}{y}\\
                                      \mathbf{if}\;b \leq -0.00092:\\
                                      \;\;\;\;t\_1\\
                                      
                                      \mathbf{elif}\;b \leq 1.5 \cdot 10^{-14}:\\
                                      \;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{\mathsf{fma}\left(y, b, y\right)}\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 2 regimes
                                      2. if b < -9.2000000000000003e-4 or 1.4999999999999999e-14 < 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 inf

                                          \[\leadsto \frac{x \cdot e^{\color{blue}{y \cdot \log z} - b}}{y} \]
                                        4. Step-by-step derivation
                                          1. lower-*.f64N/A

                                            \[\leadsto \frac{x \cdot e^{\color{blue}{y \cdot \log z} - b}}{y} \]
                                          2. lower-log.f6491.3

                                            \[\leadsto \frac{x \cdot e^{y \cdot \color{blue}{\log z} - b}}{y} \]
                                        5. Applied rewrites91.3%

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

                                        if -9.2000000000000003e-4 < b < 1.4999999999999999e-14

                                        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

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

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

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

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

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

                                            \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                          6. lower-*.f64N/A

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

                                            \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                          8. lower-pow.f64N/A

                                            \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                          9. rem-exp-logN/A

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

                                            \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                          11. metadata-evalN/A

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

                                            \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                          13. lower-*.f64N/A

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

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

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

                                            \[\leadsto \frac{\frac{{a}^{t}}{a} \cdot x}{y \cdot e^{b}} \]
                                          2. Taylor expanded in b around 0

                                            \[\leadsto \frac{\frac{{a}^{t}}{a} \cdot x}{y + \color{blue}{b \cdot y}} \]
                                          3. Step-by-step derivation
                                            1. Applied rewrites77.4%

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

                                            \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -0.00092:\\ \;\;\;\;\frac{x \cdot e^{y \cdot \log z - b}}{y}\\ \mathbf{elif}\;b \leq 1.5 \cdot 10^{-14}:\\ \;\;\;\;\frac{x \cdot \frac{{a}^{t}}{a}}{\mathsf{fma}\left(y, b, y\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot e^{y \cdot \log z - b}}{y}\\ \end{array} \]
                                          6. Add Preprocessing

                                          Alternative 10: 72.4% accurate, 2.5× speedup?

                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \frac{e^{-b}}{y}\\ \mathbf{if}\;b \leq -1.9 \cdot 10^{+29}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 8.8 \cdot 10^{+30}:\\ \;\;\;\;{a}^{\left(t + -1\right)} \cdot \frac{x}{y}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                          (FPCore (x y z t a b)
                                           :precision binary64
                                           (let* ((t_1 (* x (/ (exp (- b)) y))))
                                             (if (<= b -1.9e+29)
                                               t_1
                                               (if (<= b 8.8e+30) (* (pow a (+ t -1.0)) (/ x y)) t_1))))
                                          double code(double x, double y, double z, double t, double a, double b) {
                                          	double t_1 = x * (exp(-b) / y);
                                          	double tmp;
                                          	if (b <= -1.9e+29) {
                                          		tmp = t_1;
                                          	} else if (b <= 8.8e+30) {
                                          		tmp = pow(a, (t + -1.0)) * (x / y);
                                          	} else {
                                          		tmp = t_1;
                                          	}
                                          	return tmp;
                                          }
                                          
                                          real(8) function code(x, y, z, t, a, b)
                                              real(8), intent (in) :: x
                                              real(8), intent (in) :: y
                                              real(8), intent (in) :: z
                                              real(8), intent (in) :: t
                                              real(8), intent (in) :: a
                                              real(8), intent (in) :: b
                                              real(8) :: t_1
                                              real(8) :: tmp
                                              t_1 = x * (exp(-b) / y)
                                              if (b <= (-1.9d+29)) then
                                                  tmp = t_1
                                              else if (b <= 8.8d+30) then
                                                  tmp = (a ** (t + (-1.0d0))) * (x / y)
                                              else
                                                  tmp = t_1
                                              end if
                                              code = tmp
                                          end function
                                          
                                          public static double code(double x, double y, double z, double t, double a, double b) {
                                          	double t_1 = x * (Math.exp(-b) / y);
                                          	double tmp;
                                          	if (b <= -1.9e+29) {
                                          		tmp = t_1;
                                          	} else if (b <= 8.8e+30) {
                                          		tmp = Math.pow(a, (t + -1.0)) * (x / y);
                                          	} else {
                                          		tmp = t_1;
                                          	}
                                          	return tmp;
                                          }
                                          
                                          def code(x, y, z, t, a, b):
                                          	t_1 = x * (math.exp(-b) / y)
                                          	tmp = 0
                                          	if b <= -1.9e+29:
                                          		tmp = t_1
                                          	elif b <= 8.8e+30:
                                          		tmp = math.pow(a, (t + -1.0)) * (x / y)
                                          	else:
                                          		tmp = t_1
                                          	return tmp
                                          
                                          function code(x, y, z, t, a, b)
                                          	t_1 = Float64(x * Float64(exp(Float64(-b)) / y))
                                          	tmp = 0.0
                                          	if (b <= -1.9e+29)
                                          		tmp = t_1;
                                          	elseif (b <= 8.8e+30)
                                          		tmp = Float64((a ^ Float64(t + -1.0)) * Float64(x / y));
                                          	else
                                          		tmp = t_1;
                                          	end
                                          	return tmp
                                          end
                                          
                                          function tmp_2 = code(x, y, z, t, a, b)
                                          	t_1 = x * (exp(-b) / y);
                                          	tmp = 0.0;
                                          	if (b <= -1.9e+29)
                                          		tmp = t_1;
                                          	elseif (b <= 8.8e+30)
                                          		tmp = (a ^ (t + -1.0)) * (x / y);
                                          	else
                                          		tmp = t_1;
                                          	end
                                          	tmp_2 = tmp;
                                          end
                                          
                                          code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[Exp[(-b)], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.9e+29], t$95$1, If[LessEqual[b, 8.8e+30], N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                          
                                          \begin{array}{l}
                                          
                                          \\
                                          \begin{array}{l}
                                          t_1 := x \cdot \frac{e^{-b}}{y}\\
                                          \mathbf{if}\;b \leq -1.9 \cdot 10^{+29}:\\
                                          \;\;\;\;t\_1\\
                                          
                                          \mathbf{elif}\;b \leq 8.8 \cdot 10^{+30}:\\
                                          \;\;\;\;{a}^{\left(t + -1\right)} \cdot \frac{x}{y}\\
                                          
                                          \mathbf{else}:\\
                                          \;\;\;\;t\_1\\
                                          
                                          
                                          \end{array}
                                          \end{array}
                                          
                                          Derivation
                                          1. Split input into 2 regimes
                                          2. if b < -1.89999999999999985e29 or 8.7999999999999999e30 < 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 inf

                                              \[\leadsto \frac{x \cdot e^{\color{blue}{y \cdot \log z} - b}}{y} \]
                                            4. Step-by-step derivation
                                              1. lower-*.f64N/A

                                                \[\leadsto \frac{x \cdot e^{\color{blue}{y \cdot \log z} - b}}{y} \]
                                              2. lower-log.f6492.7

                                                \[\leadsto \frac{x \cdot e^{y \cdot \color{blue}{\log z} - b}}{y} \]
                                            5. Applied rewrites92.7%

                                              \[\leadsto \frac{x \cdot e^{\color{blue}{y \cdot \log z} - b}}{y} \]
                                            6. Taylor expanded in b around inf

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

                                                \[\leadsto \frac{x \cdot e^{\color{blue}{\mathsf{neg}\left(b\right)}}}{y} \]
                                              2. lower-neg.f6480.9

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

                                              \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
                                            9. Step-by-step derivation
                                              1. lift-/.f64N/A

                                                \[\leadsto \color{blue}{\frac{x \cdot e^{\mathsf{neg}\left(b\right)}}{y}} \]
                                              2. lift-*.f64N/A

                                                \[\leadsto \frac{\color{blue}{x \cdot e^{\mathsf{neg}\left(b\right)}}}{y} \]
                                              3. associate-/l*N/A

                                                \[\leadsto \color{blue}{x \cdot \frac{e^{\mathsf{neg}\left(b\right)}}{y}} \]
                                              4. *-commutativeN/A

                                                \[\leadsto \color{blue}{\frac{e^{\mathsf{neg}\left(b\right)}}{y} \cdot x} \]
                                              5. lower-*.f64N/A

                                                \[\leadsto \color{blue}{\frac{e^{\mathsf{neg}\left(b\right)}}{y} \cdot x} \]
                                              6. lower-/.f6480.9

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

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

                                            if -1.89999999999999985e29 < b < 8.7999999999999999e30

                                            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

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

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

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

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

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

                                                \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                              6. lower-*.f64N/A

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

                                                \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                              8. lower-pow.f64N/A

                                                \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                              9. rem-exp-logN/A

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

                                                \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                              11. metadata-evalN/A

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

                                                \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                              13. lower-*.f64N/A

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

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

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

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

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

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

                                            Alternative 11: 58.3% accurate, 2.6× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \frac{e^{-b}}{y}\\ \mathbf{if}\;b \leq -4 \cdot 10^{+28}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 9.8 \cdot 10^{-11}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{1}{\mathsf{fma}\left(b, \mathsf{fma}\left(y, b \cdot 0.5, y\right), y\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                            (FPCore (x y z t a b)
                                             :precision binary64
                                             (let* ((t_1 (* x (/ (exp (- b)) y))))
                                               (if (<= b -4e+28)
                                                 t_1
                                                 (if (<= b 9.8e-11)
                                                   (* (/ x a) (/ 1.0 (fma b (fma y (* b 0.5) y) y)))
                                                   t_1))))
                                            double code(double x, double y, double z, double t, double a, double b) {
                                            	double t_1 = x * (exp(-b) / y);
                                            	double tmp;
                                            	if (b <= -4e+28) {
                                            		tmp = t_1;
                                            	} else if (b <= 9.8e-11) {
                                            		tmp = (x / a) * (1.0 / fma(b, fma(y, (b * 0.5), y), y));
                                            	} else {
                                            		tmp = t_1;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            function code(x, y, z, t, a, b)
                                            	t_1 = Float64(x * Float64(exp(Float64(-b)) / y))
                                            	tmp = 0.0
                                            	if (b <= -4e+28)
                                            		tmp = t_1;
                                            	elseif (b <= 9.8e-11)
                                            		tmp = Float64(Float64(x / a) * Float64(1.0 / fma(b, fma(y, Float64(b * 0.5), y), y)));
                                            	else
                                            		tmp = t_1;
                                            	end
                                            	return tmp
                                            end
                                            
                                            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[Exp[(-b)], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4e+28], t$95$1, If[LessEqual[b, 9.8e-11], N[(N[(x / a), $MachinePrecision] * N[(1.0 / N[(b * N[(y * N[(b * 0.5), $MachinePrecision] + y), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            t_1 := x \cdot \frac{e^{-b}}{y}\\
                                            \mathbf{if}\;b \leq -4 \cdot 10^{+28}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            \mathbf{elif}\;b \leq 9.8 \cdot 10^{-11}:\\
                                            \;\;\;\;\frac{x}{a} \cdot \frac{1}{\mathsf{fma}\left(b, \mathsf{fma}\left(y, b \cdot 0.5, y\right), y\right)}\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 2 regimes
                                            2. if b < -3.99999999999999983e28 or 9.7999999999999998e-11 < 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 inf

                                                \[\leadsto \frac{x \cdot e^{\color{blue}{y \cdot \log z} - b}}{y} \]
                                              4. Step-by-step derivation
                                                1. lower-*.f64N/A

                                                  \[\leadsto \frac{x \cdot e^{\color{blue}{y \cdot \log z} - b}}{y} \]
                                                2. lower-log.f6491.6

                                                  \[\leadsto \frac{x \cdot e^{y \cdot \color{blue}{\log z} - b}}{y} \]
                                              5. Applied rewrites91.6%

                                                \[\leadsto \frac{x \cdot e^{\color{blue}{y \cdot \log z} - b}}{y} \]
                                              6. Taylor expanded in b around inf

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

                                                  \[\leadsto \frac{x \cdot e^{\color{blue}{\mathsf{neg}\left(b\right)}}}{y} \]
                                                2. lower-neg.f6476.5

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

                                                \[\leadsto \frac{x \cdot e^{\color{blue}{-b}}}{y} \]
                                              9. Step-by-step derivation
                                                1. lift-/.f64N/A

                                                  \[\leadsto \color{blue}{\frac{x \cdot e^{\mathsf{neg}\left(b\right)}}{y}} \]
                                                2. lift-*.f64N/A

                                                  \[\leadsto \frac{\color{blue}{x \cdot e^{\mathsf{neg}\left(b\right)}}}{y} \]
                                                3. associate-/l*N/A

                                                  \[\leadsto \color{blue}{x \cdot \frac{e^{\mathsf{neg}\left(b\right)}}{y}} \]
                                                4. *-commutativeN/A

                                                  \[\leadsto \color{blue}{\frac{e^{\mathsf{neg}\left(b\right)}}{y} \cdot x} \]
                                                5. lower-*.f64N/A

                                                  \[\leadsto \color{blue}{\frac{e^{\mathsf{neg}\left(b\right)}}{y} \cdot x} \]
                                                6. lower-/.f6476.5

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

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

                                              if -3.99999999999999983e28 < b < 9.7999999999999998e-11

                                              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

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

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

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

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

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

                                                  \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                                6. lower-*.f64N/A

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

                                                  \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                8. lower-pow.f64N/A

                                                  \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                9. rem-exp-logN/A

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

                                                  \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                                11. metadata-evalN/A

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

                                                  \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                13. lower-*.f64N/A

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

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

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

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

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

                                                  \[\leadsto \frac{x}{a \cdot \left(y + b \cdot \color{blue}{\left(y + \frac{1}{2} \cdot \left(b \cdot y\right)\right)}\right)} \]
                                                3. Step-by-step derivation
                                                  1. Applied rewrites37.0%

                                                    \[\leadsto \frac{x}{a \cdot \mathsf{fma}\left(b, \mathsf{fma}\left(0.5, \color{blue}{y \cdot b}, y\right), y\right)} \]
                                                  2. Step-by-step derivation
                                                    1. Applied rewrites42.5%

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

                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -4 \cdot 10^{+28}:\\ \;\;\;\;x \cdot \frac{e^{-b}}{y}\\ \mathbf{elif}\;b \leq 9.8 \cdot 10^{-11}:\\ \;\;\;\;\frac{x}{a} \cdot \frac{1}{\mathsf{fma}\left(b, \mathsf{fma}\left(y, b \cdot 0.5, y\right), y\right)}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{e^{-b}}{y}\\ \end{array} \]
                                                  5. Add Preprocessing

                                                  Alternative 12: 34.4% accurate, 2.6× speedup?

                                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\log a \leq 40:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot \mathsf{fma}\left(a, b, a\right)}\\ \end{array} \end{array} \]
                                                  (FPCore (x y z t a b)
                                                   :precision binary64
                                                   (if (<= (log a) 40.0) (/ x (* y a)) (/ x (* y (fma a b a)))))
                                                  double code(double x, double y, double z, double t, double a, double b) {
                                                  	double tmp;
                                                  	if (log(a) <= 40.0) {
                                                  		tmp = x / (y * a);
                                                  	} else {
                                                  		tmp = x / (y * fma(a, b, a));
                                                  	}
                                                  	return tmp;
                                                  }
                                                  
                                                  function code(x, y, z, t, a, b)
                                                  	tmp = 0.0
                                                  	if (log(a) <= 40.0)
                                                  		tmp = Float64(x / Float64(y * a));
                                                  	else
                                                  		tmp = Float64(x / Float64(y * fma(a, b, a)));
                                                  	end
                                                  	return tmp
                                                  end
                                                  
                                                  code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[Log[a], $MachinePrecision], 40.0], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
                                                  
                                                  \begin{array}{l}
                                                  
                                                  \\
                                                  \begin{array}{l}
                                                  \mathbf{if}\;\log a \leq 40:\\
                                                  \;\;\;\;\frac{x}{y \cdot a}\\
                                                  
                                                  \mathbf{else}:\\
                                                  \;\;\;\;\frac{x}{y \cdot \mathsf{fma}\left(a, b, a\right)}\\
                                                  
                                                  
                                                  \end{array}
                                                  \end{array}
                                                  
                                                  Derivation
                                                  1. Split input into 2 regimes
                                                  2. if (log.f64 a) < 40

                                                    1. Initial program 99.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

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

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

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

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

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

                                                        \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                                      6. lower-*.f64N/A

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

                                                        \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                      8. lower-pow.f64N/A

                                                        \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                      9. rem-exp-logN/A

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

                                                        \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                                      11. metadata-evalN/A

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

                                                        \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                      13. lower-*.f64N/A

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

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

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

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

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

                                                        \[\leadsto \frac{x}{a \cdot y} \]
                                                      3. Step-by-step derivation
                                                        1. Applied rewrites27.5%

                                                          \[\leadsto \frac{x}{a \cdot y} \]

                                                        if 40 < (log.f64 a)

                                                        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

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

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

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

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

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

                                                            \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                                          6. lower-*.f64N/A

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

                                                            \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                          8. lower-pow.f64N/A

                                                            \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                          9. rem-exp-logN/A

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

                                                            \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                                          11. metadata-evalN/A

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

                                                            \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                          13. lower-*.f64N/A

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

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

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

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

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

                                                            \[\leadsto \frac{x}{a \cdot y} \]
                                                          3. Step-by-step derivation
                                                            1. Applied rewrites36.1%

                                                              \[\leadsto \frac{x}{a \cdot y} \]
                                                            2. Taylor expanded in b around 0

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

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

                                                              \[\leadsto \begin{array}{l} \mathbf{if}\;\log a \leq 40:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot \mathsf{fma}\left(a, b, a\right)}\\ \end{array} \]
                                                            6. Add Preprocessing

                                                            Alternative 13: 48.2% accurate, 4.8× speedup?

                                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -5.5 \cdot 10^{-118}:\\ \;\;\;\;\frac{\mathsf{fma}\left(b, \mathsf{fma}\left(0.5, b \cdot \frac{x}{y}, \frac{x}{-y}\right), \frac{x}{y}\right)}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{a}}{\mathsf{fma}\left(b, \mathsf{fma}\left(b, y \cdot \mathsf{fma}\left(0.16666666666666666, b, 0.5\right), y\right), y\right)}\\ \end{array} \end{array} \]
                                                            (FPCore (x y z t a b)
                                                             :precision binary64
                                                             (if (<= b -5.5e-118)
                                                               (/ (fma b (fma 0.5 (* b (/ x y)) (/ x (- y))) (/ x y)) a)
                                                               (/ (/ x a) (fma b (fma b (* y (fma 0.16666666666666666 b 0.5)) y) y))))
                                                            double code(double x, double y, double z, double t, double a, double b) {
                                                            	double tmp;
                                                            	if (b <= -5.5e-118) {
                                                            		tmp = fma(b, fma(0.5, (b * (x / y)), (x / -y)), (x / y)) / a;
                                                            	} else {
                                                            		tmp = (x / a) / fma(b, fma(b, (y * fma(0.16666666666666666, b, 0.5)), y), y);
                                                            	}
                                                            	return tmp;
                                                            }
                                                            
                                                            function code(x, y, z, t, a, b)
                                                            	tmp = 0.0
                                                            	if (b <= -5.5e-118)
                                                            		tmp = Float64(fma(b, fma(0.5, Float64(b * Float64(x / y)), Float64(x / Float64(-y))), Float64(x / y)) / a);
                                                            	else
                                                            		tmp = Float64(Float64(x / a) / fma(b, fma(b, Float64(y * fma(0.16666666666666666, b, 0.5)), y), y));
                                                            	end
                                                            	return tmp
                                                            end
                                                            
                                                            code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -5.5e-118], N[(N[(b * N[(0.5 * N[(b * N[(x / y), $MachinePrecision]), $MachinePrecision] + N[(x / (-y)), $MachinePrecision]), $MachinePrecision] + N[(x / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / N[(b * N[(b * N[(y * N[(0.16666666666666666 * b + 0.5), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]]
                                                            
                                                            \begin{array}{l}
                                                            
                                                            \\
                                                            \begin{array}{l}
                                                            \mathbf{if}\;b \leq -5.5 \cdot 10^{-118}:\\
                                                            \;\;\;\;\frac{\mathsf{fma}\left(b, \mathsf{fma}\left(0.5, b \cdot \frac{x}{y}, \frac{x}{-y}\right), \frac{x}{y}\right)}{a}\\
                                                            
                                                            \mathbf{else}:\\
                                                            \;\;\;\;\frac{\frac{x}{a}}{\mathsf{fma}\left(b, \mathsf{fma}\left(b, y \cdot \mathsf{fma}\left(0.16666666666666666, b, 0.5\right), y\right), y\right)}\\
                                                            
                                                            
                                                            \end{array}
                                                            \end{array}
                                                            
                                                            Derivation
                                                            1. Split input into 2 regimes
                                                            2. if b < -5.5000000000000003e-118

                                                              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

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

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

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

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

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

                                                                  \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                                                6. lower-*.f64N/A

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

                                                                  \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                8. lower-pow.f64N/A

                                                                  \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                9. rem-exp-logN/A

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

                                                                  \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                11. metadata-evalN/A

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

                                                                  \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                13. lower-*.f64N/A

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

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

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

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

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

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

                                                                    \[\leadsto \mathsf{fma}\left(b, b \cdot \left(0.5 \cdot \frac{x}{a \cdot y}\right) - \color{blue}{\frac{x}{a \cdot y}}, \frac{x}{a \cdot y}\right) \]
                                                                  2. Taylor expanded in a around 0

                                                                    \[\leadsto \frac{b \cdot \left(\frac{1}{2} \cdot \frac{b \cdot x}{y} - \frac{x}{y}\right) + \frac{x}{y}}{a} \]
                                                                  3. Step-by-step derivation
                                                                    1. Applied rewrites68.0%

                                                                      \[\leadsto \frac{\mathsf{fma}\left(b, \mathsf{fma}\left(0.5, b \cdot \frac{x}{y}, \frac{-x}{y}\right), \frac{x}{y}\right)}{a} \]

                                                                    if -5.5000000000000003e-118 < b

                                                                    1. Initial program 98.8%

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

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

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

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

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

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

                                                                        \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                                                      6. lower-*.f64N/A

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

                                                                        \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                      8. lower-pow.f64N/A

                                                                        \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                      9. rem-exp-logN/A

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

                                                                        \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                      11. metadata-evalN/A

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

                                                                        \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                      13. lower-*.f64N/A

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

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

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

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

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

                                                                        \[\leadsto \frac{\frac{x}{a}}{y + \color{blue}{b \cdot \left(y + b \cdot \left(\frac{1}{6} \cdot \left(b \cdot y\right) + \frac{1}{2} \cdot y\right)\right)}} \]
                                                                      3. Step-by-step derivation
                                                                        1. Applied rewrites42.3%

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

                                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -5.5 \cdot 10^{-118}:\\ \;\;\;\;\frac{\mathsf{fma}\left(b, \mathsf{fma}\left(0.5, b \cdot \frac{x}{y}, \frac{x}{-y}\right), \frac{x}{y}\right)}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{a}}{\mathsf{fma}\left(b, \mathsf{fma}\left(b, y \cdot \mathsf{fma}\left(0.16666666666666666, b, 0.5\right), y\right), y\right)}\\ \end{array} \]
                                                                      6. Add Preprocessing

                                                                      Alternative 14: 49.4% accurate, 6.5× speedup?

                                                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -3.8 \cdot 10^{-14}:\\ \;\;\;\;\frac{b \cdot \left(b \cdot \left(x \cdot 0.5\right)\right)}{y \cdot a}\\ \mathbf{elif}\;b \leq 9.8 \cdot 10^{+30}:\\ \;\;\;\;\frac{\frac{x}{a}}{\mathsf{fma}\left(y, b, y\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \mathsf{fma}\left(b, \mathsf{fma}\left(b, y \cdot \mathsf{fma}\left(0.16666666666666666, b, 0.5\right), y\right), y\right)}\\ \end{array} \end{array} \]
                                                                      (FPCore (x y z t a b)
                                                                       :precision binary64
                                                                       (if (<= b -3.8e-14)
                                                                         (/ (* b (* b (* x 0.5))) (* y a))
                                                                         (if (<= b 9.8e+30)
                                                                           (/ (/ x a) (fma y b y))
                                                                           (/ x (* a (fma b (fma b (* y (fma 0.16666666666666666 b 0.5)) y) y))))))
                                                                      double code(double x, double y, double z, double t, double a, double b) {
                                                                      	double tmp;
                                                                      	if (b <= -3.8e-14) {
                                                                      		tmp = (b * (b * (x * 0.5))) / (y * a);
                                                                      	} else if (b <= 9.8e+30) {
                                                                      		tmp = (x / a) / fma(y, b, y);
                                                                      	} else {
                                                                      		tmp = x / (a * fma(b, fma(b, (y * fma(0.16666666666666666, b, 0.5)), y), y));
                                                                      	}
                                                                      	return tmp;
                                                                      }
                                                                      
                                                                      function code(x, y, z, t, a, b)
                                                                      	tmp = 0.0
                                                                      	if (b <= -3.8e-14)
                                                                      		tmp = Float64(Float64(b * Float64(b * Float64(x * 0.5))) / Float64(y * a));
                                                                      	elseif (b <= 9.8e+30)
                                                                      		tmp = Float64(Float64(x / a) / fma(y, b, y));
                                                                      	else
                                                                      		tmp = Float64(x / Float64(a * fma(b, fma(b, Float64(y * fma(0.16666666666666666, b, 0.5)), y), y)));
                                                                      	end
                                                                      	return tmp
                                                                      end
                                                                      
                                                                      code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.8e-14], N[(N[(b * N[(b * N[(x * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.8e+30], N[(N[(x / a), $MachinePrecision] / N[(y * b + y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(b * N[(b * N[(y * N[(0.16666666666666666 * b + 0.5), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                                                                      
                                                                      \begin{array}{l}
                                                                      
                                                                      \\
                                                                      \begin{array}{l}
                                                                      \mathbf{if}\;b \leq -3.8 \cdot 10^{-14}:\\
                                                                      \;\;\;\;\frac{b \cdot \left(b \cdot \left(x \cdot 0.5\right)\right)}{y \cdot a}\\
                                                                      
                                                                      \mathbf{elif}\;b \leq 9.8 \cdot 10^{+30}:\\
                                                                      \;\;\;\;\frac{\frac{x}{a}}{\mathsf{fma}\left(y, b, y\right)}\\
                                                                      
                                                                      \mathbf{else}:\\
                                                                      \;\;\;\;\frac{x}{a \cdot \mathsf{fma}\left(b, \mathsf{fma}\left(b, y \cdot \mathsf{fma}\left(0.16666666666666666, b, 0.5\right), y\right), y\right)}\\
                                                                      
                                                                      
                                                                      \end{array}
                                                                      \end{array}
                                                                      
                                                                      Derivation
                                                                      1. Split input into 3 regimes
                                                                      2. if b < -3.8000000000000002e-14

                                                                        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

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

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

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

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

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

                                                                            \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                                                          6. lower-*.f64N/A

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

                                                                            \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                          8. lower-pow.f64N/A

                                                                            \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                          9. rem-exp-logN/A

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

                                                                            \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                          11. metadata-evalN/A

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

                                                                            \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                          13. lower-*.f64N/A

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

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

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

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

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

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

                                                                              \[\leadsto \mathsf{fma}\left(b, b \cdot \left(0.5 \cdot \frac{x}{a \cdot y}\right) - \color{blue}{\frac{x}{a \cdot y}}, \frac{x}{a \cdot y}\right) \]
                                                                            2. Taylor expanded in b around inf

                                                                              \[\leadsto \frac{1}{2} \cdot \frac{{b}^{2} \cdot x}{a \cdot \color{blue}{y}} \]
                                                                            3. Step-by-step derivation
                                                                              1. Applied rewrites65.5%

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

                                                                              if -3.8000000000000002e-14 < b < 9.79999999999999969e30

                                                                              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

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

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

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

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

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

                                                                                  \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                                                                6. lower-*.f64N/A

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

                                                                                  \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                8. lower-pow.f64N/A

                                                                                  \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                9. rem-exp-logN/A

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

                                                                                  \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                11. metadata-evalN/A

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

                                                                                  \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                13. lower-*.f64N/A

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

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

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

                                                                                \[\leadsto \frac{\frac{x}{a}}{\color{blue}{y} \cdot e^{b}} \]
                                                                              7. Step-by-step derivation
                                                                                1. Applied rewrites39.2%

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

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

                                                                                    \[\leadsto \frac{\frac{x}{a}}{\mathsf{fma}\left(y, \color{blue}{b}, y\right)} \]

                                                                                  if 9.79999999999999969e30 < 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

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

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

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

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

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

                                                                                      \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                                                                    6. lower-*.f64N/A

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

                                                                                      \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                    8. lower-pow.f64N/A

                                                                                      \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                    9. rem-exp-logN/A

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

                                                                                      \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                    11. metadata-evalN/A

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

                                                                                      \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                    13. lower-*.f64N/A

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

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

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

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

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

                                                                                      \[\leadsto \frac{x}{a \cdot \left(y + b \cdot \color{blue}{\left(y + b \cdot \left(\frac{1}{6} \cdot \left(b \cdot y\right) + \frac{1}{2} \cdot y\right)\right)}\right)} \]
                                                                                    3. Step-by-step derivation
                                                                                      1. Applied rewrites60.2%

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

                                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3.8 \cdot 10^{-14}:\\ \;\;\;\;\frac{b \cdot \left(b \cdot \left(x \cdot 0.5\right)\right)}{y \cdot a}\\ \mathbf{elif}\;b \leq 9.8 \cdot 10^{+30}:\\ \;\;\;\;\frac{\frac{x}{a}}{\mathsf{fma}\left(y, b, y\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \mathsf{fma}\left(b, \mathsf{fma}\left(b, y \cdot \mathsf{fma}\left(0.16666666666666666, b, 0.5\right), y\right), y\right)}\\ \end{array} \]
                                                                                    6. Add Preprocessing

                                                                                    Alternative 15: 47.5% accurate, 6.5× speedup?

                                                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -3.8 \cdot 10^{-14}:\\ \;\;\;\;\frac{b \cdot \left(b \cdot \left(x \cdot 0.5\right)\right)}{y \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{a}}{\mathsf{fma}\left(b, \mathsf{fma}\left(b, y \cdot \mathsf{fma}\left(0.16666666666666666, b, 0.5\right), y\right), y\right)}\\ \end{array} \end{array} \]
                                                                                    (FPCore (x y z t a b)
                                                                                     :precision binary64
                                                                                     (if (<= b -3.8e-14)
                                                                                       (/ (* b (* b (* x 0.5))) (* y a))
                                                                                       (/ (/ x a) (fma b (fma b (* y (fma 0.16666666666666666 b 0.5)) y) y))))
                                                                                    double code(double x, double y, double z, double t, double a, double b) {
                                                                                    	double tmp;
                                                                                    	if (b <= -3.8e-14) {
                                                                                    		tmp = (b * (b * (x * 0.5))) / (y * a);
                                                                                    	} else {
                                                                                    		tmp = (x / a) / fma(b, fma(b, (y * fma(0.16666666666666666, b, 0.5)), y), y);
                                                                                    	}
                                                                                    	return tmp;
                                                                                    }
                                                                                    
                                                                                    function code(x, y, z, t, a, b)
                                                                                    	tmp = 0.0
                                                                                    	if (b <= -3.8e-14)
                                                                                    		tmp = Float64(Float64(b * Float64(b * Float64(x * 0.5))) / Float64(y * a));
                                                                                    	else
                                                                                    		tmp = Float64(Float64(x / a) / fma(b, fma(b, Float64(y * fma(0.16666666666666666, b, 0.5)), y), y));
                                                                                    	end
                                                                                    	return tmp
                                                                                    end
                                                                                    
                                                                                    code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.8e-14], N[(N[(b * N[(b * N[(x * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / N[(b * N[(b * N[(y * N[(0.16666666666666666 * b + 0.5), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]]
                                                                                    
                                                                                    \begin{array}{l}
                                                                                    
                                                                                    \\
                                                                                    \begin{array}{l}
                                                                                    \mathbf{if}\;b \leq -3.8 \cdot 10^{-14}:\\
                                                                                    \;\;\;\;\frac{b \cdot \left(b \cdot \left(x \cdot 0.5\right)\right)}{y \cdot a}\\
                                                                                    
                                                                                    \mathbf{else}:\\
                                                                                    \;\;\;\;\frac{\frac{x}{a}}{\mathsf{fma}\left(b, \mathsf{fma}\left(b, y \cdot \mathsf{fma}\left(0.16666666666666666, b, 0.5\right), y\right), y\right)}\\
                                                                                    
                                                                                    
                                                                                    \end{array}
                                                                                    \end{array}
                                                                                    
                                                                                    Derivation
                                                                                    1. Split input into 2 regimes
                                                                                    2. if b < -3.8000000000000002e-14

                                                                                      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

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

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

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

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

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

                                                                                          \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                                                                        6. lower-*.f64N/A

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

                                                                                          \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                        8. lower-pow.f64N/A

                                                                                          \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                        9. rem-exp-logN/A

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

                                                                                          \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                        11. metadata-evalN/A

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

                                                                                          \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                        13. lower-*.f64N/A

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

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

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

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

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

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

                                                                                            \[\leadsto \mathsf{fma}\left(b, b \cdot \left(0.5 \cdot \frac{x}{a \cdot y}\right) - \color{blue}{\frac{x}{a \cdot y}}, \frac{x}{a \cdot y}\right) \]
                                                                                          2. Taylor expanded in b around inf

                                                                                            \[\leadsto \frac{1}{2} \cdot \frac{{b}^{2} \cdot x}{a \cdot \color{blue}{y}} \]
                                                                                          3. Step-by-step derivation
                                                                                            1. Applied rewrites65.5%

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

                                                                                            if -3.8000000000000002e-14 < b

                                                                                            1. Initial program 98.7%

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

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

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

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

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

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

                                                                                                \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                                                                              6. lower-*.f64N/A

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

                                                                                                \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                              8. lower-pow.f64N/A

                                                                                                \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                              9. rem-exp-logN/A

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

                                                                                                \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                              11. metadata-evalN/A

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

                                                                                                \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                              13. lower-*.f64N/A

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

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

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

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

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

                                                                                                \[\leadsto \frac{\frac{x}{a}}{y + \color{blue}{b \cdot \left(y + b \cdot \left(\frac{1}{6} \cdot \left(b \cdot y\right) + \frac{1}{2} \cdot y\right)\right)}} \]
                                                                                              3. Step-by-step derivation
                                                                                                1. Applied rewrites43.6%

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

                                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3.8 \cdot 10^{-14}:\\ \;\;\;\;\frac{b \cdot \left(b \cdot \left(x \cdot 0.5\right)\right)}{y \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{a}}{\mathsf{fma}\left(b, \mathsf{fma}\left(b, y \cdot \mathsf{fma}\left(0.16666666666666666, b, 0.5\right), y\right), y\right)}\\ \end{array} \]
                                                                                              6. Add Preprocessing

                                                                                              Alternative 16: 47.2% accurate, 7.3× speedup?

                                                                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -3.8 \cdot 10^{-14}:\\ \;\;\;\;\frac{b \cdot \left(b \cdot \left(x \cdot 0.5\right)\right)}{y \cdot a}\\ \mathbf{elif}\;b \leq 9.8 \cdot 10^{+30}:\\ \;\;\;\;\frac{\frac{x}{a}}{\mathsf{fma}\left(y, b, y\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \mathsf{fma}\left(b, \mathsf{fma}\left(0.5, y \cdot b, y\right), y\right)}\\ \end{array} \end{array} \]
                                                                                              (FPCore (x y z t a b)
                                                                                               :precision binary64
                                                                                               (if (<= b -3.8e-14)
                                                                                                 (/ (* b (* b (* x 0.5))) (* y a))
                                                                                                 (if (<= b 9.8e+30)
                                                                                                   (/ (/ x a) (fma y b y))
                                                                                                   (/ x (* a (fma b (fma 0.5 (* y b) y) y))))))
                                                                                              double code(double x, double y, double z, double t, double a, double b) {
                                                                                              	double tmp;
                                                                                              	if (b <= -3.8e-14) {
                                                                                              		tmp = (b * (b * (x * 0.5))) / (y * a);
                                                                                              	} else if (b <= 9.8e+30) {
                                                                                              		tmp = (x / a) / fma(y, b, y);
                                                                                              	} else {
                                                                                              		tmp = x / (a * fma(b, fma(0.5, (y * b), y), y));
                                                                                              	}
                                                                                              	return tmp;
                                                                                              }
                                                                                              
                                                                                              function code(x, y, z, t, a, b)
                                                                                              	tmp = 0.0
                                                                                              	if (b <= -3.8e-14)
                                                                                              		tmp = Float64(Float64(b * Float64(b * Float64(x * 0.5))) / Float64(y * a));
                                                                                              	elseif (b <= 9.8e+30)
                                                                                              		tmp = Float64(Float64(x / a) / fma(y, b, y));
                                                                                              	else
                                                                                              		tmp = Float64(x / Float64(a * fma(b, fma(0.5, Float64(y * b), y), y)));
                                                                                              	end
                                                                                              	return tmp
                                                                                              end
                                                                                              
                                                                                              code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.8e-14], N[(N[(b * N[(b * N[(x * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.8e+30], N[(N[(x / a), $MachinePrecision] / N[(y * b + y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(b * N[(0.5 * N[(y * b), $MachinePrecision] + y), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                                                                                              
                                                                                              \begin{array}{l}
                                                                                              
                                                                                              \\
                                                                                              \begin{array}{l}
                                                                                              \mathbf{if}\;b \leq -3.8 \cdot 10^{-14}:\\
                                                                                              \;\;\;\;\frac{b \cdot \left(b \cdot \left(x \cdot 0.5\right)\right)}{y \cdot a}\\
                                                                                              
                                                                                              \mathbf{elif}\;b \leq 9.8 \cdot 10^{+30}:\\
                                                                                              \;\;\;\;\frac{\frac{x}{a}}{\mathsf{fma}\left(y, b, y\right)}\\
                                                                                              
                                                                                              \mathbf{else}:\\
                                                                                              \;\;\;\;\frac{x}{a \cdot \mathsf{fma}\left(b, \mathsf{fma}\left(0.5, y \cdot b, y\right), y\right)}\\
                                                                                              
                                                                                              
                                                                                              \end{array}
                                                                                              \end{array}
                                                                                              
                                                                                              Derivation
                                                                                              1. Split input into 3 regimes
                                                                                              2. if b < -3.8000000000000002e-14

                                                                                                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

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

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

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

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

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

                                                                                                    \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                                                                                  6. lower-*.f64N/A

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

                                                                                                    \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                  8. lower-pow.f64N/A

                                                                                                    \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                  9. rem-exp-logN/A

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

                                                                                                    \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                  11. metadata-evalN/A

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

                                                                                                    \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                  13. lower-*.f64N/A

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

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

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

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

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

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

                                                                                                      \[\leadsto \mathsf{fma}\left(b, b \cdot \left(0.5 \cdot \frac{x}{a \cdot y}\right) - \color{blue}{\frac{x}{a \cdot y}}, \frac{x}{a \cdot y}\right) \]
                                                                                                    2. Taylor expanded in b around inf

                                                                                                      \[\leadsto \frac{1}{2} \cdot \frac{{b}^{2} \cdot x}{a \cdot \color{blue}{y}} \]
                                                                                                    3. Step-by-step derivation
                                                                                                      1. Applied rewrites65.5%

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

                                                                                                      if -3.8000000000000002e-14 < b < 9.79999999999999969e30

                                                                                                      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

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

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

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

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

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

                                                                                                          \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                                                                                        6. lower-*.f64N/A

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

                                                                                                          \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                        8. lower-pow.f64N/A

                                                                                                          \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                        9. rem-exp-logN/A

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

                                                                                                          \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                        11. metadata-evalN/A

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

                                                                                                          \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                        13. lower-*.f64N/A

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

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

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

                                                                                                        \[\leadsto \frac{\frac{x}{a}}{\color{blue}{y} \cdot e^{b}} \]
                                                                                                      7. Step-by-step derivation
                                                                                                        1. Applied rewrites39.2%

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

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

                                                                                                            \[\leadsto \frac{\frac{x}{a}}{\mathsf{fma}\left(y, \color{blue}{b}, y\right)} \]

                                                                                                          if 9.79999999999999969e30 < 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

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

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

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

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

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

                                                                                                              \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                                                                                            6. lower-*.f64N/A

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

                                                                                                              \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                            8. lower-pow.f64N/A

                                                                                                              \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                            9. rem-exp-logN/A

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

                                                                                                              \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                            11. metadata-evalN/A

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

                                                                                                              \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                            13. lower-*.f64N/A

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

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

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

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

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

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

                                                                                                                \[\leadsto \frac{x}{a \cdot \mathsf{fma}\left(b, \mathsf{fma}\left(0.5, \color{blue}{y \cdot b}, y\right), y\right)} \]
                                                                                                            4. Recombined 3 regimes into one program.
                                                                                                            5. Final simplification49.6%

                                                                                                              \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3.8 \cdot 10^{-14}:\\ \;\;\;\;\frac{b \cdot \left(b \cdot \left(x \cdot 0.5\right)\right)}{y \cdot a}\\ \mathbf{elif}\;b \leq 9.8 \cdot 10^{+30}:\\ \;\;\;\;\frac{\frac{x}{a}}{\mathsf{fma}\left(y, b, y\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \mathsf{fma}\left(b, \mathsf{fma}\left(0.5, y \cdot b, y\right), y\right)}\\ \end{array} \]
                                                                                                            6. Add Preprocessing

                                                                                                            Alternative 17: 42.7% accurate, 8.2× speedup?

                                                                                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -3.8 \cdot 10^{-14}:\\ \;\;\;\;\frac{b \cdot \left(b \cdot \left(x \cdot 0.5\right)\right)}{y \cdot a}\\ \mathbf{elif}\;b \leq 6.8 \cdot 10^{+19}:\\ \;\;\;\;\frac{\frac{x}{a}}{\mathsf{fma}\left(y, b, y\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \mathsf{fma}\left(y, b, y\right)}\\ \end{array} \end{array} \]
                                                                                                            (FPCore (x y z t a b)
                                                                                                             :precision binary64
                                                                                                             (if (<= b -3.8e-14)
                                                                                                               (/ (* b (* b (* x 0.5))) (* y a))
                                                                                                               (if (<= b 6.8e+19) (/ (/ x a) (fma y b y)) (/ x (* a (fma y b y))))))
                                                                                                            double code(double x, double y, double z, double t, double a, double b) {
                                                                                                            	double tmp;
                                                                                                            	if (b <= -3.8e-14) {
                                                                                                            		tmp = (b * (b * (x * 0.5))) / (y * a);
                                                                                                            	} else if (b <= 6.8e+19) {
                                                                                                            		tmp = (x / a) / fma(y, b, y);
                                                                                                            	} else {
                                                                                                            		tmp = x / (a * fma(y, b, y));
                                                                                                            	}
                                                                                                            	return tmp;
                                                                                                            }
                                                                                                            
                                                                                                            function code(x, y, z, t, a, b)
                                                                                                            	tmp = 0.0
                                                                                                            	if (b <= -3.8e-14)
                                                                                                            		tmp = Float64(Float64(b * Float64(b * Float64(x * 0.5))) / Float64(y * a));
                                                                                                            	elseif (b <= 6.8e+19)
                                                                                                            		tmp = Float64(Float64(x / a) / fma(y, b, y));
                                                                                                            	else
                                                                                                            		tmp = Float64(x / Float64(a * fma(y, b, y)));
                                                                                                            	end
                                                                                                            	return tmp
                                                                                                            end
                                                                                                            
                                                                                                            code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.8e-14], N[(N[(b * N[(b * N[(x * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.8e+19], N[(N[(x / a), $MachinePrecision] / N[(y * b + y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                                                                                                            
                                                                                                            \begin{array}{l}
                                                                                                            
                                                                                                            \\
                                                                                                            \begin{array}{l}
                                                                                                            \mathbf{if}\;b \leq -3.8 \cdot 10^{-14}:\\
                                                                                                            \;\;\;\;\frac{b \cdot \left(b \cdot \left(x \cdot 0.5\right)\right)}{y \cdot a}\\
                                                                                                            
                                                                                                            \mathbf{elif}\;b \leq 6.8 \cdot 10^{+19}:\\
                                                                                                            \;\;\;\;\frac{\frac{x}{a}}{\mathsf{fma}\left(y, b, y\right)}\\
                                                                                                            
                                                                                                            \mathbf{else}:\\
                                                                                                            \;\;\;\;\frac{x}{a \cdot \mathsf{fma}\left(y, b, y\right)}\\
                                                                                                            
                                                                                                            
                                                                                                            \end{array}
                                                                                                            \end{array}
                                                                                                            
                                                                                                            Derivation
                                                                                                            1. Split input into 3 regimes
                                                                                                            2. if b < -3.8000000000000002e-14

                                                                                                              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

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

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

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

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

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

                                                                                                                  \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                                                                                                6. lower-*.f64N/A

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

                                                                                                                  \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                8. lower-pow.f64N/A

                                                                                                                  \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                9. rem-exp-logN/A

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

                                                                                                                  \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                11. metadata-evalN/A

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

                                                                                                                  \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                13. lower-*.f64N/A

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

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

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

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

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

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

                                                                                                                    \[\leadsto \mathsf{fma}\left(b, b \cdot \left(0.5 \cdot \frac{x}{a \cdot y}\right) - \color{blue}{\frac{x}{a \cdot y}}, \frac{x}{a \cdot y}\right) \]
                                                                                                                  2. Taylor expanded in b around inf

                                                                                                                    \[\leadsto \frac{1}{2} \cdot \frac{{b}^{2} \cdot x}{a \cdot \color{blue}{y}} \]
                                                                                                                  3. Step-by-step derivation
                                                                                                                    1. Applied rewrites65.5%

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

                                                                                                                    if -3.8000000000000002e-14 < b < 6.8e19

                                                                                                                    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

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

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

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

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

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

                                                                                                                        \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                                                                                                      6. lower-*.f64N/A

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

                                                                                                                        \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                      8. lower-pow.f64N/A

                                                                                                                        \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                      9. rem-exp-logN/A

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

                                                                                                                        \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                      11. metadata-evalN/A

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

                                                                                                                        \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                      13. lower-*.f64N/A

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

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

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

                                                                                                                      \[\leadsto \frac{\frac{x}{a}}{\color{blue}{y} \cdot e^{b}} \]
                                                                                                                    7. Step-by-step derivation
                                                                                                                      1. Applied rewrites40.4%

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

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

                                                                                                                          \[\leadsto \frac{\frac{x}{a}}{\mathsf{fma}\left(y, \color{blue}{b}, y\right)} \]

                                                                                                                        if 6.8e19 < 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

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

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

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

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

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

                                                                                                                            \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                                                                                                          6. lower-*.f64N/A

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

                                                                                                                            \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                          8. lower-pow.f64N/A

                                                                                                                            \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                          9. rem-exp-logN/A

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

                                                                                                                            \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                          11. metadata-evalN/A

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

                                                                                                                            \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                          13. lower-*.f64N/A

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

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

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

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

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

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

                                                                                                                              \[\leadsto \frac{x}{a \cdot \mathsf{fma}\left(y, b, y\right)} \]
                                                                                                                          4. Recombined 3 regimes into one program.
                                                                                                                          5. Final simplification47.9%

                                                                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3.8 \cdot 10^{-14}:\\ \;\;\;\;\frac{b \cdot \left(b \cdot \left(x \cdot 0.5\right)\right)}{y \cdot a}\\ \mathbf{elif}\;b \leq 6.8 \cdot 10^{+19}:\\ \;\;\;\;\frac{\frac{x}{a}}{\mathsf{fma}\left(y, b, y\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \mathsf{fma}\left(y, b, y\right)}\\ \end{array} \]
                                                                                                                          6. Add Preprocessing

                                                                                                                          Alternative 18: 35.8% accurate, 8.2× speedup?

                                                                                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -3.7 \cdot 10^{-137}:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \mathbf{elif}\;b \leq 6.8 \cdot 10^{+19}:\\ \;\;\;\;\frac{\frac{x}{a}}{\mathsf{fma}\left(y, b, y\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \mathsf{fma}\left(y, b, y\right)}\\ \end{array} \end{array} \]
                                                                                                                          (FPCore (x y z t a b)
                                                                                                                           :precision binary64
                                                                                                                           (if (<= b -3.7e-137)
                                                                                                                             (/ x (* y a))
                                                                                                                             (if (<= b 6.8e+19) (/ (/ x a) (fma y b y)) (/ x (* a (fma y b y))))))
                                                                                                                          double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                          	double tmp;
                                                                                                                          	if (b <= -3.7e-137) {
                                                                                                                          		tmp = x / (y * a);
                                                                                                                          	} else if (b <= 6.8e+19) {
                                                                                                                          		tmp = (x / a) / fma(y, b, y);
                                                                                                                          	} else {
                                                                                                                          		tmp = x / (a * fma(y, b, y));
                                                                                                                          	}
                                                                                                                          	return tmp;
                                                                                                                          }
                                                                                                                          
                                                                                                                          function code(x, y, z, t, a, b)
                                                                                                                          	tmp = 0.0
                                                                                                                          	if (b <= -3.7e-137)
                                                                                                                          		tmp = Float64(x / Float64(y * a));
                                                                                                                          	elseif (b <= 6.8e+19)
                                                                                                                          		tmp = Float64(Float64(x / a) / fma(y, b, y));
                                                                                                                          	else
                                                                                                                          		tmp = Float64(x / Float64(a * fma(y, b, y)));
                                                                                                                          	end
                                                                                                                          	return tmp
                                                                                                                          end
                                                                                                                          
                                                                                                                          code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.7e-137], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.8e+19], N[(N[(x / a), $MachinePrecision] / N[(y * b + y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                                                                                                                          
                                                                                                                          \begin{array}{l}
                                                                                                                          
                                                                                                                          \\
                                                                                                                          \begin{array}{l}
                                                                                                                          \mathbf{if}\;b \leq -3.7 \cdot 10^{-137}:\\
                                                                                                                          \;\;\;\;\frac{x}{y \cdot a}\\
                                                                                                                          
                                                                                                                          \mathbf{elif}\;b \leq 6.8 \cdot 10^{+19}:\\
                                                                                                                          \;\;\;\;\frac{\frac{x}{a}}{\mathsf{fma}\left(y, b, y\right)}\\
                                                                                                                          
                                                                                                                          \mathbf{else}:\\
                                                                                                                          \;\;\;\;\frac{x}{a \cdot \mathsf{fma}\left(y, b, y\right)}\\
                                                                                                                          
                                                                                                                          
                                                                                                                          \end{array}
                                                                                                                          \end{array}
                                                                                                                          
                                                                                                                          Derivation
                                                                                                                          1. Split input into 3 regimes
                                                                                                                          2. if b < -3.7e-137

                                                                                                                            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

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

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

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

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

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

                                                                                                                                \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                                                                                                              6. lower-*.f64N/A

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

                                                                                                                                \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                              8. lower-pow.f64N/A

                                                                                                                                \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                              9. rem-exp-logN/A

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

                                                                                                                                \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                              11. metadata-evalN/A

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

                                                                                                                                \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                              13. lower-*.f64N/A

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

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

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

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

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

                                                                                                                                \[\leadsto \frac{x}{a \cdot y} \]
                                                                                                                              3. Step-by-step derivation
                                                                                                                                1. Applied rewrites34.2%

                                                                                                                                  \[\leadsto \frac{x}{a \cdot y} \]

                                                                                                                                if -3.7e-137 < b < 6.8e19

                                                                                                                                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

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

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

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

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

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

                                                                                                                                    \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                                                                                                                  6. lower-*.f64N/A

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

                                                                                                                                    \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                                  8. lower-pow.f64N/A

                                                                                                                                    \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                                  9. rem-exp-logN/A

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

                                                                                                                                    \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                                  11. metadata-evalN/A

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

                                                                                                                                    \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                                  13. lower-*.f64N/A

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

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

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

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

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

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

                                                                                                                                      \[\leadsto \frac{\frac{x}{a}}{\mathsf{fma}\left(y, \color{blue}{b}, y\right)} \]

                                                                                                                                    if 6.8e19 < 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

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

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

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

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

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

                                                                                                                                        \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                                                                                                                      6. lower-*.f64N/A

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

                                                                                                                                        \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                                      8. lower-pow.f64N/A

                                                                                                                                        \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                                      9. rem-exp-logN/A

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

                                                                                                                                        \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                                      11. metadata-evalN/A

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

                                                                                                                                        \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                                      13. lower-*.f64N/A

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

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

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

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

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

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

                                                                                                                                          \[\leadsto \frac{x}{a \cdot \mathsf{fma}\left(y, b, y\right)} \]
                                                                                                                                      4. Recombined 3 regimes into one program.
                                                                                                                                      5. Final simplification39.3%

                                                                                                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3.7 \cdot 10^{-137}:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \mathbf{elif}\;b \leq 6.8 \cdot 10^{+19}:\\ \;\;\;\;\frac{\frac{x}{a}}{\mathsf{fma}\left(y, b, y\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a \cdot \mathsf{fma}\left(y, b, y\right)}\\ \end{array} \]
                                                                                                                                      6. Add Preprocessing

                                                                                                                                      Alternative 19: 30.7% accurate, 19.8× 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 99.0%

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

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

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

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

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

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

                                                                                                                                          \[\leadsto \color{blue}{\frac{e^{\log a \cdot \left(t - 1\right)} \cdot x}{y \cdot e^{b}}} \]
                                                                                                                                        6. lower-*.f64N/A

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

                                                                                                                                          \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                                        8. lower-pow.f64N/A

                                                                                                                                          \[\leadsto \frac{\color{blue}{{\left(e^{\log a}\right)}^{\left(t - 1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                                        9. rem-exp-logN/A

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

                                                                                                                                          \[\leadsto \frac{{a}^{\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                                        11. metadata-evalN/A

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

                                                                                                                                          \[\leadsto \frac{{a}^{\color{blue}{\left(t + -1\right)}} \cdot x}{y \cdot e^{b}} \]
                                                                                                                                        13. lower-*.f64N/A

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

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

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

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

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

                                                                                                                                          \[\leadsto \frac{x}{a \cdot y} \]
                                                                                                                                        3. Step-by-step derivation
                                                                                                                                          1. Applied rewrites31.8%

                                                                                                                                            \[\leadsto \frac{x}{a \cdot y} \]
                                                                                                                                          2. Final simplification31.8%

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

                                                                                                                                          Developer Target 1: 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 2024220 
                                                                                                                                          (FPCore (x y z t a b)
                                                                                                                                            :name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
                                                                                                                                            :precision binary64
                                                                                                                                          
                                                                                                                                            :alt
                                                                                                                                            (! :herbie-platform default (if (< t -8845848504127471/10000000000000000) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))) (if (< t 8520312288374073/10000000000) (/ (* (/ x y) (pow a (- t 1))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))))))
                                                                                                                                          
                                                                                                                                            (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))