
(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);
}
real(8) function code(x, y, z, t)
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}
Sampling outcomes in binary64 precision:
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);
}
real(8) function code(x, y, z, t)
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);
}
real(8) function code(x, y, z, t)
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)) y)))
(if (<= t_1 -5e+113)
(- (log t) y)
(if (<= t_1 1e+19) (- (log t) z) (* (log y) x)))))
double code(double x, double y, double z, double t) {
double t_1 = (x * log(y)) - y;
double tmp;
if (t_1 <= -5e+113) {
tmp = log(t) - y;
} else if (t_1 <= 1e+19) {
tmp = log(t) - z;
} else {
tmp = log(y) * x;
}
return tmp;
}
real(8) function code(x, y, z, t)
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 = (x * log(y)) - y
if (t_1 <= (-5d+113)) then
tmp = log(t) - y
else if (t_1 <= 1d+19) then
tmp = log(t) - z
else
tmp = log(y) * x
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)) - y;
double tmp;
if (t_1 <= -5e+113) {
tmp = Math.log(t) - y;
} else if (t_1 <= 1e+19) {
tmp = Math.log(t) - z;
} else {
tmp = Math.log(y) * x;
}
return tmp;
}
def code(x, y, z, t): t_1 = (x * math.log(y)) - y tmp = 0 if t_1 <= -5e+113: tmp = math.log(t) - y elif t_1 <= 1e+19: tmp = math.log(t) - z else: tmp = math.log(y) * x return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x * log(y)) - y) tmp = 0.0 if (t_1 <= -5e+113) tmp = Float64(log(t) - y); elseif (t_1 <= 1e+19) tmp = Float64(log(t) - z); else tmp = Float64(log(y) * x); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x * log(y)) - y; tmp = 0.0; if (t_1 <= -5e+113) tmp = log(t) - y; elseif (t_1 <= 1e+19) tmp = log(t) - z; else tmp = log(y) * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+113], N[(N[Log[t], $MachinePrecision] - y), $MachinePrecision], If[LessEqual[t$95$1, 1e+19], N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision], N[(N[Log[y], $MachinePrecision] * x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y - y\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+113}:\\
\;\;\;\;\log t - y\\
\mathbf{elif}\;t\_1 \leq 10^{+19}:\\
\;\;\;\;\log t - z\\
\mathbf{else}:\\
\;\;\;\;\log y \cdot x\\
\end{array}
\end{array}
if (-.f64 (*.f64 x (log.f64 y)) y) < -5e113Initial program 99.9%
lift-+.f64N/A
flip3-+N/A
clear-numN/A
lower-/.f64N/A
clear-numN/A
flip3-+N/A
Applied rewrites99.7%
Taylor expanded in z around 0
lower--.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-log.f64N/A
lower-log.f6478.7
Applied rewrites78.7%
Taylor expanded in x around 0
Applied rewrites54.3%
if -5e113 < (-.f64 (*.f64 x (log.f64 y)) y) < 1e19Initial program 99.9%
Taylor expanded in y around 0
lower--.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-log.f64N/A
lower-log.f6488.8
Applied rewrites88.8%
Taylor expanded in x around 0
Applied rewrites77.2%
if 1e19 < (-.f64 (*.f64 x (log.f64 y)) y) Initial program 99.6%
lift--.f64N/A
flip--N/A
div-subN/A
sub-negN/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
associate-/l*N/A
lower-fma.f64N/A
Applied rewrites99.3%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
lower-log.f6479.7
Applied rewrites79.7%
Final simplification67.9%
(FPCore (x y z t) :precision binary64 (if (or (<= z -0.013) (not (<= z 6.2e+18))) (- (- (log t) y) z) (- (fma (log y) x (log t)) y)))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -0.013) || !(z <= 6.2e+18)) {
tmp = (log(t) - y) - z;
} else {
tmp = fma(log(y), x, log(t)) - y;
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if ((z <= -0.013) || !(z <= 6.2e+18)) tmp = Float64(Float64(log(t) - y) - z); else tmp = Float64(fma(log(y), x, log(t)) - y); end return tmp end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -0.013], N[Not[LessEqual[z, 6.2e+18]], $MachinePrecision]], N[(N[(N[Log[t], $MachinePrecision] - y), $MachinePrecision] - z), $MachinePrecision], N[(N[(N[Log[y], $MachinePrecision] * x + N[Log[t], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.013 \lor \neg \left(z \leq 6.2 \cdot 10^{+18}\right):\\
\;\;\;\;\left(\log t - y\right) - z\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\log y, x, \log t\right) - y\\
\end{array}
\end{array}
if z < -0.0129999999999999994 or 6.2e18 < z Initial program 99.9%
Taylor expanded in x around 0
associate--r+N/A
lower--.f64N/A
lower--.f64N/A
lower-log.f6486.6
Applied rewrites86.6%
if -0.0129999999999999994 < z < 6.2e18Initial program 99.8%
Taylor expanded in z around 0
lower--.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-log.f64N/A
lower-log.f6499.8
Applied rewrites99.8%
Final simplification93.0%
(FPCore (x y z t) :precision binary64 (if (<= y 3.8e+47) (- (fma (log y) x (log t)) z) (- (- (log t) y) z)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 3.8e+47) {
tmp = fma(log(y), x, log(t)) - z;
} else {
tmp = (log(t) - y) - z;
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (y <= 3.8e+47) tmp = Float64(fma(log(y), x, log(t)) - z); else tmp = Float64(Float64(log(t) - y) - z); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[y, 3.8e+47], N[(N[(N[Log[y], $MachinePrecision] * x + N[Log[t], $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision], N[(N[(N[Log[t], $MachinePrecision] - y), $MachinePrecision] - z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 3.8 \cdot 10^{+47}:\\
\;\;\;\;\mathsf{fma}\left(\log y, x, \log t\right) - z\\
\mathbf{else}:\\
\;\;\;\;\left(\log t - y\right) - z\\
\end{array}
\end{array}
if y < 3.8000000000000003e47Initial program 99.8%
Taylor expanded in y around 0
lower--.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-log.f64N/A
lower-log.f6495.9
Applied rewrites95.9%
if 3.8000000000000003e47 < y Initial program 99.9%
Taylor expanded in x around 0
associate--r+N/A
lower--.f64N/A
lower--.f64N/A
lower-log.f6486.9
Applied rewrites86.9%
Final simplification92.2%
(FPCore (x y z t) :precision binary64 (if (or (<= z -1.1) (not (<= z 4.8e+28))) (- z) (pow (/ -1.0 y) -1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.1) || !(z <= 4.8e+28)) {
tmp = -z;
} else {
tmp = pow((-1.0 / y), -1.0);
}
return tmp;
}
real(8) function code(x, y, z, t)
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 <= (-1.1d0)) .or. (.not. (z <= 4.8d+28))) then
tmp = -z
else
tmp = ((-1.0d0) / y) ** (-1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.1) || !(z <= 4.8e+28)) {
tmp = -z;
} else {
tmp = Math.pow((-1.0 / y), -1.0);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -1.1) or not (z <= 4.8e+28): tmp = -z else: tmp = math.pow((-1.0 / y), -1.0) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -1.1) || !(z <= 4.8e+28)) tmp = Float64(-z); else tmp = Float64(-1.0 / y) ^ -1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -1.1) || ~((z <= 4.8e+28))) tmp = -z; else tmp = (-1.0 / y) ^ -1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -1.1], N[Not[LessEqual[z, 4.8e+28]], $MachinePrecision]], (-z), N[Power[N[(-1.0 / y), $MachinePrecision], -1.0], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.1 \lor \neg \left(z \leq 4.8 \cdot 10^{+28}\right):\\
\;\;\;\;-z\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{-1}{y}\right)}^{-1}\\
\end{array}
\end{array}
if z < -1.1000000000000001 or 4.79999999999999962e28 < z Initial program 99.9%
Taylor expanded in z around inf
mul-1-negN/A
lower-neg.f6467.2
Applied rewrites67.2%
if -1.1000000000000001 < z < 4.79999999999999962e28Initial program 99.8%
lift-+.f64N/A
flip3-+N/A
clear-numN/A
lower-/.f64N/A
clear-numN/A
flip3-+N/A
Applied rewrites99.6%
Taylor expanded in y around inf
lower-/.f6439.8
Applied rewrites39.8%
Final simplification53.5%
(FPCore (x y z t) :precision binary64 (if (or (<= x -1.36e+108) (not (<= x 1.35e+235))) (* (log y) x) (- (- (log t) y) z)))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1.36e+108) || !(x <= 1.35e+235)) {
tmp = log(y) * x;
} else {
tmp = (log(t) - y) - z;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((x <= (-1.36d+108)) .or. (.not. (x <= 1.35d+235))) then
tmp = log(y) * x
else
tmp = (log(t) - y) - z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1.36e+108) || !(x <= 1.35e+235)) {
tmp = Math.log(y) * x;
} else {
tmp = (Math.log(t) - y) - z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -1.36e+108) or not (x <= 1.35e+235): tmp = math.log(y) * x else: tmp = (math.log(t) - y) - z return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -1.36e+108) || !(x <= 1.35e+235)) tmp = Float64(log(y) * x); else tmp = Float64(Float64(log(t) - y) - z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -1.36e+108) || ~((x <= 1.35e+235))) tmp = log(y) * x; else tmp = (log(t) - y) - z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -1.36e+108], N[Not[LessEqual[x, 1.35e+235]], $MachinePrecision]], N[(N[Log[y], $MachinePrecision] * x), $MachinePrecision], N[(N[(N[Log[t], $MachinePrecision] - y), $MachinePrecision] - z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.36 \cdot 10^{+108} \lor \neg \left(x \leq 1.35 \cdot 10^{+235}\right):\\
\;\;\;\;\log y \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(\log t - y\right) - z\\
\end{array}
\end{array}
if x < -1.3599999999999999e108 or 1.3499999999999999e235 < x Initial program 99.7%
lift--.f64N/A
flip--N/A
div-subN/A
sub-negN/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
associate-/l*N/A
lower-fma.f64N/A
Applied rewrites96.3%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
lower-log.f6477.5
Applied rewrites77.5%
if -1.3599999999999999e108 < x < 1.3499999999999999e235Initial program 99.9%
Taylor expanded in x around 0
associate--r+N/A
lower--.f64N/A
lower--.f64N/A
lower-log.f6487.9
Applied rewrites87.9%
Final simplification85.6%
(FPCore (x y z t) :precision binary64 (if (<= y 6.5e+112) (- (log t) z) (pow (/ -1.0 y) -1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 6.5e+112) {
tmp = log(t) - z;
} else {
tmp = pow((-1.0 / y), -1.0);
}
return tmp;
}
real(8) function code(x, y, z, t)
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 <= 6.5d+112) then
tmp = log(t) - z
else
tmp = ((-1.0d0) / y) ** (-1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= 6.5e+112) {
tmp = Math.log(t) - z;
} else {
tmp = Math.pow((-1.0 / y), -1.0);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= 6.5e+112: tmp = math.log(t) - z else: tmp = math.pow((-1.0 / y), -1.0) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= 6.5e+112) tmp = Float64(log(t) - z); else tmp = Float64(-1.0 / y) ^ -1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= 6.5e+112) tmp = log(t) - z; else tmp = (-1.0 / y) ^ -1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, 6.5e+112], N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision], N[Power[N[(-1.0 / y), $MachinePrecision], -1.0], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 6.5 \cdot 10^{+112}:\\
\;\;\;\;\log t - z\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{-1}{y}\right)}^{-1}\\
\end{array}
\end{array}
if y < 6.4999999999999998e112Initial program 99.8%
Taylor expanded in y around 0
lower--.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-log.f64N/A
lower-log.f6492.5
Applied rewrites92.5%
Taylor expanded in x around 0
Applied rewrites59.2%
if 6.4999999999999998e112 < y Initial program 99.9%
lift-+.f64N/A
flip3-+N/A
clear-numN/A
lower-/.f64N/A
clear-numN/A
flip3-+N/A
Applied rewrites99.7%
Taylor expanded in y around inf
lower-/.f6468.7
Applied rewrites68.7%
Final simplification62.3%
(FPCore (x y z t) :precision binary64 (if (<= z -0.027) (- (log t) z) (if (<= z 6.8e+28) (- (log t) y) (- z))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -0.027) {
tmp = log(t) - z;
} else if (z <= 6.8e+28) {
tmp = log(t) - y;
} else {
tmp = -z;
}
return tmp;
}
real(8) function code(x, y, z, t)
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 <= (-0.027d0)) then
tmp = log(t) - z
else if (z <= 6.8d+28) then
tmp = log(t) - y
else
tmp = -z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -0.027) {
tmp = Math.log(t) - z;
} else if (z <= 6.8e+28) {
tmp = Math.log(t) - y;
} else {
tmp = -z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -0.027: tmp = math.log(t) - z elif z <= 6.8e+28: tmp = math.log(t) - y else: tmp = -z return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -0.027) tmp = Float64(log(t) - z); elseif (z <= 6.8e+28) tmp = Float64(log(t) - y); else tmp = Float64(-z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -0.027) tmp = log(t) - z; elseif (z <= 6.8e+28) tmp = log(t) - y; else tmp = -z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -0.027], N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision], If[LessEqual[z, 6.8e+28], N[(N[Log[t], $MachinePrecision] - y), $MachinePrecision], (-z)]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.027:\\
\;\;\;\;\log t - z\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{+28}:\\
\;\;\;\;\log t - y\\
\mathbf{else}:\\
\;\;\;\;-z\\
\end{array}
\end{array}
if z < -0.0269999999999999997Initial program 100.0%
Taylor expanded in y around 0
lower--.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-log.f64N/A
lower-log.f6485.8
Applied rewrites85.8%
Taylor expanded in x around 0
Applied rewrites71.8%
if -0.0269999999999999997 < z < 6.8e28Initial program 99.8%
lift-+.f64N/A
flip3-+N/A
clear-numN/A
lower-/.f64N/A
clear-numN/A
flip3-+N/A
Applied rewrites99.6%
Taylor expanded in z around 0
lower--.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-log.f64N/A
lower-log.f6499.1
Applied rewrites99.1%
Taylor expanded in x around 0
Applied rewrites59.8%
if 6.8e28 < z Initial program 99.9%
Taylor expanded in z around inf
mul-1-negN/A
lower-neg.f6466.0
Applied rewrites66.0%
Final simplification64.6%
(FPCore (x y z t) :precision binary64 (- z))
double code(double x, double y, double z, double t) {
return -z;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = -z
end function
public static double code(double x, double y, double z, double t) {
return -z;
}
def code(x, y, z, t): return -z
function code(x, y, z, t) return Float64(-z) end
function tmp = code(x, y, z, t) tmp = -z; end
code[x_, y_, z_, t_] := (-z)
\begin{array}{l}
\\
-z
\end{array}
Initial program 99.9%
Taylor expanded in z around inf
mul-1-negN/A
lower-neg.f6435.4
Applied rewrites35.4%
Final simplification35.4%
herbie shell --seed 2024324
(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)))