
(FPCore (x y z t) :precision binary64 (+ (- (- (* x (log y)) y) z) (log t)))
double code(double x, double y, double z, double t) {
return (((x * log(y)) - y) - z) + log(t);
}
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)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (((x * log(y)) - y) - z) + log(t)
end function
public static double code(double x, double y, double z, double t) {
return (((x * Math.log(y)) - y) - z) + Math.log(t);
}
def code(x, y, z, t): return (((x * math.log(y)) - y) - z) + math.log(t)
function code(x, y, z, t) return Float64(Float64(Float64(Float64(x * log(y)) - y) - z) + log(t)) end
function tmp = code(x, y, z, t) tmp = (((x * log(y)) - y) - z) + log(t); end
code[x_, y_, z_, t_] := N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision] - z), $MachinePrecision] + N[Log[t], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x \cdot \log y - y\right) - z\right) + \log t
\end{array}
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ (- (- (* x (log y)) y) z) (log t)))
double code(double x, double y, double z, double t) {
return (((x * log(y)) - y) - z) + log(t);
}
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)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (((x * log(y)) - y) - z) + log(t)
end function
public static double code(double x, double y, double z, double t) {
return (((x * Math.log(y)) - y) - z) + Math.log(t);
}
def code(x, y, z, t): return (((x * math.log(y)) - y) - z) + math.log(t)
function code(x, y, z, t) return Float64(Float64(Float64(Float64(x * log(y)) - y) - z) + log(t)) end
function tmp = code(x, y, z, t) tmp = (((x * log(y)) - y) - z) + log(t); end
code[x_, y_, z_, t_] := N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision] - z), $MachinePrecision] + N[Log[t], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x \cdot \log y - y\right) - z\right) + \log t
\end{array}
(FPCore (x y z t) :precision binary64 (+ (- (- (* x (log y)) y) z) (log t)))
double code(double x, double y, double z, double t) {
return (((x * log(y)) - y) - z) + log(t);
}
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)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (((x * log(y)) - y) - z) + log(t)
end function
public static double code(double x, double y, double z, double t) {
return (((x * Math.log(y)) - y) - z) + Math.log(t);
}
def code(x, y, z, t): return (((x * math.log(y)) - y) - z) + math.log(t)
function code(x, y, z, t) return Float64(Float64(Float64(Float64(x * log(y)) - y) - z) + log(t)) end
function tmp = code(x, y, z, t) tmp = (((x * log(y)) - y) - z) + log(t); end
code[x_, y_, z_, t_] := N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision] - z), $MachinePrecision] + N[Log[t], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x \cdot \log y - y\right) - z\right) + \log t
\end{array}
Initial program 99.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (log y))) (t_2 (- t_1 y)))
(if (<= t_2 -4e+135)
(- (+ (log t) t_1) y)
(if (<= t_2 -5e+19) (- (- (log t) z) y) (+ (- t_1 z) (log t))))))
double code(double x, double y, double z, double t) {
double t_1 = x * log(y);
double t_2 = t_1 - y;
double tmp;
if (t_2 <= -4e+135) {
tmp = (log(t) + t_1) - y;
} else if (t_2 <= -5e+19) {
tmp = (log(t) - z) - y;
} else {
tmp = (t_1 - z) + log(t);
}
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)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * log(y)
t_2 = t_1 - y
if (t_2 <= (-4d+135)) then
tmp = (log(t) + t_1) - y
else if (t_2 <= (-5d+19)) then
tmp = (log(t) - z) - y
else
tmp = (t_1 - z) + log(t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x * Math.log(y);
double t_2 = t_1 - y;
double tmp;
if (t_2 <= -4e+135) {
tmp = (Math.log(t) + t_1) - y;
} else if (t_2 <= -5e+19) {
tmp = (Math.log(t) - z) - y;
} else {
tmp = (t_1 - z) + Math.log(t);
}
return tmp;
}
def code(x, y, z, t): t_1 = x * math.log(y) t_2 = t_1 - y tmp = 0 if t_2 <= -4e+135: tmp = (math.log(t) + t_1) - y elif t_2 <= -5e+19: tmp = (math.log(t) - z) - y else: tmp = (t_1 - z) + math.log(t) return tmp
function code(x, y, z, t) t_1 = Float64(x * log(y)) t_2 = Float64(t_1 - y) tmp = 0.0 if (t_2 <= -4e+135) tmp = Float64(Float64(log(t) + t_1) - y); elseif (t_2 <= -5e+19) tmp = Float64(Float64(log(t) - z) - y); else tmp = Float64(Float64(t_1 - z) + log(t)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * log(y); t_2 = t_1 - y; tmp = 0.0; if (t_2 <= -4e+135) tmp = (log(t) + t_1) - y; elseif (t_2 <= -5e+19) tmp = (log(t) - z) - y; else tmp = (t_1 - z) + log(t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 - y), $MachinePrecision]}, If[LessEqual[t$95$2, -4e+135], N[(N[(N[Log[t], $MachinePrecision] + t$95$1), $MachinePrecision] - y), $MachinePrecision], If[LessEqual[t$95$2, -5e+19], N[(N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision] - y), $MachinePrecision], N[(N[(t$95$1 - z), $MachinePrecision] + N[Log[t], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
t_2 := t\_1 - y\\
\mathbf{if}\;t\_2 \leq -4 \cdot 10^{+135}:\\
\;\;\;\;\left(\log t + t\_1\right) - y\\
\mathbf{elif}\;t\_2 \leq -5 \cdot 10^{+19}:\\
\;\;\;\;\left(\log t - z\right) - y\\
\mathbf{else}:\\
\;\;\;\;\left(t\_1 - z\right) + \log t\\
\end{array}
\end{array}
if (-.f64 (*.f64 x (log.f64 y)) y) < -3.99999999999999985e135Initial program 99.9%
Taylor expanded in z around 0
lower--.f64N/A
lower-+.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f6470.3
Applied rewrites70.3%
if -3.99999999999999985e135 < (-.f64 (*.f64 x (log.f64 y)) y) < -5e19Initial program 99.9%
Taylor expanded in x around 0
lower--.f64N/A
lower-log.f64N/A
lower-+.f6470.6
Applied rewrites70.6%
Taylor expanded in t around inf
lower-*.f64N/A
lower-log.f64N/A
lower-/.f6470.5
Applied rewrites70.5%
lift--.f64N/A
lift-+.f64N/A
+-commutativeN/A
associate--r+N/A
lower--.f64N/A
lower--.f6470.5
lift-*.f64N/A
mul-1-negN/A
lift-log.f64N/A
lift-/.f64N/A
log-recN/A
lift-log.f64N/A
remove-double-neg70.6
Applied rewrites70.6%
if -5e19 < (-.f64 (*.f64 x (log.f64 y)) y) Initial program 99.9%
Taylor expanded in y around 0
lower--.f64N/A
lower-*.f64N/A
lower-log.f6471.2
Applied rewrites71.2%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (- (log t) z) y)))
(if (<= z -650000.0)
t_1
(if (<= z 3.8e+89) (- (+ (log t) (* x (log y))) y) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = (log(t) - z) - y;
double tmp;
if (z <= -650000.0) {
tmp = t_1;
} else if (z <= 3.8e+89) {
tmp = (log(t) + (x * log(y))) - 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)
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) :: t_1
real(8) :: tmp
t_1 = (log(t) - z) - y
if (z <= (-650000.0d0)) then
tmp = t_1
else if (z <= 3.8d+89) then
tmp = (log(t) + (x * log(y))) - y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (Math.log(t) - z) - y;
double tmp;
if (z <= -650000.0) {
tmp = t_1;
} else if (z <= 3.8e+89) {
tmp = (Math.log(t) + (x * Math.log(y))) - y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (math.log(t) - z) - y tmp = 0 if z <= -650000.0: tmp = t_1 elif z <= 3.8e+89: tmp = (math.log(t) + (x * math.log(y))) - y else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(log(t) - z) - y) tmp = 0.0 if (z <= -650000.0) tmp = t_1; elseif (z <= 3.8e+89) tmp = Float64(Float64(log(t) + Float64(x * log(y))) - y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (log(t) - z) - y; tmp = 0.0; if (z <= -650000.0) tmp = t_1; elseif (z <= 3.8e+89) tmp = (log(t) + (x * log(y))) - y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision] - y), $MachinePrecision]}, If[LessEqual[z, -650000.0], t$95$1, If[LessEqual[z, 3.8e+89], N[(N[(N[Log[t], $MachinePrecision] + N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\log t - z\right) - y\\
\mathbf{if}\;z \leq -650000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{+89}:\\
\;\;\;\;\left(\log t + x \cdot \log y\right) - y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -6.5e5 or 3.80000000000000023e89 < z Initial program 99.9%
Taylor expanded in x around 0
lower--.f64N/A
lower-log.f64N/A
lower-+.f6470.6
Applied rewrites70.6%
Taylor expanded in t around inf
lower-*.f64N/A
lower-log.f64N/A
lower-/.f6470.5
Applied rewrites70.5%
lift--.f64N/A
lift-+.f64N/A
+-commutativeN/A
associate--r+N/A
lower--.f64N/A
lower--.f6470.5
lift-*.f64N/A
mul-1-negN/A
lift-log.f64N/A
lift-/.f64N/A
log-recN/A
lift-log.f64N/A
remove-double-neg70.6
Applied rewrites70.6%
if -6.5e5 < z < 3.80000000000000023e89Initial program 99.9%
Taylor expanded in z around 0
lower--.f64N/A
lower-+.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f6470.3
Applied rewrites70.3%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* (* -1.0 (/ (* x (log y)) y)) (- y)))) (if (<= x -5.5e+178) t_1 (if (<= x 3.6e+225) (- (- (log t) z) y) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = (-1.0 * ((x * log(y)) / y)) * -y;
double tmp;
if (x <= -5.5e+178) {
tmp = t_1;
} else if (x <= 3.6e+225) {
tmp = (log(t) - z) - 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)
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) :: t_1
real(8) :: tmp
t_1 = ((-1.0d0) * ((x * log(y)) / y)) * -y
if (x <= (-5.5d+178)) then
tmp = t_1
else if (x <= 3.6d+225) then
tmp = (log(t) - z) - y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (-1.0 * ((x * Math.log(y)) / y)) * -y;
double tmp;
if (x <= -5.5e+178) {
tmp = t_1;
} else if (x <= 3.6e+225) {
tmp = (Math.log(t) - z) - y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (-1.0 * ((x * math.log(y)) / y)) * -y tmp = 0 if x <= -5.5e+178: tmp = t_1 elif x <= 3.6e+225: tmp = (math.log(t) - z) - y else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(-1.0 * Float64(Float64(x * log(y)) / y)) * Float64(-y)) tmp = 0.0 if (x <= -5.5e+178) tmp = t_1; elseif (x <= 3.6e+225) tmp = Float64(Float64(log(t) - z) - y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (-1.0 * ((x * log(y)) / y)) * -y; tmp = 0.0; if (x <= -5.5e+178) tmp = t_1; elseif (x <= 3.6e+225) tmp = (log(t) - z) - y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(-1.0 * N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] * (-y)), $MachinePrecision]}, If[LessEqual[x, -5.5e+178], t$95$1, If[LessEqual[x, 3.6e+225], N[(N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision] - y), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-1 \cdot \frac{x \cdot \log y}{y}\right) \cdot \left(-y\right)\\
\mathbf{if}\;x \leq -5.5 \cdot 10^{+178}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{+225}:\\
\;\;\;\;\left(\log t - z\right) - y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -5.5000000000000001e178 or 3.5999999999999998e225 < x Initial program 99.9%
Taylor expanded in z around 0
lower--.f64N/A
lower-+.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f6470.3
Applied rewrites70.3%
Taylor expanded in x around 0
lower-log.f6441.7
Applied rewrites41.7%
lift--.f64N/A
sub-flipN/A
+-commutativeN/A
sum-to-multN/A
lower-special-*.f64N/A
lower-special-+.f64N/A
lower-special-/.f64N/A
lower-neg.f64N/A
lower-neg.f6441.6
Applied rewrites41.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lower-log.f6421.1
Applied rewrites21.1%
if -5.5000000000000001e178 < x < 3.5999999999999998e225Initial program 99.9%
Taylor expanded in x around 0
lower--.f64N/A
lower-log.f64N/A
lower-+.f6470.6
Applied rewrites70.6%
Taylor expanded in t around inf
lower-*.f64N/A
lower-log.f64N/A
lower-/.f6470.5
Applied rewrites70.5%
lift--.f64N/A
lift-+.f64N/A
+-commutativeN/A
associate--r+N/A
lower--.f64N/A
lower--.f6470.5
lift-*.f64N/A
mul-1-negN/A
lift-log.f64N/A
lift-/.f64N/A
log-recN/A
lift-log.f64N/A
remove-double-neg70.6
Applied rewrites70.6%
(FPCore (x y z t) :precision binary64 (- (- (log t) z) y))
double code(double x, double y, double z, double t) {
return (log(t) - z) - 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)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (log(t) - z) - y
end function
public static double code(double x, double y, double z, double t) {
return (Math.log(t) - z) - y;
}
def code(x, y, z, t): return (math.log(t) - z) - y
function code(x, y, z, t) return Float64(Float64(log(t) - z) - y) end
function tmp = code(x, y, z, t) tmp = (log(t) - z) - y; end
code[x_, y_, z_, t_] := N[(N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision] - y), $MachinePrecision]
\begin{array}{l}
\\
\left(\log t - z\right) - y
\end{array}
Initial program 99.9%
Taylor expanded in x around 0
lower--.f64N/A
lower-log.f64N/A
lower-+.f6470.6
Applied rewrites70.6%
Taylor expanded in t around inf
lower-*.f64N/A
lower-log.f64N/A
lower-/.f6470.5
Applied rewrites70.5%
lift--.f64N/A
lift-+.f64N/A
+-commutativeN/A
associate--r+N/A
lower--.f64N/A
lower--.f6470.5
lift-*.f64N/A
mul-1-negN/A
lift-log.f64N/A
lift-/.f64N/A
log-recN/A
lift-log.f64N/A
remove-double-neg70.6
Applied rewrites70.6%
(FPCore (x y z t) :precision binary64 (if (<= y 1.5e+123) (- (log t) z) (* 1.0 (- y))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 1.5e+123) {
tmp = log(t) - z;
} else {
tmp = 1.0 * -y;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t)
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) :: tmp
if (y <= 1.5d+123) then
tmp = log(t) - z
else
tmp = 1.0d0 * -y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= 1.5e+123) {
tmp = Math.log(t) - z;
} else {
tmp = 1.0 * -y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= 1.5e+123: tmp = math.log(t) - z else: tmp = 1.0 * -y return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= 1.5e+123) tmp = Float64(log(t) - z); else tmp = Float64(1.0 * Float64(-y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= 1.5e+123) tmp = log(t) - z; else tmp = 1.0 * -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, 1.5e+123], N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision], N[(1.0 * (-y)), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.5 \cdot 10^{+123}:\\
\;\;\;\;\log t - z\\
\mathbf{else}:\\
\;\;\;\;1 \cdot \left(-y\right)\\
\end{array}
\end{array}
if y < 1.50000000000000004e123Initial program 99.9%
Taylor expanded in x around 0
lower--.f64N/A
lower-log.f64N/A
lower-+.f6470.6
Applied rewrites70.6%
Taylor expanded in y around 0
Applied rewrites42.6%
if 1.50000000000000004e123 < y Initial program 99.9%
Taylor expanded in z around 0
lower--.f64N/A
lower-+.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f6470.3
Applied rewrites70.3%
Taylor expanded in x around 0
lower-log.f6441.7
Applied rewrites41.7%
lift--.f64N/A
sub-flipN/A
+-commutativeN/A
sum-to-multN/A
lower-special-*.f64N/A
lower-special-+.f64N/A
lower-special-/.f64N/A
lower-neg.f64N/A
lower-neg.f6441.6
Applied rewrites41.6%
Taylor expanded in y around inf
Applied rewrites29.7%
(FPCore (x y z t) :precision binary64 (if (<= z -260000000000.0) (* -1.0 z) (if (<= z 7.8e+105) (- (log t) y) (* -1.0 z))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -260000000000.0) {
tmp = -1.0 * z;
} else if (z <= 7.8e+105) {
tmp = log(t) - y;
} else {
tmp = -1.0 * z;
}
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)
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) :: tmp
if (z <= (-260000000000.0d0)) then
tmp = (-1.0d0) * z
else if (z <= 7.8d+105) then
tmp = log(t) - y
else
tmp = (-1.0d0) * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -260000000000.0) {
tmp = -1.0 * z;
} else if (z <= 7.8e+105) {
tmp = Math.log(t) - y;
} else {
tmp = -1.0 * z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -260000000000.0: tmp = -1.0 * z elif z <= 7.8e+105: tmp = math.log(t) - y else: tmp = -1.0 * z return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -260000000000.0) tmp = Float64(-1.0 * z); elseif (z <= 7.8e+105) tmp = Float64(log(t) - y); else tmp = Float64(-1.0 * z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -260000000000.0) tmp = -1.0 * z; elseif (z <= 7.8e+105) tmp = log(t) - y; else tmp = -1.0 * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -260000000000.0], N[(-1.0 * z), $MachinePrecision], If[LessEqual[z, 7.8e+105], N[(N[Log[t], $MachinePrecision] - y), $MachinePrecision], N[(-1.0 * z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -260000000000:\\
\;\;\;\;-1 \cdot z\\
\mathbf{elif}\;z \leq 7.8 \cdot 10^{+105}:\\
\;\;\;\;\log t - y\\
\mathbf{else}:\\
\;\;\;\;-1 \cdot z\\
\end{array}
\end{array}
if z < -2.6e11 or 7.79999999999999957e105 < z Initial program 99.9%
Taylor expanded in z around inf
lower-*.f6430.5
Applied rewrites30.5%
if -2.6e11 < z < 7.79999999999999957e105Initial program 99.9%
Taylor expanded in z around 0
lower--.f64N/A
lower-+.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f6470.3
Applied rewrites70.3%
Taylor expanded in x around 0
lower-log.f6441.7
Applied rewrites41.7%
(FPCore (x y z t) :precision binary64 (if (<= y 1.5e+123) (* -1.0 z) (* 1.0 (- y))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 1.5e+123) {
tmp = -1.0 * z;
} else {
tmp = 1.0 * -y;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t)
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) :: tmp
if (y <= 1.5d+123) then
tmp = (-1.0d0) * z
else
tmp = 1.0d0 * -y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= 1.5e+123) {
tmp = -1.0 * z;
} else {
tmp = 1.0 * -y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= 1.5e+123: tmp = -1.0 * z else: tmp = 1.0 * -y return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= 1.5e+123) tmp = Float64(-1.0 * z); else tmp = Float64(1.0 * Float64(-y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= 1.5e+123) tmp = -1.0 * z; else tmp = 1.0 * -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, 1.5e+123], N[(-1.0 * z), $MachinePrecision], N[(1.0 * (-y)), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.5 \cdot 10^{+123}:\\
\;\;\;\;-1 \cdot z\\
\mathbf{else}:\\
\;\;\;\;1 \cdot \left(-y\right)\\
\end{array}
\end{array}
if y < 1.50000000000000004e123Initial program 99.9%
Taylor expanded in z around inf
lower-*.f6430.5
Applied rewrites30.5%
if 1.50000000000000004e123 < y Initial program 99.9%
Taylor expanded in z around 0
lower--.f64N/A
lower-+.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f6470.3
Applied rewrites70.3%
Taylor expanded in x around 0
lower-log.f6441.7
Applied rewrites41.7%
lift--.f64N/A
sub-flipN/A
+-commutativeN/A
sum-to-multN/A
lower-special-*.f64N/A
lower-special-+.f64N/A
lower-special-/.f64N/A
lower-neg.f64N/A
lower-neg.f6441.6
Applied rewrites41.6%
Taylor expanded in y around inf
Applied rewrites29.7%
(FPCore (x y z t) :precision binary64 (* -1.0 z))
double code(double x, double y, double z, double t) {
return -1.0 * z;
}
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)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (-1.0d0) * z
end function
public static double code(double x, double y, double z, double t) {
return -1.0 * z;
}
def code(x, y, z, t): return -1.0 * z
function code(x, y, z, t) return Float64(-1.0 * z) end
function tmp = code(x, y, z, t) tmp = -1.0 * z; end
code[x_, y_, z_, t_] := N[(-1.0 * z), $MachinePrecision]
\begin{array}{l}
\\
-1 \cdot z
\end{array}
Initial program 99.9%
Taylor expanded in z around inf
lower-*.f6430.5
Applied rewrites30.5%
herbie shell --seed 2025154
(FPCore (x y z t)
:name "Numeric.SpecFunctions:incompleteGamma from math-functions-0.1.5.2, A"
:precision binary64
(+ (- (- (* x (log y)) y) z) (log t)))