
(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 13 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 (+ (fma x (log y) (- (- y) z)) (log t)))
double code(double x, double y, double z, double t) {
return fma(x, log(y), (-y - z)) + log(t);
}
function code(x, y, z, t) return Float64(fma(x, log(y), Float64(Float64(-y) - z)) + log(t)) end
code[x_, y_, z_, t_] := N[(N[(x * N[Log[y], $MachinePrecision] + N[((-y) - z), $MachinePrecision]), $MachinePrecision] + N[Log[t], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(x, \log y, \left(-y\right) - z\right) + \log t
\end{array}
Initial program 99.9%
sub-neg99.9%
associate--l+99.9%
fma-define99.9%
Simplified99.9%
Final simplification99.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (* x (log y)) y)) (t_2 (- (- y) z)))
(if (<= t_1 -1e+197)
t_1
(if (<= t_1 -1e+147)
t_2
(if (<= t_1 -2e+80)
t_1
(if (<= t_1 -20000.0)
t_2
(if (<= t_1 200000.0) (- (log t) z) t_1)))))))
double code(double x, double y, double z, double t) {
double t_1 = (x * log(y)) - y;
double t_2 = -y - z;
double tmp;
if (t_1 <= -1e+197) {
tmp = t_1;
} else if (t_1 <= -1e+147) {
tmp = t_2;
} else if (t_1 <= -2e+80) {
tmp = t_1;
} else if (t_1 <= -20000.0) {
tmp = t_2;
} else if (t_1 <= 200000.0) {
tmp = log(t) - z;
} else {
tmp = t_1;
}
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) :: t_2
real(8) :: tmp
t_1 = (x * log(y)) - y
t_2 = -y - z
if (t_1 <= (-1d+197)) then
tmp = t_1
else if (t_1 <= (-1d+147)) then
tmp = t_2
else if (t_1 <= (-2d+80)) then
tmp = t_1
else if (t_1 <= (-20000.0d0)) then
tmp = t_2
else if (t_1 <= 200000.0d0) then
tmp = log(t) - z
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 = (x * Math.log(y)) - y;
double t_2 = -y - z;
double tmp;
if (t_1 <= -1e+197) {
tmp = t_1;
} else if (t_1 <= -1e+147) {
tmp = t_2;
} else if (t_1 <= -2e+80) {
tmp = t_1;
} else if (t_1 <= -20000.0) {
tmp = t_2;
} else if (t_1 <= 200000.0) {
tmp = Math.log(t) - z;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (x * math.log(y)) - y t_2 = -y - z tmp = 0 if t_1 <= -1e+197: tmp = t_1 elif t_1 <= -1e+147: tmp = t_2 elif t_1 <= -2e+80: tmp = t_1 elif t_1 <= -20000.0: tmp = t_2 elif t_1 <= 200000.0: tmp = math.log(t) - z else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x * log(y)) - y) t_2 = Float64(Float64(-y) - z) tmp = 0.0 if (t_1 <= -1e+197) tmp = t_1; elseif (t_1 <= -1e+147) tmp = t_2; elseif (t_1 <= -2e+80) tmp = t_1; elseif (t_1 <= -20000.0) tmp = t_2; elseif (t_1 <= 200000.0) tmp = Float64(log(t) - z); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x * log(y)) - y; t_2 = -y - z; tmp = 0.0; if (t_1 <= -1e+197) tmp = t_1; elseif (t_1 <= -1e+147) tmp = t_2; elseif (t_1 <= -2e+80) tmp = t_1; elseif (t_1 <= -20000.0) tmp = t_2; elseif (t_1 <= 200000.0) tmp = log(t) - z; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]}, Block[{t$95$2 = N[((-y) - z), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+197], t$95$1, If[LessEqual[t$95$1, -1e+147], t$95$2, If[LessEqual[t$95$1, -2e+80], t$95$1, If[LessEqual[t$95$1, -20000.0], t$95$2, If[LessEqual[t$95$1, 200000.0], N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y - y\\
t_2 := \left(-y\right) - z\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+197}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq -1 \cdot 10^{+147}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq -2 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq -20000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 200000:\\
\;\;\;\;\log t - z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (-.f64 (*.f64 x (log.f64 y)) y) < -9.9999999999999995e196 or -9.9999999999999998e146 < (-.f64 (*.f64 x (log.f64 y)) y) < -2e80 or 2e5 < (-.f64 (*.f64 x (log.f64 y)) y) Initial program 99.8%
associate-+l-99.8%
associate--l-99.8%
Simplified99.8%
Taylor expanded in z around inf 99.0%
Taylor expanded in z around 0 88.6%
if -9.9999999999999995e196 < (-.f64 (*.f64 x (log.f64 y)) y) < -9.9999999999999998e146 or -2e80 < (-.f64 (*.f64 x (log.f64 y)) y) < -2e4Initial program 99.9%
associate-+l-99.9%
associate--l-99.9%
Simplified99.9%
Taylor expanded in z around inf 95.5%
Taylor expanded in x around 0 88.8%
neg-mul-188.8%
distribute-neg-in88.8%
unsub-neg88.8%
Simplified88.8%
if -2e4 < (-.f64 (*.f64 x (log.f64 y)) y) < 2e5Initial program 100.0%
sub-neg100.0%
associate--l+100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in z around inf 98.4%
neg-mul-198.4%
Simplified98.4%
Final simplification90.8%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (log y))) (t_2 (- t_1 y)) (t_3 (- (- y) z)))
(if (<= t_2 -1e+197)
t_2
(if (<= t_2 -1e+147)
t_3
(if (<= t_2 -2e+80)
t_2
(if (<= t_2 -20000.0)
t_3
(if (<= t_2 1e-70) (- (log t) z) (- t_1 z))))))))
double code(double x, double y, double z, double t) {
double t_1 = x * log(y);
double t_2 = t_1 - y;
double t_3 = -y - z;
double tmp;
if (t_2 <= -1e+197) {
tmp = t_2;
} else if (t_2 <= -1e+147) {
tmp = t_3;
} else if (t_2 <= -2e+80) {
tmp = t_2;
} else if (t_2 <= -20000.0) {
tmp = t_3;
} else if (t_2 <= 1e-70) {
tmp = log(t) - z;
} else {
tmp = t_1 - 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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * log(y)
t_2 = t_1 - y
t_3 = -y - z
if (t_2 <= (-1d+197)) then
tmp = t_2
else if (t_2 <= (-1d+147)) then
tmp = t_3
else if (t_2 <= (-2d+80)) then
tmp = t_2
else if (t_2 <= (-20000.0d0)) then
tmp = t_3
else if (t_2 <= 1d-70) then
tmp = log(t) - z
else
tmp = t_1 - z
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 t_3 = -y - z;
double tmp;
if (t_2 <= -1e+197) {
tmp = t_2;
} else if (t_2 <= -1e+147) {
tmp = t_3;
} else if (t_2 <= -2e+80) {
tmp = t_2;
} else if (t_2 <= -20000.0) {
tmp = t_3;
} else if (t_2 <= 1e-70) {
tmp = Math.log(t) - z;
} else {
tmp = t_1 - z;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * math.log(y) t_2 = t_1 - y t_3 = -y - z tmp = 0 if t_2 <= -1e+197: tmp = t_2 elif t_2 <= -1e+147: tmp = t_3 elif t_2 <= -2e+80: tmp = t_2 elif t_2 <= -20000.0: tmp = t_3 elif t_2 <= 1e-70: tmp = math.log(t) - z else: tmp = t_1 - z return tmp
function code(x, y, z, t) t_1 = Float64(x * log(y)) t_2 = Float64(t_1 - y) t_3 = Float64(Float64(-y) - z) tmp = 0.0 if (t_2 <= -1e+197) tmp = t_2; elseif (t_2 <= -1e+147) tmp = t_3; elseif (t_2 <= -2e+80) tmp = t_2; elseif (t_2 <= -20000.0) tmp = t_3; elseif (t_2 <= 1e-70) tmp = Float64(log(t) - z); else tmp = Float64(t_1 - z); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * log(y); t_2 = t_1 - y; t_3 = -y - z; tmp = 0.0; if (t_2 <= -1e+197) tmp = t_2; elseif (t_2 <= -1e+147) tmp = t_3; elseif (t_2 <= -2e+80) tmp = t_2; elseif (t_2 <= -20000.0) tmp = t_3; elseif (t_2 <= 1e-70) tmp = log(t) - z; else tmp = t_1 - z; 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]}, Block[{t$95$3 = N[((-y) - z), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+197], t$95$2, If[LessEqual[t$95$2, -1e+147], t$95$3, If[LessEqual[t$95$2, -2e+80], t$95$2, If[LessEqual[t$95$2, -20000.0], t$95$3, If[LessEqual[t$95$2, 1e-70], N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision], N[(t$95$1 - z), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
t_2 := t\_1 - y\\
t_3 := \left(-y\right) - z\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{+197}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq -1 \cdot 10^{+147}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_2 \leq -2 \cdot 10^{+80}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq -20000:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_2 \leq 10^{-70}:\\
\;\;\;\;\log t - z\\
\mathbf{else}:\\
\;\;\;\;t\_1 - z\\
\end{array}
\end{array}
if (-.f64 (*.f64 x (log.f64 y)) y) < -9.9999999999999995e196 or -9.9999999999999998e146 < (-.f64 (*.f64 x (log.f64 y)) y) < -2e80Initial program 99.8%
associate-+l-99.8%
associate--l-99.8%
Simplified99.8%
Taylor expanded in z around inf 99.8%
Taylor expanded in z around 0 89.3%
if -9.9999999999999995e196 < (-.f64 (*.f64 x (log.f64 y)) y) < -9.9999999999999998e146 or -2e80 < (-.f64 (*.f64 x (log.f64 y)) y) < -2e4Initial program 99.9%
associate-+l-99.9%
associate--l-99.9%
Simplified99.9%
Taylor expanded in z around inf 95.5%
Taylor expanded in x around 0 88.8%
neg-mul-188.8%
distribute-neg-in88.8%
unsub-neg88.8%
Simplified88.8%
if -2e4 < (-.f64 (*.f64 x (log.f64 y)) y) < 9.99999999999999996e-71Initial program 100.0%
sub-neg100.0%
associate--l+100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in z around inf 98.2%
neg-mul-198.2%
Simplified98.2%
if 9.99999999999999996e-71 < (-.f64 (*.f64 x (log.f64 y)) y) Initial program 99.8%
associate-+l-99.8%
associate--l-99.8%
Simplified99.8%
Taylor expanded in z around inf 97.5%
Taylor expanded in y around 0 95.1%
Final simplification92.2%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (log y))) (t_2 (- t_1 y)))
(if (or (<= t_2 -1e+38) (not (<= t_2 1e-70)))
(- t_1 (+ y z))
(- (- (log t) z) y))))
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 <= -1e+38) || !(t_2 <= 1e-70)) {
tmp = t_1 - (y + z);
} else {
tmp = (log(t) - z) - y;
}
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) :: t_2
real(8) :: tmp
t_1 = x * log(y)
t_2 = t_1 - y
if ((t_2 <= (-1d+38)) .or. (.not. (t_2 <= 1d-70))) then
tmp = t_1 - (y + z)
else
tmp = (log(t) - z) - y
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 <= -1e+38) || !(t_2 <= 1e-70)) {
tmp = t_1 - (y + z);
} else {
tmp = (Math.log(t) - z) - y;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * math.log(y) t_2 = t_1 - y tmp = 0 if (t_2 <= -1e+38) or not (t_2 <= 1e-70): tmp = t_1 - (y + z) else: tmp = (math.log(t) - z) - y 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 <= -1e+38) || !(t_2 <= 1e-70)) tmp = Float64(t_1 - Float64(y + z)); else tmp = Float64(Float64(log(t) - z) - y); 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 <= -1e+38) || ~((t_2 <= 1e-70))) tmp = t_1 - (y + z); else tmp = (log(t) - z) - y; 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[Or[LessEqual[t$95$2, -1e+38], N[Not[LessEqual[t$95$2, 1e-70]], $MachinePrecision]], N[(t$95$1 - N[(y + z), $MachinePrecision]), $MachinePrecision], N[(N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision] - y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
t_2 := t\_1 - y\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{+38} \lor \neg \left(t\_2 \leq 10^{-70}\right):\\
\;\;\;\;t\_1 - \left(y + z\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\log t - z\right) - y\\
\end{array}
\end{array}
if (-.f64 (*.f64 x (log.f64 y)) y) < -9.99999999999999977e37 or 9.99999999999999996e-71 < (-.f64 (*.f64 x (log.f64 y)) y) Initial program 99.8%
associate-+l-99.8%
associate--l-99.8%
Simplified99.8%
Taylor expanded in z around inf 99.2%
if -9.99999999999999977e37 < (-.f64 (*.f64 x (log.f64 y)) y) < 9.99999999999999996e-71Initial program 100.0%
associate-+l-100.0%
sub-neg100.0%
+-commutative100.0%
associate--l+100.0%
sub-neg100.0%
+-commutative100.0%
unsub-neg100.0%
fma-undefine100.0%
neg-sub0100.0%
associate-+l-100.0%
neg-sub0100.0%
+-commutative100.0%
unsub-neg100.0%
Simplified100.0%
Taylor expanded in x around 0 99.0%
Final simplification99.1%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (log y))))
(if (or (<= z -1.5e+38) (not (<= z 2.2e-21)))
(- t_1 (+ y z))
(- (+ (log t) t_1) y))))
double code(double x, double y, double z, double t) {
double t_1 = x * log(y);
double tmp;
if ((z <= -1.5e+38) || !(z <= 2.2e-21)) {
tmp = t_1 - (y + z);
} else {
tmp = (log(t) + t_1) - y;
}
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)
if ((z <= (-1.5d+38)) .or. (.not. (z <= 2.2d-21))) then
tmp = t_1 - (y + z)
else
tmp = (log(t) + t_1) - y
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 tmp;
if ((z <= -1.5e+38) || !(z <= 2.2e-21)) {
tmp = t_1 - (y + z);
} else {
tmp = (Math.log(t) + t_1) - y;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * math.log(y) tmp = 0 if (z <= -1.5e+38) or not (z <= 2.2e-21): tmp = t_1 - (y + z) else: tmp = (math.log(t) + t_1) - y return tmp
function code(x, y, z, t) t_1 = Float64(x * log(y)) tmp = 0.0 if ((z <= -1.5e+38) || !(z <= 2.2e-21)) tmp = Float64(t_1 - Float64(y + z)); else tmp = Float64(Float64(log(t) + t_1) - y); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * log(y); tmp = 0.0; if ((z <= -1.5e+38) || ~((z <= 2.2e-21))) tmp = t_1 - (y + z); else tmp = (log(t) + t_1) - y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[z, -1.5e+38], N[Not[LessEqual[z, 2.2e-21]], $MachinePrecision]], N[(t$95$1 - N[(y + z), $MachinePrecision]), $MachinePrecision], N[(N[(N[Log[t], $MachinePrecision] + t$95$1), $MachinePrecision] - y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
\mathbf{if}\;z \leq -1.5 \cdot 10^{+38} \lor \neg \left(z \leq 2.2 \cdot 10^{-21}\right):\\
\;\;\;\;t\_1 - \left(y + z\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\log t + t\_1\right) - y\\
\end{array}
\end{array}
if z < -1.5000000000000001e38 or 2.2000000000000001e-21 < z Initial program 99.9%
associate-+l-99.9%
associate--l-99.9%
Simplified99.9%
Taylor expanded in z around inf 98.7%
if -1.5000000000000001e38 < z < 2.2000000000000001e-21Initial program 99.8%
associate-+l-99.8%
sub-neg99.8%
+-commutative99.8%
associate--l+99.8%
sub-neg99.8%
+-commutative99.8%
unsub-neg99.8%
fma-undefine99.8%
neg-sub099.8%
associate-+l-99.8%
neg-sub099.8%
+-commutative99.8%
unsub-neg99.8%
Simplified99.8%
Taylor expanded in z around 0 99.8%
+-commutative99.8%
Simplified99.8%
Final simplification99.3%
(FPCore (x y z t) :precision binary64 (+ (log t) (- (- (* x (log y)) y) z)))
double code(double x, double y, double z, double t) {
return log(t) + (((x * log(y)) - y) - 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 = log(t) + (((x * log(y)) - y) - z)
end function
public static double code(double x, double y, double z, double t) {
return Math.log(t) + (((x * Math.log(y)) - y) - z);
}
def code(x, y, z, t): return math.log(t) + (((x * math.log(y)) - y) - z)
function code(x, y, z, t) return Float64(log(t) + Float64(Float64(Float64(x * log(y)) - y) - z)) end
function tmp = code(x, y, z, t) tmp = log(t) + (((x * log(y)) - y) - z); end
code[x_, y_, z_, t_] := N[(N[Log[t], $MachinePrecision] + N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\log t + \left(\left(x \cdot \log y - y\right) - z\right)
\end{array}
Initial program 99.9%
Final simplification99.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (log t) z)) (t_2 (* x (log y))))
(if (<= y 3.8e-190)
t_1
(if (<= y 1.32e-157)
t_2
(if (<= y 5.9e-27)
t_1
(if (<= y 4.6e-10)
t_2
(if (<= y 110000000.0) (- (log t) y) (- (- y) z))))))))
double code(double x, double y, double z, double t) {
double t_1 = log(t) - z;
double t_2 = x * log(y);
double tmp;
if (y <= 3.8e-190) {
tmp = t_1;
} else if (y <= 1.32e-157) {
tmp = t_2;
} else if (y <= 5.9e-27) {
tmp = t_1;
} else if (y <= 4.6e-10) {
tmp = t_2;
} else if (y <= 110000000.0) {
tmp = log(t) - y;
} else {
tmp = -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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = log(t) - z
t_2 = x * log(y)
if (y <= 3.8d-190) then
tmp = t_1
else if (y <= 1.32d-157) then
tmp = t_2
else if (y <= 5.9d-27) then
tmp = t_1
else if (y <= 4.6d-10) then
tmp = t_2
else if (y <= 110000000.0d0) then
tmp = log(t) - y
else
tmp = -y - z
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;
double t_2 = x * Math.log(y);
double tmp;
if (y <= 3.8e-190) {
tmp = t_1;
} else if (y <= 1.32e-157) {
tmp = t_2;
} else if (y <= 5.9e-27) {
tmp = t_1;
} else if (y <= 4.6e-10) {
tmp = t_2;
} else if (y <= 110000000.0) {
tmp = Math.log(t) - y;
} else {
tmp = -y - z;
}
return tmp;
}
def code(x, y, z, t): t_1 = math.log(t) - z t_2 = x * math.log(y) tmp = 0 if y <= 3.8e-190: tmp = t_1 elif y <= 1.32e-157: tmp = t_2 elif y <= 5.9e-27: tmp = t_1 elif y <= 4.6e-10: tmp = t_2 elif y <= 110000000.0: tmp = math.log(t) - y else: tmp = -y - z return tmp
function code(x, y, z, t) t_1 = Float64(log(t) - z) t_2 = Float64(x * log(y)) tmp = 0.0 if (y <= 3.8e-190) tmp = t_1; elseif (y <= 1.32e-157) tmp = t_2; elseif (y <= 5.9e-27) tmp = t_1; elseif (y <= 4.6e-10) tmp = t_2; elseif (y <= 110000000.0) tmp = Float64(log(t) - y); else tmp = Float64(Float64(-y) - z); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = log(t) - z; t_2 = x * log(y); tmp = 0.0; if (y <= 3.8e-190) tmp = t_1; elseif (y <= 1.32e-157) tmp = t_2; elseif (y <= 5.9e-27) tmp = t_1; elseif (y <= 4.6e-10) tmp = t_2; elseif (y <= 110000000.0) tmp = log(t) - y; else tmp = -y - z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 3.8e-190], t$95$1, If[LessEqual[y, 1.32e-157], t$95$2, If[LessEqual[y, 5.9e-27], t$95$1, If[LessEqual[y, 4.6e-10], t$95$2, If[LessEqual[y, 110000000.0], N[(N[Log[t], $MachinePrecision] - y), $MachinePrecision], N[((-y) - z), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \log t - z\\
t_2 := x \cdot \log y\\
\mathbf{if}\;y \leq 3.8 \cdot 10^{-190}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.32 \cdot 10^{-157}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 5.9 \cdot 10^{-27}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{-10}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 110000000:\\
\;\;\;\;\log t - y\\
\mathbf{else}:\\
\;\;\;\;\left(-y\right) - z\\
\end{array}
\end{array}
if y < 3.7999999999999998e-190 or 1.3200000000000001e-157 < y < 5.8999999999999998e-27Initial program 99.8%
sub-neg99.8%
associate--l+99.8%
fma-define99.9%
Simplified99.9%
Taylor expanded in z around inf 67.2%
neg-mul-167.2%
Simplified67.2%
if 3.7999999999999998e-190 < y < 1.3200000000000001e-157 or 5.8999999999999998e-27 < y < 4.60000000000000014e-10Initial program 99.7%
associate-+l-99.7%
associate--l-99.7%
Simplified99.7%
Taylor expanded in z around inf 90.1%
Taylor expanded in x around inf 76.9%
if 4.60000000000000014e-10 < y < 1.1e8Initial program 100.0%
associate-+l-100.0%
sub-neg100.0%
+-commutative100.0%
associate--l+100.0%
sub-neg100.0%
+-commutative100.0%
unsub-neg100.0%
fma-undefine100.0%
neg-sub0100.0%
associate-+l-100.0%
neg-sub0100.0%
+-commutative100.0%
unsub-neg100.0%
Simplified100.0%
Taylor expanded in z around 0 100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in x around 0 72.5%
if 1.1e8 < y Initial program 99.9%
associate-+l-99.9%
associate--l-99.9%
Simplified99.9%
Taylor expanded in z around inf 99.6%
Taylor expanded in x around 0 83.8%
neg-mul-183.8%
distribute-neg-in83.8%
unsub-neg83.8%
Simplified83.8%
Final simplification76.7%
(FPCore (x y z t)
:precision binary64
(if (or (<= x -1.6e+111)
(and (not (<= x 2e+100)) (or (<= x 5.8e+140) (not (<= x 4.9e+207)))))
(* x (log y))
(- (- y) z)))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1.6e+111) || (!(x <= 2e+100) && ((x <= 5.8e+140) || !(x <= 4.9e+207)))) {
tmp = x * log(y);
} else {
tmp = -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.6d+111)) .or. (.not. (x <= 2d+100)) .and. (x <= 5.8d+140) .or. (.not. (x <= 4.9d+207))) then
tmp = x * log(y)
else
tmp = -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.6e+111) || (!(x <= 2e+100) && ((x <= 5.8e+140) || !(x <= 4.9e+207)))) {
tmp = x * Math.log(y);
} else {
tmp = -y - z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -1.6e+111) or (not (x <= 2e+100) and ((x <= 5.8e+140) or not (x <= 4.9e+207))): tmp = x * math.log(y) else: tmp = -y - z return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -1.6e+111) || (!(x <= 2e+100) && ((x <= 5.8e+140) || !(x <= 4.9e+207)))) tmp = Float64(x * log(y)); else tmp = Float64(Float64(-y) - z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -1.6e+111) || (~((x <= 2e+100)) && ((x <= 5.8e+140) || ~((x <= 4.9e+207))))) tmp = x * log(y); else tmp = -y - z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -1.6e+111], And[N[Not[LessEqual[x, 2e+100]], $MachinePrecision], Or[LessEqual[x, 5.8e+140], N[Not[LessEqual[x, 4.9e+207]], $MachinePrecision]]]], N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision], N[((-y) - z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.6 \cdot 10^{+111} \lor \neg \left(x \leq 2 \cdot 10^{+100}\right) \land \left(x \leq 5.8 \cdot 10^{+140} \lor \neg \left(x \leq 4.9 \cdot 10^{+207}\right)\right):\\
\;\;\;\;x \cdot \log y\\
\mathbf{else}:\\
\;\;\;\;\left(-y\right) - z\\
\end{array}
\end{array}
if x < -1.6e111 or 2.00000000000000003e100 < x < 5.7999999999999998e140 or 4.9e207 < x Initial program 99.6%
associate-+l-99.6%
associate--l-99.6%
Simplified99.6%
Taylor expanded in z around inf 99.6%
Taylor expanded in x around inf 74.9%
if -1.6e111 < x < 2.00000000000000003e100 or 5.7999999999999998e140 < x < 4.9e207Initial program 100.0%
associate-+l-100.0%
associate--l-100.0%
Simplified100.0%
Taylor expanded in z around inf 86.2%
Taylor expanded in x around 0 74.7%
neg-mul-174.7%
distribute-neg-in74.7%
unsub-neg74.7%
Simplified74.7%
Final simplification74.7%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (- y) z)) (t_2 (- (log t) y)))
(if (<= z -450.0)
t_1
(if (<= z 5.5e-243)
t_2
(if (<= z 1.55e-187) (* x (log y)) (if (<= z 2.2e-21) t_2 t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = -y - z;
double t_2 = log(t) - y;
double tmp;
if (z <= -450.0) {
tmp = t_1;
} else if (z <= 5.5e-243) {
tmp = t_2;
} else if (z <= 1.55e-187) {
tmp = x * log(y);
} else if (z <= 2.2e-21) {
tmp = t_2;
} else {
tmp = t_1;
}
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) :: t_2
real(8) :: tmp
t_1 = -y - z
t_2 = log(t) - y
if (z <= (-450.0d0)) then
tmp = t_1
else if (z <= 5.5d-243) then
tmp = t_2
else if (z <= 1.55d-187) then
tmp = x * log(y)
else if (z <= 2.2d-21) then
tmp = t_2
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 = -y - z;
double t_2 = Math.log(t) - y;
double tmp;
if (z <= -450.0) {
tmp = t_1;
} else if (z <= 5.5e-243) {
tmp = t_2;
} else if (z <= 1.55e-187) {
tmp = x * Math.log(y);
} else if (z <= 2.2e-21) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = -y - z t_2 = math.log(t) - y tmp = 0 if z <= -450.0: tmp = t_1 elif z <= 5.5e-243: tmp = t_2 elif z <= 1.55e-187: tmp = x * math.log(y) elif z <= 2.2e-21: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(-y) - z) t_2 = Float64(log(t) - y) tmp = 0.0 if (z <= -450.0) tmp = t_1; elseif (z <= 5.5e-243) tmp = t_2; elseif (z <= 1.55e-187) tmp = Float64(x * log(y)); elseif (z <= 2.2e-21) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = -y - z; t_2 = log(t) - y; tmp = 0.0; if (z <= -450.0) tmp = t_1; elseif (z <= 5.5e-243) tmp = t_2; elseif (z <= 1.55e-187) tmp = x * log(y); elseif (z <= 2.2e-21) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[((-y) - z), $MachinePrecision]}, Block[{t$95$2 = N[(N[Log[t], $MachinePrecision] - y), $MachinePrecision]}, If[LessEqual[z, -450.0], t$95$1, If[LessEqual[z, 5.5e-243], t$95$2, If[LessEqual[z, 1.55e-187], N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e-21], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-y\right) - z\\
t_2 := \log t - y\\
\mathbf{if}\;z \leq -450:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{-243}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{-187}:\\
\;\;\;\;x \cdot \log y\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{-21}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -450 or 2.2000000000000001e-21 < z Initial program 99.9%
associate-+l-99.9%
associate--l-99.9%
Simplified99.9%
Taylor expanded in z around inf 98.8%
Taylor expanded in x around 0 79.6%
neg-mul-179.6%
distribute-neg-in79.6%
unsub-neg79.6%
Simplified79.6%
if -450 < z < 5.50000000000000004e-243 or 1.5500000000000001e-187 < z < 2.2000000000000001e-21Initial program 99.8%
associate-+l-99.8%
sub-neg99.8%
+-commutative99.8%
associate--l+99.8%
sub-neg99.8%
+-commutative99.8%
unsub-neg99.8%
fma-undefine99.8%
neg-sub099.8%
associate-+l-99.8%
neg-sub099.8%
+-commutative99.8%
unsub-neg99.8%
Simplified99.8%
Taylor expanded in z around 0 99.8%
+-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 67.2%
if 5.50000000000000004e-243 < z < 1.5500000000000001e-187Initial program 99.8%
associate-+l-99.8%
associate--l-99.8%
Simplified99.8%
Taylor expanded in z around inf 92.3%
Taylor expanded in x around inf 79.9%
Final simplification74.1%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (log y))))
(if (<= x -1.7e+147)
(- t_1 z)
(if (or (<= x -2.7e+24) (not (<= x 1.25e+35)))
(- t_1 y)
(- (- (log t) z) y)))))
double code(double x, double y, double z, double t) {
double t_1 = x * log(y);
double tmp;
if (x <= -1.7e+147) {
tmp = t_1 - z;
} else if ((x <= -2.7e+24) || !(x <= 1.25e+35)) {
tmp = t_1 - y;
} else {
tmp = (log(t) - z) - y;
}
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)
if (x <= (-1.7d+147)) then
tmp = t_1 - z
else if ((x <= (-2.7d+24)) .or. (.not. (x <= 1.25d+35))) then
tmp = t_1 - y
else
tmp = (log(t) - z) - y
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 tmp;
if (x <= -1.7e+147) {
tmp = t_1 - z;
} else if ((x <= -2.7e+24) || !(x <= 1.25e+35)) {
tmp = t_1 - y;
} else {
tmp = (Math.log(t) - z) - y;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * math.log(y) tmp = 0 if x <= -1.7e+147: tmp = t_1 - z elif (x <= -2.7e+24) or not (x <= 1.25e+35): tmp = t_1 - y else: tmp = (math.log(t) - z) - y return tmp
function code(x, y, z, t) t_1 = Float64(x * log(y)) tmp = 0.0 if (x <= -1.7e+147) tmp = Float64(t_1 - z); elseif ((x <= -2.7e+24) || !(x <= 1.25e+35)) tmp = Float64(t_1 - y); else tmp = Float64(Float64(log(t) - z) - y); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * log(y); tmp = 0.0; if (x <= -1.7e+147) tmp = t_1 - z; elseif ((x <= -2.7e+24) || ~((x <= 1.25e+35))) tmp = t_1 - y; else tmp = (log(t) - z) - y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.7e+147], N[(t$95$1 - z), $MachinePrecision], If[Or[LessEqual[x, -2.7e+24], N[Not[LessEqual[x, 1.25e+35]], $MachinePrecision]], N[(t$95$1 - y), $MachinePrecision], N[(N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision] - y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
\mathbf{if}\;x \leq -1.7 \cdot 10^{+147}:\\
\;\;\;\;t\_1 - z\\
\mathbf{elif}\;x \leq -2.7 \cdot 10^{+24} \lor \neg \left(x \leq 1.25 \cdot 10^{+35}\right):\\
\;\;\;\;t\_1 - y\\
\mathbf{else}:\\
\;\;\;\;\left(\log t - z\right) - y\\
\end{array}
\end{array}
if x < -1.7e147Initial program 99.7%
associate-+l-99.7%
associate--l-99.7%
Simplified99.7%
Taylor expanded in z around inf 99.7%
Taylor expanded in y around 0 89.4%
if -1.7e147 < x < -2.7e24 or 1.25000000000000005e35 < x Initial program 99.7%
associate-+l-99.7%
associate--l-99.7%
Simplified99.7%
Taylor expanded in z around inf 99.7%
Taylor expanded in z around 0 90.0%
if -2.7e24 < x < 1.25000000000000005e35Initial program 100.0%
associate-+l-100.0%
sub-neg100.0%
+-commutative100.0%
associate--l+100.0%
sub-neg100.0%
+-commutative100.0%
unsub-neg100.0%
fma-undefine100.0%
neg-sub0100.0%
associate-+l-100.0%
neg-sub0100.0%
+-commutative100.0%
unsub-neg100.0%
Simplified100.0%
Taylor expanded in x around 0 98.3%
Final simplification94.6%
(FPCore (x y z t) :precision binary64 (if (<= y 20000.0) (- z) (- y)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 20000.0) {
tmp = -z;
} else {
tmp = -y;
}
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 <= 20000.0d0) then
tmp = -z
else
tmp = -y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= 20000.0) {
tmp = -z;
} else {
tmp = -y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= 20000.0: tmp = -z else: tmp = -y return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= 20000.0) tmp = Float64(-z); else tmp = Float64(-y); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= 20000.0) tmp = -z; else tmp = -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, 20000.0], (-z), (-y)]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 20000:\\
\;\;\;\;-z\\
\mathbf{else}:\\
\;\;\;\;-y\\
\end{array}
\end{array}
if y < 2e4Initial program 99.8%
associate-+l-99.8%
associate--l-99.8%
Simplified99.8%
Taylor expanded in z around inf 79.3%
Taylor expanded in z around inf 40.1%
neg-mul-140.1%
Simplified40.1%
if 2e4 < y Initial program 99.9%
associate-+l-99.9%
associate--l-99.9%
Simplified99.9%
Taylor expanded in z around inf 98.2%
Taylor expanded in y around inf 67.2%
neg-mul-167.2%
Simplified67.2%
Final simplification54.5%
(FPCore (x y z t) :precision binary64 (- (- y) z))
double code(double x, double y, double z, double t) {
return -y - 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 = -y - z
end function
public static double code(double x, double y, double z, double t) {
return -y - z;
}
def code(x, y, z, t): return -y - z
function code(x, y, z, t) return Float64(Float64(-y) - z) end
function tmp = code(x, y, z, t) tmp = -y - z; end
code[x_, y_, z_, t_] := N[((-y) - z), $MachinePrecision]
\begin{array}{l}
\\
\left(-y\right) - z
\end{array}
Initial program 99.9%
associate-+l-99.9%
associate--l-99.9%
Simplified99.9%
Taylor expanded in z around inf 89.3%
Taylor expanded in x around 0 62.8%
neg-mul-162.8%
distribute-neg-in62.8%
unsub-neg62.8%
Simplified62.8%
Final simplification62.8%
(FPCore (x y z t) :precision binary64 (- y))
double code(double x, double y, double z, double t) {
return -y;
}
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 = -y
end function
public static double code(double x, double y, double z, double t) {
return -y;
}
def code(x, y, z, t): return -y
function code(x, y, z, t) return Float64(-y) end
function tmp = code(x, y, z, t) tmp = -y; end
code[x_, y_, z_, t_] := (-y)
\begin{array}{l}
\\
-y
\end{array}
Initial program 99.9%
associate-+l-99.9%
associate--l-99.9%
Simplified99.9%
Taylor expanded in z around inf 89.3%
Taylor expanded in y around inf 37.0%
neg-mul-137.0%
Simplified37.0%
Final simplification37.0%
herbie shell --seed 2024067
(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)))