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

Percentage Accurate: 96.7% → 99.5%
Time: 10.4s
Alternatives: 6
Speedup: 1.5×

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))));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
    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 6 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.7% 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))));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
    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: 99.5% accurate, 1.5× speedup?

\[\begin{array}{l} \\ x \cdot e^{\mathsf{fma}\left(-a, z + b, \left(\log z - t\right) \cdot y\right)} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (* x (exp (fma (- a) (+ z b) (* (- (log z) t) y)))))
double code(double x, double y, double z, double t, double a, double b) {
	return x * exp(fma(-a, (z + b), ((log(z) - t) * y)));
}
function code(x, y, z, t, a, b)
	return Float64(x * exp(fma(Float64(-a), Float64(z + b), Float64(Float64(log(z) - t) * y))))
end
code[x_, y_, z_, t_, a_, b_] := N[(x * N[Exp[N[((-a) * N[(z + b), $MachinePrecision] + N[(N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x \cdot e^{\mathsf{fma}\left(-a, z + b, \left(\log z - t\right) \cdot y\right)}
\end{array}
Derivation
  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 z around 0

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

      \[\leadsto x \cdot e^{\color{blue}{\mathsf{fma}\left(-a, z + b, \left(\log z - t\right) \cdot y\right)}} \]
    2. Add Preprocessing

    Alternative 2: 84.3% accurate, 1.5× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.7 \cdot 10^{-36} \lor \neg \left(y \leq 85000000\right):\\ \;\;\;\;x \cdot e^{\left(\log z - t\right) \cdot y}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{1}{e^{a \cdot b}}\\ \end{array} \end{array} \]
    (FPCore (x y z t a b)
     :precision binary64
     (if (or (<= y -1.7e-36) (not (<= y 85000000.0)))
       (* x (exp (* (- (log z) t) y)))
       (* x (/ 1.0 (exp (* a b))))))
    double code(double x, double y, double z, double t, double a, double b) {
    	double tmp;
    	if ((y <= -1.7e-36) || !(y <= 85000000.0)) {
    		tmp = x * exp(((log(z) - t) * y));
    	} else {
    		tmp = x * (1.0 / exp((a * b)));
    	}
    	return tmp;
    }
    
    module fmin_fmax_functions
        implicit none
        private
        public fmax
        public fmin
    
        interface fmax
            module procedure fmax88
            module procedure fmax44
            module procedure fmax84
            module procedure fmax48
        end interface
        interface fmin
            module procedure fmin88
            module procedure fmin44
            module procedure fmin84
            module procedure fmin48
        end interface
    contains
        real(8) function fmax88(x, y) result (res)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
        end function
        real(4) function fmax44(x, y) result (res)
            real(4), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
        end function
        real(8) function fmax84(x, y) result(res)
            real(8), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
        end function
        real(8) function fmax48(x, y) result(res)
            real(4), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
        end function
        real(8) function fmin88(x, y) result (res)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
        end function
        real(4) function fmin44(x, y) result (res)
            real(4), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
        end function
        real(8) function fmin84(x, y) result(res)
            real(8), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
        end function
        real(8) function fmin48(x, y) result(res)
            real(4), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
        end function
    end module
    
    real(8) function code(x, y, z, t, a, b)
    use fmin_fmax_functions
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        real(8), intent (in) :: a
        real(8), intent (in) :: b
        real(8) :: tmp
        if ((y <= (-1.7d-36)) .or. (.not. (y <= 85000000.0d0))) then
            tmp = x * exp(((log(z) - t) * y))
        else
            tmp = x * (1.0d0 / exp((a * b)))
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t, double a, double b) {
    	double tmp;
    	if ((y <= -1.7e-36) || !(y <= 85000000.0)) {
    		tmp = x * Math.exp(((Math.log(z) - t) * y));
    	} else {
    		tmp = x * (1.0 / Math.exp((a * b)));
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b):
    	tmp = 0
    	if (y <= -1.7e-36) or not (y <= 85000000.0):
    		tmp = x * math.exp(((math.log(z) - t) * y))
    	else:
    		tmp = x * (1.0 / math.exp((a * b)))
    	return tmp
    
    function code(x, y, z, t, a, b)
    	tmp = 0.0
    	if ((y <= -1.7e-36) || !(y <= 85000000.0))
    		tmp = Float64(x * exp(Float64(Float64(log(z) - t) * y)));
    	else
    		tmp = Float64(x * Float64(1.0 / exp(Float64(a * b))));
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a, b)
    	tmp = 0.0;
    	if ((y <= -1.7e-36) || ~((y <= 85000000.0)))
    		tmp = x * exp(((log(z) - t) * y));
    	else
    		tmp = x * (1.0 / exp((a * b)));
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.7e-36], N[Not[LessEqual[y, 85000000.0]], $MachinePrecision]], N[(x * N[Exp[N[(N[(N[Log[z], $MachinePrecision] - t), $MachinePrecision] * y), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 / N[Exp[N[(a * b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;y \leq -1.7 \cdot 10^{-36} \lor \neg \left(y \leq 85000000\right):\\
    \;\;\;\;x \cdot e^{\left(\log z - t\right) \cdot y}\\
    
    \mathbf{else}:\\
    \;\;\;\;x \cdot \frac{1}{e^{a \cdot b}}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if y < -1.7000000000000001e-36 or 8.5e7 < y

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

        \[\leadsto x \cdot e^{\color{blue}{y \cdot \left(\log z - t\right)}} \]
      4. Step-by-step derivation
        1. Applied rewrites90.6%

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

        if -1.7000000000000001e-36 < y < 8.5e7

        1. Initial program 94.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 b around inf

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

            \[\leadsto x \cdot e^{\color{blue}{\left(-b\right) \cdot a}} \]
          2. Step-by-step derivation
            1. lift-exp.f64N/A

              \[\leadsto x \cdot \color{blue}{e^{\left(-b\right) \cdot a}} \]
            2. sinh-+-cosh-revN/A

              \[\leadsto x \cdot \color{blue}{\left(\cosh \left(\left(-b\right) \cdot a\right) + \sinh \left(\left(-b\right) \cdot a\right)\right)} \]
            3. flip-+N/A

              \[\leadsto x \cdot \color{blue}{\frac{\cosh \left(\left(-b\right) \cdot a\right) \cdot \cosh \left(\left(-b\right) \cdot a\right) - \sinh \left(\left(-b\right) \cdot a\right) \cdot \sinh \left(\left(-b\right) \cdot a\right)}{\cosh \left(\left(-b\right) \cdot a\right) - \sinh \left(\left(-b\right) \cdot a\right)}} \]
          3. Applied rewrites80.8%

            \[\leadsto x \cdot \color{blue}{\frac{1}{e^{-\left(-b\right) \cdot a}}} \]
          4. Taylor expanded in b around inf

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

              \[\leadsto x \cdot \frac{1}{e^{\color{blue}{a \cdot b}}} \]
          6. Recombined 2 regimes into one program.
          7. Final simplification85.6%

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

          Alternative 3: 71.7% accurate, 2.4× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -4.3 \cdot 10^{+102} \lor \neg \left(t \leq 1.05 \cdot 10^{-73}\right):\\ \;\;\;\;x \cdot e^{\left(-t\right) \cdot y}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{1}{e^{a \cdot b}}\\ \end{array} \end{array} \]
          (FPCore (x y z t a b)
           :precision binary64
           (if (or (<= t -4.3e+102) (not (<= t 1.05e-73)))
             (* x (exp (* (- t) y)))
             (* x (/ 1.0 (exp (* a b))))))
          double code(double x, double y, double z, double t, double a, double b) {
          	double tmp;
          	if ((t <= -4.3e+102) || !(t <= 1.05e-73)) {
          		tmp = x * exp((-t * y));
          	} else {
          		tmp = x * (1.0 / exp((a * b)));
          	}
          	return tmp;
          }
          
          module fmin_fmax_functions
              implicit none
              private
              public fmax
              public fmin
          
              interface fmax
                  module procedure fmax88
                  module procedure fmax44
                  module procedure fmax84
                  module procedure fmax48
              end interface
              interface fmin
                  module procedure fmin88
                  module procedure fmin44
                  module procedure fmin84
                  module procedure fmin48
              end interface
          contains
              real(8) function fmax88(x, y) result (res)
                  real(8), intent (in) :: x
                  real(8), intent (in) :: y
                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
              end function
              real(4) function fmax44(x, y) result (res)
                  real(4), intent (in) :: x
                  real(4), intent (in) :: y
                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
              end function
              real(8) function fmax84(x, y) result(res)
                  real(8), intent (in) :: x
                  real(4), intent (in) :: y
                  res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
              end function
              real(8) function fmax48(x, y) result(res)
                  real(4), intent (in) :: x
                  real(8), intent (in) :: y
                  res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
              end function
              real(8) function fmin88(x, y) result (res)
                  real(8), intent (in) :: x
                  real(8), intent (in) :: y
                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
              end function
              real(4) function fmin44(x, y) result (res)
                  real(4), intent (in) :: x
                  real(4), intent (in) :: y
                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
              end function
              real(8) function fmin84(x, y) result(res)
                  real(8), intent (in) :: x
                  real(4), intent (in) :: y
                  res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
              end function
              real(8) function fmin48(x, y) result(res)
                  real(4), intent (in) :: x
                  real(8), intent (in) :: y
                  res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
              end function
          end module
          
          real(8) function code(x, y, z, t, a, b)
          use fmin_fmax_functions
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              real(8), intent (in) :: z
              real(8), intent (in) :: t
              real(8), intent (in) :: a
              real(8), intent (in) :: b
              real(8) :: tmp
              if ((t <= (-4.3d+102)) .or. (.not. (t <= 1.05d-73))) then
                  tmp = x * exp((-t * y))
              else
                  tmp = x * (1.0d0 / exp((a * b)))
              end if
              code = tmp
          end function
          
          public static double code(double x, double y, double z, double t, double a, double b) {
          	double tmp;
          	if ((t <= -4.3e+102) || !(t <= 1.05e-73)) {
          		tmp = x * Math.exp((-t * y));
          	} else {
          		tmp = x * (1.0 / Math.exp((a * b)));
          	}
          	return tmp;
          }
          
          def code(x, y, z, t, a, b):
          	tmp = 0
          	if (t <= -4.3e+102) or not (t <= 1.05e-73):
          		tmp = x * math.exp((-t * y))
          	else:
          		tmp = x * (1.0 / math.exp((a * b)))
          	return tmp
          
          function code(x, y, z, t, a, b)
          	tmp = 0.0
          	if ((t <= -4.3e+102) || !(t <= 1.05e-73))
          		tmp = Float64(x * exp(Float64(Float64(-t) * y)));
          	else
          		tmp = Float64(x * Float64(1.0 / exp(Float64(a * b))));
          	end
          	return tmp
          end
          
          function tmp_2 = code(x, y, z, t, a, b)
          	tmp = 0.0;
          	if ((t <= -4.3e+102) || ~((t <= 1.05e-73)))
          		tmp = x * exp((-t * y));
          	else
          		tmp = x * (1.0 / exp((a * b)));
          	end
          	tmp_2 = tmp;
          end
          
          code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -4.3e+102], N[Not[LessEqual[t, 1.05e-73]], $MachinePrecision]], N[(x * N[Exp[N[((-t) * y), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 / N[Exp[N[(a * b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;t \leq -4.3 \cdot 10^{+102} \lor \neg \left(t \leq 1.05 \cdot 10^{-73}\right):\\
          \;\;\;\;x \cdot e^{\left(-t\right) \cdot y}\\
          
          \mathbf{else}:\\
          \;\;\;\;x \cdot \frac{1}{e^{a \cdot b}}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if t < -4.3000000000000001e102 or 1.0499999999999999e-73 < t

            1. Initial program 94.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 t around inf

              \[\leadsto x \cdot e^{\color{blue}{-1 \cdot \left(t \cdot y\right)}} \]
            4. Step-by-step derivation
              1. Applied rewrites78.9%

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

              if -4.3000000000000001e102 < t < 1.0499999999999999e-73

              1. Initial program 97.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 b around inf

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

                  \[\leadsto x \cdot e^{\color{blue}{\left(-b\right) \cdot a}} \]
                2. Step-by-step derivation
                  1. lift-exp.f64N/A

                    \[\leadsto x \cdot \color{blue}{e^{\left(-b\right) \cdot a}} \]
                  2. sinh-+-cosh-revN/A

                    \[\leadsto x \cdot \color{blue}{\left(\cosh \left(\left(-b\right) \cdot a\right) + \sinh \left(\left(-b\right) \cdot a\right)\right)} \]
                  3. flip-+N/A

                    \[\leadsto x \cdot \color{blue}{\frac{\cosh \left(\left(-b\right) \cdot a\right) \cdot \cosh \left(\left(-b\right) \cdot a\right) - \sinh \left(\left(-b\right) \cdot a\right) \cdot \sinh \left(\left(-b\right) \cdot a\right)}{\cosh \left(\left(-b\right) \cdot a\right) - \sinh \left(\left(-b\right) \cdot a\right)}} \]
                3. Applied rewrites73.1%

                  \[\leadsto x \cdot \color{blue}{\frac{1}{e^{-\left(-b\right) \cdot a}}} \]
                4. Taylor expanded in b around inf

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

                    \[\leadsto x \cdot \frac{1}{e^{\color{blue}{a \cdot b}}} \]
                6. Recombined 2 regimes into one program.
                7. Final simplification76.1%

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

                Alternative 4: 71.7% accurate, 2.6× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -4.3 \cdot 10^{+102} \lor \neg \left(t \leq 1.05 \cdot 10^{-73}\right):\\ \;\;\;\;x \cdot e^{\left(-t\right) \cdot y}\\ \mathbf{else}:\\ \;\;\;\;x \cdot e^{\left(-b\right) \cdot a}\\ \end{array} \end{array} \]
                (FPCore (x y z t a b)
                 :precision binary64
                 (if (or (<= t -4.3e+102) (not (<= t 1.05e-73)))
                   (* x (exp (* (- t) y)))
                   (* x (exp (* (- b) a)))))
                double code(double x, double y, double z, double t, double a, double b) {
                	double tmp;
                	if ((t <= -4.3e+102) || !(t <= 1.05e-73)) {
                		tmp = x * exp((-t * y));
                	} else {
                		tmp = x * exp((-b * a));
                	}
                	return tmp;
                }
                
                module fmin_fmax_functions
                    implicit none
                    private
                    public fmax
                    public fmin
                
                    interface fmax
                        module procedure fmax88
                        module procedure fmax44
                        module procedure fmax84
                        module procedure fmax48
                    end interface
                    interface fmin
                        module procedure fmin88
                        module procedure fmin44
                        module procedure fmin84
                        module procedure fmin48
                    end interface
                contains
                    real(8) function fmax88(x, y) result (res)
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                    end function
                    real(4) function fmax44(x, y) result (res)
                        real(4), intent (in) :: x
                        real(4), intent (in) :: y
                        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                    end function
                    real(8) function fmax84(x, y) result(res)
                        real(8), intent (in) :: x
                        real(4), intent (in) :: y
                        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                    end function
                    real(8) function fmax48(x, y) result(res)
                        real(4), intent (in) :: x
                        real(8), intent (in) :: y
                        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                    end function
                    real(8) function fmin88(x, y) result (res)
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                    end function
                    real(4) function fmin44(x, y) result (res)
                        real(4), intent (in) :: x
                        real(4), intent (in) :: y
                        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                    end function
                    real(8) function fmin84(x, y) result(res)
                        real(8), intent (in) :: x
                        real(4), intent (in) :: y
                        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                    end function
                    real(8) function fmin48(x, y) result(res)
                        real(4), intent (in) :: x
                        real(8), intent (in) :: y
                        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                    end function
                end module
                
                real(8) function code(x, y, z, t, a, b)
                use fmin_fmax_functions
                    real(8), intent (in) :: x
                    real(8), intent (in) :: y
                    real(8), intent (in) :: z
                    real(8), intent (in) :: t
                    real(8), intent (in) :: a
                    real(8), intent (in) :: b
                    real(8) :: tmp
                    if ((t <= (-4.3d+102)) .or. (.not. (t <= 1.05d-73))) then
                        tmp = x * exp((-t * y))
                    else
                        tmp = x * exp((-b * a))
                    end if
                    code = tmp
                end function
                
                public static double code(double x, double y, double z, double t, double a, double b) {
                	double tmp;
                	if ((t <= -4.3e+102) || !(t <= 1.05e-73)) {
                		tmp = x * Math.exp((-t * y));
                	} else {
                		tmp = x * Math.exp((-b * a));
                	}
                	return tmp;
                }
                
                def code(x, y, z, t, a, b):
                	tmp = 0
                	if (t <= -4.3e+102) or not (t <= 1.05e-73):
                		tmp = x * math.exp((-t * y))
                	else:
                		tmp = x * math.exp((-b * a))
                	return tmp
                
                function code(x, y, z, t, a, b)
                	tmp = 0.0
                	if ((t <= -4.3e+102) || !(t <= 1.05e-73))
                		tmp = Float64(x * exp(Float64(Float64(-t) * y)));
                	else
                		tmp = Float64(x * exp(Float64(Float64(-b) * a)));
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t, a, b)
                	tmp = 0.0;
                	if ((t <= -4.3e+102) || ~((t <= 1.05e-73)))
                		tmp = x * exp((-t * y));
                	else
                		tmp = x * exp((-b * a));
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -4.3e+102], N[Not[LessEqual[t, 1.05e-73]], $MachinePrecision]], N[(x * N[Exp[N[((-t) * y), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(x * N[Exp[N[((-b) * a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                \mathbf{if}\;t \leq -4.3 \cdot 10^{+102} \lor \neg \left(t \leq 1.05 \cdot 10^{-73}\right):\\
                \;\;\;\;x \cdot e^{\left(-t\right) \cdot y}\\
                
                \mathbf{else}:\\
                \;\;\;\;x \cdot e^{\left(-b\right) \cdot a}\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if t < -4.3000000000000001e102 or 1.0499999999999999e-73 < t

                  1. Initial program 94.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 t around inf

                    \[\leadsto x \cdot e^{\color{blue}{-1 \cdot \left(t \cdot y\right)}} \]
                  4. Step-by-step derivation
                    1. Applied rewrites78.9%

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

                    if -4.3000000000000001e102 < t < 1.0499999999999999e-73

                    1. Initial program 97.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 b around inf

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

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

                      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.3 \cdot 10^{+102} \lor \neg \left(t \leq 1.05 \cdot 10^{-73}\right):\\ \;\;\;\;x \cdot e^{\left(-t\right) \cdot y}\\ \mathbf{else}:\\ \;\;\;\;x \cdot e^{\left(-b\right) \cdot a}\\ \end{array} \]
                    7. Add Preprocessing

                    Alternative 5: 61.5% accurate, 2.6× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -3.2 \cdot 10^{-134} \lor \neg \left(b \leq 1.35 \cdot 10^{-224}\right):\\ \;\;\;\;x \cdot e^{\left(-b\right) \cdot a}\\ \mathbf{else}:\\ \;\;\;\;x \cdot e^{z \cdot \left(-a\right)}\\ \end{array} \end{array} \]
                    (FPCore (x y z t a b)
                     :precision binary64
                     (if (or (<= b -3.2e-134) (not (<= b 1.35e-224)))
                       (* x (exp (* (- b) a)))
                       (* x (exp (* z (- a))))))
                    double code(double x, double y, double z, double t, double a, double b) {
                    	double tmp;
                    	if ((b <= -3.2e-134) || !(b <= 1.35e-224)) {
                    		tmp = x * exp((-b * a));
                    	} else {
                    		tmp = x * exp((z * -a));
                    	}
                    	return tmp;
                    }
                    
                    module fmin_fmax_functions
                        implicit none
                        private
                        public fmax
                        public fmin
                    
                        interface fmax
                            module procedure fmax88
                            module procedure fmax44
                            module procedure fmax84
                            module procedure fmax48
                        end interface
                        interface fmin
                            module procedure fmin88
                            module procedure fmin44
                            module procedure fmin84
                            module procedure fmin48
                        end interface
                    contains
                        real(8) function fmax88(x, y) result (res)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                        end function
                        real(4) function fmax44(x, y) result (res)
                            real(4), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                        end function
                        real(8) function fmax84(x, y) result(res)
                            real(8), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                        end function
                        real(8) function fmax48(x, y) result(res)
                            real(4), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                        end function
                        real(8) function fmin88(x, y) result (res)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                        end function
                        real(4) function fmin44(x, y) result (res)
                            real(4), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                        end function
                        real(8) function fmin84(x, y) result(res)
                            real(8), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                        end function
                        real(8) function fmin48(x, y) result(res)
                            real(4), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                        end function
                    end module
                    
                    real(8) function code(x, y, z, t, a, b)
                    use fmin_fmax_functions
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        real(8), intent (in) :: z
                        real(8), intent (in) :: t
                        real(8), intent (in) :: a
                        real(8), intent (in) :: b
                        real(8) :: tmp
                        if ((b <= (-3.2d-134)) .or. (.not. (b <= 1.35d-224))) then
                            tmp = x * exp((-b * a))
                        else
                            tmp = x * exp((z * -a))
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double x, double y, double z, double t, double a, double b) {
                    	double tmp;
                    	if ((b <= -3.2e-134) || !(b <= 1.35e-224)) {
                    		tmp = x * Math.exp((-b * a));
                    	} else {
                    		tmp = x * Math.exp((z * -a));
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y, z, t, a, b):
                    	tmp = 0
                    	if (b <= -3.2e-134) or not (b <= 1.35e-224):
                    		tmp = x * math.exp((-b * a))
                    	else:
                    		tmp = x * math.exp((z * -a))
                    	return tmp
                    
                    function code(x, y, z, t, a, b)
                    	tmp = 0.0
                    	if ((b <= -3.2e-134) || !(b <= 1.35e-224))
                    		tmp = Float64(x * exp(Float64(Float64(-b) * a)));
                    	else
                    		tmp = Float64(x * exp(Float64(z * Float64(-a))));
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y, z, t, a, b)
                    	tmp = 0.0;
                    	if ((b <= -3.2e-134) || ~((b <= 1.35e-224)))
                    		tmp = x * exp((-b * a));
                    	else
                    		tmp = x * exp((z * -a));
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -3.2e-134], N[Not[LessEqual[b, 1.35e-224]], $MachinePrecision]], N[(x * N[Exp[N[((-b) * a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(x * N[Exp[N[(z * (-a)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;b \leq -3.2 \cdot 10^{-134} \lor \neg \left(b \leq 1.35 \cdot 10^{-224}\right):\\
                    \;\;\;\;x \cdot e^{\left(-b\right) \cdot a}\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;x \cdot e^{z \cdot \left(-a\right)}\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if b < -3.2000000000000001e-134 or 1.34999999999999999e-224 < b

                      1. Initial program 98.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 b around inf

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

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

                        if -3.2000000000000001e-134 < b < 1.34999999999999999e-224

                        1. Initial program 87.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 z around 0

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

                            \[\leadsto x \cdot e^{\color{blue}{\mathsf{fma}\left(-a, z + b, \left(\log z - t\right) \cdot y\right)}} \]
                          2. Taylor expanded in z around inf

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

                              \[\leadsto x \cdot e^{\left(-z\right) \cdot \color{blue}{a}} \]
                          4. Recombined 2 regimes into one program.
                          5. Final simplification63.7%

                            \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3.2 \cdot 10^{-134} \lor \neg \left(b \leq 1.35 \cdot 10^{-224}\right):\\ \;\;\;\;x \cdot e^{\left(-b\right) \cdot a}\\ \mathbf{else}:\\ \;\;\;\;x \cdot e^{z \cdot \left(-a\right)}\\ \end{array} \]
                          6. Add Preprocessing

                          Alternative 6: 33.9% accurate, 2.9× speedup?

                          \[\begin{array}{l} \\ x \cdot e^{z \cdot \left(-a\right)} \end{array} \]
                          (FPCore (x y z t a b) :precision binary64 (* x (exp (* z (- a)))))
                          double code(double x, double y, double z, double t, double a, double b) {
                          	return x * exp((z * -a));
                          }
                          
                          module fmin_fmax_functions
                              implicit none
                              private
                              public fmax
                              public fmin
                          
                              interface fmax
                                  module procedure fmax88
                                  module procedure fmax44
                                  module procedure fmax84
                                  module procedure fmax48
                              end interface
                              interface fmin
                                  module procedure fmin88
                                  module procedure fmin44
                                  module procedure fmin84
                                  module procedure fmin48
                              end interface
                          contains
                              real(8) function fmax88(x, y) result (res)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                              end function
                              real(4) function fmax44(x, y) result (res)
                                  real(4), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                              end function
                              real(8) function fmax84(x, y) result(res)
                                  real(8), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                              end function
                              real(8) function fmax48(x, y) result(res)
                                  real(4), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                              end function
                              real(8) function fmin88(x, y) result (res)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                              end function
                              real(4) function fmin44(x, y) result (res)
                                  real(4), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                              end function
                              real(8) function fmin84(x, y) result(res)
                                  real(8), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                              end function
                              real(8) function fmin48(x, y) result(res)
                                  real(4), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                              end function
                          end module
                          
                          real(8) function code(x, y, z, t, a, b)
                          use fmin_fmax_functions
                              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((z * -a))
                          end function
                          
                          public static double code(double x, double y, double z, double t, double a, double b) {
                          	return x * Math.exp((z * -a));
                          }
                          
                          def code(x, y, z, t, a, b):
                          	return x * math.exp((z * -a))
                          
                          function code(x, y, z, t, a, b)
                          	return Float64(x * exp(Float64(z * Float64(-a))))
                          end
                          
                          function tmp = code(x, y, z, t, a, b)
                          	tmp = x * exp((z * -a));
                          end
                          
                          code[x_, y_, z_, t_, a_, b_] := N[(x * N[Exp[N[(z * (-a)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
                          
                          \begin{array}{l}
                          
                          \\
                          x \cdot e^{z \cdot \left(-a\right)}
                          \end{array}
                          
                          Derivation
                          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 z around 0

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

                              \[\leadsto x \cdot e^{\color{blue}{\mathsf{fma}\left(-a, z + b, \left(\log z - t\right) \cdot y\right)}} \]
                            2. Taylor expanded in z around inf

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

                                \[\leadsto x \cdot e^{\left(-z\right) \cdot \color{blue}{a}} \]
                              2. Final simplification34.3%

                                \[\leadsto x \cdot e^{z \cdot \left(-a\right)} \]
                              3. Add Preprocessing

                              Reproduce

                              ?
                              herbie shell --seed 2025019 
                              (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))))))