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

Percentage Accurate: 98.6% → 98.6%
Time: 9.0s
Alternatives: 14
Speedup: 1.0×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 14 alternatives:

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

Initial Program: 98.6% accurate, 1.0× speedup?

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

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

Alternative 1: 98.6% accurate, 1.0× speedup?

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

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

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

Alternative 2: 84.4% accurate, 0.6× speedup?

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

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

\mathbf{elif}\;t\_1 \leq -205:\\
\;\;\;\;\frac{\frac{1}{a}}{e^{b} \cdot y} \cdot x\\

\mathbf{elif}\;t\_1 \leq 10^{+47}:\\
\;\;\;\;\frac{x \cdot e^{\log z \cdot y - b}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -4.9999999999999996e22 or 1e47 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a))

    1. Initial program 100.0%

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

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

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

      if -4.9999999999999996e22 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -205

      1. Initial program 92.5%

        \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. lift-/.f64N/A

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

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

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

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

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

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

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

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

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

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

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

          1. Initial program 99.2%

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

            \[\leadsto \frac{x \cdot e^{\color{blue}{y \cdot \log z} - b}}{y} \]
          4. Step-by-step derivation
            1. Applied rewrites87.0%

              \[\leadsto \frac{x \cdot e^{\color{blue}{\log z \cdot y} - b}}{y} \]
          5. Recombined 3 regimes into one program.
          6. Add Preprocessing

          Alternative 3: 81.3% accurate, 0.6× speedup?

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

            1. Initial program 100.0%

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

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

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

              if -4.9999999999999996e22 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -210

              1. Initial program 92.4%

                \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
              2. Add Preprocessing
              3. Step-by-step derivation
                1. lift-/.f64N/A

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

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

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

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

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

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

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

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

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

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

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

                  1. Initial program 99.1%

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

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

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

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

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

                          \[\leadsto \frac{{z}^{y} \cdot x}{y \cdot \color{blue}{a}} \]
                      3. Recombined 3 regimes into one program.
                      4. Add Preprocessing

                      Alternative 4: 77.5% accurate, 0.7× speedup?

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

                        1. Initial program 100.0%

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

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

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

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

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

                            if -4.9999999999999996e22 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -210

                            1. Initial program 92.4%

                              \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
                            2. Add Preprocessing
                            3. Step-by-step derivation
                              1. lift-/.f64N/A

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

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

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

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

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

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

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

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

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

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

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

                                1. Initial program 99.1%

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

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

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

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

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

                                        \[\leadsto \frac{{z}^{y} \cdot x}{y \cdot \color{blue}{a}} \]
                                    3. Recombined 3 regimes into one program.
                                    4. Add Preprocessing

                                    Alternative 5: 76.5% accurate, 0.7× speedup?

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

                                      1. Initial program 100.0%

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

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

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

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

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

                                          if -4.9999999999999996e22 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -210

                                          1. Initial program 92.4%

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

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

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

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

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

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

                                              1. Initial program 99.1%

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

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

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

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

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

                                                      \[\leadsto \frac{{z}^{y} \cdot x}{y \cdot \color{blue}{a}} \]
                                                  3. Recombined 3 regimes into one program.
                                                  4. Add Preprocessing

                                                  Alternative 6: 74.1% accurate, 1.0× speedup?

                                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t - 1\right) \cdot \log a\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+22} \lor \neg \left(t\_1 \leq 1000\right):\\ \;\;\;\;\frac{{a}^{\left(t - 1\right)} \cdot x}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{{z}^{y} \cdot x}{y \cdot a}\\ \end{array} \end{array} \]
                                                  (FPCore (x y z t a b)
                                                   :precision binary64
                                                   (let* ((t_1 (* (- t 1.0) (log a))))
                                                     (if (or (<= t_1 -5e+22) (not (<= t_1 1000.0)))
                                                       (/ (* (pow a (- t 1.0)) x) y)
                                                       (/ (* (pow z y) x) (* y a)))))
                                                  double code(double x, double y, double z, double t, double a, double b) {
                                                  	double t_1 = (t - 1.0) * log(a);
                                                  	double tmp;
                                                  	if ((t_1 <= -5e+22) || !(t_1 <= 1000.0)) {
                                                  		tmp = (pow(a, (t - 1.0)) * x) / y;
                                                  	} else {
                                                  		tmp = (pow(z, y) * x) / (y * 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) :: t_1
                                                      real(8) :: tmp
                                                      t_1 = (t - 1.0d0) * log(a)
                                                      if ((t_1 <= (-5d+22)) .or. (.not. (t_1 <= 1000.0d0))) then
                                                          tmp = ((a ** (t - 1.0d0)) * x) / y
                                                      else
                                                          tmp = ((z ** y) * x) / (y * a)
                                                      end if
                                                      code = tmp
                                                  end function
                                                  
                                                  public static double code(double x, double y, double z, double t, double a, double b) {
                                                  	double t_1 = (t - 1.0) * Math.log(a);
                                                  	double tmp;
                                                  	if ((t_1 <= -5e+22) || !(t_1 <= 1000.0)) {
                                                  		tmp = (Math.pow(a, (t - 1.0)) * x) / y;
                                                  	} else {
                                                  		tmp = (Math.pow(z, y) * x) / (y * a);
                                                  	}
                                                  	return tmp;
                                                  }
                                                  
                                                  def code(x, y, z, t, a, b):
                                                  	t_1 = (t - 1.0) * math.log(a)
                                                  	tmp = 0
                                                  	if (t_1 <= -5e+22) or not (t_1 <= 1000.0):
                                                  		tmp = (math.pow(a, (t - 1.0)) * x) / y
                                                  	else:
                                                  		tmp = (math.pow(z, y) * x) / (y * a)
                                                  	return tmp
                                                  
                                                  function code(x, y, z, t, a, b)
                                                  	t_1 = Float64(Float64(t - 1.0) * log(a))
                                                  	tmp = 0.0
                                                  	if ((t_1 <= -5e+22) || !(t_1 <= 1000.0))
                                                  		tmp = Float64(Float64((a ^ Float64(t - 1.0)) * x) / y);
                                                  	else
                                                  		tmp = Float64(Float64((z ^ y) * x) / Float64(y * a));
                                                  	end
                                                  	return tmp
                                                  end
                                                  
                                                  function tmp_2 = code(x, y, z, t, a, b)
                                                  	t_1 = (t - 1.0) * log(a);
                                                  	tmp = 0.0;
                                                  	if ((t_1 <= -5e+22) || ~((t_1 <= 1000.0)))
                                                  		tmp = ((a ^ (t - 1.0)) * x) / y;
                                                  	else
                                                  		tmp = ((z ^ y) * x) / (y * a);
                                                  	end
                                                  	tmp_2 = tmp;
                                                  end
                                                  
                                                  code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e+22], N[Not[LessEqual[t$95$1, 1000.0]], $MachinePrecision]], N[(N[(N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision], N[(N[(N[Power[z, y], $MachinePrecision] * x), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]]]
                                                  
                                                  \begin{array}{l}
                                                  
                                                  \\
                                                  \begin{array}{l}
                                                  t_1 := \left(t - 1\right) \cdot \log a\\
                                                  \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+22} \lor \neg \left(t\_1 \leq 1000\right):\\
                                                  \;\;\;\;\frac{{a}^{\left(t - 1\right)} \cdot x}{y}\\
                                                  
                                                  \mathbf{else}:\\
                                                  \;\;\;\;\frac{{z}^{y} \cdot x}{y \cdot a}\\
                                                  
                                                  
                                                  \end{array}
                                                  \end{array}
                                                  
                                                  Derivation
                                                  1. Split input into 2 regimes
                                                  2. if (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -4.9999999999999996e22 or 1e3 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a))

                                                    1. Initial program 100.0%

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

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

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

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

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

                                                        if -4.9999999999999996e22 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < 1e3

                                                        1. Initial program 96.5%

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

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

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

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

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

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

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

                                                            Alternative 7: 85.1% accurate, 1.4× speedup?

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

                                                              1. Initial program 100.0%

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

                                                                \[\leadsto \frac{x \cdot e^{\color{blue}{y \cdot \log z} - b}}{y} \]
                                                              4. Step-by-step derivation
                                                                1. Applied rewrites90.2%

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

                                                                if -5.0499999999999998e89 < y < 5.5000000000000003e-90

                                                                1. Initial program 96.7%

                                                                  \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \]
                                                                2. Add Preprocessing
                                                                3. Step-by-step derivation
                                                                  1. lift-/.f64N/A

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

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

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

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

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

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

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

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

                                                                  if 5.5000000000000003e-90 < y < 7.5e15

                                                                  1. Initial program 100.0%

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

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

                                                                      \[\leadsto \frac{x \cdot e^{\color{blue}{\log a \cdot t} - b}}{y} \]
                                                                  5. Recombined 3 regimes into one program.
                                                                  6. Add Preprocessing

                                                                  Alternative 8: 92.7% accurate, 1.4× speedup?

                                                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -5.05 \cdot 10^{+89} \lor \neg \left(y \leq 1.28 \cdot 10^{+16}\right):\\ \;\;\;\;\frac{x \cdot e^{\log z \cdot y - b}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t - 1\right) - b}}{y}\\ \end{array} \end{array} \]
                                                                  (FPCore (x y z t a b)
                                                                   :precision binary64
                                                                   (if (or (<= y -5.05e+89) (not (<= y 1.28e+16)))
                                                                     (/ (* x (exp (- (* (log z) y) b))) y)
                                                                     (/ (* x (exp (- (* (log a) (- t 1.0)) b))) y)))
                                                                  double code(double x, double y, double z, double t, double a, double b) {
                                                                  	double tmp;
                                                                  	if ((y <= -5.05e+89) || !(y <= 1.28e+16)) {
                                                                  		tmp = (x * exp(((log(z) * y) - b))) / y;
                                                                  	} else {
                                                                  		tmp = (x * exp(((log(a) * (t - 1.0)) - b))) / y;
                                                                  	}
                                                                  	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 <= (-5.05d+89)) .or. (.not. (y <= 1.28d+16))) then
                                                                          tmp = (x * exp(((log(z) * y) - b))) / y
                                                                      else
                                                                          tmp = (x * exp(((log(a) * (t - 1.0d0)) - b))) / y
                                                                      end if
                                                                      code = tmp
                                                                  end function
                                                                  
                                                                  public static double code(double x, double y, double z, double t, double a, double b) {
                                                                  	double tmp;
                                                                  	if ((y <= -5.05e+89) || !(y <= 1.28e+16)) {
                                                                  		tmp = (x * Math.exp(((Math.log(z) * y) - b))) / y;
                                                                  	} else {
                                                                  		tmp = (x * Math.exp(((Math.log(a) * (t - 1.0)) - b))) / y;
                                                                  	}
                                                                  	return tmp;
                                                                  }
                                                                  
                                                                  def code(x, y, z, t, a, b):
                                                                  	tmp = 0
                                                                  	if (y <= -5.05e+89) or not (y <= 1.28e+16):
                                                                  		tmp = (x * math.exp(((math.log(z) * y) - b))) / y
                                                                  	else:
                                                                  		tmp = (x * math.exp(((math.log(a) * (t - 1.0)) - b))) / y
                                                                  	return tmp
                                                                  
                                                                  function code(x, y, z, t, a, b)
                                                                  	tmp = 0.0
                                                                  	if ((y <= -5.05e+89) || !(y <= 1.28e+16))
                                                                  		tmp = Float64(Float64(x * exp(Float64(Float64(log(z) * y) - b))) / y);
                                                                  	else
                                                                  		tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * Float64(t - 1.0)) - b))) / y);
                                                                  	end
                                                                  	return tmp
                                                                  end
                                                                  
                                                                  function tmp_2 = code(x, y, z, t, a, b)
                                                                  	tmp = 0.0;
                                                                  	if ((y <= -5.05e+89) || ~((y <= 1.28e+16)))
                                                                  		tmp = (x * exp(((log(z) * y) - b))) / y;
                                                                  	else
                                                                  		tmp = (x * exp(((log(a) * (t - 1.0)) - b))) / y;
                                                                  	end
                                                                  	tmp_2 = tmp;
                                                                  end
                                                                  
                                                                  code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -5.05e+89], N[Not[LessEqual[y, 1.28e+16]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * N[(t - 1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
                                                                  
                                                                  \begin{array}{l}
                                                                  
                                                                  \\
                                                                  \begin{array}{l}
                                                                  \mathbf{if}\;y \leq -5.05 \cdot 10^{+89} \lor \neg \left(y \leq 1.28 \cdot 10^{+16}\right):\\
                                                                  \;\;\;\;\frac{x \cdot e^{\log z \cdot y - b}}{y}\\
                                                                  
                                                                  \mathbf{else}:\\
                                                                  \;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t - 1\right) - b}}{y}\\
                                                                  
                                                                  
                                                                  \end{array}
                                                                  \end{array}
                                                                  
                                                                  Derivation
                                                                  1. Split input into 2 regimes
                                                                  2. if y < -5.0499999999999998e89 or 1.28e16 < y

                                                                    1. Initial program 100.0%

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

                                                                      \[\leadsto \frac{x \cdot e^{\color{blue}{y \cdot \log z} - b}}{y} \]
                                                                    4. Step-by-step derivation
                                                                      1. Applied rewrites90.2%

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

                                                                      if -5.0499999999999998e89 < y < 1.28e16

                                                                      1. Initial program 97.1%

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

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

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

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

                                                                      Alternative 9: 74.7% accurate, 2.5× speedup?

                                                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -9800000 \lor \neg \left(b \leq 110000\right):\\ \;\;\;\;\frac{x \cdot e^{-b}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{{a}^{\left(t - 1\right)} \cdot x}{y}\\ \end{array} \end{array} \]
                                                                      (FPCore (x y z t a b)
                                                                       :precision binary64
                                                                       (if (or (<= b -9800000.0) (not (<= b 110000.0)))
                                                                         (/ (* x (exp (- b))) y)
                                                                         (/ (* (pow a (- t 1.0)) x) y)))
                                                                      double code(double x, double y, double z, double t, double a, double b) {
                                                                      	double tmp;
                                                                      	if ((b <= -9800000.0) || !(b <= 110000.0)) {
                                                                      		tmp = (x * exp(-b)) / y;
                                                                      	} else {
                                                                      		tmp = (pow(a, (t - 1.0)) * x) / y;
                                                                      	}
                                                                      	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 <= (-9800000.0d0)) .or. (.not. (b <= 110000.0d0))) then
                                                                              tmp = (x * exp(-b)) / y
                                                                          else
                                                                              tmp = ((a ** (t - 1.0d0)) * x) / y
                                                                          end if
                                                                          code = tmp
                                                                      end function
                                                                      
                                                                      public static double code(double x, double y, double z, double t, double a, double b) {
                                                                      	double tmp;
                                                                      	if ((b <= -9800000.0) || !(b <= 110000.0)) {
                                                                      		tmp = (x * Math.exp(-b)) / y;
                                                                      	} else {
                                                                      		tmp = (Math.pow(a, (t - 1.0)) * x) / y;
                                                                      	}
                                                                      	return tmp;
                                                                      }
                                                                      
                                                                      def code(x, y, z, t, a, b):
                                                                      	tmp = 0
                                                                      	if (b <= -9800000.0) or not (b <= 110000.0):
                                                                      		tmp = (x * math.exp(-b)) / y
                                                                      	else:
                                                                      		tmp = (math.pow(a, (t - 1.0)) * x) / y
                                                                      	return tmp
                                                                      
                                                                      function code(x, y, z, t, a, b)
                                                                      	tmp = 0.0
                                                                      	if ((b <= -9800000.0) || !(b <= 110000.0))
                                                                      		tmp = Float64(Float64(x * exp(Float64(-b))) / y);
                                                                      	else
                                                                      		tmp = Float64(Float64((a ^ Float64(t - 1.0)) * x) / y);
                                                                      	end
                                                                      	return tmp
                                                                      end
                                                                      
                                                                      function tmp_2 = code(x, y, z, t, a, b)
                                                                      	tmp = 0.0;
                                                                      	if ((b <= -9800000.0) || ~((b <= 110000.0)))
                                                                      		tmp = (x * exp(-b)) / y;
                                                                      	else
                                                                      		tmp = ((a ^ (t - 1.0)) * x) / y;
                                                                      	end
                                                                      	tmp_2 = tmp;
                                                                      end
                                                                      
                                                                      code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -9800000.0], N[Not[LessEqual[b, 110000.0]], $MachinePrecision]], N[(N[(x * N[Exp[(-b)], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision]]
                                                                      
                                                                      \begin{array}{l}
                                                                      
                                                                      \\
                                                                      \begin{array}{l}
                                                                      \mathbf{if}\;b \leq -9800000 \lor \neg \left(b \leq 110000\right):\\
                                                                      \;\;\;\;\frac{x \cdot e^{-b}}{y}\\
                                                                      
                                                                      \mathbf{else}:\\
                                                                      \;\;\;\;\frac{{a}^{\left(t - 1\right)} \cdot x}{y}\\
                                                                      
                                                                      
                                                                      \end{array}
                                                                      \end{array}
                                                                      
                                                                      Derivation
                                                                      1. Split input into 2 regimes
                                                                      2. if b < -9.8e6 or 1.1e5 < b

                                                                        1. Initial program 100.0%

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

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

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

                                                                            \[\leadsto \frac{x \cdot e^{\color{blue}{-1 \cdot b}}}{y} \]
                                                                          3. Step-by-step derivation
                                                                            1. Applied rewrites79.0%

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

                                                                            if -9.8e6 < b < 1.1e5

                                                                            1. Initial program 96.9%

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

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

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

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

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

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

                                                                              Alternative 10: 71.8% accurate, 2.5× speedup?

                                                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -9800000 \lor \neg \left(b \leq 110000\right):\\ \;\;\;\;\frac{x \cdot e^{-b}}{y}\\ \mathbf{else}:\\ \;\;\;\;{a}^{\left(t - 1\right)} \cdot \frac{x}{y}\\ \end{array} \end{array} \]
                                                                              (FPCore (x y z t a b)
                                                                               :precision binary64
                                                                               (if (or (<= b -9800000.0) (not (<= b 110000.0)))
                                                                                 (/ (* x (exp (- b))) y)
                                                                                 (* (pow a (- t 1.0)) (/ x y))))
                                                                              double code(double x, double y, double z, double t, double a, double b) {
                                                                              	double tmp;
                                                                              	if ((b <= -9800000.0) || !(b <= 110000.0)) {
                                                                              		tmp = (x * exp(-b)) / y;
                                                                              	} else {
                                                                              		tmp = pow(a, (t - 1.0)) * (x / y);
                                                                              	}
                                                                              	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 <= (-9800000.0d0)) .or. (.not. (b <= 110000.0d0))) then
                                                                                      tmp = (x * exp(-b)) / y
                                                                                  else
                                                                                      tmp = (a ** (t - 1.0d0)) * (x / y)
                                                                                  end if
                                                                                  code = tmp
                                                                              end function
                                                                              
                                                                              public static double code(double x, double y, double z, double t, double a, double b) {
                                                                              	double tmp;
                                                                              	if ((b <= -9800000.0) || !(b <= 110000.0)) {
                                                                              		tmp = (x * Math.exp(-b)) / y;
                                                                              	} else {
                                                                              		tmp = Math.pow(a, (t - 1.0)) * (x / y);
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              def code(x, y, z, t, a, b):
                                                                              	tmp = 0
                                                                              	if (b <= -9800000.0) or not (b <= 110000.0):
                                                                              		tmp = (x * math.exp(-b)) / y
                                                                              	else:
                                                                              		tmp = math.pow(a, (t - 1.0)) * (x / y)
                                                                              	return tmp
                                                                              
                                                                              function code(x, y, z, t, a, b)
                                                                              	tmp = 0.0
                                                                              	if ((b <= -9800000.0) || !(b <= 110000.0))
                                                                              		tmp = Float64(Float64(x * exp(Float64(-b))) / y);
                                                                              	else
                                                                              		tmp = Float64((a ^ Float64(t - 1.0)) * Float64(x / y));
                                                                              	end
                                                                              	return tmp
                                                                              end
                                                                              
                                                                              function tmp_2 = code(x, y, z, t, a, b)
                                                                              	tmp = 0.0;
                                                                              	if ((b <= -9800000.0) || ~((b <= 110000.0)))
                                                                              		tmp = (x * exp(-b)) / y;
                                                                              	else
                                                                              		tmp = (a ^ (t - 1.0)) * (x / y);
                                                                              	end
                                                                              	tmp_2 = tmp;
                                                                              end
                                                                              
                                                                              code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -9800000.0], N[Not[LessEqual[b, 110000.0]], $MachinePrecision]], N[(N[(x * N[Exp[(-b)], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]]
                                                                              
                                                                              \begin{array}{l}
                                                                              
                                                                              \\
                                                                              \begin{array}{l}
                                                                              \mathbf{if}\;b \leq -9800000 \lor \neg \left(b \leq 110000\right):\\
                                                                              \;\;\;\;\frac{x \cdot e^{-b}}{y}\\
                                                                              
                                                                              \mathbf{else}:\\
                                                                              \;\;\;\;{a}^{\left(t - 1\right)} \cdot \frac{x}{y}\\
                                                                              
                                                                              
                                                                              \end{array}
                                                                              \end{array}
                                                                              
                                                                              Derivation
                                                                              1. Split input into 2 regimes
                                                                              2. if b < -9.8e6 or 1.1e5 < b

                                                                                1. Initial program 100.0%

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

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

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

                                                                                    \[\leadsto \frac{x \cdot e^{\color{blue}{-1 \cdot b}}}{y} \]
                                                                                  3. Step-by-step derivation
                                                                                    1. Applied rewrites79.0%

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

                                                                                    if -9.8e6 < b < 1.1e5

                                                                                    1. Initial program 96.9%

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

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

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

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

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

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

                                                                                      Alternative 11: 57.1% accurate, 2.6× speedup?

                                                                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -140 \lor \neg \left(b \leq 3.1 \cdot 10^{-25}\right):\\ \;\;\;\;\frac{x \cdot e^{-b}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{a}}{y}\\ \end{array} \end{array} \]
                                                                                      (FPCore (x y z t a b)
                                                                                       :precision binary64
                                                                                       (if (or (<= b -140.0) (not (<= b 3.1e-25)))
                                                                                         (/ (* x (exp (- b))) y)
                                                                                         (/ (/ x a) y)))
                                                                                      double code(double x, double y, double z, double t, double a, double b) {
                                                                                      	double tmp;
                                                                                      	if ((b <= -140.0) || !(b <= 3.1e-25)) {
                                                                                      		tmp = (x * exp(-b)) / y;
                                                                                      	} else {
                                                                                      		tmp = (x / a) / y;
                                                                                      	}
                                                                                      	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 <= (-140.0d0)) .or. (.not. (b <= 3.1d-25))) then
                                                                                              tmp = (x * exp(-b)) / y
                                                                                          else
                                                                                              tmp = (x / a) / y
                                                                                          end if
                                                                                          code = tmp
                                                                                      end function
                                                                                      
                                                                                      public static double code(double x, double y, double z, double t, double a, double b) {
                                                                                      	double tmp;
                                                                                      	if ((b <= -140.0) || !(b <= 3.1e-25)) {
                                                                                      		tmp = (x * Math.exp(-b)) / y;
                                                                                      	} else {
                                                                                      		tmp = (x / a) / y;
                                                                                      	}
                                                                                      	return tmp;
                                                                                      }
                                                                                      
                                                                                      def code(x, y, z, t, a, b):
                                                                                      	tmp = 0
                                                                                      	if (b <= -140.0) or not (b <= 3.1e-25):
                                                                                      		tmp = (x * math.exp(-b)) / y
                                                                                      	else:
                                                                                      		tmp = (x / a) / y
                                                                                      	return tmp
                                                                                      
                                                                                      function code(x, y, z, t, a, b)
                                                                                      	tmp = 0.0
                                                                                      	if ((b <= -140.0) || !(b <= 3.1e-25))
                                                                                      		tmp = Float64(Float64(x * exp(Float64(-b))) / y);
                                                                                      	else
                                                                                      		tmp = Float64(Float64(x / a) / y);
                                                                                      	end
                                                                                      	return tmp
                                                                                      end
                                                                                      
                                                                                      function tmp_2 = code(x, y, z, t, a, b)
                                                                                      	tmp = 0.0;
                                                                                      	if ((b <= -140.0) || ~((b <= 3.1e-25)))
                                                                                      		tmp = (x * exp(-b)) / y;
                                                                                      	else
                                                                                      		tmp = (x / a) / y;
                                                                                      	end
                                                                                      	tmp_2 = tmp;
                                                                                      end
                                                                                      
                                                                                      code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -140.0], N[Not[LessEqual[b, 3.1e-25]], $MachinePrecision]], N[(N[(x * N[Exp[(-b)], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]]
                                                                                      
                                                                                      \begin{array}{l}
                                                                                      
                                                                                      \\
                                                                                      \begin{array}{l}
                                                                                      \mathbf{if}\;b \leq -140 \lor \neg \left(b \leq 3.1 \cdot 10^{-25}\right):\\
                                                                                      \;\;\;\;\frac{x \cdot e^{-b}}{y}\\
                                                                                      
                                                                                      \mathbf{else}:\\
                                                                                      \;\;\;\;\frac{\frac{x}{a}}{y}\\
                                                                                      
                                                                                      
                                                                                      \end{array}
                                                                                      \end{array}
                                                                                      
                                                                                      Derivation
                                                                                      1. Split input into 2 regimes
                                                                                      2. if b < -140 or 3.09999999999999995e-25 < b

                                                                                        1. Initial program 99.9%

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

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

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

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

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

                                                                                            if -140 < b < 3.09999999999999995e-25

                                                                                            1. Initial program 96.7%

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

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

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

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

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

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

                                                                                                    \[\leadsto \frac{\frac{x}{a}}{y} \]
                                                                                                4. Recombined 2 regimes into one program.
                                                                                                5. Final simplification56.7%

                                                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -140 \lor \neg \left(b \leq 3.1 \cdot 10^{-25}\right):\\ \;\;\;\;\frac{x \cdot e^{-b}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{a}}{y}\\ \end{array} \]
                                                                                                6. Add Preprocessing

                                                                                                Alternative 12: 33.5% accurate, 2.7× speedup?

                                                                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t - 1 \leq 1.25 \cdot 10^{+19}:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{e^{b}}{y}\\ \end{array} \end{array} \]
                                                                                                (FPCore (x y z t a b)
                                                                                                 :precision binary64
                                                                                                 (if (<= (- t 1.0) 1.25e+19) (/ x (* y a)) (* x (/ (exp b) y))))
                                                                                                double code(double x, double y, double z, double t, double a, double b) {
                                                                                                	double tmp;
                                                                                                	if ((t - 1.0) <= 1.25e+19) {
                                                                                                		tmp = x / (y * a);
                                                                                                	} else {
                                                                                                		tmp = x * (exp(b) / y);
                                                                                                	}
                                                                                                	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 - 1.0d0) <= 1.25d+19) then
                                                                                                        tmp = x / (y * a)
                                                                                                    else
                                                                                                        tmp = x * (exp(b) / y)
                                                                                                    end if
                                                                                                    code = tmp
                                                                                                end function
                                                                                                
                                                                                                public static double code(double x, double y, double z, double t, double a, double b) {
                                                                                                	double tmp;
                                                                                                	if ((t - 1.0) <= 1.25e+19) {
                                                                                                		tmp = x / (y * a);
                                                                                                	} else {
                                                                                                		tmp = x * (Math.exp(b) / y);
                                                                                                	}
                                                                                                	return tmp;
                                                                                                }
                                                                                                
                                                                                                def code(x, y, z, t, a, b):
                                                                                                	tmp = 0
                                                                                                	if (t - 1.0) <= 1.25e+19:
                                                                                                		tmp = x / (y * a)
                                                                                                	else:
                                                                                                		tmp = x * (math.exp(b) / y)
                                                                                                	return tmp
                                                                                                
                                                                                                function code(x, y, z, t, a, b)
                                                                                                	tmp = 0.0
                                                                                                	if (Float64(t - 1.0) <= 1.25e+19)
                                                                                                		tmp = Float64(x / Float64(y * a));
                                                                                                	else
                                                                                                		tmp = Float64(x * Float64(exp(b) / y));
                                                                                                	end
                                                                                                	return tmp
                                                                                                end
                                                                                                
                                                                                                function tmp_2 = code(x, y, z, t, a, b)
                                                                                                	tmp = 0.0;
                                                                                                	if ((t - 1.0) <= 1.25e+19)
                                                                                                		tmp = x / (y * a);
                                                                                                	else
                                                                                                		tmp = x * (exp(b) / y);
                                                                                                	end
                                                                                                	tmp_2 = tmp;
                                                                                                end
                                                                                                
                                                                                                code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(t - 1.0), $MachinePrecision], 1.25e+19], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Exp[b], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
                                                                                                
                                                                                                \begin{array}{l}
                                                                                                
                                                                                                \\
                                                                                                \begin{array}{l}
                                                                                                \mathbf{if}\;t - 1 \leq 1.25 \cdot 10^{+19}:\\
                                                                                                \;\;\;\;\frac{x}{y \cdot a}\\
                                                                                                
                                                                                                \mathbf{else}:\\
                                                                                                \;\;\;\;x \cdot \frac{e^{b}}{y}\\
                                                                                                
                                                                                                
                                                                                                \end{array}
                                                                                                \end{array}
                                                                                                
                                                                                                Derivation
                                                                                                1. Split input into 2 regimes
                                                                                                2. if (-.f64 t #s(literal 1 binary64)) < 1.25e19

                                                                                                  1. Initial program 97.7%

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

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

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

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

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

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

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

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

                                                                                                          if 1.25e19 < (-.f64 t #s(literal 1 binary64))

                                                                                                          1. Initial program 100.0%

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

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

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

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

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

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

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

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

                                                                                                                  \[\leadsto \color{blue}{x \cdot \frac{e^{-b}}{y}} \]
                                                                                                                5. lower-/.f6433.4

                                                                                                                  \[\leadsto x \cdot \color{blue}{\frac{e^{-b}}{y}} \]
                                                                                                              3. Applied rewrites22.6%

                                                                                                                \[\leadsto \color{blue}{x \cdot \frac{e^{b}}{y}} \]
                                                                                                            4. Recombined 2 regimes into one program.
                                                                                                            5. Add Preprocessing

                                                                                                            Alternative 13: 30.8% accurate, 11.6× speedup?

                                                                                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq 1.6 \cdot 10^{+133}:\\ \;\;\;\;\frac{x}{y \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{a}}{y}\\ \end{array} \end{array} \]
                                                                                                            (FPCore (x y z t a b)
                                                                                                             :precision binary64
                                                                                                             (if (<= z 1.6e+133) (/ x (* y a)) (/ (/ x a) y)))
                                                                                                            double code(double x, double y, double z, double t, double a, double b) {
                                                                                                            	double tmp;
                                                                                                            	if (z <= 1.6e+133) {
                                                                                                            		tmp = x / (y * a);
                                                                                                            	} else {
                                                                                                            		tmp = (x / a) / y;
                                                                                                            	}
                                                                                                            	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 (z <= 1.6d+133) then
                                                                                                                    tmp = x / (y * a)
                                                                                                                else
                                                                                                                    tmp = (x / a) / y
                                                                                                                end if
                                                                                                                code = tmp
                                                                                                            end function
                                                                                                            
                                                                                                            public static double code(double x, double y, double z, double t, double a, double b) {
                                                                                                            	double tmp;
                                                                                                            	if (z <= 1.6e+133) {
                                                                                                            		tmp = x / (y * a);
                                                                                                            	} else {
                                                                                                            		tmp = (x / a) / y;
                                                                                                            	}
                                                                                                            	return tmp;
                                                                                                            }
                                                                                                            
                                                                                                            def code(x, y, z, t, a, b):
                                                                                                            	tmp = 0
                                                                                                            	if z <= 1.6e+133:
                                                                                                            		tmp = x / (y * a)
                                                                                                            	else:
                                                                                                            		tmp = (x / a) / y
                                                                                                            	return tmp
                                                                                                            
                                                                                                            function code(x, y, z, t, a, b)
                                                                                                            	tmp = 0.0
                                                                                                            	if (z <= 1.6e+133)
                                                                                                            		tmp = Float64(x / Float64(y * a));
                                                                                                            	else
                                                                                                            		tmp = Float64(Float64(x / a) / y);
                                                                                                            	end
                                                                                                            	return tmp
                                                                                                            end
                                                                                                            
                                                                                                            function tmp_2 = code(x, y, z, t, a, b)
                                                                                                            	tmp = 0.0;
                                                                                                            	if (z <= 1.6e+133)
                                                                                                            		tmp = x / (y * a);
                                                                                                            	else
                                                                                                            		tmp = (x / a) / y;
                                                                                                            	end
                                                                                                            	tmp_2 = tmp;
                                                                                                            end
                                                                                                            
                                                                                                            code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, 1.6e+133], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]]
                                                                                                            
                                                                                                            \begin{array}{l}
                                                                                                            
                                                                                                            \\
                                                                                                            \begin{array}{l}
                                                                                                            \mathbf{if}\;z \leq 1.6 \cdot 10^{+133}:\\
                                                                                                            \;\;\;\;\frac{x}{y \cdot a}\\
                                                                                                            
                                                                                                            \mathbf{else}:\\
                                                                                                            \;\;\;\;\frac{\frac{x}{a}}{y}\\
                                                                                                            
                                                                                                            
                                                                                                            \end{array}
                                                                                                            \end{array}
                                                                                                            
                                                                                                            Derivation
                                                                                                            1. Split input into 2 regimes
                                                                                                            2. if z < 1.59999999999999999e133

                                                                                                              1. Initial program 98.0%

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

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

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

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

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

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

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

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

                                                                                                                      if 1.59999999999999999e133 < z

                                                                                                                      1. Initial program 99.5%

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

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

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

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

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

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

                                                                                                                              \[\leadsto \frac{\frac{x}{a}}{y} \]
                                                                                                                          4. Recombined 2 regimes into one program.
                                                                                                                          5. Add Preprocessing

                                                                                                                          Alternative 14: 31.0% accurate, 19.8× speedup?

                                                                                                                          \[\begin{array}{l} \\ \frac{x}{y \cdot a} \end{array} \]
                                                                                                                          (FPCore (x y z t a b) :precision binary64 (/ x (* y a)))
                                                                                                                          double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                          	return x / (y * a);
                                                                                                                          }
                                                                                                                          
                                                                                                                          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 / (y * a)
                                                                                                                          end function
                                                                                                                          
                                                                                                                          public static double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                          	return x / (y * a);
                                                                                                                          }
                                                                                                                          
                                                                                                                          def code(x, y, z, t, a, b):
                                                                                                                          	return x / (y * a)
                                                                                                                          
                                                                                                                          function code(x, y, z, t, a, b)
                                                                                                                          	return Float64(x / Float64(y * a))
                                                                                                                          end
                                                                                                                          
                                                                                                                          function tmp = code(x, y, z, t, a, b)
                                                                                                                          	tmp = x / (y * a);
                                                                                                                          end
                                                                                                                          
                                                                                                                          code[x_, y_, z_, t_, a_, b_] := N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]
                                                                                                                          
                                                                                                                          \begin{array}{l}
                                                                                                                          
                                                                                                                          \\
                                                                                                                          \frac{x}{y \cdot a}
                                                                                                                          \end{array}
                                                                                                                          
                                                                                                                          Derivation
                                                                                                                          1. Initial program 98.4%

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

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

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

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

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

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

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

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

                                                                                                                                  Developer Target 1: 72.3% accurate, 1.0× speedup?

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

                                                                                                                                  Reproduce

                                                                                                                                  ?
                                                                                                                                  herbie shell --seed 2025021 
                                                                                                                                  (FPCore (x y z t a b)
                                                                                                                                    :name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
                                                                                                                                    :precision binary64
                                                                                                                                  
                                                                                                                                    :alt
                                                                                                                                    (! :herbie-platform default (if (< t -8845848504127471/10000000000000000) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))) (if (< t 8520312288374073/10000000000) (/ (* (/ x y) (pow a (- t 1))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))))))
                                                                                                                                  
                                                                                                                                    (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))