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

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

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

Initial Program: 98.5% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
	return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
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.5% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
	return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
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: 51.3% accurate, 0.5× speedup?

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

          1. Initial program 97.4%

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

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

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

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

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

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

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

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

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

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

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

            Alternative 3: 93.0% accurate, 0.6× speedup?

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

              1. Initial program 100.0%

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

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

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

                  \[\leadsto \frac{x \cdot e^{\color{blue}{\log a \cdot t} - b}}{y} \]
                3. lower-log.f6493.5

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

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

              if -5.0000000000000004e53 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < 3.9999999999999999e24

              1. Initial program 97.0%

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

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

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

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

                  \[\leadsto \frac{x \cdot e^{\color{blue}{\left(y \cdot \log z - \left(\mathsf{neg}\left(\log a\right)\right) \cdot -1\right)} - b}}{y} \]
                4. distribute-lft-neg-inN/A

                  \[\leadsto \frac{x \cdot e^{\left(y \cdot \log z - \color{blue}{\left(\mathsf{neg}\left(\log a \cdot -1\right)\right)}\right) - b}}{y} \]
                5. distribute-rgt-neg-inN/A

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

                  \[\leadsto \frac{x \cdot e^{\left(y \cdot \log z - \log a \cdot \color{blue}{1}\right) - b}}{y} \]
                7. fp-cancel-sub-sign-invN/A

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

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

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

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

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

                  \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\color{blue}{\log z}, y, -1 \cdot \log a\right) - b}}{y} \]
                13. mul-1-negN/A

                  \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log z, y, \color{blue}{\mathsf{neg}\left(\log a\right)}\right) - b}}{y} \]
                14. lower-neg.f64N/A

                  \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log z, y, \color{blue}{-\log a}\right) - b}}{y} \]
                15. lower-log.f6497.0

                  \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log z, y, -\color{blue}{\log a}\right) - b}}{y} \]
              5. Applied rewrites97.0%

                \[\leadsto \frac{x \cdot e^{\color{blue}{\mathsf{fma}\left(\log z, y, -\log a\right)} - b}}{y} \]

              if 3.9999999999999999e24 < (*.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{x \cdot e^{\color{blue}{\log a \cdot \left(t - 1\right)} - b}}{y} \]
              4. Step-by-step derivation
                1. distribute-rgt-out--N/A

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

                  \[\leadsto \frac{x \cdot e^{\left(t \cdot \log a - \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot \log a\right) - b}}{y} \]
                3. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \frac{x \cdot e^{\left(\color{blue}{-1} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right)\right) \cdot \log a - b}}{y} \]
                15. remove-double-negN/A

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

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

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

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

            Alternative 4: 80.4% accurate, 0.7× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t - 1\right) \cdot \log a\\ \mathbf{if}\;t\_1 \leq -665 \lor \neg \left(t\_1 \leq 4 \cdot 10^{+24}\right):\\ \;\;\;\;\frac{x \cdot e^{\log a \cdot t - b}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{{z}^{y} \cdot x}{y}}{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 -665.0) (not (<= t_1 4e+24)))
                 (/ (* x (exp (- (* (log a) t) b))) 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 <= -665.0) || !(t_1 <= 4e+24)) {
            		tmp = (x * exp(((log(a) * t) - b))) / 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 <= (-665.0d0)) .or. (.not. (t_1 <= 4d+24))) then
                    tmp = (x * exp(((log(a) * t) - b))) / 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 <= -665.0) || !(t_1 <= 4e+24)) {
            		tmp = (x * Math.exp(((Math.log(a) * t) - b))) / 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 <= -665.0) or not (t_1 <= 4e+24):
            		tmp = (x * math.exp(((math.log(a) * t) - b))) / 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 <= -665.0) || !(t_1 <= 4e+24))
            		tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * t) - b))) / y);
            	else
            		tmp = Float64(Float64(Float64((z ^ y) * x) / 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 <= -665.0) || ~((t_1 <= 4e+24)))
            		tmp = (x * exp(((log(a) * t) - b))) / 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, -665.0], N[Not[LessEqual[t$95$1, 4e+24]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * t), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(N[(N[Power[z, y], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision] / a), $MachinePrecision]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \left(t - 1\right) \cdot \log a\\
            \mathbf{if}\;t\_1 \leq -665 \lor \neg \left(t\_1 \leq 4 \cdot 10^{+24}\right):\\
            \;\;\;\;\frac{x \cdot e^{\log a \cdot t - b}}{y}\\
            
            \mathbf{else}:\\
            \;\;\;\;\frac{\frac{{z}^{y} \cdot x}{y}}{a}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -665 or 3.9999999999999999e24 < (*.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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                Alternative 5: 75.7% accurate, 0.9× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t - 1\right) \cdot \log a\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+20} \lor \neg \left(t\_1 \leq 4 \cdot 10^{+24}\right):\\ \;\;\;\;\frac{{a}^{\left(t - 1\right)}}{y} \cdot x\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{{z}^{y} \cdot x}{y}}{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+20) (not (<= t_1 4e+24)))
                     (* (/ (pow a (- t 1.0)) y) x)
                     (/ (/ (* (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+20) || !(t_1 <= 4e+24)) {
                		tmp = (pow(a, (t - 1.0)) / y) * x;
                	} 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+20)) .or. (.not. (t_1 <= 4d+24))) then
                        tmp = ((a ** (t - 1.0d0)) / y) * x
                    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+20) || !(t_1 <= 4e+24)) {
                		tmp = (Math.pow(a, (t - 1.0)) / y) * x;
                	} 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+20) or not (t_1 <= 4e+24):
                		tmp = (math.pow(a, (t - 1.0)) / y) * x
                	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+20) || !(t_1 <= 4e+24))
                		tmp = Float64(Float64((a ^ Float64(t - 1.0)) / y) * x);
                	else
                		tmp = Float64(Float64(Float64((z ^ y) * x) / 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+20) || ~((t_1 <= 4e+24)))
                		tmp = ((a ^ (t - 1.0)) / y) * x;
                	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+20], N[Not[LessEqual[t$95$1, 4e+24]], $MachinePrecision]], N[(N[(N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision] * x), $MachinePrecision], N[(N[(N[(N[Power[z, y], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision] / a), $MachinePrecision]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \left(t - 1\right) \cdot \log a\\
                \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+20} \lor \neg \left(t\_1 \leq 4 \cdot 10^{+24}\right):\\
                \;\;\;\;\frac{{a}^{\left(t - 1\right)}}{y} \cdot x\\
                
                \mathbf{else}:\\
                \;\;\;\;\frac{\frac{{z}^{y} \cdot x}{y}}{a}\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -5e20 or 3.9999999999999999e24 < (*.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 b around 0

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

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

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

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

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

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

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

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

                      \[\leadsto \frac{x \cdot \left({a}^{\left(t - 1\right)} \cdot \color{blue}{{z}^{y}}\right)}{y} \]
                    9. lower-pow.f6472.0

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

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

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

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

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

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

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

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

                        \[\leadsto \color{blue}{\frac{{a}^{\left(t - 1\right)}}{y} \cdot x} \]
                      6. lower-/.f6486.2

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

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

                    if -5e20 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < 3.9999999999999999e24

                    1. Initial program 96.8%

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

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

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

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

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

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

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

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

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

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

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

                      Alternative 6: 73.0% accurate, 0.9× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t - 1\right) \cdot \log a\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+20} \lor \neg \left(t\_1 \leq 1000\right):\\ \;\;\;\;\frac{{a}^{\left(t - 1\right)}}{y} \cdot x\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y} \cdot \frac{{z}^{y}}{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+20) (not (<= t_1 1000.0)))
                           (* (/ (pow a (- t 1.0)) y) x)
                           (* (/ x y) (/ (pow z 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+20) || !(t_1 <= 1000.0)) {
                      		tmp = (pow(a, (t - 1.0)) / y) * x;
                      	} else {
                      		tmp = (x / y) * (pow(z, 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+20)) .or. (.not. (t_1 <= 1000.0d0))) then
                              tmp = ((a ** (t - 1.0d0)) / y) * x
                          else
                              tmp = (x / y) * ((z ** 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+20) || !(t_1 <= 1000.0)) {
                      		tmp = (Math.pow(a, (t - 1.0)) / y) * x;
                      	} else {
                      		tmp = (x / y) * (Math.pow(z, 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+20) or not (t_1 <= 1000.0):
                      		tmp = (math.pow(a, (t - 1.0)) / y) * x
                      	else:
                      		tmp = (x / y) * (math.pow(z, 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+20) || !(t_1 <= 1000.0))
                      		tmp = Float64(Float64((a ^ Float64(t - 1.0)) / y) * x);
                      	else
                      		tmp = Float64(Float64(x / y) * Float64((z ^ 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+20) || ~((t_1 <= 1000.0)))
                      		tmp = ((a ^ (t - 1.0)) / y) * x;
                      	else
                      		tmp = (x / y) * ((z ^ 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+20], N[Not[LessEqual[t$95$1, 1000.0]], $MachinePrecision]], N[(N[(N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision] * x), $MachinePrecision], N[(N[(x / y), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / 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^{+20} \lor \neg \left(t\_1 \leq 1000\right):\\
                      \;\;\;\;\frac{{a}^{\left(t - 1\right)}}{y} \cdot x\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\frac{x}{y} \cdot \frac{{z}^{y}}{a}\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -5e20 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 b around 0

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

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

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

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

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

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

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

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

                            \[\leadsto \frac{x \cdot \left({a}^{\left(t - 1\right)} \cdot \color{blue}{{z}^{y}}\right)}{y} \]
                          9. lower-pow.f6471.7

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

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

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

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

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

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

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

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

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

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

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

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

                          1. Initial program 96.6%

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

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

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

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

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

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

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

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

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

                          Alternative 7: 72.4% 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^{+20} \lor \neg \left(t\_1 \leq 4 \cdot 10^{+24}\right):\\ \;\;\;\;\frac{{a}^{\left(t - 1\right)}}{y} \cdot x\\ \mathbf{else}:\\ \;\;\;\;\frac{{z}^{y} \cdot x}{a \cdot y}\\ \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+20) (not (<= t_1 4e+24)))
                               (* (/ (pow a (- t 1.0)) y) x)
                               (/ (* (pow z y) x) (* a y)))))
                          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+20) || !(t_1 <= 4e+24)) {
                          		tmp = (pow(a, (t - 1.0)) / y) * x;
                          	} else {
                          		tmp = (pow(z, y) * 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) :: t_1
                              real(8) :: tmp
                              t_1 = (t - 1.0d0) * log(a)
                              if ((t_1 <= (-5d+20)) .or. (.not. (t_1 <= 4d+24))) then
                                  tmp = ((a ** (t - 1.0d0)) / y) * x
                              else
                                  tmp = ((z ** y) * 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 t_1 = (t - 1.0) * Math.log(a);
                          	double tmp;
                          	if ((t_1 <= -5e+20) || !(t_1 <= 4e+24)) {
                          		tmp = (Math.pow(a, (t - 1.0)) / y) * x;
                          	} else {
                          		tmp = (Math.pow(z, y) * x) / (a * y);
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y, z, t, a, b):
                          	t_1 = (t - 1.0) * math.log(a)
                          	tmp = 0
                          	if (t_1 <= -5e+20) or not (t_1 <= 4e+24):
                          		tmp = (math.pow(a, (t - 1.0)) / y) * x
                          	else:
                          		tmp = (math.pow(z, y) * x) / (a * y)
                          	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+20) || !(t_1 <= 4e+24))
                          		tmp = Float64(Float64((a ^ Float64(t - 1.0)) / y) * x);
                          	else
                          		tmp = Float64(Float64((z ^ y) * x) / Float64(a * y));
                          	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+20) || ~((t_1 <= 4e+24)))
                          		tmp = ((a ^ (t - 1.0)) / y) * x;
                          	else
                          		tmp = ((z ^ y) * x) / (a * y);
                          	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+20], N[Not[LessEqual[t$95$1, 4e+24]], $MachinePrecision]], N[(N[(N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision] * x), $MachinePrecision], N[(N[(N[Power[z, y], $MachinePrecision] * x), $MachinePrecision] / N[(a * y), $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^{+20} \lor \neg \left(t\_1 \leq 4 \cdot 10^{+24}\right):\\
                          \;\;\;\;\frac{{a}^{\left(t - 1\right)}}{y} \cdot x\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;\frac{{z}^{y} \cdot x}{a \cdot y}\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -5e20 or 3.9999999999999999e24 < (*.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 b around 0

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

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

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

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

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

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

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

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

                                \[\leadsto \frac{x \cdot \left({a}^{\left(t - 1\right)} \cdot \color{blue}{{z}^{y}}\right)}{y} \]
                              9. lower-pow.f6472.0

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

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

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

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

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

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

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

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

                                  \[\leadsto \color{blue}{\frac{{a}^{\left(t - 1\right)}}{y} \cdot x} \]
                                6. lower-/.f6486.2

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

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

                              if -5e20 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < 3.9999999999999999e24

                              1. Initial program 96.8%

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

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

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

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

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

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

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

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

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

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

                                Alternative 8: 88.7% accurate, 1.4× speedup?

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

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

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

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

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

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

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

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

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

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

                                      if -7500 < y < 3.5e16

                                      1. Initial program 96.8%

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

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

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

                                          \[\leadsto \frac{x \cdot e^{\left(t \cdot \log a - \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot \log a\right) - b}}{y} \]
                                        3. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \frac{x \cdot e^{\left(\color{blue}{-1} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right)\right) \cdot \log a - b}}{y} \]
                                        15. remove-double-negN/A

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

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

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

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

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

                                    Alternative 9: 74.2% accurate, 2.5× speedup?

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

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

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

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

                                          \[\leadsto \frac{x \cdot e^{\color{blue}{\left(y \cdot \log z - \left(\mathsf{neg}\left(\log a\right)\right) \cdot -1\right)} - b}}{y} \]
                                        4. distribute-lft-neg-inN/A

                                          \[\leadsto \frac{x \cdot e^{\left(y \cdot \log z - \color{blue}{\left(\mathsf{neg}\left(\log a \cdot -1\right)\right)}\right) - b}}{y} \]
                                        5. distribute-rgt-neg-inN/A

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

                                          \[\leadsto \frac{x \cdot e^{\left(y \cdot \log z - \log a \cdot \color{blue}{1}\right) - b}}{y} \]
                                        7. fp-cancel-sub-sign-invN/A

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

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

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

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

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

                                          \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\color{blue}{\log z}, y, -1 \cdot \log a\right) - b}}{y} \]
                                        13. mul-1-negN/A

                                          \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log z, y, \color{blue}{\mathsf{neg}\left(\log a\right)}\right) - b}}{y} \]
                                        14. lower-neg.f64N/A

                                          \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log z, y, \color{blue}{-\log a}\right) - b}}{y} \]
                                        15. lower-log.f6493.0

                                          \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log z, y, -\color{blue}{\log a}\right) - b}}{y} \]
                                      5. Applied rewrites93.0%

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

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

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

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

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

                                          \[\leadsto \color{blue}{\frac{x \cdot e^{-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. *-commutativeN/A

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

                                          \[\leadsto \color{blue}{\frac{e^{-b}}{y} \cdot x} \]
                                        6. lower-/.f6482.1

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

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

                                      if -2.94999999999999995e94 < b < 1250

                                      1. Initial program 97.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 \frac{x \cdot \color{blue}{e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
                                      4. Step-by-step derivation
                                        1. +-commutativeN/A

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

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

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

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

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

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

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

                                          \[\leadsto \frac{x \cdot \left({a}^{\left(t - 1\right)} \cdot \color{blue}{{z}^{y}}\right)}{y} \]
                                        9. lower-pow.f6485.4

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

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

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

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

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

                                      Alternative 10: 74.1% accurate, 2.5× speedup?

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

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

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

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

                                            \[\leadsto \frac{x \cdot e^{\color{blue}{\left(y \cdot \log z - \left(\mathsf{neg}\left(\log a\right)\right) \cdot -1\right)} - b}}{y} \]
                                          4. distribute-lft-neg-inN/A

                                            \[\leadsto \frac{x \cdot e^{\left(y \cdot \log z - \color{blue}{\left(\mathsf{neg}\left(\log a \cdot -1\right)\right)}\right) - b}}{y} \]
                                          5. distribute-rgt-neg-inN/A

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

                                            \[\leadsto \frac{x \cdot e^{\left(y \cdot \log z - \log a \cdot \color{blue}{1}\right) - b}}{y} \]
                                          7. fp-cancel-sub-sign-invN/A

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

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

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

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

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

                                            \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\color{blue}{\log z}, y, -1 \cdot \log a\right) - b}}{y} \]
                                          13. mul-1-negN/A

                                            \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log z, y, \color{blue}{\mathsf{neg}\left(\log a\right)}\right) - b}}{y} \]
                                          14. lower-neg.f64N/A

                                            \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log z, y, \color{blue}{-\log a}\right) - b}}{y} \]
                                          15. lower-log.f6493.0

                                            \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log z, y, -\color{blue}{\log a}\right) - b}}{y} \]
                                        5. Applied rewrites93.0%

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

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

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

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

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

                                            \[\leadsto \color{blue}{\frac{x \cdot e^{-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. *-commutativeN/A

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

                                            \[\leadsto \color{blue}{\frac{e^{-b}}{y} \cdot x} \]
                                          6. lower-/.f6482.1

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

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

                                        if -2.94999999999999995e94 < b < 1250

                                        1. Initial program 97.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 \frac{x \cdot \color{blue}{e^{y \cdot \log z + \log a \cdot \left(t - 1\right)}}}{y} \]
                                        4. Step-by-step derivation
                                          1. +-commutativeN/A

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

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

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

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

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

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

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

                                            \[\leadsto \frac{x \cdot \left({a}^{\left(t - 1\right)} \cdot \color{blue}{{z}^{y}}\right)}{y} \]
                                          9. lower-pow.f6485.4

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

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

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

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

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

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

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

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

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

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

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

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

                                        Alternative 11: 58.4% accurate, 2.6× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -0.000165 \lor \neg \left(b \leq 1.2 \cdot 10^{-5}\right):\\ \;\;\;\;\frac{e^{-b}}{y} \cdot x\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(-b, x, x\right)}{a \cdot y}\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a b)
                                         :precision binary64
                                         (if (or (<= b -0.000165) (not (<= b 1.2e-5)))
                                           (* (/ (exp (- b)) y) x)
                                           (/ (fma (- b) x x) (* a y))))
                                        double code(double x, double y, double z, double t, double a, double b) {
                                        	double tmp;
                                        	if ((b <= -0.000165) || !(b <= 1.2e-5)) {
                                        		tmp = (exp(-b) / y) * x;
                                        	} else {
                                        		tmp = fma(-b, x, x) / (a * y);
                                        	}
                                        	return tmp;
                                        }
                                        
                                        function code(x, y, z, t, a, b)
                                        	tmp = 0.0
                                        	if ((b <= -0.000165) || !(b <= 1.2e-5))
                                        		tmp = Float64(Float64(exp(Float64(-b)) / y) * x);
                                        	else
                                        		tmp = Float64(fma(Float64(-b), x, x) / Float64(a * y));
                                        	end
                                        	return tmp
                                        end
                                        
                                        code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -0.000165], N[Not[LessEqual[b, 1.2e-5]], $MachinePrecision]], N[(N[(N[Exp[(-b)], $MachinePrecision] / y), $MachinePrecision] * x), $MachinePrecision], N[(N[((-b) * x + x), $MachinePrecision] / N[(a * y), $MachinePrecision]), $MachinePrecision]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        \mathbf{if}\;b \leq -0.000165 \lor \neg \left(b \leq 1.2 \cdot 10^{-5}\right):\\
                                        \;\;\;\;\frac{e^{-b}}{y} \cdot x\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;\frac{\mathsf{fma}\left(-b, x, x\right)}{a \cdot y}\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 2 regimes
                                        2. if b < -1.65e-4 or 1.2e-5 < 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 t around 0

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

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

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

                                              \[\leadsto \frac{x \cdot e^{\color{blue}{\left(y \cdot \log z - \left(\mathsf{neg}\left(\log a\right)\right) \cdot -1\right)} - b}}{y} \]
                                            4. distribute-lft-neg-inN/A

                                              \[\leadsto \frac{x \cdot e^{\left(y \cdot \log z - \color{blue}{\left(\mathsf{neg}\left(\log a \cdot -1\right)\right)}\right) - b}}{y} \]
                                            5. distribute-rgt-neg-inN/A

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

                                              \[\leadsto \frac{x \cdot e^{\left(y \cdot \log z - \log a \cdot \color{blue}{1}\right) - b}}{y} \]
                                            7. fp-cancel-sub-sign-invN/A

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

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

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

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

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

                                              \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\color{blue}{\log z}, y, -1 \cdot \log a\right) - b}}{y} \]
                                            13. mul-1-negN/A

                                              \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log z, y, \color{blue}{\mathsf{neg}\left(\log a\right)}\right) - b}}{y} \]
                                            14. lower-neg.f64N/A

                                              \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log z, y, \color{blue}{-\log a}\right) - b}}{y} \]
                                            15. lower-log.f6491.0

                                              \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log z, y, -\color{blue}{\log a}\right) - b}}{y} \]
                                          5. Applied rewrites91.0%

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

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

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

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

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

                                              \[\leadsto \color{blue}{\frac{x \cdot e^{-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. *-commutativeN/A

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

                                              \[\leadsto \color{blue}{\frac{e^{-b}}{y} \cdot x} \]
                                            6. lower-/.f6478.9

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

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

                                          if -1.65e-4 < b < 1.2e-5

                                          1. Initial program 97.0%

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

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

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

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

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

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

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

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

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

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

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

                                            Alternative 12: 44.8% accurate, 5.9× speedup?

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

                                              1. Initial program 98.2%

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

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

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

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

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

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

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

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

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

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

                                                  if 1.7e-211 < b

                                                  1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

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

                                                    Alternative 13: 42.3% accurate, 7.3× speedup?

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

                                                      1. Initial program 98.2%

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

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

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

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

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

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

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

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

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

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

                                                          if 1.7e-211 < b

                                                          1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

                                                                \[\leadsto \frac{\frac{x}{\mathsf{fma}\left(\mathsf{fma}\left(b \cdot a, 0.5, a\right), b, a\right)}}{y} \]
                                                            4. Recombined 2 regimes into one program.
                                                            5. Add Preprocessing

                                                            Alternative 14: 38.7% accurate, 9.6× speedup?

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

                                                              1. Initial program 98.2%

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

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

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

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

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

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

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

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

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

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

                                                                  if 1.7e-211 < b

                                                                  1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

                                                                        \[\leadsto \frac{\frac{x}{\mathsf{fma}\left(b, a, a\right)}}{y} \]
                                                                    4. Recombined 2 regimes into one program.
                                                                    5. Add Preprocessing

                                                                    Alternative 15: 32.0% accurate, 10.8× speedup?

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

                                                                      1. Initial program 97.8%

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

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

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

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

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

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

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

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

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

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

                                                                          if 1.2999999999999999e-32 < x

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

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

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

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

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

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

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

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

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

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

                                                                            Alternative 16: 31.7% accurate, 11.6× speedup?

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

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

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

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

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

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

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

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

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

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

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

                                                                                  if 2.0000000000000002e44 < a

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

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

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

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

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

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

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

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

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

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

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

                                                                                      Alternative 17: 30.1% accurate, 19.8× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := {a}^{\left(t - 1\right)}\\ t_2 := \frac{x \cdot \frac{t\_1}{y}}{\left(b + 1\right) - y \cdot \log z}\\ \mathbf{if}\;t < -0.8845848504127471:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t < 852031.2288374073:\\ \;\;\;\;\frac{\frac{x}{y} \cdot t\_1}{e^{b - \log z \cdot y}}\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                                                                                            (FPCore (x y z t a b)
                                                                                             :precision binary64
                                                                                             (let* ((t_1 (pow a (- t 1.0)))
                                                                                                    (t_2 (/ (* x (/ t_1 y)) (- (+ b 1.0) (* y (log z))))))
                                                                                               (if (< t -0.8845848504127471)
                                                                                                 t_2
                                                                                                 (if (< t 852031.2288374073)
                                                                                                   (/ (* (/ x y) t_1) (exp (- b (* (log z) y))))
                                                                                                   t_2))))
                                                                                            double code(double x, double y, double z, double t, double a, double b) {
                                                                                            	double t_1 = pow(a, (t - 1.0));
                                                                                            	double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z)));
                                                                                            	double tmp;
                                                                                            	if (t < -0.8845848504127471) {
                                                                                            		tmp = t_2;
                                                                                            	} else if (t < 852031.2288374073) {
                                                                                            		tmp = ((x / y) * t_1) / exp((b - (log(z) * y)));
                                                                                            	} else {
                                                                                            		tmp = t_2;
                                                                                            	}
                                                                                            	return tmp;
                                                                                            }
                                                                                            
                                                                                            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 2024359 
                                                                                            (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))