
(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}
Herbie found 10 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(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}
(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}
Initial program 98.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= t -3.1e+49)
(/ (* x (exp (* (log a) t))) y)
(if (<= t 1.52e+78)
(* x (/ (exp (- (fma (log z) y (- (log a))) b)) y))
(/ (* x (exp (- (* (log a) (- t 1.0)) b))) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -3.1e+49) {
tmp = (x * exp((log(a) * t))) / y;
} else if (t <= 1.52e+78) {
tmp = x * (exp((fma(log(z), y, -log(a)) - b)) / y);
} else {
tmp = (x * exp(((log(a) * (t - 1.0)) - b))) / y;
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -3.1e+49) tmp = Float64(Float64(x * exp(Float64(log(a) * t))) / y); elseif (t <= 1.52e+78) tmp = Float64(x * Float64(exp(Float64(fma(log(z), y, Float64(-log(a))) - b)) / y)); else tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * Float64(t - 1.0)) - b))) / y); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -3.1e+49], N[(N[(x * N[Exp[N[(N[Log[a], $MachinePrecision] * t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t, 1.52e+78], N[(x * N[(N[Exp[N[(N[(N[Log[z], $MachinePrecision] * y + (-N[Log[a], $MachinePrecision])), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * N[(t - 1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.1 \cdot 10^{+49}:\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot t}}{y}\\
\mathbf{elif}\;t \leq 1.52 \cdot 10^{+78}:\\
\;\;\;\;x \cdot \frac{e^{\mathsf{fma}\left(\log z, y, -\log a\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t - 1\right) - b}}{y}\\
\end{array}
\end{array}
if t < -3.09999999999999992e49Initial program 98.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lift-log.f6448.1
Applied rewrites48.1%
if -3.09999999999999992e49 < t < 1.52e78Initial program 98.5%
Taylor expanded in t around 0
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower-exp.f64N/A
lower--.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lift-log.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lift-log.f6480.2
Applied rewrites80.2%
if 1.52e78 < t Initial program 98.5%
Taylor expanded in y around 0
lower-*.f64N/A
lift-log.f64N/A
lift--.f6480.9
Applied rewrites80.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* (exp (* (log z) y)) x) y)))
(if (<= y -150000000000.0)
t_1
(if (<= y 5.2e+215) (/ (* 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 = (exp((log(z) * y)) * x) / y;
double tmp;
if (y <= -150000000000.0) {
tmp = t_1;
} else if (y <= 5.2e+215) {
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 = (exp((log(z) * y)) * x) / y
if (y <= (-150000000000.0d0)) then
tmp = t_1
else if (y <= 5.2d+215) 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 = (Math.exp((Math.log(z) * y)) * x) / y;
double tmp;
if (y <= -150000000000.0) {
tmp = t_1;
} else if (y <= 5.2e+215) {
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 = (math.exp((math.log(z) * y)) * x) / y tmp = 0 if y <= -150000000000.0: tmp = t_1 elif y <= 5.2e+215: 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(exp(Float64(log(z) * y)) * x) / y) tmp = 0.0 if (y <= -150000000000.0) tmp = t_1; elseif (y <= 5.2e+215) 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 = (exp((log(z) * y)) * x) / y; tmp = 0.0; if (y <= -150000000000.0) tmp = t_1; elseif (y <= 5.2e+215) 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[(N[Exp[N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -150000000000.0], t$95$1, If[LessEqual[y, 5.2e+215], 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{e^{\log z \cdot y} \cdot x}{y}\\
\mathbf{if}\;y \leq -150000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{+215}:\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t - 1\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.5e11 or 5.2000000000000001e215 < y Initial program 98.5%
lift-/.f64N/A
lift-*.f64N/A
lift-exp.f64N/A
lift--.f64N/A
lift-+.f64N/A
lift-*.f64N/A
lift-log.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-log.f64N/A
mult-flipN/A
lower-*.f64N/A
Applied rewrites98.5%
Taylor expanded in y around inf
*-commutativeN/A
+-commutativeN/A
*-commutativeN/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lift-log.f64N/A
lower-/.f64N/A
lift--.f64N/A
lift-log.f6497.2
Applied rewrites97.2%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lift-log.f6447.6
Applied rewrites47.6%
lift-*.f64N/A
lift-/.f64N/A
mult-flip-revN/A
lower-/.f6447.6
Applied rewrites47.6%
if -1.5e11 < y < 5.2000000000000001e215Initial program 98.5%
Taylor expanded in y around 0
lower-*.f64N/A
lift-log.f64N/A
lift--.f6480.9
Applied rewrites80.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- t 1.0) (log a))) (t_2 (/ (* x (exp (* (log a) t))) y)))
(if (<= t_1 -1e+42)
t_2
(if (<= t_1 130.0)
(* x (/ (exp (- (- (log a)) b)) y))
(if (<= t_1 50000.0) (/ (* (exp (* (log z) y)) x) y) t_2)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - 1.0) * log(a);
double t_2 = (x * exp((log(a) * t))) / y;
double tmp;
if (t_1 <= -1e+42) {
tmp = t_2;
} else if (t_1 <= 130.0) {
tmp = x * (exp((-log(a) - b)) / y);
} else if (t_1 <= 50000.0) {
tmp = (exp((log(z) * y)) * x) / y;
} else {
tmp = t_2;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (t - 1.0d0) * log(a)
t_2 = (x * exp((log(a) * t))) / y
if (t_1 <= (-1d+42)) then
tmp = t_2
else if (t_1 <= 130.0d0) then
tmp = x * (exp((-log(a) - b)) / y)
else if (t_1 <= 50000.0d0) then
tmp = (exp((log(z) * y)) * x) / y
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - 1.0) * Math.log(a);
double t_2 = (x * Math.exp((Math.log(a) * t))) / y;
double tmp;
if (t_1 <= -1e+42) {
tmp = t_2;
} else if (t_1 <= 130.0) {
tmp = x * (Math.exp((-Math.log(a) - b)) / y);
} else if (t_1 <= 50000.0) {
tmp = (Math.exp((Math.log(z) * y)) * x) / y;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - 1.0) * math.log(a) t_2 = (x * math.exp((math.log(a) * t))) / y tmp = 0 if t_1 <= -1e+42: tmp = t_2 elif t_1 <= 130.0: tmp = x * (math.exp((-math.log(a) - b)) / y) elif t_1 <= 50000.0: tmp = (math.exp((math.log(z) * y)) * x) / y else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - 1.0) * log(a)) t_2 = Float64(Float64(x * exp(Float64(log(a) * t))) / y) tmp = 0.0 if (t_1 <= -1e+42) tmp = t_2; elseif (t_1 <= 130.0) tmp = Float64(x * Float64(exp(Float64(Float64(-log(a)) - b)) / y)); elseif (t_1 <= 50000.0) tmp = Float64(Float64(exp(Float64(log(z) * y)) * x) / y); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - 1.0) * log(a); t_2 = (x * exp((log(a) * t))) / y; tmp = 0.0; if (t_1 <= -1e+42) tmp = t_2; elseif (t_1 <= 130.0) tmp = x * (exp((-log(a) - b)) / y); elseif (t_1 <= 50000.0) tmp = (exp((log(z) * y)) * x) / y; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[Exp[N[(N[Log[a], $MachinePrecision] * t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+42], t$95$2, If[LessEqual[t$95$1, 130.0], N[(x * N[(N[Exp[N[((-N[Log[a], $MachinePrecision]) - b), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 50000.0], N[(N[(N[Exp[N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t - 1\right) \cdot \log a\\
t_2 := \frac{x \cdot e^{\log a \cdot t}}{y}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+42}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 130:\\
\;\;\;\;x \cdot \frac{e^{\left(-\log a\right) - b}}{y}\\
\mathbf{elif}\;t\_1 \leq 50000:\\
\;\;\;\;\frac{e^{\log z \cdot y} \cdot x}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -1.00000000000000004e42 or 5e4 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) Initial program 98.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lift-log.f6448.1
Applied rewrites48.1%
if -1.00000000000000004e42 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < 130Initial program 98.5%
Taylor expanded in t around 0
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower-exp.f64N/A
lower--.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lift-log.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lift-log.f6480.2
Applied rewrites80.2%
Taylor expanded in y around 0
mul-1-negN/A
lift-neg.f64N/A
lift-log.f6459.1
Applied rewrites59.1%
if 130 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < 5e4Initial program 98.5%
lift-/.f64N/A
lift-*.f64N/A
lift-exp.f64N/A
lift--.f64N/A
lift-+.f64N/A
lift-*.f64N/A
lift-log.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-log.f64N/A
mult-flipN/A
lower-*.f64N/A
Applied rewrites98.5%
Taylor expanded in y around inf
*-commutativeN/A
+-commutativeN/A
*-commutativeN/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lift-log.f64N/A
lower-/.f64N/A
lift--.f64N/A
lift-log.f6497.2
Applied rewrites97.2%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lift-log.f6447.6
Applied rewrites47.6%
lift-*.f64N/A
lift-/.f64N/A
mult-flip-revN/A
lower-/.f6447.6
Applied rewrites47.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (exp (* (log a) t))) y)))
(if (<= t -7.6e+48)
t_1
(if (<= t -5.9e-95)
(/ (* (exp (* (log z) y)) x) y)
(if (<= t 5.2e+38) (/ (* (exp (- (- b) (log a))) x) y) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * exp((log(a) * t))) / y;
double tmp;
if (t <= -7.6e+48) {
tmp = t_1;
} else if (t <= -5.9e-95) {
tmp = (exp((log(z) * y)) * x) / y;
} else if (t <= 5.2e+38) {
tmp = (exp((-b - log(a))) * x) / y;
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x * exp((log(a) * t))) / y
if (t <= (-7.6d+48)) then
tmp = t_1
else if (t <= (-5.9d-95)) then
tmp = (exp((log(z) * y)) * x) / y
else if (t <= 5.2d+38) then
tmp = (exp((-b - log(a))) * x) / y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * Math.exp((Math.log(a) * t))) / y;
double tmp;
if (t <= -7.6e+48) {
tmp = t_1;
} else if (t <= -5.9e-95) {
tmp = (Math.exp((Math.log(z) * y)) * x) / y;
} else if (t <= 5.2e+38) {
tmp = (Math.exp((-b - Math.log(a))) * x) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * math.exp((math.log(a) * t))) / y tmp = 0 if t <= -7.6e+48: tmp = t_1 elif t <= -5.9e-95: tmp = (math.exp((math.log(z) * y)) * x) / y elif t <= 5.2e+38: tmp = (math.exp((-b - math.log(a))) * x) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * exp(Float64(log(a) * t))) / y) tmp = 0.0 if (t <= -7.6e+48) tmp = t_1; elseif (t <= -5.9e-95) tmp = Float64(Float64(exp(Float64(log(z) * y)) * x) / y); elseif (t <= 5.2e+38) tmp = Float64(Float64(exp(Float64(Float64(-b) - log(a))) * x) / y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * exp((log(a) * t))) / y; tmp = 0.0; if (t <= -7.6e+48) tmp = t_1; elseif (t <= -5.9e-95) tmp = (exp((log(z) * y)) * x) / y; elseif (t <= 5.2e+38) tmp = (exp((-b - log(a))) * x) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[Exp[N[(N[Log[a], $MachinePrecision] * t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t, -7.6e+48], t$95$1, If[LessEqual[t, -5.9e-95], N[(N[(N[Exp[N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t, 5.2e+38], N[(N[(N[Exp[N[((-b) - N[Log[a], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot e^{\log a \cdot t}}{y}\\
\mathbf{if}\;t \leq -7.6 \cdot 10^{+48}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -5.9 \cdot 10^{-95}:\\
\;\;\;\;\frac{e^{\log z \cdot y} \cdot x}{y}\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{+38}:\\
\;\;\;\;\frac{e^{\left(-b\right) - \log a} \cdot x}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -7.60000000000000001e48 or 5.1999999999999998e38 < t Initial program 98.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lift-log.f6448.1
Applied rewrites48.1%
if -7.60000000000000001e48 < t < -5.8999999999999998e-95Initial program 98.5%
lift-/.f64N/A
lift-*.f64N/A
lift-exp.f64N/A
lift--.f64N/A
lift-+.f64N/A
lift-*.f64N/A
lift-log.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-log.f64N/A
mult-flipN/A
lower-*.f64N/A
Applied rewrites98.5%
Taylor expanded in y around inf
*-commutativeN/A
+-commutativeN/A
*-commutativeN/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lift-log.f64N/A
lower-/.f64N/A
lift--.f64N/A
lift-log.f6497.2
Applied rewrites97.2%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lift-log.f6447.6
Applied rewrites47.6%
lift-*.f64N/A
lift-/.f64N/A
mult-flip-revN/A
lower-/.f6447.6
Applied rewrites47.6%
if -5.8999999999999998e-95 < t < 5.1999999999999998e38Initial program 98.5%
Taylor expanded in t around 0
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower-exp.f64N/A
lower--.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lift-log.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lift-log.f6480.2
Applied rewrites80.2%
Taylor expanded in y around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-exp.f64N/A
add-negateN/A
lift-neg.f64N/A
lower--.f64N/A
lift-log.f6459.5
Applied rewrites59.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- t 1.0) (log a))) (t_2 (/ (* x (exp (* (log a) t))) y)))
(if (<= t_1 -1e+42)
t_2
(if (<= t_1 130.0)
(* (exp (- (- b) (log a))) (/ x y))
(if (<= t_1 50000.0) (/ (* (exp (* (log z) y)) x) y) t_2)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - 1.0) * log(a);
double t_2 = (x * exp((log(a) * t))) / y;
double tmp;
if (t_1 <= -1e+42) {
tmp = t_2;
} else if (t_1 <= 130.0) {
tmp = exp((-b - log(a))) * (x / y);
} else if (t_1 <= 50000.0) {
tmp = (exp((log(z) * y)) * x) / y;
} else {
tmp = t_2;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (t - 1.0d0) * log(a)
t_2 = (x * exp((log(a) * t))) / y
if (t_1 <= (-1d+42)) then
tmp = t_2
else if (t_1 <= 130.0d0) then
tmp = exp((-b - log(a))) * (x / y)
else if (t_1 <= 50000.0d0) then
tmp = (exp((log(z) * y)) * x) / y
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - 1.0) * Math.log(a);
double t_2 = (x * Math.exp((Math.log(a) * t))) / y;
double tmp;
if (t_1 <= -1e+42) {
tmp = t_2;
} else if (t_1 <= 130.0) {
tmp = Math.exp((-b - Math.log(a))) * (x / y);
} else if (t_1 <= 50000.0) {
tmp = (Math.exp((Math.log(z) * y)) * x) / y;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - 1.0) * math.log(a) t_2 = (x * math.exp((math.log(a) * t))) / y tmp = 0 if t_1 <= -1e+42: tmp = t_2 elif t_1 <= 130.0: tmp = math.exp((-b - math.log(a))) * (x / y) elif t_1 <= 50000.0: tmp = (math.exp((math.log(z) * y)) * x) / y else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - 1.0) * log(a)) t_2 = Float64(Float64(x * exp(Float64(log(a) * t))) / y) tmp = 0.0 if (t_1 <= -1e+42) tmp = t_2; elseif (t_1 <= 130.0) tmp = Float64(exp(Float64(Float64(-b) - log(a))) * Float64(x / y)); elseif (t_1 <= 50000.0) tmp = Float64(Float64(exp(Float64(log(z) * y)) * x) / y); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - 1.0) * log(a); t_2 = (x * exp((log(a) * t))) / y; tmp = 0.0; if (t_1 <= -1e+42) tmp = t_2; elseif (t_1 <= 130.0) tmp = exp((-b - log(a))) * (x / y); elseif (t_1 <= 50000.0) tmp = (exp((log(z) * y)) * x) / y; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[Exp[N[(N[Log[a], $MachinePrecision] * t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+42], t$95$2, If[LessEqual[t$95$1, 130.0], N[(N[Exp[N[((-b) - N[Log[a], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 50000.0], N[(N[(N[Exp[N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t - 1\right) \cdot \log a\\
t_2 := \frac{x \cdot e^{\log a \cdot t}}{y}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+42}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 130:\\
\;\;\;\;e^{\left(-b\right) - \log a} \cdot \frac{x}{y}\\
\mathbf{elif}\;t\_1 \leq 50000:\\
\;\;\;\;\frac{e^{\log z \cdot y} \cdot x}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -1.00000000000000004e42 or 5e4 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) Initial program 98.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lift-log.f6448.1
Applied rewrites48.1%
if -1.00000000000000004e42 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < 130Initial program 98.5%
Taylor expanded in t around 0
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower-exp.f64N/A
lower--.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lift-log.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lift-log.f6480.2
Applied rewrites80.2%
Taylor expanded in y around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-exp.f64N/A
add-negateN/A
lift-neg.f64N/A
lower--.f64N/A
lift-log.f6459.5
Applied rewrites59.5%
lift-/.f64N/A
lift-*.f64N/A
lift-exp.f64N/A
lift--.f64N/A
lift-neg.f64N/A
lift-log.f64N/A
associate-/l*N/A
lower-*.f64N/A
lift-neg.f64N/A
lift-log.f64N/A
lift--.f64N/A
lift-exp.f64N/A
lower-/.f6454.9
Applied rewrites54.9%
if 130 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < 5e4Initial program 98.5%
lift-/.f64N/A
lift-*.f64N/A
lift-exp.f64N/A
lift--.f64N/A
lift-+.f64N/A
lift-*.f64N/A
lift-log.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-log.f64N/A
mult-flipN/A
lower-*.f64N/A
Applied rewrites98.5%
Taylor expanded in y around inf
*-commutativeN/A
+-commutativeN/A
*-commutativeN/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lift-log.f64N/A
lower-/.f64N/A
lift--.f64N/A
lift-log.f6497.2
Applied rewrites97.2%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lift-log.f6447.6
Applied rewrites47.6%
lift-*.f64N/A
lift-/.f64N/A
mult-flip-revN/A
lower-/.f6447.6
Applied rewrites47.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- t 1.0) (log a))) (t_2 (/ (* x (exp (* (log a) t))) y)))
(if (<= t_1 -1e+42)
t_2
(if (<= t_1 130.0)
(* x (/ (exp (- b)) y))
(if (<= t_1 50000.0) (/ (* (exp (* (log z) y)) x) y) t_2)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - 1.0) * log(a);
double t_2 = (x * exp((log(a) * t))) / y;
double tmp;
if (t_1 <= -1e+42) {
tmp = t_2;
} else if (t_1 <= 130.0) {
tmp = x * (exp(-b) / y);
} else if (t_1 <= 50000.0) {
tmp = (exp((log(z) * y)) * x) / y;
} else {
tmp = t_2;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (t - 1.0d0) * log(a)
t_2 = (x * exp((log(a) * t))) / y
if (t_1 <= (-1d+42)) then
tmp = t_2
else if (t_1 <= 130.0d0) then
tmp = x * (exp(-b) / y)
else if (t_1 <= 50000.0d0) then
tmp = (exp((log(z) * y)) * x) / y
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - 1.0) * Math.log(a);
double t_2 = (x * Math.exp((Math.log(a) * t))) / y;
double tmp;
if (t_1 <= -1e+42) {
tmp = t_2;
} else if (t_1 <= 130.0) {
tmp = x * (Math.exp(-b) / y);
} else if (t_1 <= 50000.0) {
tmp = (Math.exp((Math.log(z) * y)) * x) / y;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - 1.0) * math.log(a) t_2 = (x * math.exp((math.log(a) * t))) / y tmp = 0 if t_1 <= -1e+42: tmp = t_2 elif t_1 <= 130.0: tmp = x * (math.exp(-b) / y) elif t_1 <= 50000.0: tmp = (math.exp((math.log(z) * y)) * x) / y else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - 1.0) * log(a)) t_2 = Float64(Float64(x * exp(Float64(log(a) * t))) / y) tmp = 0.0 if (t_1 <= -1e+42) tmp = t_2; elseif (t_1 <= 130.0) tmp = Float64(x * Float64(exp(Float64(-b)) / y)); elseif (t_1 <= 50000.0) tmp = Float64(Float64(exp(Float64(log(z) * y)) * x) / y); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - 1.0) * log(a); t_2 = (x * exp((log(a) * t))) / y; tmp = 0.0; if (t_1 <= -1e+42) tmp = t_2; elseif (t_1 <= 130.0) tmp = x * (exp(-b) / y); elseif (t_1 <= 50000.0) tmp = (exp((log(z) * y)) * x) / y; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[Exp[N[(N[Log[a], $MachinePrecision] * t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+42], t$95$2, If[LessEqual[t$95$1, 130.0], N[(x * N[(N[Exp[(-b)], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 50000.0], N[(N[(N[Exp[N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]], $MachinePrecision] * x), $MachinePrecision] / y), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t - 1\right) \cdot \log a\\
t_2 := \frac{x \cdot e^{\log a \cdot t}}{y}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+42}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 130:\\
\;\;\;\;x \cdot \frac{e^{-b}}{y}\\
\mathbf{elif}\;t\_1 \leq 50000:\\
\;\;\;\;\frac{e^{\log z \cdot y} \cdot x}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < -1.00000000000000004e42 or 5e4 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) Initial program 98.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lift-log.f6448.1
Applied rewrites48.1%
if -1.00000000000000004e42 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < 130Initial program 98.5%
Taylor expanded in b around inf
mul-1-negN/A
lower-neg.f6448.7
Applied rewrites48.7%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f6448.6
Applied rewrites48.6%
if 130 < (*.f64 (-.f64 t #s(literal 1 binary64)) (log.f64 a)) < 5e4Initial program 98.5%
lift-/.f64N/A
lift-*.f64N/A
lift-exp.f64N/A
lift--.f64N/A
lift-+.f64N/A
lift-*.f64N/A
lift-log.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-log.f64N/A
mult-flipN/A
lower-*.f64N/A
Applied rewrites98.5%
Taylor expanded in y around inf
*-commutativeN/A
+-commutativeN/A
*-commutativeN/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lift-log.f64N/A
lower-/.f64N/A
lift--.f64N/A
lift-log.f6497.2
Applied rewrites97.2%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lift-log.f6447.6
Applied rewrites47.6%
lift-*.f64N/A
lift-/.f64N/A
mult-flip-revN/A
lower-/.f6447.6
Applied rewrites47.6%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ (* x (exp (* (log a) t))) y))) (if (<= t -22.0) t_1 (if (<= t 5.2e+38) (* x (/ (exp (- b)) y)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * exp((log(a) * t))) / y;
double tmp;
if (t <= -22.0) {
tmp = t_1;
} else if (t <= 5.2e+38) {
tmp = x * (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 * exp((log(a) * t))) / y
if (t <= (-22.0d0)) then
tmp = t_1
else if (t <= 5.2d+38) then
tmp = x * (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 * Math.exp((Math.log(a) * t))) / y;
double tmp;
if (t <= -22.0) {
tmp = t_1;
} else if (t <= 5.2e+38) {
tmp = x * (Math.exp(-b) / y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * math.exp((math.log(a) * t))) / y tmp = 0 if t <= -22.0: tmp = t_1 elif t <= 5.2e+38: tmp = x * (math.exp(-b) / y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * exp(Float64(log(a) * t))) / y) tmp = 0.0 if (t <= -22.0) tmp = t_1; elseif (t <= 5.2e+38) tmp = Float64(x * Float64(exp(Float64(-b)) / y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * exp((log(a) * t))) / y; tmp = 0.0; if (t <= -22.0) tmp = t_1; elseif (t <= 5.2e+38) tmp = x * (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[Exp[N[(N[Log[a], $MachinePrecision] * t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t, -22.0], t$95$1, If[LessEqual[t, 5.2e+38], N[(x * N[(N[Exp[(-b)], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot e^{\log a \cdot t}}{y}\\
\mathbf{if}\;t \leq -22:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{+38}:\\
\;\;\;\;x \cdot \frac{e^{-b}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -22 or 5.1999999999999998e38 < t Initial program 98.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lift-log.f6448.1
Applied rewrites48.1%
if -22 < t < 5.1999999999999998e38Initial program 98.5%
Taylor expanded in b around inf
mul-1-negN/A
lower-neg.f6448.7
Applied rewrites48.7%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f6448.6
Applied rewrites48.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (exp (- b)) y))))
(if (<= b -410.0)
t_1
(if (<= b 4.2e-12) (* (exp (- (log a))) (/ x y)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (exp(-b) / y);
double tmp;
if (b <= -410.0) {
tmp = t_1;
} else if (b <= 4.2e-12) {
tmp = exp(-log(a)) * (x / y);
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x * (exp(-b) / y)
if (b <= (-410.0d0)) then
tmp = t_1
else if (b <= 4.2d-12) then
tmp = exp(-log(a)) * (x / y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * (Math.exp(-b) / y);
double tmp;
if (b <= -410.0) {
tmp = t_1;
} else if (b <= 4.2e-12) {
tmp = Math.exp(-Math.log(a)) * (x / y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * (math.exp(-b) / y) tmp = 0 if b <= -410.0: tmp = t_1 elif b <= 4.2e-12: tmp = math.exp(-math.log(a)) * (x / y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64(exp(Float64(-b)) / y)) tmp = 0.0 if (b <= -410.0) tmp = t_1; elseif (b <= 4.2e-12) tmp = Float64(exp(Float64(-log(a))) * Float64(x / y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (exp(-b) / y); tmp = 0.0; if (b <= -410.0) tmp = t_1; elseif (b <= 4.2e-12) tmp = exp(-log(a)) * (x / y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[Exp[(-b)], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -410.0], t$95$1, If[LessEqual[b, 4.2e-12], N[(N[Exp[(-N[Log[a], $MachinePrecision])], $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{e^{-b}}{y}\\
\mathbf{if}\;b \leq -410:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{-12}:\\
\;\;\;\;e^{-\log a} \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -410 or 4.19999999999999988e-12 < b Initial program 98.5%
Taylor expanded in b around inf
mul-1-negN/A
lower-neg.f6448.7
Applied rewrites48.7%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f6448.6
Applied rewrites48.6%
if -410 < b < 4.19999999999999988e-12Initial program 98.5%
Taylor expanded in t around 0
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower-exp.f64N/A
lower--.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lift-log.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lift-log.f6480.2
Applied rewrites80.2%
Taylor expanded in y around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-exp.f64N/A
add-negateN/A
lift-neg.f64N/A
lower--.f64N/A
lift-log.f6459.5
Applied rewrites59.5%
Taylor expanded in b around 0
neg-logN/A
lower-exp.f64N/A
neg-logN/A
lower-neg.f64N/A
lift-log.f6430.8
Applied rewrites30.8%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
lift-/.f64N/A
lower-*.f6430.5
Applied rewrites30.5%
(FPCore (x y z t a b) :precision binary64 (* x (/ (exp (- b)) y)))
double code(double x, double y, double z, double t, double a, double b) {
return x * (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 * (exp(-b) / y)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x * (Math.exp(-b) / y);
}
def code(x, y, z, t, a, b): return x * (math.exp(-b) / y)
function code(x, y, z, t, a, b) return Float64(x * Float64(exp(Float64(-b)) / y)) end
function tmp = code(x, y, z, t, a, b) tmp = x * (exp(-b) / y); end
code[x_, y_, z_, t_, a_, b_] := N[(x * N[(N[Exp[(-b)], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \frac{e^{-b}}{y}
\end{array}
Initial program 98.5%
Taylor expanded in b around inf
mul-1-negN/A
lower-neg.f6448.7
Applied rewrites48.7%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f6448.6
Applied rewrites48.6%
herbie shell --seed 2025134
(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))