
(FPCore (x y z)
:precision binary64
(+
(+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)
(/
(+
(* (- (* (+ y 0.0007936500793651) z) 0.0027777777777778) z)
0.083333333333333)
x)))
double code(double x, double y, double z) {
return ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) + ((((((y + 0.0007936500793651d0) * z) - 0.0027777777777778d0) * z) + 0.083333333333333d0) / x)
end function
public static double code(double x, double y, double z) {
return ((((x - 0.5) * Math.log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x);
}
def code(x, y, z): return ((((x - 0.5) * math.log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x)
function code(x, y, z) return Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) + Float64(Float64(Float64(Float64(Float64(Float64(y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x)) end
function tmp = code(x, y, z) tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x); end
code[x_, y_, z_] := N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision] + N[(N[(N[(N[(N[(N[(y + 0.0007936500793651), $MachinePrecision] * z), $MachinePrecision] - 0.0027777777777778), $MachinePrecision] * z), $MachinePrecision] + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(+
(+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)
(/
(+
(* (- (* (+ y 0.0007936500793651) z) 0.0027777777777778) z)
0.083333333333333)
x)))
double code(double x, double y, double z) {
return ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) + ((((((y + 0.0007936500793651d0) * z) - 0.0027777777777778d0) * z) + 0.083333333333333d0) / x)
end function
public static double code(double x, double y, double z) {
return ((((x - 0.5) * Math.log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x);
}
def code(x, y, z): return ((((x - 0.5) * math.log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x)
function code(x, y, z) return Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) + Float64(Float64(Float64(Float64(Float64(Float64(y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x)) end
function tmp = code(x, y, z) tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x); end
code[x_, y_, z_] := N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision] + N[(N[(N[(N[(N[(N[(y + 0.0007936500793651), $MachinePrecision] * z), $MachinePrecision] - 0.0027777777777778), $MachinePrecision] * z), $MachinePrecision] + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\end{array}
(FPCore (x y z)
:precision binary64
(if (<= x 5000000000.0)
(+
(fma (+ x -0.5) (log x) (- 0.91893853320467 x))
(/
(fma
z
(fma (+ y 0.0007936500793651) z -0.0027777777777778)
0.083333333333333)
x))
(+
(+ 0.91893853320467 (- (* (log x) (- x 0.5)) x))
(+
(*
z
(- (* z (+ (/ 0.0007936500793651 x) (/ y x))) (/ 0.0027777777777778 x)))
(/ 0.083333333333333 x)))))
double code(double x, double y, double z) {
double tmp;
if (x <= 5000000000.0) {
tmp = fma((x + -0.5), log(x), (0.91893853320467 - x)) + (fma(z, fma((y + 0.0007936500793651), z, -0.0027777777777778), 0.083333333333333) / x);
} else {
tmp = (0.91893853320467 + ((log(x) * (x - 0.5)) - x)) + ((z * ((z * ((0.0007936500793651 / x) + (y / x))) - (0.0027777777777778 / x))) + (0.083333333333333 / x));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (x <= 5000000000.0) tmp = Float64(fma(Float64(x + -0.5), log(x), Float64(0.91893853320467 - x)) + Float64(fma(z, fma(Float64(y + 0.0007936500793651), z, -0.0027777777777778), 0.083333333333333) / x)); else tmp = Float64(Float64(0.91893853320467 + Float64(Float64(log(x) * Float64(x - 0.5)) - x)) + Float64(Float64(z * Float64(Float64(z * Float64(Float64(0.0007936500793651 / x) + Float64(y / x))) - Float64(0.0027777777777778 / x))) + Float64(0.083333333333333 / x))); end return tmp end
code[x_, y_, z_] := If[LessEqual[x, 5000000000.0], N[(N[(N[(x + -0.5), $MachinePrecision] * N[Log[x], $MachinePrecision] + N[(0.91893853320467 - x), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(N[(y + 0.0007936500793651), $MachinePrecision] * z + -0.0027777777777778), $MachinePrecision] + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(N[(0.91893853320467 + N[(N[(N[Log[x], $MachinePrecision] * N[(x - 0.5), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(N[(z * N[(N[(0.0007936500793651 / x), $MachinePrecision] + N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(0.0027777777777778 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 5000000000:\\
\;\;\;\;\mathsf{fma}\left(x + -0.5, \log x, 0.91893853320467 - x\right) + \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), 0.083333333333333\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;\left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + \left(z \cdot \left(z \cdot \left(\frac{0.0007936500793651}{x} + \frac{y}{x}\right) - \frac{0.0027777777777778}{x}\right) + \frac{0.083333333333333}{x}\right)\\
\end{array}
\end{array}
if x < 5e9Initial program 99.6%
remove-double-neg99.6%
distribute-frac-neg299.6%
sub-neg99.6%
associate-+l+99.6%
fma-define99.6%
sub-neg99.6%
metadata-eval99.6%
+-commutative99.6%
unsub-neg99.6%
distribute-frac-neg299.6%
remove-double-neg99.6%
Simplified99.6%
if 5e9 < x Initial program 83.0%
Taylor expanded in z around 0 98.8%
fma-define98.8%
associate-*r/98.8%
metadata-eval98.8%
associate-*r/98.8%
metadata-eval98.8%
associate-*r/98.8%
metadata-eval98.8%
Simplified98.8%
fma-undefine98.8%
Applied egg-rr98.8%
Final simplification99.3%
(FPCore (x y z)
:precision binary64
(if (<= x 2e-21)
(/
(+
0.083333333333333
(*
z
(-
(* z (* y (+ 1.0 (* 0.0007936500793651 (/ 1.0 y)))))
0.0027777777777778)))
x)
(+
(+ 0.91893853320467 (- (* (log x) (- x 0.5)) x))
(+
(*
z
(- (* z (+ (/ 0.0007936500793651 x) (/ y x))) (/ 0.0027777777777778 x)))
(/ 0.083333333333333 x)))))
double code(double x, double y, double z) {
double tmp;
if (x <= 2e-21) {
tmp = (0.083333333333333 + (z * ((z * (y * (1.0 + (0.0007936500793651 * (1.0 / y))))) - 0.0027777777777778))) / x;
} else {
tmp = (0.91893853320467 + ((log(x) * (x - 0.5)) - x)) + ((z * ((z * ((0.0007936500793651 / x) + (y / x))) - (0.0027777777777778 / x))) + (0.083333333333333 / x));
}
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 (x <= 2d-21) then
tmp = (0.083333333333333d0 + (z * ((z * (y * (1.0d0 + (0.0007936500793651d0 * (1.0d0 / y))))) - 0.0027777777777778d0))) / x
else
tmp = (0.91893853320467d0 + ((log(x) * (x - 0.5d0)) - x)) + ((z * ((z * ((0.0007936500793651d0 / x) + (y / x))) - (0.0027777777777778d0 / x))) + (0.083333333333333d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 2e-21) {
tmp = (0.083333333333333 + (z * ((z * (y * (1.0 + (0.0007936500793651 * (1.0 / y))))) - 0.0027777777777778))) / x;
} else {
tmp = (0.91893853320467 + ((Math.log(x) * (x - 0.5)) - x)) + ((z * ((z * ((0.0007936500793651 / x) + (y / x))) - (0.0027777777777778 / x))) + (0.083333333333333 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 2e-21: tmp = (0.083333333333333 + (z * ((z * (y * (1.0 + (0.0007936500793651 * (1.0 / y))))) - 0.0027777777777778))) / x else: tmp = (0.91893853320467 + ((math.log(x) * (x - 0.5)) - x)) + ((z * ((z * ((0.0007936500793651 / x) + (y / x))) - (0.0027777777777778 / x))) + (0.083333333333333 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 2e-21) tmp = Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(y * Float64(1.0 + Float64(0.0007936500793651 * Float64(1.0 / y))))) - 0.0027777777777778))) / x); else tmp = Float64(Float64(0.91893853320467 + Float64(Float64(log(x) * Float64(x - 0.5)) - x)) + Float64(Float64(z * Float64(Float64(z * Float64(Float64(0.0007936500793651 / x) + Float64(y / x))) - Float64(0.0027777777777778 / x))) + Float64(0.083333333333333 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 2e-21) tmp = (0.083333333333333 + (z * ((z * (y * (1.0 + (0.0007936500793651 * (1.0 / y))))) - 0.0027777777777778))) / x; else tmp = (0.91893853320467 + ((log(x) * (x - 0.5)) - x)) + ((z * ((z * ((0.0007936500793651 / x) + (y / x))) - (0.0027777777777778 / x))) + (0.083333333333333 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 2e-21], N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(y * N[(1.0 + N[(0.0007936500793651 * N[(1.0 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], N[(N[(0.91893853320467 + N[(N[(N[Log[x], $MachinePrecision] * N[(x - 0.5), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(N[(z * N[(N[(0.0007936500793651 / x), $MachinePrecision] + N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(0.0027777777777778 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2 \cdot 10^{-21}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(z \cdot \left(y \cdot \left(1 + 0.0007936500793651 \cdot \frac{1}{y}\right)\right) - 0.0027777777777778\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;\left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + \left(z \cdot \left(z \cdot \left(\frac{0.0007936500793651}{x} + \frac{y}{x}\right) - \frac{0.0027777777777778}{x}\right) + \frac{0.083333333333333}{x}\right)\\
\end{array}
\end{array}
if x < 1.99999999999999982e-21Initial program 99.6%
remove-double-neg99.6%
distribute-frac-neg299.6%
sub-neg99.6%
associate-+l+99.6%
fma-define99.6%
sub-neg99.6%
metadata-eval99.6%
+-commutative99.6%
unsub-neg99.6%
distribute-frac-neg299.6%
remove-double-neg99.6%
Simplified99.6%
Taylor expanded in x around 0 99.6%
Taylor expanded in y around inf 99.6%
if 1.99999999999999982e-21 < x Initial program 84.5%
Taylor expanded in z around 0 98.8%
fma-define98.8%
associate-*r/98.8%
metadata-eval98.8%
associate-*r/98.8%
metadata-eval98.8%
associate-*r/98.8%
metadata-eval98.8%
Simplified98.8%
fma-undefine98.8%
Applied egg-rr98.8%
Final simplification99.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* z (+ y 0.0007936500793651))))
(if (<= x 4e+77)
(+
(+ 0.91893853320467 (- (* (log x) (- x 0.5)) x))
(/ (+ 0.083333333333333 (* z (- t_0 0.0027777777777778))) x))
(+
(+ (/ 0.083333333333333 x) (* z (- (/ t_0 x) (/ 0.0027777777777778 x))))
(+ 0.91893853320467 (- (* x (log x)) x))))))
double code(double x, double y, double z) {
double t_0 = z * (y + 0.0007936500793651);
double tmp;
if (x <= 4e+77) {
tmp = (0.91893853320467 + ((log(x) * (x - 0.5)) - x)) + ((0.083333333333333 + (z * (t_0 - 0.0027777777777778))) / x);
} else {
tmp = ((0.083333333333333 / x) + (z * ((t_0 / x) - (0.0027777777777778 / x)))) + (0.91893853320467 + ((x * log(x)) - x));
}
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 = z * (y + 0.0007936500793651d0)
if (x <= 4d+77) then
tmp = (0.91893853320467d0 + ((log(x) * (x - 0.5d0)) - x)) + ((0.083333333333333d0 + (z * (t_0 - 0.0027777777777778d0))) / x)
else
tmp = ((0.083333333333333d0 / x) + (z * ((t_0 / x) - (0.0027777777777778d0 / x)))) + (0.91893853320467d0 + ((x * log(x)) - x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = z * (y + 0.0007936500793651);
double tmp;
if (x <= 4e+77) {
tmp = (0.91893853320467 + ((Math.log(x) * (x - 0.5)) - x)) + ((0.083333333333333 + (z * (t_0 - 0.0027777777777778))) / x);
} else {
tmp = ((0.083333333333333 / x) + (z * ((t_0 / x) - (0.0027777777777778 / x)))) + (0.91893853320467 + ((x * Math.log(x)) - x));
}
return tmp;
}
def code(x, y, z): t_0 = z * (y + 0.0007936500793651) tmp = 0 if x <= 4e+77: tmp = (0.91893853320467 + ((math.log(x) * (x - 0.5)) - x)) + ((0.083333333333333 + (z * (t_0 - 0.0027777777777778))) / x) else: tmp = ((0.083333333333333 / x) + (z * ((t_0 / x) - (0.0027777777777778 / x)))) + (0.91893853320467 + ((x * math.log(x)) - x)) return tmp
function code(x, y, z) t_0 = Float64(z * Float64(y + 0.0007936500793651)) tmp = 0.0 if (x <= 4e+77) tmp = Float64(Float64(0.91893853320467 + Float64(Float64(log(x) * Float64(x - 0.5)) - x)) + Float64(Float64(0.083333333333333 + Float64(z * Float64(t_0 - 0.0027777777777778))) / x)); else tmp = Float64(Float64(Float64(0.083333333333333 / x) + Float64(z * Float64(Float64(t_0 / x) - Float64(0.0027777777777778 / x)))) + Float64(0.91893853320467 + Float64(Float64(x * log(x)) - x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = z * (y + 0.0007936500793651); tmp = 0.0; if (x <= 4e+77) tmp = (0.91893853320467 + ((log(x) * (x - 0.5)) - x)) + ((0.083333333333333 + (z * (t_0 - 0.0027777777777778))) / x); else tmp = ((0.083333333333333 / x) + (z * ((t_0 / x) - (0.0027777777777778 / x)))) + (0.91893853320467 + ((x * log(x)) - x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 4e+77], N[(N[(0.91893853320467 + N[(N[(N[Log[x], $MachinePrecision] * N[(x - 0.5), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision] + N[(N[(0.083333333333333 + N[(z * N[(t$95$0 - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(N[(N[(0.083333333333333 / x), $MachinePrecision] + N[(z * N[(N[(t$95$0 / x), $MachinePrecision] - N[(0.0027777777777778 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.91893853320467 + N[(N[(x * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \left(y + 0.0007936500793651\right)\\
\mathbf{if}\;x \leq 4 \cdot 10^{+77}:\\
\;\;\;\;\left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + \frac{0.083333333333333 + z \cdot \left(t\_0 - 0.0027777777777778\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{0.083333333333333}{x} + z \cdot \left(\frac{t\_0}{x} - \frac{0.0027777777777778}{x}\right)\right) + \left(0.91893853320467 + \left(x \cdot \log x - x\right)\right)\\
\end{array}
\end{array}
if x < 3.99999999999999993e77Initial program 99.6%
if 3.99999999999999993e77 < x Initial program 79.3%
Taylor expanded in z around 0 98.6%
fma-define98.6%
associate-*r/98.6%
metadata-eval98.6%
associate-*r/98.6%
metadata-eval98.6%
associate-*r/98.6%
metadata-eval98.6%
Simplified98.6%
fma-undefine98.6%
Applied egg-rr98.6%
Taylor expanded in x around 0 97.6%
Taylor expanded in x around inf 97.6%
mul-1-neg97.6%
distribute-rgt-neg-in97.6%
log-rec97.6%
remove-double-neg97.6%
Simplified97.6%
Final simplification98.9%
(FPCore (x y z)
:precision binary64
(if (<= x 0.0029)
(/
(+
0.083333333333333
(*
z
(-
(* z (* y (+ 1.0 (* 0.0007936500793651 (/ 1.0 y)))))
0.0027777777777778)))
x)
(if (<= x 9.2e+268)
(+
(+ 0.91893853320467 (- (* x (log x)) x))
(/ (+ 0.083333333333333 (* z (- (* z y) 0.0027777777777778))) x))
(* x (+ (log x) -1.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= 0.0029) {
tmp = (0.083333333333333 + (z * ((z * (y * (1.0 + (0.0007936500793651 * (1.0 / y))))) - 0.0027777777777778))) / x;
} else if (x <= 9.2e+268) {
tmp = (0.91893853320467 + ((x * log(x)) - x)) + ((0.083333333333333 + (z * ((z * y) - 0.0027777777777778))) / x);
} else {
tmp = x * (log(x) + -1.0);
}
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 (x <= 0.0029d0) then
tmp = (0.083333333333333d0 + (z * ((z * (y * (1.0d0 + (0.0007936500793651d0 * (1.0d0 / y))))) - 0.0027777777777778d0))) / x
else if (x <= 9.2d+268) then
tmp = (0.91893853320467d0 + ((x * log(x)) - x)) + ((0.083333333333333d0 + (z * ((z * y) - 0.0027777777777778d0))) / x)
else
tmp = x * (log(x) + (-1.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 0.0029) {
tmp = (0.083333333333333 + (z * ((z * (y * (1.0 + (0.0007936500793651 * (1.0 / y))))) - 0.0027777777777778))) / x;
} else if (x <= 9.2e+268) {
tmp = (0.91893853320467 + ((x * Math.log(x)) - x)) + ((0.083333333333333 + (z * ((z * y) - 0.0027777777777778))) / x);
} else {
tmp = x * (Math.log(x) + -1.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 0.0029: tmp = (0.083333333333333 + (z * ((z * (y * (1.0 + (0.0007936500793651 * (1.0 / y))))) - 0.0027777777777778))) / x elif x <= 9.2e+268: tmp = (0.91893853320467 + ((x * math.log(x)) - x)) + ((0.083333333333333 + (z * ((z * y) - 0.0027777777777778))) / x) else: tmp = x * (math.log(x) + -1.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 0.0029) tmp = Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(y * Float64(1.0 + Float64(0.0007936500793651 * Float64(1.0 / y))))) - 0.0027777777777778))) / x); elseif (x <= 9.2e+268) tmp = Float64(Float64(0.91893853320467 + Float64(Float64(x * log(x)) - x)) + Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * y) - 0.0027777777777778))) / x)); else tmp = Float64(x * Float64(log(x) + -1.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 0.0029) tmp = (0.083333333333333 + (z * ((z * (y * (1.0 + (0.0007936500793651 * (1.0 / y))))) - 0.0027777777777778))) / x; elseif (x <= 9.2e+268) tmp = (0.91893853320467 + ((x * log(x)) - x)) + ((0.083333333333333 + (z * ((z * y) - 0.0027777777777778))) / x); else tmp = x * (log(x) + -1.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 0.0029], N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(y * N[(1.0 + N[(0.0007936500793651 * N[(1.0 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], If[LessEqual[x, 9.2e+268], N[(N[(0.91893853320467 + N[(N[(x * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision] + N[(N[(0.083333333333333 + N[(z * N[(N[(z * y), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 0.0029:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(z \cdot \left(y \cdot \left(1 + 0.0007936500793651 \cdot \frac{1}{y}\right)\right) - 0.0027777777777778\right)}{x}\\
\mathbf{elif}\;x \leq 9.2 \cdot 10^{+268}:\\
\;\;\;\;\left(0.91893853320467 + \left(x \cdot \log x - x\right)\right) + \frac{0.083333333333333 + z \cdot \left(z \cdot y - 0.0027777777777778\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\log x + -1\right)\\
\end{array}
\end{array}
if x < 0.0029Initial program 99.6%
remove-double-neg99.6%
distribute-frac-neg299.6%
sub-neg99.6%
associate-+l+99.6%
fma-define99.6%
sub-neg99.6%
metadata-eval99.6%
+-commutative99.6%
unsub-neg99.6%
distribute-frac-neg299.6%
remove-double-neg99.6%
Simplified99.6%
Taylor expanded in x around 0 99.2%
Taylor expanded in y around inf 99.2%
if 0.0029 < x < 9.20000000000000049e268Initial program 86.9%
Taylor expanded in x around inf 84.7%
mul-1-neg97.3%
distribute-rgt-neg-in97.3%
log-rec97.3%
remove-double-neg97.3%
Simplified84.7%
Taylor expanded in y around inf 82.6%
*-commutative82.6%
Simplified82.6%
if 9.20000000000000049e268 < x Initial program 56.7%
remove-double-neg56.7%
distribute-frac-neg256.7%
sub-neg56.7%
associate-+l+56.7%
fma-define56.8%
sub-neg56.8%
metadata-eval56.8%
+-commutative56.8%
unsub-neg56.8%
distribute-frac-neg256.8%
remove-double-neg56.8%
Simplified56.8%
Taylor expanded in x around inf 99.8%
sub-neg99.8%
mul-1-neg99.8%
log-rec99.8%
remove-double-neg99.8%
metadata-eval99.8%
Simplified99.8%
Final simplification92.6%
(FPCore (x y z)
:precision binary64
(if (<= x 1.9e+269)
(+
(+ 0.91893853320467 (- (* (log x) (- x 0.5)) x))
(/
(+
0.083333333333333
(* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778)))
x))
(* x (+ (log x) -1.0))))
double code(double x, double y, double z) {
double tmp;
if (x <= 1.9e+269) {
tmp = (0.91893853320467 + ((log(x) * (x - 0.5)) - x)) + ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x);
} else {
tmp = x * (log(x) + -1.0);
}
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 (x <= 1.9d+269) then
tmp = (0.91893853320467d0 + ((log(x) * (x - 0.5d0)) - x)) + ((0.083333333333333d0 + (z * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0))) / x)
else
tmp = x * (log(x) + (-1.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 1.9e+269) {
tmp = (0.91893853320467 + ((Math.log(x) * (x - 0.5)) - x)) + ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x);
} else {
tmp = x * (Math.log(x) + -1.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 1.9e+269: tmp = (0.91893853320467 + ((math.log(x) * (x - 0.5)) - x)) + ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) else: tmp = x * (math.log(x) + -1.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 1.9e+269) tmp = Float64(Float64(0.91893853320467 + Float64(Float64(log(x) * Float64(x - 0.5)) - x)) + Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778))) / x)); else tmp = Float64(x * Float64(log(x) + -1.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 1.9e+269) tmp = (0.91893853320467 + ((log(x) * (x - 0.5)) - x)) + ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x); else tmp = x * (log(x) + -1.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 1.9e+269], N[(N[(0.91893853320467 + N[(N[(N[Log[x], $MachinePrecision] * N[(x - 0.5), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision] + N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.9 \cdot 10^{+269}:\\
\;\;\;\;\left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + \frac{0.083333333333333 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\log x + -1\right)\\
\end{array}
\end{array}
if x < 1.89999999999999991e269Initial program 94.3%
if 1.89999999999999991e269 < x Initial program 56.7%
remove-double-neg56.7%
distribute-frac-neg256.7%
sub-neg56.7%
associate-+l+56.7%
fma-define56.8%
sub-neg56.8%
metadata-eval56.8%
+-commutative56.8%
unsub-neg56.8%
distribute-frac-neg256.8%
remove-double-neg56.8%
Simplified56.8%
Taylor expanded in x around inf 99.8%
sub-neg99.8%
mul-1-neg99.8%
log-rec99.8%
remove-double-neg99.8%
metadata-eval99.8%
Simplified99.8%
Final simplification94.6%
(FPCore (x y z) :precision binary64 (+ (+ 0.91893853320467 (- (* (log x) (- x 0.5)) x)) (+ (/ 0.083333333333333 x) (* z (- (/ (* z (+ y 0.0007936500793651)) x) (/ 0.0027777777777778 x))))))
double code(double x, double y, double z) {
return (0.91893853320467 + ((log(x) * (x - 0.5)) - x)) + ((0.083333333333333 / x) + (z * (((z * (y + 0.0007936500793651)) / x) - (0.0027777777777778 / x))));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (0.91893853320467d0 + ((log(x) * (x - 0.5d0)) - x)) + ((0.083333333333333d0 / x) + (z * (((z * (y + 0.0007936500793651d0)) / x) - (0.0027777777777778d0 / x))))
end function
public static double code(double x, double y, double z) {
return (0.91893853320467 + ((Math.log(x) * (x - 0.5)) - x)) + ((0.083333333333333 / x) + (z * (((z * (y + 0.0007936500793651)) / x) - (0.0027777777777778 / x))));
}
def code(x, y, z): return (0.91893853320467 + ((math.log(x) * (x - 0.5)) - x)) + ((0.083333333333333 / x) + (z * (((z * (y + 0.0007936500793651)) / x) - (0.0027777777777778 / x))))
function code(x, y, z) return Float64(Float64(0.91893853320467 + Float64(Float64(log(x) * Float64(x - 0.5)) - x)) + Float64(Float64(0.083333333333333 / x) + Float64(z * Float64(Float64(Float64(z * Float64(y + 0.0007936500793651)) / x) - Float64(0.0027777777777778 / x))))) end
function tmp = code(x, y, z) tmp = (0.91893853320467 + ((log(x) * (x - 0.5)) - x)) + ((0.083333333333333 / x) + (z * (((z * (y + 0.0007936500793651)) / x) - (0.0027777777777778 / x)))); end
code[x_, y_, z_] := N[(N[(0.91893853320467 + N[(N[(N[Log[x], $MachinePrecision] * N[(x - 0.5), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision] + N[(N[(0.083333333333333 / x), $MachinePrecision] + N[(z * N[(N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - N[(0.0027777777777778 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(0.91893853320467 + \left(\log x \cdot \left(x - 0.5\right) - x\right)\right) + \left(\frac{0.083333333333333}{x} + z \cdot \left(\frac{z \cdot \left(y + 0.0007936500793651\right)}{x} - \frac{0.0027777777777778}{x}\right)\right)
\end{array}
Initial program 92.4%
Taylor expanded in z around 0 93.4%
fma-define93.4%
associate-*r/93.4%
metadata-eval93.4%
associate-*r/93.4%
metadata-eval93.4%
associate-*r/93.4%
metadata-eval93.4%
Simplified93.4%
fma-undefine93.4%
Applied egg-rr93.4%
Taylor expanded in x around 0 97.4%
Final simplification97.4%
(FPCore (x y z)
:precision binary64
(if (<= x 4.2e+269)
(+
(/
(+
0.083333333333333
(* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778)))
x)
(+ 0.91893853320467 (- (* x (log x)) x)))
(* x (+ (log x) -1.0))))
double code(double x, double y, double z) {
double tmp;
if (x <= 4.2e+269) {
tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 + ((x * log(x)) - x));
} else {
tmp = x * (log(x) + -1.0);
}
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 (x <= 4.2d+269) then
tmp = ((0.083333333333333d0 + (z * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0))) / x) + (0.91893853320467d0 + ((x * log(x)) - x))
else
tmp = x * (log(x) + (-1.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 4.2e+269) {
tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 + ((x * Math.log(x)) - x));
} else {
tmp = x * (Math.log(x) + -1.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 4.2e+269: tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 + ((x * math.log(x)) - x)) else: tmp = x * (math.log(x) + -1.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 4.2e+269) tmp = Float64(Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778))) / x) + Float64(0.91893853320467 + Float64(Float64(x * log(x)) - x))); else tmp = Float64(x * Float64(log(x) + -1.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 4.2e+269) tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 + ((x * log(x)) - x)); else tmp = x * (log(x) + -1.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 4.2e+269], N[(N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] + N[(0.91893853320467 + N[(N[(x * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 4.2 \cdot 10^{+269}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)}{x} + \left(0.91893853320467 + \left(x \cdot \log x - x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\log x + -1\right)\\
\end{array}
\end{array}
if x < 4.2e269Initial program 94.3%
Taylor expanded in x around inf 93.1%
mul-1-neg96.9%
distribute-rgt-neg-in96.9%
log-rec96.9%
remove-double-neg96.9%
Simplified93.1%
if 4.2e269 < x Initial program 56.7%
remove-double-neg56.7%
distribute-frac-neg256.7%
sub-neg56.7%
associate-+l+56.7%
fma-define56.8%
sub-neg56.8%
metadata-eval56.8%
+-commutative56.8%
unsub-neg56.8%
distribute-frac-neg256.8%
remove-double-neg56.8%
Simplified56.8%
Taylor expanded in x around inf 99.8%
sub-neg99.8%
mul-1-neg99.8%
log-rec99.8%
remove-double-neg99.8%
metadata-eval99.8%
Simplified99.8%
Final simplification93.5%
(FPCore (x y z)
:precision binary64
(if (<= x 16500000000000.0)
(/
(+
0.083333333333333
(+
(* x 0.91893853320467)
(* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778))))
x)
(+
(+ 0.91893853320467 (- (* x (log x)) x))
(/
(+
0.083333333333333
(* z (- (* z 0.0007936500793651) 0.0027777777777778)))
x))))
double code(double x, double y, double z) {
double tmp;
if (x <= 16500000000000.0) {
tmp = (0.083333333333333 + ((x * 0.91893853320467) + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)))) / x;
} else {
tmp = (0.91893853320467 + ((x * log(x)) - x)) + ((0.083333333333333 + (z * ((z * 0.0007936500793651) - 0.0027777777777778))) / x);
}
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 (x <= 16500000000000.0d0) then
tmp = (0.083333333333333d0 + ((x * 0.91893853320467d0) + (z * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0)))) / x
else
tmp = (0.91893853320467d0 + ((x * log(x)) - x)) + ((0.083333333333333d0 + (z * ((z * 0.0007936500793651d0) - 0.0027777777777778d0))) / x)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 16500000000000.0) {
tmp = (0.083333333333333 + ((x * 0.91893853320467) + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)))) / x;
} else {
tmp = (0.91893853320467 + ((x * Math.log(x)) - x)) + ((0.083333333333333 + (z * ((z * 0.0007936500793651) - 0.0027777777777778))) / x);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 16500000000000.0: tmp = (0.083333333333333 + ((x * 0.91893853320467) + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)))) / x else: tmp = (0.91893853320467 + ((x * math.log(x)) - x)) + ((0.083333333333333 + (z * ((z * 0.0007936500793651) - 0.0027777777777778))) / x) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 16500000000000.0) tmp = Float64(Float64(0.083333333333333 + Float64(Float64(x * 0.91893853320467) + Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778)))) / x); else tmp = Float64(Float64(0.91893853320467 + Float64(Float64(x * log(x)) - x)) + Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * 0.0007936500793651) - 0.0027777777777778))) / x)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 16500000000000.0) tmp = (0.083333333333333 + ((x * 0.91893853320467) + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)))) / x; else tmp = (0.91893853320467 + ((x * log(x)) - x)) + ((0.083333333333333 + (z * ((z * 0.0007936500793651) - 0.0027777777777778))) / x); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 16500000000000.0], N[(N[(0.083333333333333 + N[(N[(x * 0.91893853320467), $MachinePrecision] + N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], N[(N[(0.91893853320467 + N[(N[(x * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision] + N[(N[(0.083333333333333 + N[(z * N[(N[(z * 0.0007936500793651), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 16500000000000:\\
\;\;\;\;\frac{0.083333333333333 + \left(x \cdot 0.91893853320467 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;\left(0.91893853320467 + \left(x \cdot \log x - x\right)\right) + \frac{0.083333333333333 + z \cdot \left(z \cdot 0.0007936500793651 - 0.0027777777777778\right)}{x}\\
\end{array}
\end{array}
if x < 1.65e13Initial program 99.6%
Taylor expanded in x around inf 97.7%
mul-1-neg95.2%
distribute-rgt-neg-in95.2%
log-rec95.2%
remove-double-neg95.2%
Simplified97.7%
Taylor expanded in x around 0 96.9%
if 1.65e13 < x Initial program 82.5%
Taylor expanded in x around inf 82.5%
mul-1-neg97.9%
distribute-rgt-neg-in97.9%
log-rec97.9%
remove-double-neg97.9%
Simplified82.5%
Taylor expanded in y around 0 75.3%
Final simplification87.8%
(FPCore (x y z)
:precision binary64
(if (<= x 3.75e+81)
(/
(+
0.083333333333333
(+
(* x 0.91893853320467)
(* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778))))
x)
(* x (+ (log x) -1.0))))
double code(double x, double y, double z) {
double tmp;
if (x <= 3.75e+81) {
tmp = (0.083333333333333 + ((x * 0.91893853320467) + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)))) / x;
} else {
tmp = x * (log(x) + -1.0);
}
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 (x <= 3.75d+81) then
tmp = (0.083333333333333d0 + ((x * 0.91893853320467d0) + (z * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0)))) / x
else
tmp = x * (log(x) + (-1.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 3.75e+81) {
tmp = (0.083333333333333 + ((x * 0.91893853320467) + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)))) / x;
} else {
tmp = x * (Math.log(x) + -1.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 3.75e+81: tmp = (0.083333333333333 + ((x * 0.91893853320467) + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)))) / x else: tmp = x * (math.log(x) + -1.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 3.75e+81) tmp = Float64(Float64(0.083333333333333 + Float64(Float64(x * 0.91893853320467) + Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778)))) / x); else tmp = Float64(x * Float64(log(x) + -1.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 3.75e+81) tmp = (0.083333333333333 + ((x * 0.91893853320467) + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)))) / x; else tmp = x * (log(x) + -1.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 3.75e+81], N[(N[(0.083333333333333 + N[(N[(x * 0.91893853320467), $MachinePrecision] + N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], N[(x * N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 3.75 \cdot 10^{+81}:\\
\;\;\;\;\frac{0.083333333333333 + \left(x \cdot 0.91893853320467 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\log x + -1\right)\\
\end{array}
\end{array}
if x < 3.74999999999999986e81Initial program 99.1%
Taylor expanded in x around inf 97.3%
mul-1-neg95.7%
distribute-rgt-neg-in95.7%
log-rec95.7%
remove-double-neg95.7%
Simplified97.3%
Taylor expanded in x around 0 92.0%
if 3.74999999999999986e81 < x Initial program 79.9%
remove-double-neg79.9%
distribute-frac-neg279.9%
sub-neg79.9%
associate-+l+79.9%
fma-define80.0%
sub-neg80.0%
metadata-eval80.0%
+-commutative80.0%
unsub-neg80.0%
distribute-frac-neg280.0%
remove-double-neg80.0%
Simplified80.0%
Taylor expanded in x around inf 74.8%
sub-neg74.8%
mul-1-neg74.8%
log-rec74.8%
remove-double-neg74.8%
metadata-eval74.8%
Simplified74.8%
Final simplification86.1%
(FPCore (x y z)
:precision binary64
(if (or (<= y -1.65e+22) (not (<= y 4.4e-8)))
(/ (+ 0.083333333333333 (* z (- (* z y) 0.0027777777777778))) x)
(/
(+ 0.083333333333333 (* z (- (* z 0.0007936500793651) 0.0027777777777778)))
x)))
double code(double x, double y, double z) {
double tmp;
if ((y <= -1.65e+22) || !(y <= 4.4e-8)) {
tmp = (0.083333333333333 + (z * ((z * y) - 0.0027777777777778))) / x;
} else {
tmp = (0.083333333333333 + (z * ((z * 0.0007936500793651) - 0.0027777777777778))) / x;
}
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 <= (-1.65d+22)) .or. (.not. (y <= 4.4d-8))) then
tmp = (0.083333333333333d0 + (z * ((z * y) - 0.0027777777777778d0))) / x
else
tmp = (0.083333333333333d0 + (z * ((z * 0.0007936500793651d0) - 0.0027777777777778d0))) / x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -1.65e+22) || !(y <= 4.4e-8)) {
tmp = (0.083333333333333 + (z * ((z * y) - 0.0027777777777778))) / x;
} else {
tmp = (0.083333333333333 + (z * ((z * 0.0007936500793651) - 0.0027777777777778))) / x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -1.65e+22) or not (y <= 4.4e-8): tmp = (0.083333333333333 + (z * ((z * y) - 0.0027777777777778))) / x else: tmp = (0.083333333333333 + (z * ((z * 0.0007936500793651) - 0.0027777777777778))) / x return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -1.65e+22) || !(y <= 4.4e-8)) tmp = Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * y) - 0.0027777777777778))) / x); else tmp = Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * 0.0007936500793651) - 0.0027777777777778))) / x); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -1.65e+22) || ~((y <= 4.4e-8))) tmp = (0.083333333333333 + (z * ((z * y) - 0.0027777777777778))) / x; else tmp = (0.083333333333333 + (z * ((z * 0.0007936500793651) - 0.0027777777777778))) / x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -1.65e+22], N[Not[LessEqual[y, 4.4e-8]], $MachinePrecision]], N[(N[(0.083333333333333 + N[(z * N[(N[(z * y), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], N[(N[(0.083333333333333 + N[(z * N[(N[(z * 0.0007936500793651), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.65 \cdot 10^{+22} \lor \neg \left(y \leq 4.4 \cdot 10^{-8}\right):\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(z \cdot y - 0.0027777777777778\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(z \cdot 0.0007936500793651 - 0.0027777777777778\right)}{x}\\
\end{array}
\end{array}
if y < -1.6499999999999999e22 or 4.3999999999999997e-8 < y Initial program 94.7%
remove-double-neg94.7%
distribute-frac-neg294.7%
sub-neg94.7%
associate-+l+94.7%
fma-define94.8%
sub-neg94.8%
metadata-eval94.8%
+-commutative94.8%
unsub-neg94.8%
distribute-frac-neg294.8%
remove-double-neg94.8%
Simplified94.8%
Taylor expanded in x around 0 69.5%
Taylor expanded in y around inf 68.9%
*-commutative68.9%
Simplified68.9%
if -1.6499999999999999e22 < y < 4.3999999999999997e-8Initial program 90.5%
remove-double-neg90.5%
distribute-frac-neg290.5%
sub-neg90.5%
associate-+l+90.6%
fma-define90.6%
sub-neg90.6%
metadata-eval90.6%
+-commutative90.6%
unsub-neg90.6%
distribute-frac-neg290.6%
remove-double-neg90.6%
Simplified90.6%
Taylor expanded in x around 0 65.0%
Taylor expanded in y around 0 64.6%
*-commutative64.6%
Simplified64.6%
Final simplification66.5%
(FPCore (x y z)
:precision binary64
(if (or (<= y -5.8e+24) (not (<= y 2.7e+250)))
(* y (/ (* z z) x))
(/
(+ 0.083333333333333 (* z (- (* z 0.0007936500793651) 0.0027777777777778)))
x)))
double code(double x, double y, double z) {
double tmp;
if ((y <= -5.8e+24) || !(y <= 2.7e+250)) {
tmp = y * ((z * z) / x);
} else {
tmp = (0.083333333333333 + (z * ((z * 0.0007936500793651) - 0.0027777777777778))) / x;
}
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 <= (-5.8d+24)) .or. (.not. (y <= 2.7d+250))) then
tmp = y * ((z * z) / x)
else
tmp = (0.083333333333333d0 + (z * ((z * 0.0007936500793651d0) - 0.0027777777777778d0))) / x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -5.8e+24) || !(y <= 2.7e+250)) {
tmp = y * ((z * z) / x);
} else {
tmp = (0.083333333333333 + (z * ((z * 0.0007936500793651) - 0.0027777777777778))) / x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -5.8e+24) or not (y <= 2.7e+250): tmp = y * ((z * z) / x) else: tmp = (0.083333333333333 + (z * ((z * 0.0007936500793651) - 0.0027777777777778))) / x return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -5.8e+24) || !(y <= 2.7e+250)) tmp = Float64(y * Float64(Float64(z * z) / x)); else tmp = Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * 0.0007936500793651) - 0.0027777777777778))) / x); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -5.8e+24) || ~((y <= 2.7e+250))) tmp = y * ((z * z) / x); else tmp = (0.083333333333333 + (z * ((z * 0.0007936500793651) - 0.0027777777777778))) / x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -5.8e+24], N[Not[LessEqual[y, 2.7e+250]], $MachinePrecision]], N[(y * N[(N[(z * z), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(N[(0.083333333333333 + N[(z * N[(N[(z * 0.0007936500793651), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.8 \cdot 10^{+24} \lor \neg \left(y \leq 2.7 \cdot 10^{+250}\right):\\
\;\;\;\;y \cdot \frac{z \cdot z}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(z \cdot 0.0007936500793651 - 0.0027777777777778\right)}{x}\\
\end{array}
\end{array}
if y < -5.79999999999999958e24 or 2.7e250 < y Initial program 93.1%
remove-double-neg93.1%
distribute-frac-neg293.1%
sub-neg93.1%
associate-+l+93.1%
fma-define93.1%
sub-neg93.1%
metadata-eval93.1%
+-commutative93.1%
unsub-neg93.1%
distribute-frac-neg293.1%
remove-double-neg93.1%
Simplified93.1%
Taylor expanded in y around inf 58.8%
associate-/l*61.9%
Simplified61.9%
unpow261.9%
Applied egg-rr61.9%
if -5.79999999999999958e24 < y < 2.7e250Initial program 92.2%
remove-double-neg92.2%
distribute-frac-neg292.2%
sub-neg92.2%
associate-+l+92.2%
fma-define92.3%
sub-neg92.3%
metadata-eval92.3%
+-commutative92.3%
unsub-neg92.3%
distribute-frac-neg292.3%
remove-double-neg92.3%
Simplified92.3%
Taylor expanded in x around 0 65.9%
Taylor expanded in y around 0 61.4%
*-commutative61.4%
Simplified61.4%
Final simplification61.5%
(FPCore (x y z) :precision binary64 (if (or (<= z -6e-48) (not (<= z 4.2e-28))) (* y (/ (* z z) x)) (* 0.083333333333333 (/ 1.0 x))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -6e-48) || !(z <= 4.2e-28)) {
tmp = y * ((z * z) / x);
} else {
tmp = 0.083333333333333 * (1.0 / x);
}
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 ((z <= (-6d-48)) .or. (.not. (z <= 4.2d-28))) then
tmp = y * ((z * z) / x)
else
tmp = 0.083333333333333d0 * (1.0d0 / x)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -6e-48) || !(z <= 4.2e-28)) {
tmp = y * ((z * z) / x);
} else {
tmp = 0.083333333333333 * (1.0 / x);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -6e-48) or not (z <= 4.2e-28): tmp = y * ((z * z) / x) else: tmp = 0.083333333333333 * (1.0 / x) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -6e-48) || !(z <= 4.2e-28)) tmp = Float64(y * Float64(Float64(z * z) / x)); else tmp = Float64(0.083333333333333 * Float64(1.0 / x)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -6e-48) || ~((z <= 4.2e-28))) tmp = y * ((z * z) / x); else tmp = 0.083333333333333 * (1.0 / x); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -6e-48], N[Not[LessEqual[z, 4.2e-28]], $MachinePrecision]], N[(y * N[(N[(z * z), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(0.083333333333333 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6 \cdot 10^{-48} \lor \neg \left(z \leq 4.2 \cdot 10^{-28}\right):\\
\;\;\;\;y \cdot \frac{z \cdot z}{x}\\
\mathbf{else}:\\
\;\;\;\;0.083333333333333 \cdot \frac{1}{x}\\
\end{array}
\end{array}
if z < -5.9999999999999998e-48 or 4.20000000000000013e-28 < z Initial program 87.6%
remove-double-neg87.6%
distribute-frac-neg287.6%
sub-neg87.6%
associate-+l+87.6%
fma-define87.7%
sub-neg87.7%
metadata-eval87.7%
+-commutative87.7%
unsub-neg87.7%
distribute-frac-neg287.7%
remove-double-neg87.7%
Simplified87.7%
Taylor expanded in y around inf 47.5%
associate-/l*52.4%
Simplified52.4%
unpow252.4%
Applied egg-rr52.4%
if -5.9999999999999998e-48 < z < 4.20000000000000013e-28Initial program 99.5%
remove-double-neg99.5%
distribute-frac-neg299.5%
sub-neg99.5%
associate-+l+99.5%
fma-define99.6%
sub-neg99.6%
metadata-eval99.6%
+-commutative99.6%
unsub-neg99.6%
distribute-frac-neg299.6%
remove-double-neg99.6%
Simplified99.6%
Taylor expanded in z around 0 94.0%
Taylor expanded in x around 0 52.7%
div-inv52.8%
Applied egg-rr52.8%
Final simplification52.6%
(FPCore (x y z)
:precision binary64
(/
(+
0.083333333333333
(+
(* x 0.91893853320467)
(* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778))))
x))
double code(double x, double y, double z) {
return (0.083333333333333 + ((x * 0.91893853320467) + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)))) / x;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (0.083333333333333d0 + ((x * 0.91893853320467d0) + (z * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0)))) / x
end function
public static double code(double x, double y, double z) {
return (0.083333333333333 + ((x * 0.91893853320467) + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)))) / x;
}
def code(x, y, z): return (0.083333333333333 + ((x * 0.91893853320467) + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)))) / x
function code(x, y, z) return Float64(Float64(0.083333333333333 + Float64(Float64(x * 0.91893853320467) + Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778)))) / x) end
function tmp = code(x, y, z) tmp = (0.083333333333333 + ((x * 0.91893853320467) + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)))) / x; end
code[x_, y_, z_] := N[(N[(0.083333333333333 + N[(N[(x * 0.91893853320467), $MachinePrecision] + N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]
\begin{array}{l}
\\
\frac{0.083333333333333 + \left(x \cdot 0.91893853320467 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)\right)}{x}
\end{array}
Initial program 92.4%
Taylor expanded in x around inf 91.3%
mul-1-neg96.3%
distribute-rgt-neg-in96.3%
log-rec96.3%
remove-double-neg96.3%
Simplified91.3%
Taylor expanded in x around 0 67.4%
Final simplification67.4%
(FPCore (x y z) :precision binary64 (/ (+ 0.083333333333333 (* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778))) x))
double code(double x, double y, double z) {
return (0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (0.083333333333333d0 + (z * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0))) / x
end function
public static double code(double x, double y, double z) {
return (0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x;
}
def code(x, y, z): return (0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x
function code(x, y, z) return Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778))) / x) end
function tmp = code(x, y, z) tmp = (0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x; end
code[x_, y_, z_] := N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]
\begin{array}{l}
\\
\frac{0.083333333333333 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)}{x}
\end{array}
Initial program 92.4%
remove-double-neg92.4%
distribute-frac-neg292.4%
sub-neg92.4%
associate-+l+92.4%
fma-define92.5%
sub-neg92.5%
metadata-eval92.5%
+-commutative92.5%
unsub-neg92.5%
distribute-frac-neg292.5%
remove-double-neg92.5%
Simplified92.5%
Taylor expanded in x around 0 67.0%
Final simplification67.0%
(FPCore (x y z) :precision binary64 (* 0.083333333333333 (/ 1.0 x)))
double code(double x, double y, double z) {
return 0.083333333333333 * (1.0 / x);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = 0.083333333333333d0 * (1.0d0 / x)
end function
public static double code(double x, double y, double z) {
return 0.083333333333333 * (1.0 / x);
}
def code(x, y, z): return 0.083333333333333 * (1.0 / x)
function code(x, y, z) return Float64(0.083333333333333 * Float64(1.0 / x)) end
function tmp = code(x, y, z) tmp = 0.083333333333333 * (1.0 / x); end
code[x_, y_, z_] := N[(0.083333333333333 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
0.083333333333333 \cdot \frac{1}{x}
\end{array}
Initial program 92.4%
remove-double-neg92.4%
distribute-frac-neg292.4%
sub-neg92.4%
associate-+l+92.4%
fma-define92.5%
sub-neg92.5%
metadata-eval92.5%
+-commutative92.5%
unsub-neg92.5%
distribute-frac-neg292.5%
remove-double-neg92.5%
Simplified92.5%
Taylor expanded in z around 0 54.2%
Taylor expanded in x around 0 24.6%
div-inv24.6%
Applied egg-rr24.6%
(FPCore (x y z) :precision binary64 (/ 0.083333333333333 x))
double code(double x, double y, double z) {
return 0.083333333333333 / x;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = 0.083333333333333d0 / x
end function
public static double code(double x, double y, double z) {
return 0.083333333333333 / x;
}
def code(x, y, z): return 0.083333333333333 / x
function code(x, y, z) return Float64(0.083333333333333 / x) end
function tmp = code(x, y, z) tmp = 0.083333333333333 / x; end
code[x_, y_, z_] := N[(0.083333333333333 / x), $MachinePrecision]
\begin{array}{l}
\\
\frac{0.083333333333333}{x}
\end{array}
Initial program 92.4%
remove-double-neg92.4%
distribute-frac-neg292.4%
sub-neg92.4%
associate-+l+92.4%
fma-define92.5%
sub-neg92.5%
metadata-eval92.5%
+-commutative92.5%
unsub-neg92.5%
distribute-frac-neg292.5%
remove-double-neg92.5%
Simplified92.5%
Taylor expanded in z around 0 54.2%
Taylor expanded in x around 0 24.6%
(FPCore (x y z) :precision binary64 (+ (+ (+ (* (- x 0.5) (log x)) (- 0.91893853320467 x)) (/ 0.083333333333333 x)) (* (/ z x) (- (* z (+ y 0.0007936500793651)) 0.0027777777777778))))
double code(double x, double y, double z) {
return ((((x - 0.5) * log(x)) + (0.91893853320467 - x)) + (0.083333333333333 / x)) + ((z / x) * ((z * (y + 0.0007936500793651)) - 0.0027777777777778));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((((x - 0.5d0) * log(x)) + (0.91893853320467d0 - x)) + (0.083333333333333d0 / x)) + ((z / x) * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0))
end function
public static double code(double x, double y, double z) {
return ((((x - 0.5) * Math.log(x)) + (0.91893853320467 - x)) + (0.083333333333333 / x)) + ((z / x) * ((z * (y + 0.0007936500793651)) - 0.0027777777777778));
}
def code(x, y, z): return ((((x - 0.5) * math.log(x)) + (0.91893853320467 - x)) + (0.083333333333333 / x)) + ((z / x) * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))
function code(x, y, z) return Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) + Float64(0.91893853320467 - x)) + Float64(0.083333333333333 / x)) + Float64(Float64(z / x) * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778))) end
function tmp = code(x, y, z) tmp = ((((x - 0.5) * log(x)) + (0.91893853320467 - x)) + (0.083333333333333 / x)) + ((z / x) * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)); end
code[x_, y_, z_] := N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] + N[(0.91893853320467 - x), $MachinePrecision]), $MachinePrecision] + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision] + N[(N[(z / x), $MachinePrecision] * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(x - 0.5\right) \cdot \log x + \left(0.91893853320467 - x\right)\right) + \frac{0.083333333333333}{x}\right) + \frac{z}{x} \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)
\end{array}
herbie shell --seed 2024165
(FPCore (x y z)
:name "Numeric.SpecFunctions:$slogFactorial from math-functions-0.1.5.2, B"
:precision binary64
:alt
(! :herbie-platform default (+ (+ (+ (* (- x 1/2) (log x)) (- 91893853320467/100000000000000 x)) (/ 83333333333333/1000000000000000 x)) (* (/ z x) (- (* z (+ y 7936500793651/10000000000000000)) 13888888888889/5000000000000000))))
(+ (+ (- (* (- x 0.5) (log x)) x) 0.91893853320467) (/ (+ (* (- (* (+ y 0.0007936500793651) z) 0.0027777777777778) z) 0.083333333333333) x)))