
(FPCore (x y z) :precision binary64 (- (- (* x (log y)) z) y))
double code(double x, double y, double z) {
return ((x * log(y)) - 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)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x * log(y)) - z) - y
end function
public static double code(double x, double y, double z) {
return ((x * Math.log(y)) - z) - y;
}
def code(x, y, z): return ((x * math.log(y)) - z) - y
function code(x, y, z) return Float64(Float64(Float64(x * log(y)) - z) - y) end
function tmp = code(x, y, z) tmp = ((x * log(y)) - z) - y; end
code[x_, y_, z_] := N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision] - y), $MachinePrecision]
\left(x \cdot \log y - z\right) - y
Herbie found 6 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (- (- (* x (log y)) z) y))
double code(double x, double y, double z) {
return ((x * log(y)) - 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)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x * log(y)) - z) - y
end function
public static double code(double x, double y, double z) {
return ((x * Math.log(y)) - z) - y;
}
def code(x, y, z): return ((x * math.log(y)) - z) - y
function code(x, y, z) return Float64(Float64(Float64(x * log(y)) - z) - y) end
function tmp = code(x, y, z) tmp = ((x * log(y)) - z) - y; end
code[x_, y_, z_] := N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision] - y), $MachinePrecision]
\left(x \cdot \log y - z\right) - y
(FPCore (x y z) :precision binary64 (let* ((t_0 (- (- z) y))) (if (<= z -5.8e+23) t_0 (if (<= z 8.5e+71) (fma (log y) x (- y)) t_0))))
double code(double x, double y, double z) {
double t_0 = -z - y;
double tmp;
if (z <= -5.8e+23) {
tmp = t_0;
} else if (z <= 8.5e+71) {
tmp = fma(log(y), x, -y);
} else {
tmp = t_0;
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(-z) - y) tmp = 0.0 if (z <= -5.8e+23) tmp = t_0; elseif (z <= 8.5e+71) tmp = fma(log(y), x, Float64(-y)); else tmp = t_0; end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[((-z) - y), $MachinePrecision]}, If[LessEqual[z, -5.8e+23], t$95$0, If[LessEqual[z, 8.5e+71], N[(N[Log[y], $MachinePrecision] * x + (-y)), $MachinePrecision], t$95$0]]]
\begin{array}{l}
t_0 := \left(-z\right) - y\\
\mathbf{if}\;z \leq -5.8 \cdot 10^{+23}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{+71}:\\
\;\;\;\;\mathsf{fma}\left(\log y, x, -y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
if z < -5.80000000000000025e23 or 8.4999999999999996e71 < z Initial program 99.9%
lift-log.f64N/A
remove-double-divN/A
metadata-evalN/A
associate-/l/N/A
log-divN/A
lower-unsound--.f64N/A
lower-unsound-log.f64N/A
lower-unsound-log.f64N/A
lower-*.f64N/A
lower-/.f6499.8%
Applied rewrites99.8%
Taylor expanded in x around 0
lower-*.f6467.2%
Applied rewrites67.2%
lift-*.f64N/A
mul-1-negN/A
lift-neg.f6467.2%
Applied rewrites67.2%
if -5.80000000000000025e23 < z < 8.4999999999999996e71Initial program 99.9%
Taylor expanded in z around 0
lower--.f64N/A
lower-*.f64N/A
lower-log.f6466.5%
Applied rewrites66.5%
lift--.f64N/A
sub-flipN/A
add-flipN/A
sub-flipN/A
lift-*.f64N/A
*-commutativeN/A
mul-1-negN/A
distribute-lft-neg-outN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
*-lft-identityN/A
distribute-rgt-neg-outN/A
lower-neg.f64N/A
/-rgt-identityN/A
div-flip-revN/A
lift-/.f64N/A
mult-flip-revN/A
lift-/.f64N/A
div-flip-revN/A
/-rgt-identity66.5%
Applied rewrites66.5%
(FPCore (x y z) :precision binary64 (let* ((t_0 (- (- z) y))) (if (<= z -5.8e+23) t_0 (if (<= z 8.5e+71) (- (* x (log y)) y) t_0))))
double code(double x, double y, double z) {
double t_0 = -z - y;
double tmp;
if (z <= -5.8e+23) {
tmp = t_0;
} else if (z <= 8.5e+71) {
tmp = (x * log(y)) - y;
} else {
tmp = t_0;
}
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)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = -z - y
if (z <= (-5.8d+23)) then
tmp = t_0
else if (z <= 8.5d+71) then
tmp = (x * log(y)) - y
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = -z - y;
double tmp;
if (z <= -5.8e+23) {
tmp = t_0;
} else if (z <= 8.5e+71) {
tmp = (x * Math.log(y)) - y;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = -z - y tmp = 0 if z <= -5.8e+23: tmp = t_0 elif z <= 8.5e+71: tmp = (x * math.log(y)) - y else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(-z) - y) tmp = 0.0 if (z <= -5.8e+23) tmp = t_0; elseif (z <= 8.5e+71) tmp = Float64(Float64(x * log(y)) - y); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = -z - y; tmp = 0.0; if (z <= -5.8e+23) tmp = t_0; elseif (z <= 8.5e+71) tmp = (x * log(y)) - y; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[((-z) - y), $MachinePrecision]}, If[LessEqual[z, -5.8e+23], t$95$0, If[LessEqual[z, 8.5e+71], N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision], t$95$0]]]
\begin{array}{l}
t_0 := \left(-z\right) - y\\
\mathbf{if}\;z \leq -5.8 \cdot 10^{+23}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{+71}:\\
\;\;\;\;x \cdot \log y - y\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
if z < -5.80000000000000025e23 or 8.4999999999999996e71 < z Initial program 99.9%
lift-log.f64N/A
remove-double-divN/A
metadata-evalN/A
associate-/l/N/A
log-divN/A
lower-unsound--.f64N/A
lower-unsound-log.f64N/A
lower-unsound-log.f64N/A
lower-*.f64N/A
lower-/.f6499.8%
Applied rewrites99.8%
Taylor expanded in x around 0
lower-*.f6467.2%
Applied rewrites67.2%
lift-*.f64N/A
mul-1-negN/A
lift-neg.f6467.2%
Applied rewrites67.2%
if -5.80000000000000025e23 < z < 8.4999999999999996e71Initial program 99.9%
Taylor expanded in z around 0
lower--.f64N/A
lower-*.f64N/A
lower-log.f6466.5%
Applied rewrites66.5%
(FPCore (x y z) :precision binary64 (let* ((t_0 (* x (log y)))) (if (<= x -1.55e+95) t_0 (if (<= x 6e+197) (- (- z) y) t_0))))
double code(double x, double y, double z) {
double t_0 = x * log(y);
double tmp;
if (x <= -1.55e+95) {
tmp = t_0;
} else if (x <= 6e+197) {
tmp = -z - y;
} else {
tmp = t_0;
}
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)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = x * log(y)
if (x <= (-1.55d+95)) then
tmp = t_0
else if (x <= 6d+197) then
tmp = -z - y
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * Math.log(y);
double tmp;
if (x <= -1.55e+95) {
tmp = t_0;
} else if (x <= 6e+197) {
tmp = -z - y;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * math.log(y) tmp = 0 if x <= -1.55e+95: tmp = t_0 elif x <= 6e+197: tmp = -z - y else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * log(y)) tmp = 0.0 if (x <= -1.55e+95) tmp = t_0; elseif (x <= 6e+197) tmp = Float64(Float64(-z) - y); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * log(y); tmp = 0.0; if (x <= -1.55e+95) tmp = t_0; elseif (x <= 6e+197) tmp = -z - y; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.55e+95], t$95$0, If[LessEqual[x, 6e+197], N[((-z) - y), $MachinePrecision], t$95$0]]]
\begin{array}{l}
t_0 := x \cdot \log y\\
\mathbf{if}\;x \leq -1.55 \cdot 10^{+95}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 6 \cdot 10^{+197}:\\
\;\;\;\;\left(-z\right) - y\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
if x < -1.5500000000000001e95 or 6.0000000000000004e197 < x Initial program 99.9%
Taylor expanded in y around inf
lower-*.f6434.6%
Applied rewrites34.6%
lift-*.f64N/A
metadata-evalN/A
distribute-lft-neg-outN/A
lower-neg.f64N/A
/-rgt-identityN/A
div-flip-revN/A
lift-/.f64N/A
mult-flip-revN/A
lift-/.f64N/A
div-flip-revN/A
/-rgt-identity34.6%
Applied rewrites34.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower-log.f6433.8%
Applied rewrites33.8%
if -1.5500000000000001e95 < x < 6.0000000000000004e197Initial program 99.9%
lift-log.f64N/A
remove-double-divN/A
metadata-evalN/A
associate-/l/N/A
log-divN/A
lower-unsound--.f64N/A
lower-unsound-log.f64N/A
lower-unsound-log.f64N/A
lower-*.f64N/A
lower-/.f6499.8%
Applied rewrites99.8%
Taylor expanded in x around 0
lower-*.f6467.2%
Applied rewrites67.2%
lift-*.f64N/A
mul-1-negN/A
lift-neg.f6467.2%
Applied rewrites67.2%
(FPCore (x y z) :precision binary64 (- (- z) y))
double code(double x, double y, double z) {
return -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)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = -z - y
end function
public static double code(double x, double y, double z) {
return -z - y;
}
def code(x, y, z): return -z - y
function code(x, y, z) return Float64(Float64(-z) - y) end
function tmp = code(x, y, z) tmp = -z - y; end
code[x_, y_, z_] := N[((-z) - y), $MachinePrecision]
\left(-z\right) - y
Initial program 99.9%
lift-log.f64N/A
remove-double-divN/A
metadata-evalN/A
associate-/l/N/A
log-divN/A
lower-unsound--.f64N/A
lower-unsound-log.f64N/A
lower-unsound-log.f64N/A
lower-*.f64N/A
lower-/.f6499.8%
Applied rewrites99.8%
Taylor expanded in x around 0
lower-*.f6467.2%
Applied rewrites67.2%
lift-*.f64N/A
mul-1-negN/A
lift-neg.f6467.2%
Applied rewrites67.2%
(FPCore (x y z) :precision binary64 (- y))
double code(double x, double y, double z) {
return -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)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = -y
end function
public static double code(double x, double y, double z) {
return -y;
}
def code(x, y, z): return -y
function code(x, y, z) return Float64(-y) end
function tmp = code(x, y, z) tmp = -y; end
code[x_, y_, z_] := (-y)
-y
Initial program 99.9%
Taylor expanded in y around inf
lower-*.f6434.6%
Applied rewrites34.6%
lift-*.f64N/A
metadata-evalN/A
distribute-lft-neg-outN/A
lower-neg.f64N/A
/-rgt-identityN/A
div-flip-revN/A
lift-/.f64N/A
mult-flip-revN/A
lift-/.f64N/A
div-flip-revN/A
/-rgt-identity34.6%
Applied rewrites34.6%
herbie shell --seed 2025183
(FPCore (x y z)
:name "Statistics.Distribution.Poisson:$clogProbability from math-functions-0.1.5.2"
:precision binary64
(- (- (* x (log y)) z) y))