
(FPCore (x y z) :precision binary64 (exp (- (+ x (* y (log y))) z)))
double code(double x, double y, double z) {
return exp(((x + (y * log(y))) - z));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = exp(((x + (y * log(y))) - z))
end function
public static double code(double x, double y, double z) {
return Math.exp(((x + (y * Math.log(y))) - z));
}
def code(x, y, z): return math.exp(((x + (y * math.log(y))) - z))
function code(x, y, z) return exp(Float64(Float64(x + Float64(y * log(y))) - z)) end
function tmp = code(x, y, z) tmp = exp(((x + (y * log(y))) - z)); end
code[x_, y_, z_] := N[Exp[N[(N[(x + N[(y * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
e^{\left(x + y \cdot \log y\right) - z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (exp (- (+ x (* y (log y))) z)))
double code(double x, double y, double z) {
return exp(((x + (y * log(y))) - z));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = exp(((x + (y * log(y))) - z))
end function
public static double code(double x, double y, double z) {
return Math.exp(((x + (y * Math.log(y))) - z));
}
def code(x, y, z): return math.exp(((x + (y * math.log(y))) - z))
function code(x, y, z) return exp(Float64(Float64(x + Float64(y * log(y))) - z)) end
function tmp = code(x, y, z) tmp = exp(((x + (y * log(y))) - z)); end
code[x_, y_, z_] := N[Exp[N[(N[(x + N[(y * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
e^{\left(x + y \cdot \log y\right) - z}
\end{array}
(FPCore (x y z) :precision binary64 (exp (- (+ x (* y (log y))) z)))
double code(double x, double y, double z) {
return exp(((x + (y * log(y))) - z));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = exp(((x + (y * log(y))) - z))
end function
public static double code(double x, double y, double z) {
return Math.exp(((x + (y * Math.log(y))) - z));
}
def code(x, y, z): return math.exp(((x + (y * math.log(y))) - z))
function code(x, y, z) return exp(Float64(Float64(x + Float64(y * log(y))) - z)) end
function tmp = code(x, y, z) tmp = exp(((x + (y * log(y))) - z)); end
code[x_, y_, z_] := N[Exp[N[(N[(x + N[(y * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
e^{\left(x + y \cdot \log y\right) - z}
\end{array}
Initial program 100.0%
Final simplification100.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (exp (- x z))))
(if (<= y 7.5e-7)
t_0
(if (<= y 1.7e+20)
(* (pow y y) (exp x))
(if (<= y 2.4e+126) t_0 (pow y y))))))
double code(double x, double y, double z) {
double t_0 = exp((x - z));
double tmp;
if (y <= 7.5e-7) {
tmp = t_0;
} else if (y <= 1.7e+20) {
tmp = pow(y, y) * exp(x);
} else if (y <= 2.4e+126) {
tmp = t_0;
} else {
tmp = pow(y, y);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = exp((x - z))
if (y <= 7.5d-7) then
tmp = t_0
else if (y <= 1.7d+20) then
tmp = (y ** y) * exp(x)
else if (y <= 2.4d+126) then
tmp = t_0
else
tmp = y ** y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = Math.exp((x - z));
double tmp;
if (y <= 7.5e-7) {
tmp = t_0;
} else if (y <= 1.7e+20) {
tmp = Math.pow(y, y) * Math.exp(x);
} else if (y <= 2.4e+126) {
tmp = t_0;
} else {
tmp = Math.pow(y, y);
}
return tmp;
}
def code(x, y, z): t_0 = math.exp((x - z)) tmp = 0 if y <= 7.5e-7: tmp = t_0 elif y <= 1.7e+20: tmp = math.pow(y, y) * math.exp(x) elif y <= 2.4e+126: tmp = t_0 else: tmp = math.pow(y, y) return tmp
function code(x, y, z) t_0 = exp(Float64(x - z)) tmp = 0.0 if (y <= 7.5e-7) tmp = t_0; elseif (y <= 1.7e+20) tmp = Float64((y ^ y) * exp(x)); elseif (y <= 2.4e+126) tmp = t_0; else tmp = y ^ y; end return tmp end
function tmp_2 = code(x, y, z) t_0 = exp((x - z)); tmp = 0.0; if (y <= 7.5e-7) tmp = t_0; elseif (y <= 1.7e+20) tmp = (y ^ y) * exp(x); elseif (y <= 2.4e+126) tmp = t_0; else tmp = y ^ y; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[Exp[N[(x - z), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y, 7.5e-7], t$95$0, If[LessEqual[y, 1.7e+20], N[(N[Power[y, y], $MachinePrecision] * N[Exp[x], $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.4e+126], t$95$0, N[Power[y, y], $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := e^{x - z}\\
\mathbf{if}\;y \leq 7.5 \cdot 10^{-7}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{+20}:\\
\;\;\;\;{y}^{y} \cdot e^{x}\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{+126}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;{y}^{y}\\
\end{array}
\end{array}
if y < 7.5000000000000002e-7 or 1.7e20 < y < 2.40000000000000012e126Initial program 100.0%
+-commutative100.0%
associate--l+100.0%
exp-sum88.0%
*-commutative88.0%
exp-to-pow88.0%
Simplified88.0%
Taylor expanded in y around 0 94.5%
if 7.5000000000000002e-7 < y < 1.7e20Initial program 99.8%
+-commutative99.8%
associate--l+99.8%
exp-sum99.8%
*-commutative99.8%
exp-to-pow100.0%
Simplified100.0%
Taylor expanded in z around 0 100.0%
*-commutative100.0%
Simplified100.0%
if 2.40000000000000012e126 < y Initial program 100.0%
+-commutative100.0%
associate--l+100.0%
exp-sum58.0%
*-commutative58.0%
exp-to-pow58.0%
Simplified58.0%
Taylor expanded in x around 0 73.9%
exp-to-pow73.9%
*-commutative73.9%
prod-exp95.7%
+-commutative95.7%
unsub-neg95.7%
div-exp73.9%
*-commutative73.9%
exp-to-pow73.9%
Simplified73.9%
Taylor expanded in z around 0 92.9%
Final simplification94.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (exp (- x z))))
(if (<= y 3.8e-24)
t_0
(if (<= y 1.9e+20)
(/ (pow y y) (exp z))
(if (<= y 3.6e+126) t_0 (pow y y))))))
double code(double x, double y, double z) {
double t_0 = exp((x - z));
double tmp;
if (y <= 3.8e-24) {
tmp = t_0;
} else if (y <= 1.9e+20) {
tmp = pow(y, y) / exp(z);
} else if (y <= 3.6e+126) {
tmp = t_0;
} else {
tmp = pow(y, y);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = exp((x - z))
if (y <= 3.8d-24) then
tmp = t_0
else if (y <= 1.9d+20) then
tmp = (y ** y) / exp(z)
else if (y <= 3.6d+126) then
tmp = t_0
else
tmp = y ** y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = Math.exp((x - z));
double tmp;
if (y <= 3.8e-24) {
tmp = t_0;
} else if (y <= 1.9e+20) {
tmp = Math.pow(y, y) / Math.exp(z);
} else if (y <= 3.6e+126) {
tmp = t_0;
} else {
tmp = Math.pow(y, y);
}
return tmp;
}
def code(x, y, z): t_0 = math.exp((x - z)) tmp = 0 if y <= 3.8e-24: tmp = t_0 elif y <= 1.9e+20: tmp = math.pow(y, y) / math.exp(z) elif y <= 3.6e+126: tmp = t_0 else: tmp = math.pow(y, y) return tmp
function code(x, y, z) t_0 = exp(Float64(x - z)) tmp = 0.0 if (y <= 3.8e-24) tmp = t_0; elseif (y <= 1.9e+20) tmp = Float64((y ^ y) / exp(z)); elseif (y <= 3.6e+126) tmp = t_0; else tmp = y ^ y; end return tmp end
function tmp_2 = code(x, y, z) t_0 = exp((x - z)); tmp = 0.0; if (y <= 3.8e-24) tmp = t_0; elseif (y <= 1.9e+20) tmp = (y ^ y) / exp(z); elseif (y <= 3.6e+126) tmp = t_0; else tmp = y ^ y; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[Exp[N[(x - z), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y, 3.8e-24], t$95$0, If[LessEqual[y, 1.9e+20], N[(N[Power[y, y], $MachinePrecision] / N[Exp[z], $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.6e+126], t$95$0, N[Power[y, y], $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := e^{x - z}\\
\mathbf{if}\;y \leq 3.8 \cdot 10^{-24}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{+20}:\\
\;\;\;\;\frac{{y}^{y}}{e^{z}}\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{+126}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;{y}^{y}\\
\end{array}
\end{array}
if y < 3.80000000000000026e-24 or 1.9e20 < y < 3.6e126Initial program 100.0%
+-commutative100.0%
associate--l+100.0%
exp-sum87.6%
*-commutative87.6%
exp-to-pow87.6%
Simplified87.6%
Taylor expanded in y around 0 94.3%
if 3.80000000000000026e-24 < y < 1.9e20Initial program 99.9%
+-commutative99.9%
associate--l+99.9%
exp-sum99.9%
*-commutative99.9%
exp-to-pow100.0%
Simplified100.0%
Taylor expanded in x around 0 100.0%
exp-to-pow99.9%
*-commutative99.9%
prod-exp99.9%
+-commutative99.9%
unsub-neg99.9%
div-exp99.9%
*-commutative99.9%
exp-to-pow100.0%
Simplified100.0%
if 3.6e126 < y Initial program 100.0%
+-commutative100.0%
associate--l+100.0%
exp-sum58.0%
*-commutative58.0%
exp-to-pow58.0%
Simplified58.0%
Taylor expanded in x around 0 73.9%
exp-to-pow73.9%
*-commutative73.9%
prod-exp95.7%
+-commutative95.7%
unsub-neg95.7%
div-exp73.9%
*-commutative73.9%
exp-to-pow73.9%
Simplified73.9%
Taylor expanded in z around 0 92.9%
Final simplification94.3%
(FPCore (x y z) :precision binary64 (let* ((t_0 (exp (- x z)))) (if (<= y 1.7e+20) (* (pow y y) t_0) (if (<= y 6e+126) t_0 (pow y y)))))
double code(double x, double y, double z) {
double t_0 = exp((x - z));
double tmp;
if (y <= 1.7e+20) {
tmp = pow(y, y) * t_0;
} else if (y <= 6e+126) {
tmp = t_0;
} else {
tmp = pow(y, y);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = exp((x - z))
if (y <= 1.7d+20) then
tmp = (y ** y) * t_0
else if (y <= 6d+126) then
tmp = t_0
else
tmp = y ** y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = Math.exp((x - z));
double tmp;
if (y <= 1.7e+20) {
tmp = Math.pow(y, y) * t_0;
} else if (y <= 6e+126) {
tmp = t_0;
} else {
tmp = Math.pow(y, y);
}
return tmp;
}
def code(x, y, z): t_0 = math.exp((x - z)) tmp = 0 if y <= 1.7e+20: tmp = math.pow(y, y) * t_0 elif y <= 6e+126: tmp = t_0 else: tmp = math.pow(y, y) return tmp
function code(x, y, z) t_0 = exp(Float64(x - z)) tmp = 0.0 if (y <= 1.7e+20) tmp = Float64((y ^ y) * t_0); elseif (y <= 6e+126) tmp = t_0; else tmp = y ^ y; end return tmp end
function tmp_2 = code(x, y, z) t_0 = exp((x - z)); tmp = 0.0; if (y <= 1.7e+20) tmp = (y ^ y) * t_0; elseif (y <= 6e+126) tmp = t_0; else tmp = y ^ y; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[Exp[N[(x - z), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y, 1.7e+20], N[(N[Power[y, y], $MachinePrecision] * t$95$0), $MachinePrecision], If[LessEqual[y, 6e+126], t$95$0, N[Power[y, y], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := e^{x - z}\\
\mathbf{if}\;y \leq 1.7 \cdot 10^{+20}:\\
\;\;\;\;{y}^{y} \cdot t\_0\\
\mathbf{elif}\;y \leq 6 \cdot 10^{+126}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;{y}^{y}\\
\end{array}
\end{array}
if y < 1.7e20Initial program 100.0%
+-commutative100.0%
associate--l+100.0%
exp-sum100.0%
*-commutative100.0%
exp-to-pow100.0%
Simplified100.0%
if 1.7e20 < y < 6.0000000000000005e126Initial program 100.0%
+-commutative100.0%
associate--l+100.0%
exp-sum47.5%
*-commutative47.5%
exp-to-pow47.5%
Simplified47.5%
Taylor expanded in y around 0 75.9%
if 6.0000000000000005e126 < y Initial program 100.0%
+-commutative100.0%
associate--l+100.0%
exp-sum58.0%
*-commutative58.0%
exp-to-pow58.0%
Simplified58.0%
Taylor expanded in x around 0 73.9%
exp-to-pow73.9%
*-commutative73.9%
prod-exp95.7%
+-commutative95.7%
unsub-neg95.7%
div-exp73.9%
*-commutative73.9%
exp-to-pow73.9%
Simplified73.9%
Taylor expanded in z around 0 92.9%
Final simplification94.3%
(FPCore (x y z) :precision binary64 (if (or (<= y 7.5e-7) (and (not (<= y 4.9e+20)) (<= y 4.1e+126))) (exp (- x z)) (pow y y)))
double code(double x, double y, double z) {
double tmp;
if ((y <= 7.5e-7) || (!(y <= 4.9e+20) && (y <= 4.1e+126))) {
tmp = exp((x - z));
} else {
tmp = pow(y, y);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((y <= 7.5d-7) .or. (.not. (y <= 4.9d+20)) .and. (y <= 4.1d+126)) then
tmp = exp((x - z))
else
tmp = y ** y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= 7.5e-7) || (!(y <= 4.9e+20) && (y <= 4.1e+126))) {
tmp = Math.exp((x - z));
} else {
tmp = Math.pow(y, y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= 7.5e-7) or (not (y <= 4.9e+20) and (y <= 4.1e+126)): tmp = math.exp((x - z)) else: tmp = math.pow(y, y) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= 7.5e-7) || (!(y <= 4.9e+20) && (y <= 4.1e+126))) tmp = exp(Float64(x - z)); else tmp = y ^ y; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= 7.5e-7) || (~((y <= 4.9e+20)) && (y <= 4.1e+126))) tmp = exp((x - z)); else tmp = y ^ y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, 7.5e-7], And[N[Not[LessEqual[y, 4.9e+20]], $MachinePrecision], LessEqual[y, 4.1e+126]]], N[Exp[N[(x - z), $MachinePrecision]], $MachinePrecision], N[Power[y, y], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 7.5 \cdot 10^{-7} \lor \neg \left(y \leq 4.9 \cdot 10^{+20}\right) \land y \leq 4.1 \cdot 10^{+126}:\\
\;\;\;\;e^{x - z}\\
\mathbf{else}:\\
\;\;\;\;{y}^{y}\\
\end{array}
\end{array}
if y < 7.5000000000000002e-7 or 4.9e20 < y < 4.1000000000000001e126Initial program 100.0%
+-commutative100.0%
associate--l+100.0%
exp-sum88.0%
*-commutative88.0%
exp-to-pow88.0%
Simplified88.0%
Taylor expanded in y around 0 94.5%
if 7.5000000000000002e-7 < y < 4.9e20 or 4.1000000000000001e126 < y Initial program 100.0%
+-commutative100.0%
associate--l+100.0%
exp-sum64.2%
*-commutative64.2%
exp-to-pow64.2%
Simplified64.2%
Taylor expanded in x around 0 77.8%
exp-to-pow77.8%
*-commutative77.8%
prod-exp96.3%
+-commutative96.3%
unsub-neg96.3%
div-exp77.8%
*-commutative77.8%
exp-to-pow77.8%
Simplified77.8%
Taylor expanded in z around 0 92.8%
Final simplification93.9%
(FPCore (x y z) :precision binary64 (if (<= y 7.5e-7) (exp (- z)) (pow y y)))
double code(double x, double y, double z) {
double tmp;
if (y <= 7.5e-7) {
tmp = exp(-z);
} else {
tmp = pow(y, y);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (y <= 7.5d-7) then
tmp = exp(-z)
else
tmp = y ** y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= 7.5e-7) {
tmp = Math.exp(-z);
} else {
tmp = Math.pow(y, y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= 7.5e-7: tmp = math.exp(-z) else: tmp = math.pow(y, y) return tmp
function code(x, y, z) tmp = 0.0 if (y <= 7.5e-7) tmp = exp(Float64(-z)); else tmp = y ^ y; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= 7.5e-7) tmp = exp(-z); else tmp = y ^ y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, 7.5e-7], N[Exp[(-z)], $MachinePrecision], N[Power[y, y], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 7.5 \cdot 10^{-7}:\\
\;\;\;\;e^{-z}\\
\mathbf{else}:\\
\;\;\;\;{y}^{y}\\
\end{array}
\end{array}
if y < 7.5000000000000002e-7Initial program 100.0%
+-commutative100.0%
associate--l+100.0%
exp-sum100.0%
*-commutative100.0%
exp-to-pow100.0%
Simplified100.0%
Taylor expanded in x around 0 66.2%
exp-to-pow66.2%
*-commutative66.2%
prod-exp66.2%
+-commutative66.2%
unsub-neg66.2%
div-exp66.2%
*-commutative66.2%
exp-to-pow66.2%
Simplified66.2%
Taylor expanded in y around 0 66.2%
rec-exp66.2%
Simplified66.2%
if 7.5000000000000002e-7 < y Initial program 100.0%
+-commutative100.0%
associate--l+100.0%
exp-sum58.7%
*-commutative58.7%
exp-to-pow58.7%
Simplified58.7%
Taylor expanded in x around 0 67.0%
exp-to-pow67.0%
*-commutative67.0%
prod-exp91.0%
+-commutative91.0%
unsub-neg91.0%
div-exp67.0%
*-commutative67.0%
exp-to-pow67.0%
Simplified67.0%
Taylor expanded in z around 0 79.7%
Final simplification72.6%
(FPCore (x y z) :precision binary64 (exp (- z)))
double code(double x, double y, double z) {
return exp(-z);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = exp(-z)
end function
public static double code(double x, double y, double z) {
return Math.exp(-z);
}
def code(x, y, z): return math.exp(-z)
function code(x, y, z) return exp(Float64(-z)) end
function tmp = code(x, y, z) tmp = exp(-z); end
code[x_, y_, z_] := N[Exp[(-z)], $MachinePrecision]
\begin{array}{l}
\\
e^{-z}
\end{array}
Initial program 100.0%
+-commutative100.0%
associate--l+100.0%
exp-sum80.5%
*-commutative80.5%
exp-to-pow80.5%
Simplified80.5%
Taylor expanded in x around 0 66.6%
exp-to-pow66.6%
*-commutative66.6%
prod-exp77.9%
+-commutative77.9%
unsub-neg77.9%
div-exp66.6%
*-commutative66.6%
exp-to-pow66.6%
Simplified66.6%
Taylor expanded in y around 0 53.3%
rec-exp53.3%
Simplified53.3%
Final simplification53.3%
(FPCore (x y z) :precision binary64 (exp (+ (- x z) (* (log y) y))))
double code(double x, double y, double z) {
return exp(((x - z) + (log(y) * y)));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = exp(((x - z) + (log(y) * y)))
end function
public static double code(double x, double y, double z) {
return Math.exp(((x - z) + (Math.log(y) * y)));
}
def code(x, y, z): return math.exp(((x - z) + (math.log(y) * y)))
function code(x, y, z) return exp(Float64(Float64(x - z) + Float64(log(y) * y))) end
function tmp = code(x, y, z) tmp = exp(((x - z) + (log(y) * y))); end
code[x_, y_, z_] := N[Exp[N[(N[(x - z), $MachinePrecision] + N[(N[Log[y], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
e^{\left(x - z\right) + \log y \cdot y}
\end{array}
herbie shell --seed 2024059
(FPCore (x y z)
:name "Statistics.Distribution.Poisson.Internal:probability from math-functions-0.1.5.2"
:precision binary64
:alt
(exp (+ (- x z) (* (log y) y)))
(exp (- (+ x (* y (log y))) z)))