Numeric.SpecFunctions:incompleteBetaApprox from math-functions-0.1.5.2, B

Percentage Accurate: 96.4% → 96.4%
Time: 8.7s
Alternatives: 7
Speedup: 1.0×

Specification

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

\\
x \cdot e^{y \cdot \left(\log z - t\right) + a \cdot \left(\log \left(1 - z\right) - b\right)}
\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 7 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: 96.4% accurate, 1.0× speedup?

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

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

Alternative 1: 96.4% accurate, 1.0× speedup?

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

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

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

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

Alternative 2: 86.7% accurate, 1.4× speedup?

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

\\
\begin{array}{l}
t_1 := {\left(\frac{z}{e^{t}}\right)}^{y} \cdot x\\
\mathbf{if}\;y \leq -3 \cdot 10^{-101}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq 1.95 \cdot 10^{-28}:\\
\;\;\;\;e^{\left(\left(-z\right) - b\right) \cdot a} \cdot x\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -3.0000000000000003e-101 or 1.94999999999999999e-28 < y

    1. Initial program 99.4%

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

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

        \[\leadsto x \cdot e^{\color{blue}{\left(\log z - t\right) \cdot y}} \]
      2. exp-prodN/A

        \[\leadsto x \cdot \color{blue}{{\left(e^{\log z - t}\right)}^{y}} \]
      3. lower-pow.f64N/A

        \[\leadsto x \cdot \color{blue}{{\left(e^{\log z - t}\right)}^{y}} \]
      4. exp-diffN/A

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

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

        \[\leadsto x \cdot {\color{blue}{\left(\frac{z}{e^{t}}\right)}}^{y} \]
      7. lower-exp.f6487.0

        \[\leadsto x \cdot {\left(\frac{z}{\color{blue}{e^{t}}}\right)}^{y} \]
    5. Applied rewrites87.0%

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

    if -3.0000000000000003e-101 < y < 1.94999999999999999e-28

    1. Initial program 93.2%

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

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

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

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

        \[\leadsto x \cdot e^{\color{blue}{\left(\log \left(1 - z\right) - b\right)} \cdot a} \]
      4. sub-negN/A

        \[\leadsto x \cdot e^{\left(\log \color{blue}{\left(1 + \left(\mathsf{neg}\left(z\right)\right)\right)} - b\right) \cdot a} \]
      5. lower-log1p.f64N/A

        \[\leadsto x \cdot e^{\left(\color{blue}{\mathsf{log1p}\left(\mathsf{neg}\left(z\right)\right)} - b\right) \cdot a} \]
      6. lower-neg.f6490.1

        \[\leadsto x \cdot e^{\left(\mathsf{log1p}\left(\color{blue}{-z}\right) - b\right) \cdot a} \]
    5. Applied rewrites90.1%

      \[\leadsto x \cdot e^{\color{blue}{\left(\mathsf{log1p}\left(-z\right) - b\right) \cdot a}} \]
    6. Taylor expanded in z around 0

      \[\leadsto x \cdot e^{\left(-1 \cdot z - b\right) \cdot a} \]
    7. Step-by-step derivation
      1. Applied rewrites90.1%

        \[\leadsto x \cdot e^{\left(\left(-z\right) - b\right) \cdot a} \]
    8. Recombined 2 regimes into one program.
    9. Final simplification88.2%

      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3 \cdot 10^{-101}:\\ \;\;\;\;{\left(\frac{z}{e^{t}}\right)}^{y} \cdot x\\ \mathbf{elif}\;y \leq 1.95 \cdot 10^{-28}:\\ \;\;\;\;e^{\left(\left(-z\right) - b\right) \cdot a} \cdot x\\ \mathbf{else}:\\ \;\;\;\;{\left(\frac{z}{e^{t}}\right)}^{y} \cdot x\\ \end{array} \]
    10. Add Preprocessing

    Alternative 3: 72.9% accurate, 2.5× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := {z}^{y} \cdot x\\ \mathbf{if}\;y \leq -1.15 \cdot 10^{+53}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 4.9 \cdot 10^{-110}:\\ \;\;\;\;e^{\left(-b\right) \cdot a} \cdot x\\ \mathbf{elif}\;y \leq 6.3 \cdot 10^{+60}:\\ \;\;\;\;e^{\left(-t\right) \cdot y} \cdot x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t a b)
     :precision binary64
     (let* ((t_1 (* (pow z y) x)))
       (if (<= y -1.15e+53)
         t_1
         (if (<= y 4.9e-110)
           (* (exp (* (- b) a)) x)
           (if (<= y 6.3e+60) (* (exp (* (- t) y)) x) t_1)))))
    double code(double x, double y, double z, double t, double a, double b) {
    	double t_1 = pow(z, y) * x;
    	double tmp;
    	if (y <= -1.15e+53) {
    		tmp = t_1;
    	} else if (y <= 4.9e-110) {
    		tmp = exp((-b * a)) * x;
    	} else if (y <= 6.3e+60) {
    		tmp = exp((-t * y)) * x;
    	} 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 = (z ** y) * x
        if (y <= (-1.15d+53)) then
            tmp = t_1
        else if (y <= 4.9d-110) then
            tmp = exp((-b * a)) * x
        else if (y <= 6.3d+60) then
            tmp = exp((-t * y)) * x
        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 = Math.pow(z, y) * x;
    	double tmp;
    	if (y <= -1.15e+53) {
    		tmp = t_1;
    	} else if (y <= 4.9e-110) {
    		tmp = Math.exp((-b * a)) * x;
    	} else if (y <= 6.3e+60) {
    		tmp = Math.exp((-t * y)) * x;
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b):
    	t_1 = math.pow(z, y) * x
    	tmp = 0
    	if y <= -1.15e+53:
    		tmp = t_1
    	elif y <= 4.9e-110:
    		tmp = math.exp((-b * a)) * x
    	elif y <= 6.3e+60:
    		tmp = math.exp((-t * y)) * x
    	else:
    		tmp = t_1
    	return tmp
    
    function code(x, y, z, t, a, b)
    	t_1 = Float64((z ^ y) * x)
    	tmp = 0.0
    	if (y <= -1.15e+53)
    		tmp = t_1;
    	elseif (y <= 4.9e-110)
    		tmp = Float64(exp(Float64(Float64(-b) * a)) * x);
    	elseif (y <= 6.3e+60)
    		tmp = Float64(exp(Float64(Float64(-t) * y)) * x);
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a, b)
    	t_1 = (z ^ y) * x;
    	tmp = 0.0;
    	if (y <= -1.15e+53)
    		tmp = t_1;
    	elseif (y <= 4.9e-110)
    		tmp = exp((-b * a)) * x;
    	elseif (y <= 6.3e+60)
    		tmp = exp((-t * y)) * x;
    	else
    		tmp = t_1;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[Power[z, y], $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[y, -1.15e+53], t$95$1, If[LessEqual[y, 4.9e-110], N[(N[Exp[N[((-b) * a), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y, 6.3e+60], N[(N[Exp[N[((-t) * y), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision], t$95$1]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := {z}^{y} \cdot x\\
    \mathbf{if}\;y \leq -1.15 \cdot 10^{+53}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;y \leq 4.9 \cdot 10^{-110}:\\
    \;\;\;\;e^{\left(-b\right) \cdot a} \cdot x\\
    
    \mathbf{elif}\;y \leq 6.3 \cdot 10^{+60}:\\
    \;\;\;\;e^{\left(-t\right) \cdot y} \cdot x\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if y < -1.1500000000000001e53 or 6.3000000000000003e60 < y

      1. Initial program 99.1%

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

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

          \[\leadsto x \cdot e^{\color{blue}{\left(\log z - t\right) \cdot y}} \]
        2. exp-prodN/A

          \[\leadsto x \cdot \color{blue}{{\left(e^{\log z - t}\right)}^{y}} \]
        3. lower-pow.f64N/A

          \[\leadsto x \cdot \color{blue}{{\left(e^{\log z - t}\right)}^{y}} \]
        4. exp-diffN/A

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

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

          \[\leadsto x \cdot {\color{blue}{\left(\frac{z}{e^{t}}\right)}}^{y} \]
        7. lower-exp.f6489.5

          \[\leadsto x \cdot {\left(\frac{z}{\color{blue}{e^{t}}}\right)}^{y} \]
      5. Applied rewrites89.5%

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

        \[\leadsto x \cdot {z}^{\color{blue}{y}} \]
      7. Step-by-step derivation
        1. Applied rewrites77.4%

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

        if -1.1500000000000001e53 < y < 4.8999999999999997e-110

        1. Initial program 95.8%

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

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

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

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

            \[\leadsto x \cdot e^{\color{blue}{\left(\log \left(1 - z\right) - b\right)} \cdot a} \]
          4. sub-negN/A

            \[\leadsto x \cdot e^{\left(\log \color{blue}{\left(1 + \left(\mathsf{neg}\left(z\right)\right)\right)} - b\right) \cdot a} \]
          5. lower-log1p.f64N/A

            \[\leadsto x \cdot e^{\left(\color{blue}{\mathsf{log1p}\left(\mathsf{neg}\left(z\right)\right)} - b\right) \cdot a} \]
          6. lower-neg.f6484.4

            \[\leadsto x \cdot e^{\left(\mathsf{log1p}\left(\color{blue}{-z}\right) - b\right) \cdot a} \]
        5. Applied rewrites84.4%

          \[\leadsto x \cdot e^{\color{blue}{\left(\mathsf{log1p}\left(-z\right) - b\right) \cdot a}} \]
        6. Taylor expanded in z around 0

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

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

          if 4.8999999999999997e-110 < y < 6.3000000000000003e60

          1. Initial program 93.6%

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

            \[\leadsto x \cdot e^{\color{blue}{-1 \cdot \left(t \cdot y\right)}} \]
          4. Step-by-step derivation
            1. associate-*r*N/A

              \[\leadsto x \cdot e^{\color{blue}{\left(-1 \cdot t\right) \cdot y}} \]
            2. mul-1-negN/A

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

              \[\leadsto x \cdot e^{\color{blue}{\left(\mathsf{neg}\left(t\right)\right) \cdot y}} \]
            4. lower-neg.f6459.9

              \[\leadsto x \cdot e^{\color{blue}{\left(-t\right)} \cdot y} \]
          5. Applied rewrites59.9%

            \[\leadsto x \cdot e^{\color{blue}{\left(-t\right) \cdot y}} \]
        8. Recombined 3 regimes into one program.
        9. Final simplification76.2%

          \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.15 \cdot 10^{+53}:\\ \;\;\;\;{z}^{y} \cdot x\\ \mathbf{elif}\;y \leq 4.9 \cdot 10^{-110}:\\ \;\;\;\;e^{\left(-b\right) \cdot a} \cdot x\\ \mathbf{elif}\;y \leq 6.3 \cdot 10^{+60}:\\ \;\;\;\;e^{\left(-t\right) \cdot y} \cdot x\\ \mathbf{else}:\\ \;\;\;\;{z}^{y} \cdot x\\ \end{array} \]
        10. Add Preprocessing

        Alternative 4: 76.3% accurate, 2.6× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := {z}^{y} \cdot x\\ \mathbf{if}\;y \leq -1.15 \cdot 10^{+53}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 1.26 \cdot 10^{+33}:\\ \;\;\;\;e^{\left(\left(-z\right) - b\right) \cdot a} \cdot x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t a b)
         :precision binary64
         (let* ((t_1 (* (pow z y) x)))
           (if (<= y -1.15e+53)
             t_1
             (if (<= y 1.26e+33) (* (exp (* (- (- z) b) a)) x) t_1))))
        double code(double x, double y, double z, double t, double a, double b) {
        	double t_1 = pow(z, y) * x;
        	double tmp;
        	if (y <= -1.15e+53) {
        		tmp = t_1;
        	} else if (y <= 1.26e+33) {
        		tmp = exp(((-z - b) * a)) * x;
        	} 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 = (z ** y) * x
            if (y <= (-1.15d+53)) then
                tmp = t_1
            else if (y <= 1.26d+33) then
                tmp = exp(((-z - b) * a)) * x
            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 = Math.pow(z, y) * x;
        	double tmp;
        	if (y <= -1.15e+53) {
        		tmp = t_1;
        	} else if (y <= 1.26e+33) {
        		tmp = Math.exp(((-z - b) * a)) * x;
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        def code(x, y, z, t, a, b):
        	t_1 = math.pow(z, y) * x
        	tmp = 0
        	if y <= -1.15e+53:
        		tmp = t_1
        	elif y <= 1.26e+33:
        		tmp = math.exp(((-z - b) * a)) * x
        	else:
        		tmp = t_1
        	return tmp
        
        function code(x, y, z, t, a, b)
        	t_1 = Float64((z ^ y) * x)
        	tmp = 0.0
        	if (y <= -1.15e+53)
        		tmp = t_1;
        	elseif (y <= 1.26e+33)
        		tmp = Float64(exp(Float64(Float64(Float64(-z) - b) * a)) * x);
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        function tmp_2 = code(x, y, z, t, a, b)
        	t_1 = (z ^ y) * x;
        	tmp = 0.0;
        	if (y <= -1.15e+53)
        		tmp = t_1;
        	elseif (y <= 1.26e+33)
        		tmp = exp(((-z - b) * a)) * x;
        	else
        		tmp = t_1;
        	end
        	tmp_2 = tmp;
        end
        
        code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[Power[z, y], $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[y, -1.15e+53], t$95$1, If[LessEqual[y, 1.26e+33], N[(N[Exp[N[(N[((-z) - b), $MachinePrecision] * a), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := {z}^{y} \cdot x\\
        \mathbf{if}\;y \leq -1.15 \cdot 10^{+53}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;y \leq 1.26 \cdot 10^{+33}:\\
        \;\;\;\;e^{\left(\left(-z\right) - b\right) \cdot a} \cdot x\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if y < -1.1500000000000001e53 or 1.26e33 < y

          1. Initial program 99.1%

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

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

              \[\leadsto x \cdot e^{\color{blue}{\left(\log z - t\right) \cdot y}} \]
            2. exp-prodN/A

              \[\leadsto x \cdot \color{blue}{{\left(e^{\log z - t}\right)}^{y}} \]
            3. lower-pow.f64N/A

              \[\leadsto x \cdot \color{blue}{{\left(e^{\log z - t}\right)}^{y}} \]
            4. exp-diffN/A

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

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

              \[\leadsto x \cdot {\color{blue}{\left(\frac{z}{e^{t}}\right)}}^{y} \]
            7. lower-exp.f6489.8

              \[\leadsto x \cdot {\left(\frac{z}{\color{blue}{e^{t}}}\right)}^{y} \]
          5. Applied rewrites89.8%

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

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

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

            if -1.1500000000000001e53 < y < 1.26e33

            1. Initial program 95.3%

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

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

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

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

                \[\leadsto x \cdot e^{\color{blue}{\left(\log \left(1 - z\right) - b\right)} \cdot a} \]
              4. sub-negN/A

                \[\leadsto x \cdot e^{\left(\log \color{blue}{\left(1 + \left(\mathsf{neg}\left(z\right)\right)\right)} - b\right) \cdot a} \]
              5. lower-log1p.f64N/A

                \[\leadsto x \cdot e^{\left(\color{blue}{\mathsf{log1p}\left(\mathsf{neg}\left(z\right)\right)} - b\right) \cdot a} \]
              6. lower-neg.f6480.1

                \[\leadsto x \cdot e^{\left(\mathsf{log1p}\left(\color{blue}{-z}\right) - b\right) \cdot a} \]
            5. Applied rewrites80.1%

              \[\leadsto x \cdot e^{\color{blue}{\left(\mathsf{log1p}\left(-z\right) - b\right) \cdot a}} \]
            6. Taylor expanded in z around 0

              \[\leadsto x \cdot e^{\left(-1 \cdot z - b\right) \cdot a} \]
            7. Step-by-step derivation
              1. Applied rewrites80.1%

                \[\leadsto x \cdot e^{\left(\left(-z\right) - b\right) \cdot a} \]
            8. Recombined 2 regimes into one program.
            9. Final simplification78.3%

              \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.15 \cdot 10^{+53}:\\ \;\;\;\;{z}^{y} \cdot x\\ \mathbf{elif}\;y \leq 1.26 \cdot 10^{+33}:\\ \;\;\;\;e^{\left(\left(-z\right) - b\right) \cdot a} \cdot x\\ \mathbf{else}:\\ \;\;\;\;{z}^{y} \cdot x\\ \end{array} \]
            10. Add Preprocessing

            Alternative 5: 72.9% accurate, 2.6× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := {z}^{y} \cdot x\\ \mathbf{if}\;y \leq -1.15 \cdot 10^{+53}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 1.45 \cdot 10^{-29}:\\ \;\;\;\;e^{\left(-b\right) \cdot a} \cdot x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (let* ((t_1 (* (pow z y) x)))
               (if (<= y -1.15e+53) t_1 (if (<= y 1.45e-29) (* (exp (* (- b) a)) x) t_1))))
            double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = pow(z, y) * x;
            	double tmp;
            	if (y <= -1.15e+53) {
            		tmp = t_1;
            	} else if (y <= 1.45e-29) {
            		tmp = exp((-b * a)) * x;
            	} 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 = (z ** y) * x
                if (y <= (-1.15d+53)) then
                    tmp = t_1
                else if (y <= 1.45d-29) then
                    tmp = exp((-b * a)) * x
                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 = Math.pow(z, y) * x;
            	double tmp;
            	if (y <= -1.15e+53) {
            		tmp = t_1;
            	} else if (y <= 1.45e-29) {
            		tmp = Math.exp((-b * a)) * x;
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t, a, b):
            	t_1 = math.pow(z, y) * x
            	tmp = 0
            	if y <= -1.15e+53:
            		tmp = t_1
            	elif y <= 1.45e-29:
            		tmp = math.exp((-b * a)) * x
            	else:
            		tmp = t_1
            	return tmp
            
            function code(x, y, z, t, a, b)
            	t_1 = Float64((z ^ y) * x)
            	tmp = 0.0
            	if (y <= -1.15e+53)
            		tmp = t_1;
            	elseif (y <= 1.45e-29)
            		tmp = Float64(exp(Float64(Float64(-b) * a)) * x);
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t, a, b)
            	t_1 = (z ^ y) * x;
            	tmp = 0.0;
            	if (y <= -1.15e+53)
            		tmp = t_1;
            	elseif (y <= 1.45e-29)
            		tmp = exp((-b * a)) * x;
            	else
            		tmp = t_1;
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[Power[z, y], $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[y, -1.15e+53], t$95$1, If[LessEqual[y, 1.45e-29], N[(N[Exp[N[((-b) * a), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := {z}^{y} \cdot x\\
            \mathbf{if}\;y \leq -1.15 \cdot 10^{+53}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;y \leq 1.45 \cdot 10^{-29}:\\
            \;\;\;\;e^{\left(-b\right) \cdot a} \cdot x\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if y < -1.1500000000000001e53 or 1.45000000000000012e-29 < y

              1. Initial program 98.5%

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

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

                  \[\leadsto x \cdot e^{\color{blue}{\left(\log z - t\right) \cdot y}} \]
                2. exp-prodN/A

                  \[\leadsto x \cdot \color{blue}{{\left(e^{\log z - t}\right)}^{y}} \]
                3. lower-pow.f64N/A

                  \[\leadsto x \cdot \color{blue}{{\left(e^{\log z - t}\right)}^{y}} \]
                4. exp-diffN/A

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

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

                  \[\leadsto x \cdot {\color{blue}{\left(\frac{z}{e^{t}}\right)}}^{y} \]
                7. lower-exp.f6487.9

                  \[\leadsto x \cdot {\left(\frac{z}{\color{blue}{e^{t}}}\right)}^{y} \]
              5. Applied rewrites87.9%

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

                \[\leadsto x \cdot {z}^{\color{blue}{y}} \]
              7. Step-by-step derivation
                1. Applied rewrites72.0%

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

                if -1.1500000000000001e53 < y < 1.45000000000000012e-29

                1. Initial program 95.5%

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

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

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

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

                    \[\leadsto x \cdot e^{\color{blue}{\left(\log \left(1 - z\right) - b\right)} \cdot a} \]
                  4. sub-negN/A

                    \[\leadsto x \cdot e^{\left(\log \color{blue}{\left(1 + \left(\mathsf{neg}\left(z\right)\right)\right)} - b\right) \cdot a} \]
                  5. lower-log1p.f64N/A

                    \[\leadsto x \cdot e^{\left(\color{blue}{\mathsf{log1p}\left(\mathsf{neg}\left(z\right)\right)} - b\right) \cdot a} \]
                  6. lower-neg.f6483.1

                    \[\leadsto x \cdot e^{\left(\mathsf{log1p}\left(\color{blue}{-z}\right) - b\right) \cdot a} \]
                5. Applied rewrites83.1%

                  \[\leadsto x \cdot e^{\color{blue}{\left(\mathsf{log1p}\left(-z\right) - b\right) \cdot a}} \]
                6. Taylor expanded in z around 0

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

                    \[\leadsto x \cdot e^{\left(-b\right) \cdot \color{blue}{a}} \]
                8. Recombined 2 regimes into one program.
                9. Final simplification74.5%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.15 \cdot 10^{+53}:\\ \;\;\;\;{z}^{y} \cdot x\\ \mathbf{elif}\;y \leq 1.45 \cdot 10^{-29}:\\ \;\;\;\;e^{\left(-b\right) \cdot a} \cdot x\\ \mathbf{else}:\\ \;\;\;\;{z}^{y} \cdot x\\ \end{array} \]
                10. Add Preprocessing

                Alternative 6: 53.0% accurate, 3.1× speedup?

                \[\begin{array}{l} \\ {z}^{y} \cdot x \end{array} \]
                (FPCore (x y z t a b) :precision binary64 (* (pow z y) x))
                double code(double x, double y, double z, double t, double a, double b) {
                	return pow(z, y) * x;
                }
                
                real(8) function code(x, y, z, t, a, b)
                    real(8), intent (in) :: x
                    real(8), intent (in) :: y
                    real(8), intent (in) :: z
                    real(8), intent (in) :: t
                    real(8), intent (in) :: a
                    real(8), intent (in) :: b
                    code = (z ** y) * x
                end function
                
                public static double code(double x, double y, double z, double t, double a, double b) {
                	return Math.pow(z, y) * x;
                }
                
                def code(x, y, z, t, a, b):
                	return math.pow(z, y) * x
                
                function code(x, y, z, t, a, b)
                	return Float64((z ^ y) * x)
                end
                
                function tmp = code(x, y, z, t, a, b)
                	tmp = (z ^ y) * x;
                end
                
                code[x_, y_, z_, t_, a_, b_] := N[(N[Power[z, y], $MachinePrecision] * x), $MachinePrecision]
                
                \begin{array}{l}
                
                \\
                {z}^{y} \cdot x
                \end{array}
                
                Derivation
                1. Initial program 97.0%

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

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

                    \[\leadsto x \cdot e^{\color{blue}{\left(\log z - t\right) \cdot y}} \]
                  2. exp-prodN/A

                    \[\leadsto x \cdot \color{blue}{{\left(e^{\log z - t}\right)}^{y}} \]
                  3. lower-pow.f64N/A

                    \[\leadsto x \cdot \color{blue}{{\left(e^{\log z - t}\right)}^{y}} \]
                  4. exp-diffN/A

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

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

                    \[\leadsto x \cdot {\color{blue}{\left(\frac{z}{e^{t}}\right)}}^{y} \]
                  7. lower-exp.f6470.2

                    \[\leadsto x \cdot {\left(\frac{z}{\color{blue}{e^{t}}}\right)}^{y} \]
                5. Applied rewrites70.2%

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

                  \[\leadsto x \cdot {z}^{\color{blue}{y}} \]
                7. Step-by-step derivation
                  1. Applied rewrites53.3%

                    \[\leadsto x \cdot {z}^{\color{blue}{y}} \]
                  2. Final simplification53.3%

                    \[\leadsto {z}^{y} \cdot x \]
                  3. Add Preprocessing

                  Alternative 7: 19.9% accurate, 54.7× speedup?

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

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

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

                      \[\leadsto x \cdot e^{\color{blue}{\left(\log z - t\right) \cdot y}} \]
                    2. exp-prodN/A

                      \[\leadsto x \cdot \color{blue}{{\left(e^{\log z - t}\right)}^{y}} \]
                    3. lower-pow.f64N/A

                      \[\leadsto x \cdot \color{blue}{{\left(e^{\log z - t}\right)}^{y}} \]
                    4. exp-diffN/A

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

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

                      \[\leadsto x \cdot {\color{blue}{\left(\frac{z}{e^{t}}\right)}}^{y} \]
                    7. lower-exp.f6470.2

                      \[\leadsto x \cdot {\left(\frac{z}{\color{blue}{e^{t}}}\right)}^{y} \]
                  5. Applied rewrites70.2%

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

                    \[\leadsto x \cdot 1 \]
                  7. Step-by-step derivation
                    1. Applied rewrites16.6%

                      \[\leadsto x \cdot 1 \]
                    2. Final simplification16.6%

                      \[\leadsto 1 \cdot x \]
                    3. Add Preprocessing

                    Reproduce

                    ?
                    herbie shell --seed 2024331 
                    (FPCore (x y z t a b)
                      :name "Numeric.SpecFunctions:incompleteBetaApprox from math-functions-0.1.5.2, B"
                      :precision binary64
                      (* x (exp (+ (* y (- (log z) t)) (* a (- (log (- 1.0 z)) b))))))