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

Percentage Accurate: 98.5% → 99.0%
Time: 10.6s
Alternatives: 15
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}

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 15 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: 99.0% accurate, 0.9× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log a, t, \color{blue}{\left(\mathsf{neg}\left(\log a\right)\right) + \left(y \cdot \log z + \left(\mathsf{neg}\left(b\right)\right)\right)}\right)}}{y} \]
  3. Applied rewrites98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 99.0% accurate, 0.9× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log a, t, \color{blue}{\left(\mathsf{neg}\left(\log a\right)\right) + \left(y \cdot \log z + \left(\mathsf{neg}\left(b\right)\right)\right)}\right)}}{y} \]
  3. Applied rewrites98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 3: 98.5% accurate, 1.0× speedup?

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

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

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

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

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

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

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

Alternative 4: 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.5%

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

Alternative 5: 98.5% accurate, 1.0× speedup?

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

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

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

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

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

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

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

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

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

Alternative 6: 93.6% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -2.25 \cdot 10^{+92}:\\ \;\;\;\;\frac{x}{y} \cdot e^{\mathsf{fma}\left(\log a, t - 1, \log z \cdot y - b\right)}\\ \mathbf{elif}\;t \leq 2.25 \cdot 10^{-23}:\\ \;\;\;\;\frac{\frac{x}{a \cdot e^{b - y \cdot \log z}}}{y}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot \frac{e^{t \cdot \log a - b}}{a}}{y}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= t -2.25e+92)
   (* (/ x y) (exp (fma (log a) (- t 1.0) (- (* (log z) y) b))))
   (if (<= t 2.25e-23)
     (/ (/ x (* a (exp (- b (* y (log z)))))) y)
     (/ (* x (/ (exp (- (* t (log a)) b)) a)) y))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (t <= -2.25e+92) {
		tmp = (x / y) * exp(fma(log(a), (t - 1.0), ((log(z) * y) - b)));
	} else if (t <= 2.25e-23) {
		tmp = (x / (a * exp((b - (y * log(z)))))) / y;
	} else {
		tmp = (x * (exp(((t * log(a)) - b)) / a)) / y;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (t <= -2.25e+92)
		tmp = Float64(Float64(x / y) * exp(fma(log(a), Float64(t - 1.0), Float64(Float64(log(z) * y) - b))));
	elseif (t <= 2.25e-23)
		tmp = Float64(Float64(x / Float64(a * exp(Float64(b - Float64(y * log(z)))))) / y);
	else
		tmp = Float64(Float64(x * Float64(exp(Float64(Float64(t * log(a)) - b)) / a)) / y);
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -2.25e+92], N[(N[(x / y), $MachinePrecision] * N[Exp[N[(N[Log[a], $MachinePrecision] * N[(t - 1.0), $MachinePrecision] + N[(N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.25e-23], N[(N[(x / N[(a * N[Exp[N[(b - N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[(N[Exp[N[(N[(t * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.25 \cdot 10^{+92}:\\
\;\;\;\;\frac{x}{y} \cdot e^{\mathsf{fma}\left(\log a, t - 1, \log z \cdot y - b\right)}\\

\mathbf{elif}\;t \leq 2.25 \cdot 10^{-23}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b - y \cdot \log z}}}{y}\\

\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{e^{t \cdot \log a - b}}{a}}{y}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -2.25e92

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.25e92 < t < 2.24999999999999987e-23

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log a, t, \color{blue}{\left(\mathsf{neg}\left(\log a\right)\right) + \left(y \cdot \log z + \left(\mathsf{neg}\left(b\right)\right)\right)}\right)}}{y} \]
    3. Applied rewrites98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\frac{x}{a \cdot e^{b - y \cdot \log z}}}{y} \]
      6. lower-log.f6481.3

        \[\leadsto \frac{\frac{x}{a \cdot e^{b - y \cdot \log z}}}{y} \]
    8. Applied rewrites81.3%

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

    if 2.24999999999999987e-23 < t

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log a, t, \color{blue}{\left(\mathsf{neg}\left(\log a\right)\right) + \left(y \cdot \log z + \left(\mathsf{neg}\left(b\right)\right)\right)}\right)}}{y} \]
    3. Applied rewrites98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot \frac{e^{t \cdot \log a - b}}{a}}{y} \]
      5. lower-log.f6480.7

        \[\leadsto \frac{x \cdot \frac{e^{t \cdot \log a - b}}{a}}{y} \]
    8. Applied rewrites80.7%

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

Alternative 7: 93.5% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{a \cdot \left(y \cdot e^{b - y \cdot \log z}\right)}\\ \mathbf{if}\;y \leq -1.1 \cdot 10^{-10}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 160000000:\\ \;\;\;\;\frac{x \cdot \frac{e^{t \cdot \log a - b}}{a}}{y}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ x (* a (* y (exp (- b (* y (log z)))))))))
   (if (<= y -1.1e-10)
     t_1
     (if (<= y 160000000.0) (/ (* x (/ (exp (- (* t (log a)) b)) a)) y) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = x / (a * (y * exp((b - (y * log(z))))));
	double tmp;
	if (y <= -1.1e-10) {
		tmp = t_1;
	} else if (y <= 160000000.0) {
		tmp = (x * (exp(((t * log(a)) - b)) / a)) / y;
	} else {
		tmp = t_1;
	}
	return tmp;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: t_1
    real(8) :: tmp
    t_1 = x / (a * (y * exp((b - (y * log(z))))))
    if (y <= (-1.1d-10)) then
        tmp = t_1
    else if (y <= 160000000.0d0) then
        tmp = (x * (exp(((t * log(a)) - b)) / a)) / y
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = x / (a * (y * Math.exp((b - (y * Math.log(z))))));
	double tmp;
	if (y <= -1.1e-10) {
		tmp = t_1;
	} else if (y <= 160000000.0) {
		tmp = (x * (Math.exp(((t * Math.log(a)) - b)) / a)) / y;
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = x / (a * (y * math.exp((b - (y * math.log(z))))))
	tmp = 0
	if y <= -1.1e-10:
		tmp = t_1
	elif y <= 160000000.0:
		tmp = (x * (math.exp(((t * math.log(a)) - b)) / a)) / y
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(x / Float64(a * Float64(y * exp(Float64(b - Float64(y * log(z)))))))
	tmp = 0.0
	if (y <= -1.1e-10)
		tmp = t_1;
	elseif (y <= 160000000.0)
		tmp = Float64(Float64(x * Float64(exp(Float64(Float64(t * log(a)) - b)) / a)) / y);
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = x / (a * (y * exp((b - (y * log(z))))));
	tmp = 0.0;
	if (y <= -1.1e-10)
		tmp = t_1;
	elseif (y <= 160000000.0)
		tmp = (x * (exp(((t * log(a)) - b)) / a)) / y;
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a * N[(y * N[Exp[N[(b - N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.1e-10], t$95$1, If[LessEqual[y, 160000000.0], N[(N[(x * N[(N[Exp[N[(N[(t * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]
\begin{array}{l}

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

\mathbf{elif}\;y \leq 160000000:\\
\;\;\;\;\frac{x \cdot \frac{e^{t \cdot \log a - b}}{a}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.09999999999999995e-10 or 1.6e8 < y

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log a, t, \color{blue}{\left(\mathsf{neg}\left(\log a\right)\right) + \left(y \cdot \log z + \left(\mathsf{neg}\left(b\right)\right)\right)}\right)}}{y} \]
    3. Applied rewrites98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x}{a \cdot \left(y \cdot e^{b - y \cdot \log z}\right)} \]
      7. lower-log.f6481.2

        \[\leadsto \frac{x}{a \cdot \left(y \cdot e^{b - y \cdot \log z}\right)} \]
    8. Applied rewrites81.2%

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

    if -1.09999999999999995e-10 < y < 1.6e8

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log a, t, \color{blue}{\left(\mathsf{neg}\left(\log a\right)\right) + \left(y \cdot \log z + \left(\mathsf{neg}\left(b\right)\right)\right)}\right)}}{y} \]
    3. Applied rewrites98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot \frac{e^{t \cdot \log a - b}}{a}}{y} \]
      5. lower-log.f6480.7

        \[\leadsto \frac{x \cdot \frac{e^{t \cdot \log a - b}}{a}}{y} \]
    8. Applied rewrites80.7%

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

Alternative 8: 92.7% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{a \cdot \left(y \cdot e^{b - y \cdot \log z}\right)}\\ \mathbf{if}\;y \leq -1.1 \cdot 10^{-10}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 160000000:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b - t \cdot \log a}\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ x (* a (* y (exp (- b (* y (log z)))))))))
   (if (<= y -1.1e-10)
     t_1
     (if (<= y 160000000.0) (/ x (* a (* y (exp (- b (* t (log a))))))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = x / (a * (y * exp((b - (y * log(z))))));
	double tmp;
	if (y <= -1.1e-10) {
		tmp = t_1;
	} else if (y <= 160000000.0) {
		tmp = x / (a * (y * exp((b - (t * log(a))))));
	} else {
		tmp = t_1;
	}
	return tmp;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: t_1
    real(8) :: tmp
    t_1 = x / (a * (y * exp((b - (y * log(z))))))
    if (y <= (-1.1d-10)) then
        tmp = t_1
    else if (y <= 160000000.0d0) then
        tmp = x / (a * (y * exp((b - (t * log(a))))))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = x / (a * (y * Math.exp((b - (y * Math.log(z))))));
	double tmp;
	if (y <= -1.1e-10) {
		tmp = t_1;
	} else if (y <= 160000000.0) {
		tmp = x / (a * (y * Math.exp((b - (t * Math.log(a))))));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = x / (a * (y * math.exp((b - (y * math.log(z))))))
	tmp = 0
	if y <= -1.1e-10:
		tmp = t_1
	elif y <= 160000000.0:
		tmp = x / (a * (y * math.exp((b - (t * math.log(a))))))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(x / Float64(a * Float64(y * exp(Float64(b - Float64(y * log(z)))))))
	tmp = 0.0
	if (y <= -1.1e-10)
		tmp = t_1;
	elseif (y <= 160000000.0)
		tmp = Float64(x / Float64(a * Float64(y * exp(Float64(b - Float64(t * log(a)))))));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = x / (a * (y * exp((b - (y * log(z))))));
	tmp = 0.0;
	if (y <= -1.1e-10)
		tmp = t_1;
	elseif (y <= 160000000.0)
		tmp = x / (a * (y * exp((b - (t * log(a))))));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a * N[(y * N[Exp[N[(b - N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.1e-10], t$95$1, If[LessEqual[y, 160000000.0], N[(x / N[(a * N[(y * N[Exp[N[(b - N[(t * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

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

\mathbf{elif}\;y \leq 160000000:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b - t \cdot \log a}\right)}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.09999999999999995e-10 or 1.6e8 < y

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log a, t, \color{blue}{\left(\mathsf{neg}\left(\log a\right)\right) + \left(y \cdot \log z + \left(\mathsf{neg}\left(b\right)\right)\right)}\right)}}{y} \]
    3. Applied rewrites98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x}{a \cdot \left(y \cdot e^{b - y \cdot \log z}\right)} \]
      7. lower-log.f6481.2

        \[\leadsto \frac{x}{a \cdot \left(y \cdot e^{b - y \cdot \log z}\right)} \]
    8. Applied rewrites81.2%

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

    if -1.09999999999999995e-10 < y < 1.6e8

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log a, t, \color{blue}{\left(\mathsf{neg}\left(\log a\right)\right) + \left(y \cdot \log z + \left(\mathsf{neg}\left(b\right)\right)\right)}\right)}}{y} \]
    3. Applied rewrites98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x}{a \cdot \left(y \cdot e^{b - t \cdot \log a}\right)} \]
      7. lower-log.f6480.9

        \[\leadsto \frac{x}{a \cdot \left(y \cdot e^{b - t \cdot \log a}\right)} \]
    8. Applied rewrites80.9%

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

Alternative 9: 89.5% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\frac{x}{a \cdot e^{-y \cdot \log z}}}{y}\\ \mathbf{if}\;y \leq -8500000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 2.45 \cdot 10^{+94}:\\ \;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b - t \cdot \log a}\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ (/ x (* a (exp (- (* y (log z)))))) y)))
   (if (<= y -8500000000.0)
     t_1
     (if (<= y 2.45e+94) (/ x (* a (* y (exp (- b (* t (log a))))))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x / (a * exp(-(y * log(z))))) / y;
	double tmp;
	if (y <= -8500000000.0) {
		tmp = t_1;
	} else if (y <= 2.45e+94) {
		tmp = x / (a * (y * exp((b - (t * log(a))))));
	} else {
		tmp = t_1;
	}
	return tmp;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: t_1
    real(8) :: tmp
    t_1 = (x / (a * exp(-(y * log(z))))) / y
    if (y <= (-8500000000.0d0)) then
        tmp = t_1
    else if (y <= 2.45d+94) then
        tmp = x / (a * (y * exp((b - (t * log(a))))))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x / (a * Math.exp(-(y * Math.log(z))))) / y;
	double tmp;
	if (y <= -8500000000.0) {
		tmp = t_1;
	} else if (y <= 2.45e+94) {
		tmp = x / (a * (y * Math.exp((b - (t * Math.log(a))))));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (x / (a * math.exp(-(y * math.log(z))))) / y
	tmp = 0
	if y <= -8500000000.0:
		tmp = t_1
	elif y <= 2.45e+94:
		tmp = x / (a * (y * math.exp((b - (t * math.log(a))))))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(x / Float64(a * exp(Float64(-Float64(y * log(z)))))) / y)
	tmp = 0.0
	if (y <= -8500000000.0)
		tmp = t_1;
	elseif (y <= 2.45e+94)
		tmp = Float64(x / Float64(a * Float64(y * exp(Float64(b - Float64(t * log(a)))))));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = (x / (a * exp(-(y * log(z))))) / y;
	tmp = 0.0;
	if (y <= -8500000000.0)
		tmp = t_1;
	elseif (y <= 2.45e+94)
		tmp = x / (a * (y * exp((b - (t * log(a))))));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / N[(a * N[Exp[(-N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision])], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -8500000000.0], t$95$1, If[LessEqual[y, 2.45e+94], N[(x / N[(a * N[(y * N[Exp[N[(b - N[(t * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{\frac{x}{a \cdot e^{-y \cdot \log z}}}{y}\\
\mathbf{if}\;y \leq -8500000000:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq 2.45 \cdot 10^{+94}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b - t \cdot \log a}\right)}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -8.5e9 or 2.4499999999999999e94 < y

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log a, t, \color{blue}{\left(\mathsf{neg}\left(\log a\right)\right) + \left(y \cdot \log z + \left(\mathsf{neg}\left(b\right)\right)\right)}\right)}}{y} \]
    3. Applied rewrites98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\frac{x}{a \cdot e^{b - y \cdot \log z}}}{y} \]
      6. lower-log.f6481.3

        \[\leadsto \frac{\frac{x}{a \cdot e^{b - y \cdot \log z}}}{y} \]
    8. Applied rewrites81.3%

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

      \[\leadsto \frac{\frac{x}{a \cdot e^{\mathsf{neg}\left(y \cdot \log z\right)}}}{y} \]
    10. Step-by-step derivation
      1. lower-exp.f64N/A

        \[\leadsto \frac{\frac{x}{a \cdot e^{\mathsf{neg}\left(y \cdot \log z\right)}}}{y} \]
      2. lower-neg.f64N/A

        \[\leadsto \frac{\frac{x}{a \cdot e^{-y \cdot \log z}}}{y} \]
      3. lower-*.f64N/A

        \[\leadsto \frac{\frac{x}{a \cdot e^{-y \cdot \log z}}}{y} \]
      4. lower-log.f6459.8

        \[\leadsto \frac{\frac{x}{a \cdot e^{-y \cdot \log z}}}{y} \]
    11. Applied rewrites59.8%

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

    if -8.5e9 < y < 2.4499999999999999e94

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log a, t, \color{blue}{\left(\mathsf{neg}\left(\log a\right)\right) + \left(y \cdot \log z + \left(\mathsf{neg}\left(b\right)\right)\right)}\right)}}{y} \]
    3. Applied rewrites98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x}{a \cdot \left(y \cdot e^{b - t \cdot \log a}\right)} \]
      7. lower-log.f6480.9

        \[\leadsto \frac{x}{a \cdot \left(y \cdot e^{b - t \cdot \log a}\right)} \]
    8. Applied rewrites80.9%

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

Alternative 10: 88.9% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\frac{x}{a \cdot e^{-y \cdot \log z}}}{y}\\ \mathbf{if}\;y \leq -8500000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 2.45 \cdot 10^{+94}:\\ \;\;\;\;\frac{x}{y \cdot e^{b + \log a \cdot \left(1 - t\right)}}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ (/ x (* a (exp (- (* y (log z)))))) y)))
   (if (<= y -8500000000.0)
     t_1
     (if (<= y 2.45e+94) (/ x (* y (exp (+ b (* (log a) (- 1.0 t)))))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x / (a * exp(-(y * log(z))))) / y;
	double tmp;
	if (y <= -8500000000.0) {
		tmp = t_1;
	} else if (y <= 2.45e+94) {
		tmp = x / (y * exp((b + (log(a) * (1.0 - t)))));
	} else {
		tmp = t_1;
	}
	return tmp;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: t_1
    real(8) :: tmp
    t_1 = (x / (a * exp(-(y * log(z))))) / y
    if (y <= (-8500000000.0d0)) then
        tmp = t_1
    else if (y <= 2.45d+94) then
        tmp = x / (y * exp((b + (log(a) * (1.0d0 - t)))))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x / (a * Math.exp(-(y * Math.log(z))))) / y;
	double tmp;
	if (y <= -8500000000.0) {
		tmp = t_1;
	} else if (y <= 2.45e+94) {
		tmp = x / (y * Math.exp((b + (Math.log(a) * (1.0 - t)))));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (x / (a * math.exp(-(y * math.log(z))))) / y
	tmp = 0
	if y <= -8500000000.0:
		tmp = t_1
	elif y <= 2.45e+94:
		tmp = x / (y * math.exp((b + (math.log(a) * (1.0 - t)))))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(x / Float64(a * exp(Float64(-Float64(y * log(z)))))) / y)
	tmp = 0.0
	if (y <= -8500000000.0)
		tmp = t_1;
	elseif (y <= 2.45e+94)
		tmp = Float64(x / Float64(y * exp(Float64(b + Float64(log(a) * Float64(1.0 - t))))));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = (x / (a * exp(-(y * log(z))))) / y;
	tmp = 0.0;
	if (y <= -8500000000.0)
		tmp = t_1;
	elseif (y <= 2.45e+94)
		tmp = x / (y * exp((b + (log(a) * (1.0 - t)))));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / N[(a * N[Exp[(-N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision])], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -8500000000.0], t$95$1, If[LessEqual[y, 2.45e+94], N[(x / N[(y * N[Exp[N[(b + N[(N[Log[a], $MachinePrecision] * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{\frac{x}{a \cdot e^{-y \cdot \log z}}}{y}\\
\mathbf{if}\;y \leq -8500000000:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq 2.45 \cdot 10^{+94}:\\
\;\;\;\;\frac{x}{y \cdot e^{b + \log a \cdot \left(1 - t\right)}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -8.5e9 or 2.4499999999999999e94 < y

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log a, t, \color{blue}{\left(\mathsf{neg}\left(\log a\right)\right) + \left(y \cdot \log z + \left(\mathsf{neg}\left(b\right)\right)\right)}\right)}}{y} \]
    3. Applied rewrites98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\frac{x}{a \cdot e^{b - y \cdot \log z}}}{y} \]
      6. lower-log.f6481.3

        \[\leadsto \frac{\frac{x}{a \cdot e^{b - y \cdot \log z}}}{y} \]
    8. Applied rewrites81.3%

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

      \[\leadsto \frac{\frac{x}{a \cdot e^{\mathsf{neg}\left(y \cdot \log z\right)}}}{y} \]
    10. Step-by-step derivation
      1. lower-exp.f64N/A

        \[\leadsto \frac{\frac{x}{a \cdot e^{\mathsf{neg}\left(y \cdot \log z\right)}}}{y} \]
      2. lower-neg.f64N/A

        \[\leadsto \frac{\frac{x}{a \cdot e^{-y \cdot \log z}}}{y} \]
      3. lower-*.f64N/A

        \[\leadsto \frac{\frac{x}{a \cdot e^{-y \cdot \log z}}}{y} \]
      4. lower-log.f6459.8

        \[\leadsto \frac{\frac{x}{a \cdot e^{-y \cdot \log z}}}{y} \]
    11. Applied rewrites59.8%

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

    if -8.5e9 < y < 2.4499999999999999e94

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot \frac{{z}^{y}}{\color{blue}{e^{b - \left(t - 1\right) \cdot \log a}}}}{y} \]
      15. sub-negate-revN/A

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x}{y \cdot e^{b + \log a \cdot \left(1 - t\right)}} \]
    6. Applied rewrites80.3%

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

Alternative 11: 88.9% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\frac{x}{a \cdot e^{-y \cdot \log z}}}{y}\\ \mathbf{if}\;y \leq -8500000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 2.45 \cdot 10^{+94}:\\ \;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t - 1\right) - b}}{y}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ (/ x (* a (exp (- (* y (log z)))))) y)))
   (if (<= y -8500000000.0)
     t_1
     (if (<= y 2.45e+94) (/ (* x (exp (- (* (log a) (- t 1.0)) b))) y) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x / (a * exp(-(y * log(z))))) / y;
	double tmp;
	if (y <= -8500000000.0) {
		tmp = t_1;
	} else if (y <= 2.45e+94) {
		tmp = (x * exp(((log(a) * (t - 1.0)) - b))) / y;
	} else {
		tmp = t_1;
	}
	return tmp;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: t_1
    real(8) :: tmp
    t_1 = (x / (a * exp(-(y * log(z))))) / y
    if (y <= (-8500000000.0d0)) then
        tmp = t_1
    else if (y <= 2.45d+94) then
        tmp = (x * exp(((log(a) * (t - 1.0d0)) - b))) / y
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x / (a * Math.exp(-(y * Math.log(z))))) / y;
	double tmp;
	if (y <= -8500000000.0) {
		tmp = t_1;
	} else if (y <= 2.45e+94) {
		tmp = (x * Math.exp(((Math.log(a) * (t - 1.0)) - b))) / y;
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (x / (a * math.exp(-(y * math.log(z))))) / y
	tmp = 0
	if y <= -8500000000.0:
		tmp = t_1
	elif y <= 2.45e+94:
		tmp = (x * math.exp(((math.log(a) * (t - 1.0)) - b))) / y
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(x / Float64(a * exp(Float64(-Float64(y * log(z)))))) / y)
	tmp = 0.0
	if (y <= -8500000000.0)
		tmp = t_1;
	elseif (y <= 2.45e+94)
		tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * Float64(t - 1.0)) - b))) / y);
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = (x / (a * exp(-(y * log(z))))) / y;
	tmp = 0.0;
	if (y <= -8500000000.0)
		tmp = t_1;
	elseif (y <= 2.45e+94)
		tmp = (x * exp(((log(a) * (t - 1.0)) - b))) / y;
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / N[(a * N[Exp[(-N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision])], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -8500000000.0], t$95$1, If[LessEqual[y, 2.45e+94], N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * N[(t - 1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{\frac{x}{a \cdot e^{-y \cdot \log z}}}{y}\\
\mathbf{if}\;y \leq -8500000000:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq 2.45 \cdot 10^{+94}:\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t - 1\right) - b}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -8.5e9 or 2.4499999999999999e94 < y

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log a, t, \color{blue}{\left(\mathsf{neg}\left(\log a\right)\right) + \left(y \cdot \log z + \left(\mathsf{neg}\left(b\right)\right)\right)}\right)}}{y} \]
    3. Applied rewrites98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\frac{x}{a \cdot e^{b - y \cdot \log z}}}{y} \]
      6. lower-log.f6481.3

        \[\leadsto \frac{\frac{x}{a \cdot e^{b - y \cdot \log z}}}{y} \]
    8. Applied rewrites81.3%

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

      \[\leadsto \frac{\frac{x}{a \cdot e^{\mathsf{neg}\left(y \cdot \log z\right)}}}{y} \]
    10. Step-by-step derivation
      1. lower-exp.f64N/A

        \[\leadsto \frac{\frac{x}{a \cdot e^{\mathsf{neg}\left(y \cdot \log z\right)}}}{y} \]
      2. lower-neg.f64N/A

        \[\leadsto \frac{\frac{x}{a \cdot e^{-y \cdot \log z}}}{y} \]
      3. lower-*.f64N/A

        \[\leadsto \frac{\frac{x}{a \cdot e^{-y \cdot \log z}}}{y} \]
      4. lower-log.f6459.8

        \[\leadsto \frac{\frac{x}{a \cdot e^{-y \cdot \log z}}}{y} \]
    11. Applied rewrites59.8%

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

    if -8.5e9 < y < 2.4499999999999999e94

    1. Initial program 98.5%

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

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

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

        \[\leadsto \frac{x \cdot e^{\log a \cdot \left(\color{blue}{t} - 1\right) - b}}{y} \]
      3. lower--.f6480.2

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

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

Alternative 12: 74.7% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\frac{x}{a \cdot e^{-y \cdot \log z}}}{y}\\ \mathbf{if}\;y \leq -5400:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 5.8 \cdot 10^{+93}:\\ \;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ (/ x (* a (exp (- (* y (log z)))))) y)))
   (if (<= y -5400.0) t_1 (if (<= y 5.8e+93) (/ (/ x (* a (exp b))) y) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x / (a * exp(-(y * log(z))))) / y;
	double tmp;
	if (y <= -5400.0) {
		tmp = t_1;
	} else if (y <= 5.8e+93) {
		tmp = (x / (a * exp(b))) / y;
	} else {
		tmp = t_1;
	}
	return tmp;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: t_1
    real(8) :: tmp
    t_1 = (x / (a * exp(-(y * log(z))))) / y
    if (y <= (-5400.0d0)) then
        tmp = t_1
    else if (y <= 5.8d+93) then
        tmp = (x / (a * exp(b))) / y
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x / (a * Math.exp(-(y * Math.log(z))))) / y;
	double tmp;
	if (y <= -5400.0) {
		tmp = t_1;
	} else if (y <= 5.8e+93) {
		tmp = (x / (a * Math.exp(b))) / y;
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (x / (a * math.exp(-(y * math.log(z))))) / y
	tmp = 0
	if y <= -5400.0:
		tmp = t_1
	elif y <= 5.8e+93:
		tmp = (x / (a * math.exp(b))) / y
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(x / Float64(a * exp(Float64(-Float64(y * log(z)))))) / y)
	tmp = 0.0
	if (y <= -5400.0)
		tmp = t_1;
	elseif (y <= 5.8e+93)
		tmp = Float64(Float64(x / Float64(a * exp(b))) / y);
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = (x / (a * exp(-(y * log(z))))) / y;
	tmp = 0.0;
	if (y <= -5400.0)
		tmp = t_1;
	elseif (y <= 5.8e+93)
		tmp = (x / (a * exp(b))) / y;
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / N[(a * N[Exp[(-N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision])], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -5400.0], t$95$1, If[LessEqual[y, 5.8e+93], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{\frac{x}{a \cdot e^{-y \cdot \log z}}}{y}\\
\mathbf{if}\;y \leq -5400:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq 5.8 \cdot 10^{+93}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -5400 or 5.7999999999999997e93 < y

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log a, t, \color{blue}{\left(\mathsf{neg}\left(\log a\right)\right) + \left(y \cdot \log z + \left(\mathsf{neg}\left(b\right)\right)\right)}\right)}}{y} \]
    3. Applied rewrites98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\frac{x}{a \cdot e^{b - y \cdot \log z}}}{y} \]
      6. lower-log.f6481.3

        \[\leadsto \frac{\frac{x}{a \cdot e^{b - y \cdot \log z}}}{y} \]
    8. Applied rewrites81.3%

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

      \[\leadsto \frac{\frac{x}{a \cdot e^{\mathsf{neg}\left(y \cdot \log z\right)}}}{y} \]
    10. Step-by-step derivation
      1. lower-exp.f64N/A

        \[\leadsto \frac{\frac{x}{a \cdot e^{\mathsf{neg}\left(y \cdot \log z\right)}}}{y} \]
      2. lower-neg.f64N/A

        \[\leadsto \frac{\frac{x}{a \cdot e^{-y \cdot \log z}}}{y} \]
      3. lower-*.f64N/A

        \[\leadsto \frac{\frac{x}{a \cdot e^{-y \cdot \log z}}}{y} \]
      4. lower-log.f6459.8

        \[\leadsto \frac{\frac{x}{a \cdot e^{-y \cdot \log z}}}{y} \]
    11. Applied rewrites59.8%

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

    if -5400 < y < 5.7999999999999997e93

    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log a, t, \color{blue}{\left(\mathsf{neg}\left(\log a\right)\right) + \left(y \cdot \log z + \left(\mathsf{neg}\left(b\right)\right)\right)}\right)}}{y} \]
    3. Applied rewrites98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\frac{x}{a \cdot e^{b - y \cdot \log z}}}{y} \]
      6. lower-log.f6481.3

        \[\leadsto \frac{\frac{x}{a \cdot e^{b - y \cdot \log z}}}{y} \]
    8. Applied rewrites81.3%

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

      \[\leadsto \frac{\frac{x}{a \cdot e^{b}}}{y} \]
    10. Step-by-step derivation
      1. Applied rewrites59.1%

        \[\leadsto \frac{\frac{x}{a \cdot e^{b}}}{y} \]
    11. Recombined 2 regimes into one program.
    12. Add Preprocessing

    Alternative 13: 74.7% accurate, 1.3× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{e^{t \cdot \log a}}{y} \cdot x\\ \mathbf{if}\;t \leq -7.5 \cdot 10^{+94}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 21:\\ \;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t a b)
     :precision binary64
     (let* ((t_1 (* (/ (exp (* t (log a))) y) x)))
       (if (<= t -7.5e+94) t_1 (if (<= t 21.0) (/ (/ x (* a (exp b))) y) t_1))))
    double code(double x, double y, double z, double t, double a, double b) {
    	double t_1 = (exp((t * log(a))) / y) * x;
    	double tmp;
    	if (t <= -7.5e+94) {
    		tmp = t_1;
    	} else if (t <= 21.0) {
    		tmp = (x / (a * exp(b))) / y;
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    module fmin_fmax_functions
        implicit none
        private
        public fmax
        public fmin
    
        interface fmax
            module procedure fmax88
            module procedure fmax44
            module procedure fmax84
            module procedure fmax48
        end interface
        interface fmin
            module procedure fmin88
            module procedure fmin44
            module procedure fmin84
            module procedure fmin48
        end interface
    contains
        real(8) function fmax88(x, y) result (res)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
        end function
        real(4) function fmax44(x, y) result (res)
            real(4), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
        end function
        real(8) function fmax84(x, y) result(res)
            real(8), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
        end function
        real(8) function fmax48(x, y) result(res)
            real(4), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
        end function
        real(8) function fmin88(x, y) result (res)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
        end function
        real(4) function fmin44(x, y) result (res)
            real(4), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
        end function
        real(8) function fmin84(x, y) result(res)
            real(8), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
        end function
        real(8) function fmin48(x, y) result(res)
            real(4), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
        end function
    end module
    
    real(8) function code(x, y, z, t, a, b)
    use fmin_fmax_functions
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        real(8), intent (in) :: a
        real(8), intent (in) :: b
        real(8) :: t_1
        real(8) :: tmp
        t_1 = (exp((t * log(a))) / y) * x
        if (t <= (-7.5d+94)) then
            tmp = t_1
        else if (t <= 21.0d0) then
            tmp = (x / (a * exp(b))) / y
        else
            tmp = t_1
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t, double a, double b) {
    	double t_1 = (Math.exp((t * Math.log(a))) / y) * x;
    	double tmp;
    	if (t <= -7.5e+94) {
    		tmp = t_1;
    	} else if (t <= 21.0) {
    		tmp = (x / (a * Math.exp(b))) / y;
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b):
    	t_1 = (math.exp((t * math.log(a))) / y) * x
    	tmp = 0
    	if t <= -7.5e+94:
    		tmp = t_1
    	elif t <= 21.0:
    		tmp = (x / (a * math.exp(b))) / y
    	else:
    		tmp = t_1
    	return tmp
    
    function code(x, y, z, t, a, b)
    	t_1 = Float64(Float64(exp(Float64(t * log(a))) / y) * x)
    	tmp = 0.0
    	if (t <= -7.5e+94)
    		tmp = t_1;
    	elseif (t <= 21.0)
    		tmp = Float64(Float64(x / Float64(a * exp(b))) / y);
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a, b)
    	t_1 = (exp((t * log(a))) / y) * x;
    	tmp = 0.0;
    	if (t <= -7.5e+94)
    		tmp = t_1;
    	elseif (t <= 21.0)
    		tmp = (x / (a * exp(b))) / y;
    	else
    		tmp = t_1;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[Exp[N[(t * N[Log[a], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[t, -7.5e+94], t$95$1, If[LessEqual[t, 21.0], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \frac{e^{t \cdot \log a}}{y} \cdot x\\
    \mathbf{if}\;t \leq -7.5 \cdot 10^{+94}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t \leq 21:\\
    \;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if t < -7.49999999999999978e94 or 21 < t

      1. Initial program 98.5%

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

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

          \[\leadsto \frac{x \cdot e^{t \cdot \color{blue}{\log a}}}{y} \]
        2. lower-log.f6447.9

          \[\leadsto \frac{x \cdot e^{t \cdot \log a}}{y} \]
      4. Applied rewrites47.9%

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

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

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

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

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

          \[\leadsto \color{blue}{\frac{e^{t \cdot \log a}}{y} \cdot x} \]
        6. lower-/.f6447.9

          \[\leadsto \color{blue}{\frac{e^{t \cdot \log a}}{y}} \cdot x \]
      6. Applied rewrites47.9%

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

      if -7.49999999999999978e94 < t < 21

      1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log a, t, \color{blue}{\left(\mathsf{neg}\left(\log a\right)\right) + \left(y \cdot \log z + \left(\mathsf{neg}\left(b\right)\right)\right)}\right)}}{y} \]
      3. Applied rewrites98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{\frac{x}{a \cdot e^{b - y \cdot \log z}}}{y} \]
        6. lower-log.f6481.3

          \[\leadsto \frac{\frac{x}{a \cdot e^{b - y \cdot \log z}}}{y} \]
      8. Applied rewrites81.3%

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

        \[\leadsto \frac{\frac{x}{a \cdot e^{b}}}{y} \]
      10. Step-by-step derivation
        1. Applied rewrites59.1%

          \[\leadsto \frac{\frac{x}{a \cdot e^{b}}}{y} \]
      11. Recombined 2 regimes into one program.
      12. Add Preprocessing

      Alternative 14: 59.1% accurate, 2.1× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{x \cdot e^{\mathsf{fma}\left(\log a, t, \color{blue}{\left(\mathsf{neg}\left(\log a\right)\right) + \left(y \cdot \log z + \left(\mathsf{neg}\left(b\right)\right)\right)}\right)}}{y} \]
      3. Applied rewrites98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{\frac{x}{a \cdot e^{b - y \cdot \log z}}}{y} \]
        6. lower-log.f6481.3

          \[\leadsto \frac{\frac{x}{a \cdot e^{b - y \cdot \log z}}}{y} \]
      8. Applied rewrites81.3%

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

        \[\leadsto \frac{\frac{x}{a \cdot e^{b}}}{y} \]
      10. Step-by-step derivation
        1. Applied rewrites59.1%

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

        Alternative 15: 47.3% accurate, 2.3× speedup?

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

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

          \[\leadsto \frac{x \cdot e^{\color{blue}{-1 \cdot b}}}{y} \]
        3. Step-by-step derivation
          1. lower-*.f6447.3

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

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

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

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

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

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

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

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

            \[\leadsto \frac{e^{-1 \cdot \color{blue}{b}}}{y} \cdot x \]
          8. mul-1-negN/A

            \[\leadsto \frac{e^{\mathsf{neg}\left(b\right)}}{y} \cdot x \]
          9. lower-neg.f6447.3

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

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

        Reproduce

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