
(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 15 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 4.2e-51)
(/
(+
0.083333333333333
(*
z
(-
(* y (+ z (/ 1.0 (/ (/ y z) 0.0007936500793651))))
0.0027777777777778)))
x)
(-
(+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)
(+
(*
z
(-
(* 0.0027777777777778 (/ 1.0 x))
(* z (+ (* 0.0007936500793651 (/ 1.0 x)) (/ y x)))))
(* 0.083333333333333 (/ -1.0 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= 4.2e-51) {
tmp = (0.083333333333333 + (z * ((y * (z + (1.0 / ((y / z) / 0.0007936500793651)))) - 0.0027777777777778))) / x;
} else {
tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) - ((z * ((0.0027777777777778 * (1.0 / x)) - (z * ((0.0007936500793651 * (1.0 / x)) + (y / x))))) + (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 (x <= 4.2d-51) then
tmp = (0.083333333333333d0 + (z * ((y * (z + (1.0d0 / ((y / z) / 0.0007936500793651d0)))) - 0.0027777777777778d0))) / x
else
tmp = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) - ((z * ((0.0027777777777778d0 * (1.0d0 / x)) - (z * ((0.0007936500793651d0 * (1.0d0 / x)) + (y / x))))) + (0.083333333333333d0 * ((-1.0d0) / x)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 4.2e-51) {
tmp = (0.083333333333333 + (z * ((y * (z + (1.0 / ((y / z) / 0.0007936500793651)))) - 0.0027777777777778))) / x;
} else {
tmp = ((((x - 0.5) * Math.log(x)) - x) + 0.91893853320467) - ((z * ((0.0027777777777778 * (1.0 / x)) - (z * ((0.0007936500793651 * (1.0 / x)) + (y / x))))) + (0.083333333333333 * (-1.0 / x)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 4.2e-51: tmp = (0.083333333333333 + (z * ((y * (z + (1.0 / ((y / z) / 0.0007936500793651)))) - 0.0027777777777778))) / x else: tmp = ((((x - 0.5) * math.log(x)) - x) + 0.91893853320467) - ((z * ((0.0027777777777778 * (1.0 / x)) - (z * ((0.0007936500793651 * (1.0 / x)) + (y / x))))) + (0.083333333333333 * (-1.0 / x))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 4.2e-51) tmp = Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(y * Float64(z + Float64(1.0 / Float64(Float64(y / z) / 0.0007936500793651)))) - 0.0027777777777778))) / x); else tmp = Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) - Float64(Float64(z * Float64(Float64(0.0027777777777778 * Float64(1.0 / x)) - Float64(z * Float64(Float64(0.0007936500793651 * Float64(1.0 / x)) + Float64(y / x))))) + Float64(0.083333333333333 * Float64(-1.0 / x)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 4.2e-51) tmp = (0.083333333333333 + (z * ((y * (z + (1.0 / ((y / z) / 0.0007936500793651)))) - 0.0027777777777778))) / x; else tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) - ((z * ((0.0027777777777778 * (1.0 / x)) - (z * ((0.0007936500793651 * (1.0 / x)) + (y / x))))) + (0.083333333333333 * (-1.0 / x))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 4.2e-51], N[(N[(0.083333333333333 + N[(z * N[(N[(y * N[(z + N[(1.0 / N[(N[(y / z), $MachinePrecision] / 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision] - N[(N[(z * N[(N[(0.0027777777777778 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] - N[(z * N[(N[(0.0007936500793651 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] + N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.083333333333333 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 4.2 \cdot 10^{-51}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(y \cdot \left(z + \frac{1}{\frac{\frac{y}{z}}{0.0007936500793651}}\right) - 0.0027777777777778\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) - \left(z \cdot \left(0.0027777777777778 \cdot \frac{1}{x} - z \cdot \left(0.0007936500793651 \cdot \frac{1}{x} + \frac{y}{x}\right)\right) + 0.083333333333333 \cdot \frac{-1}{x}\right)\\
\end{array}
\end{array}
if x < 4.20000000000000003e-51Initial program 99.8%
remove-double-neg99.8%
distribute-frac-neg299.8%
sub-neg99.8%
associate-+l+99.8%
fma-define99.8%
sub-neg99.8%
metadata-eval99.8%
+-commutative99.8%
unsub-neg99.8%
distribute-frac-neg299.8%
remove-double-neg99.8%
Simplified99.8%
Taylor expanded in x around 0 99.8%
Taylor expanded in y around inf 99.7%
associate-*r/99.8%
*-commutative99.8%
Simplified99.8%
clear-num99.8%
inv-pow99.8%
Applied egg-rr99.8%
unpow-199.8%
associate-/r*99.8%
Simplified99.8%
if 4.20000000000000003e-51 < x Initial program 89.7%
Taylor expanded in z around 0 99.6%
Final simplification99.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)))
(if (<= x 1.95e+157)
(+
t_0
(/
(+
0.083333333333333
(* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778)))
x))
(+ t_0 (+ (* 0.083333333333333 (/ 1.0 x)) (* z (* y (/ z x))))))))
double code(double x, double y, double z) {
double t_0 = (((x - 0.5) * log(x)) - x) + 0.91893853320467;
double tmp;
if (x <= 1.95e+157) {
tmp = t_0 + ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x);
} else {
tmp = t_0 + ((0.083333333333333 * (1.0 / x)) + (z * (y * (z / 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 = (((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0
if (x <= 1.95d+157) then
tmp = t_0 + ((0.083333333333333d0 + (z * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0))) / x)
else
tmp = t_0 + ((0.083333333333333d0 * (1.0d0 / x)) + (z * (y * (z / x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (((x - 0.5) * Math.log(x)) - x) + 0.91893853320467;
double tmp;
if (x <= 1.95e+157) {
tmp = t_0 + ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x);
} else {
tmp = t_0 + ((0.083333333333333 * (1.0 / x)) + (z * (y * (z / x))));
}
return tmp;
}
def code(x, y, z): t_0 = (((x - 0.5) * math.log(x)) - x) + 0.91893853320467 tmp = 0 if x <= 1.95e+157: tmp = t_0 + ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) else: tmp = t_0 + ((0.083333333333333 * (1.0 / x)) + (z * (y * (z / x)))) return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) tmp = 0.0 if (x <= 1.95e+157) tmp = Float64(t_0 + Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778))) / x)); else tmp = Float64(t_0 + Float64(Float64(0.083333333333333 * Float64(1.0 / x)) + Float64(z * Float64(y * Float64(z / x))))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (((x - 0.5) * log(x)) - x) + 0.91893853320467; tmp = 0.0; if (x <= 1.95e+157) tmp = t_0 + ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x); else tmp = t_0 + ((0.083333333333333 * (1.0 / x)) + (z * (y * (z / x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision]}, If[LessEqual[x, 1.95e+157], N[(t$95$0 + N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(t$95$0 + N[(N[(0.083333333333333 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] + N[(z * N[(y * N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\\
\mathbf{if}\;x \leq 1.95 \cdot 10^{+157}:\\
\;\;\;\;t\_0 + \frac{0.083333333333333 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;t\_0 + \left(0.083333333333333 \cdot \frac{1}{x} + z \cdot \left(y \cdot \frac{z}{x}\right)\right)\\
\end{array}
\end{array}
if x < 1.94999999999999985e157Initial program 98.3%
if 1.94999999999999985e157 < x Initial program 80.5%
Taylor expanded in z around 0 99.7%
Taylor expanded in x around -inf 80.5%
mul-1-neg80.5%
associate-/l*93.7%
distribute-lft-neg-in93.7%
+-commutative93.7%
sub-neg93.7%
mul-1-neg93.7%
distribute-neg-in93.7%
+-commutative93.7%
distribute-neg-in93.7%
metadata-eval93.7%
unsub-neg93.7%
Simplified93.7%
Taylor expanded in y around inf 92.3%
mul-1-neg92.3%
associate-/l*98.2%
distribute-rgt-neg-in98.2%
distribute-neg-frac298.2%
Simplified98.2%
Final simplification98.2%
(FPCore (x y z)
:precision binary64
(if (<= x 5.2e+199)
(+
(+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)
(/
(+
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 <= 5.2e+199) {
tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((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 <= 5.2d+199) then
tmp = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) + ((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 <= 5.2e+199) {
tmp = ((((x - 0.5) * Math.log(x)) - x) + 0.91893853320467) + ((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 <= 5.2e+199: tmp = ((((x - 0.5) * math.log(x)) - x) + 0.91893853320467) + ((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 <= 5.2e+199) tmp = Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) + 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 <= 5.2e+199) tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((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, 5.2e+199], N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $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 5.2 \cdot 10^{+199}:\\
\;\;\;\;\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\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 < 5.2000000000000003e199Initial program 98.0%
if 5.2000000000000003e199 < x Initial program 73.6%
remove-double-neg73.6%
distribute-frac-neg273.6%
sub-neg73.6%
associate-+l+73.6%
fma-define73.7%
sub-neg73.7%
metadata-eval73.7%
+-commutative73.7%
unsub-neg73.7%
distribute-frac-neg273.7%
remove-double-neg73.7%
Simplified73.7%
Taylor expanded in x around inf 84.1%
sub-neg84.1%
mul-1-neg84.1%
log-rec84.1%
remove-double-neg84.1%
metadata-eval84.1%
Simplified84.1%
Final simplification95.6%
(FPCore (x y z) :precision binary64 (+ (+ (- (* (- x 0.5) (log x)) x) 0.91893853320467) (+ (* 0.083333333333333 (/ 1.0 x)) (* z (/ (- (* z (- y -0.0007936500793651)) 0.0027777777777778) x)))))
double code(double x, double y, double z) {
return ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((0.083333333333333 * (1.0 / x)) + (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 = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) + ((0.083333333333333d0 * (1.0d0 / x)) + (z * (((z * (y - (-0.0007936500793651d0))) - 0.0027777777777778d0) / x)))
end function
public static double code(double x, double y, double z) {
return ((((x - 0.5) * Math.log(x)) - x) + 0.91893853320467) + ((0.083333333333333 * (1.0 / x)) + (z * (((z * (y - -0.0007936500793651)) - 0.0027777777777778) / x)));
}
def code(x, y, z): return ((((x - 0.5) * math.log(x)) - x) + 0.91893853320467) + ((0.083333333333333 * (1.0 / x)) + (z * (((z * (y - -0.0007936500793651)) - 0.0027777777777778) / x)))
function code(x, y, z) return Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) + Float64(Float64(0.083333333333333 * Float64(1.0 / x)) + Float64(z * Float64(Float64(Float64(z * Float64(y - -0.0007936500793651)) - 0.0027777777777778) / x)))) end
function tmp = code(x, y, z) tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((0.083333333333333 * (1.0 / x)) + (z * (((z * (y - -0.0007936500793651)) - 0.0027777777777778) / 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[(0.083333333333333 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(N[(z * N[(y - -0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \left(0.083333333333333 \cdot \frac{1}{x} + z \cdot \frac{z \cdot \left(y - -0.0007936500793651\right) - 0.0027777777777778}{x}\right)
\end{array}
Initial program 93.9%
Taylor expanded in z around 0 95.9%
Taylor expanded in x around -inf 93.8%
mul-1-neg93.8%
associate-/l*97.8%
distribute-lft-neg-in97.8%
+-commutative97.8%
sub-neg97.8%
mul-1-neg97.8%
distribute-neg-in97.8%
+-commutative97.8%
distribute-neg-in97.8%
metadata-eval97.8%
unsub-neg97.8%
Simplified97.8%
Final simplification97.8%
(FPCore (x y z)
:precision binary64
(if (<= x 3.5e+199)
(+
(/
(+
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 <= 3.5e+199) {
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 <= 3.5d+199) 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 <= 3.5e+199) {
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 <= 3.5e+199: 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 <= 3.5e+199) 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 <= 3.5e+199) 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, 3.5e+199], 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 3.5 \cdot 10^{+199}:\\
\;\;\;\;\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 < 3.49999999999999981e199Initial program 98.0%
Taylor expanded in x around inf 97.4%
mul-1-neg97.4%
distribute-rgt-neg-in97.4%
log-rec97.4%
remove-double-neg97.4%
Simplified97.4%
if 3.49999999999999981e199 < x Initial program 73.6%
remove-double-neg73.6%
distribute-frac-neg273.6%
sub-neg73.6%
associate-+l+73.6%
fma-define73.7%
sub-neg73.7%
metadata-eval73.7%
+-commutative73.7%
unsub-neg73.7%
distribute-frac-neg273.7%
remove-double-neg73.7%
Simplified73.7%
Taylor expanded in x around inf 84.1%
sub-neg84.1%
mul-1-neg84.1%
log-rec84.1%
remove-double-neg84.1%
metadata-eval84.1%
Simplified84.1%
Final simplification95.2%
(FPCore (x y z)
:precision binary64
(if (<= x 4.1e+260)
(+
(/
(+
0.083333333333333
(* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778)))
x)
(* x (+ (log x) -1.0)))
(-
(/ 0.083333333333333 x)
(- (+ x -0.91893853320467) (* (log x) (+ x -0.5))))))
double code(double x, double y, double z) {
double tmp;
if (x <= 4.1e+260) {
tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (x * (log(x) + -1.0));
} else {
tmp = (0.083333333333333 / x) - ((x + -0.91893853320467) - (log(x) * (x + -0.5)));
}
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.1d+260) then
tmp = ((0.083333333333333d0 + (z * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0))) / x) + (x * (log(x) + (-1.0d0)))
else
tmp = (0.083333333333333d0 / x) - ((x + (-0.91893853320467d0)) - (log(x) * (x + (-0.5d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 4.1e+260) {
tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (x * (Math.log(x) + -1.0));
} else {
tmp = (0.083333333333333 / x) - ((x + -0.91893853320467) - (Math.log(x) * (x + -0.5)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 4.1e+260: tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (x * (math.log(x) + -1.0)) else: tmp = (0.083333333333333 / x) - ((x + -0.91893853320467) - (math.log(x) * (x + -0.5))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 4.1e+260) tmp = Float64(Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778))) / x) + Float64(x * Float64(log(x) + -1.0))); else tmp = Float64(Float64(0.083333333333333 / x) - Float64(Float64(x + -0.91893853320467) - Float64(log(x) * Float64(x + -0.5)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 4.1e+260) tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (x * (log(x) + -1.0)); else tmp = (0.083333333333333 / x) - ((x + -0.91893853320467) - (log(x) * (x + -0.5))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 4.1e+260], N[(N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] + N[(x * N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(0.083333333333333 / x), $MachinePrecision] - N[(N[(x + -0.91893853320467), $MachinePrecision] - N[(N[Log[x], $MachinePrecision] * N[(x + -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 4.1 \cdot 10^{+260}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)}{x} + x \cdot \left(\log x + -1\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{0.083333333333333}{x} - \left(\left(x + -0.91893853320467\right) - \log x \cdot \left(x + -0.5\right)\right)\\
\end{array}
\end{array}
if x < 4.10000000000000025e260Initial program 96.1%
add-sqr-sqrt96.0%
pow296.0%
fmm-def96.0%
sub-neg96.0%
metadata-eval96.0%
Applied egg-rr96.0%
Taylor expanded in x around inf 95.6%
sub-neg95.6%
mul-1-neg95.6%
log-rec95.6%
remove-double-neg95.6%
metadata-eval95.6%
Simplified95.6%
if 4.10000000000000025e260 < x Initial program 69.1%
remove-double-neg69.1%
distribute-frac-neg269.1%
sub-neg69.1%
associate-+l+69.1%
fma-define69.0%
sub-neg69.0%
metadata-eval69.0%
+-commutative69.0%
unsub-neg69.0%
distribute-frac-neg269.0%
remove-double-neg69.0%
Simplified69.0%
Taylor expanded in z around 0 90.4%
metadata-eval90.4%
sub-neg90.4%
fma-define90.5%
sub-neg90.5%
+-commutative90.5%
associate-+l+90.5%
sub-neg90.5%
associate-+l-90.5%
sub-neg90.5%
metadata-eval90.5%
sub-neg90.5%
metadata-eval90.5%
Applied egg-rr90.5%
Final simplification95.2%
(FPCore (x y z)
:precision binary64
(if (<= z -6.2e-50)
(+
(*
z
(+
(* z (+ (* 0.0007936500793651 (/ 1.0 x)) (/ y x)))
(* 0.0027777777777778 (/ -1.0 x))))
(* 0.083333333333333 (/ 1.0 x)))
(if (<= z 2e+27)
(-
(/ 0.083333333333333 x)
(- (+ x -0.91893853320467) (* (log x) (+ x -0.5))))
(/
(+
0.083333333333333
(* z (- (+ (* z 0.0007936500793651) (* z y)) 0.0027777777777778)))
x))))
double code(double x, double y, double z) {
double tmp;
if (z <= -6.2e-50) {
tmp = (z * ((z * ((0.0007936500793651 * (1.0 / x)) + (y / x))) + (0.0027777777777778 * (-1.0 / x)))) + (0.083333333333333 * (1.0 / x));
} else if (z <= 2e+27) {
tmp = (0.083333333333333 / x) - ((x + -0.91893853320467) - (log(x) * (x + -0.5)));
} else {
tmp = (0.083333333333333 + (z * (((z * 0.0007936500793651) + (z * y)) - 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 (z <= (-6.2d-50)) then
tmp = (z * ((z * ((0.0007936500793651d0 * (1.0d0 / x)) + (y / x))) + (0.0027777777777778d0 * ((-1.0d0) / x)))) + (0.083333333333333d0 * (1.0d0 / x))
else if (z <= 2d+27) then
tmp = (0.083333333333333d0 / x) - ((x + (-0.91893853320467d0)) - (log(x) * (x + (-0.5d0))))
else
tmp = (0.083333333333333d0 + (z * (((z * 0.0007936500793651d0) + (z * y)) - 0.0027777777777778d0))) / x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -6.2e-50) {
tmp = (z * ((z * ((0.0007936500793651 * (1.0 / x)) + (y / x))) + (0.0027777777777778 * (-1.0 / x)))) + (0.083333333333333 * (1.0 / x));
} else if (z <= 2e+27) {
tmp = (0.083333333333333 / x) - ((x + -0.91893853320467) - (Math.log(x) * (x + -0.5)));
} else {
tmp = (0.083333333333333 + (z * (((z * 0.0007936500793651) + (z * y)) - 0.0027777777777778))) / x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -6.2e-50: tmp = (z * ((z * ((0.0007936500793651 * (1.0 / x)) + (y / x))) + (0.0027777777777778 * (-1.0 / x)))) + (0.083333333333333 * (1.0 / x)) elif z <= 2e+27: tmp = (0.083333333333333 / x) - ((x + -0.91893853320467) - (math.log(x) * (x + -0.5))) else: tmp = (0.083333333333333 + (z * (((z * 0.0007936500793651) + (z * y)) - 0.0027777777777778))) / x return tmp
function code(x, y, z) tmp = 0.0 if (z <= -6.2e-50) tmp = Float64(Float64(z * Float64(Float64(z * Float64(Float64(0.0007936500793651 * Float64(1.0 / x)) + Float64(y / x))) + Float64(0.0027777777777778 * Float64(-1.0 / x)))) + Float64(0.083333333333333 * Float64(1.0 / x))); elseif (z <= 2e+27) tmp = Float64(Float64(0.083333333333333 / x) - Float64(Float64(x + -0.91893853320467) - Float64(log(x) * Float64(x + -0.5)))); else tmp = Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(Float64(z * 0.0007936500793651) + Float64(z * y)) - 0.0027777777777778))) / x); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -6.2e-50) tmp = (z * ((z * ((0.0007936500793651 * (1.0 / x)) + (y / x))) + (0.0027777777777778 * (-1.0 / x)))) + (0.083333333333333 * (1.0 / x)); elseif (z <= 2e+27) tmp = (0.083333333333333 / x) - ((x + -0.91893853320467) - (log(x) * (x + -0.5))); else tmp = (0.083333333333333 + (z * (((z * 0.0007936500793651) + (z * y)) - 0.0027777777777778))) / x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -6.2e-50], N[(N[(z * N[(N[(z * N[(N[(0.0007936500793651 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] + N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.0027777777777778 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.083333333333333 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e+27], N[(N[(0.083333333333333 / x), $MachinePrecision] - N[(N[(x + -0.91893853320467), $MachinePrecision] - N[(N[Log[x], $MachinePrecision] * N[(x + -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(0.083333333333333 + N[(z * N[(N[(N[(z * 0.0007936500793651), $MachinePrecision] + N[(z * y), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.2 \cdot 10^{-50}:\\
\;\;\;\;z \cdot \left(z \cdot \left(0.0007936500793651 \cdot \frac{1}{x} + \frac{y}{x}\right) + 0.0027777777777778 \cdot \frac{-1}{x}\right) + 0.083333333333333 \cdot \frac{1}{x}\\
\mathbf{elif}\;z \leq 2 \cdot 10^{+27}:\\
\;\;\;\;\frac{0.083333333333333}{x} - \left(\left(x + -0.91893853320467\right) - \log x \cdot \left(x + -0.5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(\left(z \cdot 0.0007936500793651 + z \cdot y\right) - 0.0027777777777778\right)}{x}\\
\end{array}
\end{array}
if z < -6.2000000000000004e-50Initial program 82.4%
remove-double-neg82.4%
distribute-frac-neg282.4%
sub-neg82.4%
associate-+l+82.4%
fma-define82.4%
sub-neg82.4%
metadata-eval82.4%
+-commutative82.4%
unsub-neg82.4%
distribute-frac-neg282.4%
remove-double-neg82.4%
Simplified82.4%
Taylor expanded in x around 0 70.4%
Taylor expanded in z around 0 76.6%
if -6.2000000000000004e-50 < z < 2e27Initial 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 z around 0 93.3%
metadata-eval93.3%
sub-neg93.3%
fma-define93.3%
sub-neg93.3%
+-commutative93.3%
associate-+l+93.3%
sub-neg93.3%
associate-+l-93.3%
sub-neg93.3%
metadata-eval93.3%
sub-neg93.3%
metadata-eval93.3%
Applied egg-rr93.3%
if 2e27 < z Initial program 95.0%
remove-double-neg95.0%
distribute-frac-neg295.0%
sub-neg95.0%
associate-+l+95.0%
fma-define95.0%
sub-neg95.0%
metadata-eval95.0%
+-commutative95.0%
unsub-neg95.0%
distribute-frac-neg295.0%
remove-double-neg95.0%
Simplified95.0%
Taylor expanded in x around 0 91.8%
distribute-lft-in91.8%
Applied egg-rr91.8%
Final simplification88.4%
(FPCore (x y z)
:precision binary64
(if (<= x 7.5e+75)
(/
(+
0.083333333333333
(* z (- (+ (* z 0.0007936500793651) (* z y)) 0.0027777777777778)))
x)
(* x (+ (log x) -1.0))))
double code(double x, double y, double z) {
double tmp;
if (x <= 7.5e+75) {
tmp = (0.083333333333333 + (z * (((z * 0.0007936500793651) + (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 <= 7.5d+75) then
tmp = (0.083333333333333d0 + (z * (((z * 0.0007936500793651d0) + (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 <= 7.5e+75) {
tmp = (0.083333333333333 + (z * (((z * 0.0007936500793651) + (z * y)) - 0.0027777777777778))) / x;
} else {
tmp = x * (Math.log(x) + -1.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 7.5e+75: tmp = (0.083333333333333 + (z * (((z * 0.0007936500793651) + (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 <= 7.5e+75) tmp = Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(Float64(z * 0.0007936500793651) + 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 <= 7.5e+75) tmp = (0.083333333333333 + (z * (((z * 0.0007936500793651) + (z * y)) - 0.0027777777777778))) / x; else tmp = x * (log(x) + -1.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 7.5e+75], N[(N[(0.083333333333333 + N[(z * N[(N[(N[(z * 0.0007936500793651), $MachinePrecision] + N[(z * y), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $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 7.5 \cdot 10^{+75}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(\left(z \cdot 0.0007936500793651 + z \cdot y\right) - 0.0027777777777778\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\log x + -1\right)\\
\end{array}
\end{array}
if x < 7.4999999999999995e75Initial program 99.7%
remove-double-neg99.7%
distribute-frac-neg299.7%
sub-neg99.7%
associate-+l+99.7%
fma-define99.7%
sub-neg99.7%
metadata-eval99.7%
+-commutative99.7%
unsub-neg99.7%
distribute-frac-neg299.7%
remove-double-neg99.7%
Simplified99.7%
Taylor expanded in x around 0 92.0%
distribute-lft-in92.1%
Applied egg-rr92.1%
if 7.4999999999999995e75 < x Initial program 84.3%
remove-double-neg84.3%
distribute-frac-neg284.3%
sub-neg84.3%
associate-+l+84.3%
fma-define84.3%
sub-neg84.3%
metadata-eval84.3%
+-commutative84.3%
unsub-neg84.3%
distribute-frac-neg284.3%
remove-double-neg84.3%
Simplified84.3%
Taylor expanded in x around inf 73.2%
sub-neg73.2%
mul-1-neg73.2%
log-rec73.2%
remove-double-neg73.2%
metadata-eval73.2%
Simplified73.2%
(FPCore (x y z)
:precision binary64
(if (<= z -2e-6)
(+
(*
z
(+
(* z (+ (* 0.0007936500793651 (/ 1.0 x)) (/ y x)))
(* 0.0027777777777778 (/ -1.0 x))))
(* 0.083333333333333 (/ 1.0 x)))
(/
(+
0.083333333333333
(* z (- (+ (* z 0.0007936500793651) (* z y)) 0.0027777777777778)))
x)))
double code(double x, double y, double z) {
double tmp;
if (z <= -2e-6) {
tmp = (z * ((z * ((0.0007936500793651 * (1.0 / x)) + (y / x))) + (0.0027777777777778 * (-1.0 / x)))) + (0.083333333333333 * (1.0 / x));
} else {
tmp = (0.083333333333333 + (z * (((z * 0.0007936500793651) + (z * y)) - 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 (z <= (-2d-6)) then
tmp = (z * ((z * ((0.0007936500793651d0 * (1.0d0 / x)) + (y / x))) + (0.0027777777777778d0 * ((-1.0d0) / x)))) + (0.083333333333333d0 * (1.0d0 / x))
else
tmp = (0.083333333333333d0 + (z * (((z * 0.0007936500793651d0) + (z * y)) - 0.0027777777777778d0))) / x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -2e-6) {
tmp = (z * ((z * ((0.0007936500793651 * (1.0 / x)) + (y / x))) + (0.0027777777777778 * (-1.0 / x)))) + (0.083333333333333 * (1.0 / x));
} else {
tmp = (0.083333333333333 + (z * (((z * 0.0007936500793651) + (z * y)) - 0.0027777777777778))) / x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -2e-6: tmp = (z * ((z * ((0.0007936500793651 * (1.0 / x)) + (y / x))) + (0.0027777777777778 * (-1.0 / x)))) + (0.083333333333333 * (1.0 / x)) else: tmp = (0.083333333333333 + (z * (((z * 0.0007936500793651) + (z * y)) - 0.0027777777777778))) / x return tmp
function code(x, y, z) tmp = 0.0 if (z <= -2e-6) tmp = Float64(Float64(z * Float64(Float64(z * Float64(Float64(0.0007936500793651 * Float64(1.0 / x)) + Float64(y / x))) + Float64(0.0027777777777778 * Float64(-1.0 / x)))) + Float64(0.083333333333333 * Float64(1.0 / x))); else tmp = Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(Float64(z * 0.0007936500793651) + Float64(z * y)) - 0.0027777777777778))) / x); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -2e-6) tmp = (z * ((z * ((0.0007936500793651 * (1.0 / x)) + (y / x))) + (0.0027777777777778 * (-1.0 / x)))) + (0.083333333333333 * (1.0 / x)); else tmp = (0.083333333333333 + (z * (((z * 0.0007936500793651) + (z * y)) - 0.0027777777777778))) / x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -2e-6], N[(N[(z * N[(N[(z * N[(N[(0.0007936500793651 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] + N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.0027777777777778 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.083333333333333 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(0.083333333333333 + N[(z * N[(N[(N[(z * 0.0007936500793651), $MachinePrecision] + N[(z * y), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{-6}:\\
\;\;\;\;z \cdot \left(z \cdot \left(0.0007936500793651 \cdot \frac{1}{x} + \frac{y}{x}\right) + 0.0027777777777778 \cdot \frac{-1}{x}\right) + 0.083333333333333 \cdot \frac{1}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(\left(z \cdot 0.0007936500793651 + z \cdot y\right) - 0.0027777777777778\right)}{x}\\
\end{array}
\end{array}
if z < -1.99999999999999991e-6Initial program 80.8%
remove-double-neg80.8%
distribute-frac-neg280.8%
sub-neg80.8%
associate-+l+80.8%
fma-define80.8%
sub-neg80.8%
metadata-eval80.8%
+-commutative80.8%
unsub-neg80.8%
distribute-frac-neg280.8%
remove-double-neg80.8%
Simplified80.8%
Taylor expanded in x around 0 69.2%
Taylor expanded in z around 0 76.0%
if -1.99999999999999991e-6 < z Initial program 98.2%
remove-double-neg98.2%
distribute-frac-neg298.2%
sub-neg98.2%
associate-+l+98.2%
fma-define98.2%
sub-neg98.2%
metadata-eval98.2%
+-commutative98.2%
unsub-neg98.2%
distribute-frac-neg298.2%
remove-double-neg98.2%
Simplified98.2%
Taylor expanded in x around 0 65.2%
distribute-lft-in65.2%
Applied egg-rr65.2%
Final simplification67.9%
(FPCore (x y z)
:precision binary64
(if (or (<= y -2.15) (not (<= y 2.9e-15)))
(/ (+ 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 <= -2.15) || !(y <= 2.9e-15)) {
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 <= (-2.15d0)) .or. (.not. (y <= 2.9d-15))) 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 <= -2.15) || !(y <= 2.9e-15)) {
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 <= -2.15) or not (y <= 2.9e-15): 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 <= -2.15) || !(y <= 2.9e-15)) 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 <= -2.15) || ~((y <= 2.9e-15))) 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, -2.15], N[Not[LessEqual[y, 2.9e-15]], $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 -2.15 \lor \neg \left(y \leq 2.9 \cdot 10^{-15}\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 < -2.14999999999999991 or 2.90000000000000019e-15 < y Initial program 93.0%
remove-double-neg93.0%
distribute-frac-neg293.0%
sub-neg93.0%
associate-+l+93.0%
fma-define93.0%
sub-neg93.0%
metadata-eval93.0%
+-commutative93.0%
unsub-neg93.0%
distribute-frac-neg293.0%
remove-double-neg93.0%
Simplified93.0%
Taylor expanded in x around 0 70.1%
Taylor expanded in y around inf 70.1%
*-commutative70.1%
Simplified70.1%
if -2.14999999999999991 < y < 2.90000000000000019e-15Initial program 94.7%
remove-double-neg94.7%
distribute-frac-neg294.7%
sub-neg94.7%
associate-+l+94.7%
fma-define94.7%
sub-neg94.7%
metadata-eval94.7%
+-commutative94.7%
unsub-neg94.7%
distribute-frac-neg294.7%
remove-double-neg94.7%
Simplified94.7%
Taylor expanded in x around 0 62.5%
Taylor expanded in y around 0 62.4%
*-commutative62.4%
Simplified62.4%
Final simplification66.1%
(FPCore (x y z)
:precision binary64
(if (<= y -2.15)
(/ (+ 0.083333333333333 (* z -0.0027777777777778)) x)
(/
(+ 0.083333333333333 (* z (- (* z 0.0007936500793651) 0.0027777777777778)))
x)))
double code(double x, double y, double z) {
double tmp;
if (y <= -2.15) {
tmp = (0.083333333333333 + (z * -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 <= (-2.15d0)) then
tmp = (0.083333333333333d0 + (z * (-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 <= -2.15) {
tmp = (0.083333333333333 + (z * -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 <= -2.15: tmp = (0.083333333333333 + (z * -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 <= -2.15) tmp = Float64(Float64(0.083333333333333 + Float64(z * -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 <= -2.15) tmp = (0.083333333333333 + (z * -0.0027777777777778)) / x; else tmp = (0.083333333333333 + (z * ((z * 0.0007936500793651) - 0.0027777777777778))) / x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -2.15], N[(N[(0.083333333333333 + N[(z * -0.0027777777777778), $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 -2.15:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot -0.0027777777777778}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(z \cdot 0.0007936500793651 - 0.0027777777777778\right)}{x}\\
\end{array}
\end{array}
if y < -2.14999999999999991Initial program 90.1%
remove-double-neg90.1%
distribute-frac-neg290.1%
sub-neg90.1%
associate-+l+90.1%
fma-define90.1%
sub-neg90.1%
metadata-eval90.1%
+-commutative90.1%
unsub-neg90.1%
distribute-frac-neg290.1%
remove-double-neg90.1%
Simplified90.1%
Taylor expanded in x around 0 70.8%
Taylor expanded in z around 0 26.6%
+-commutative26.6%
*-commutative26.6%
Simplified26.6%
if -2.14999999999999991 < y Initial program 95.0%
remove-double-neg95.0%
distribute-frac-neg295.0%
sub-neg95.0%
associate-+l+95.0%
fma-define95.0%
sub-neg95.0%
metadata-eval95.0%
+-commutative95.0%
unsub-neg95.0%
distribute-frac-neg295.0%
remove-double-neg95.0%
Simplified95.0%
Taylor expanded in x around 0 64.8%
Taylor expanded in y around 0 57.9%
*-commutative57.9%
Simplified57.9%
Final simplification50.6%
(FPCore (x y z) :precision binary64 (/ (+ 0.083333333333333 (* z (- (+ (* z 0.0007936500793651) (* z y)) 0.0027777777777778))) x))
double code(double x, double y, double z) {
return (0.083333333333333 + (z * (((z * 0.0007936500793651) + (z * y)) - 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 * 0.0007936500793651d0) + (z * y)) - 0.0027777777777778d0))) / x
end function
public static double code(double x, double y, double z) {
return (0.083333333333333 + (z * (((z * 0.0007936500793651) + (z * y)) - 0.0027777777777778))) / x;
}
def code(x, y, z): return (0.083333333333333 + (z * (((z * 0.0007936500793651) + (z * y)) - 0.0027777777777778))) / x
function code(x, y, z) return Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(Float64(z * 0.0007936500793651) + Float64(z * y)) - 0.0027777777777778))) / x) end
function tmp = code(x, y, z) tmp = (0.083333333333333 + (z * (((z * 0.0007936500793651) + (z * y)) - 0.0027777777777778))) / x; end
code[x_, y_, z_] := N[(N[(0.083333333333333 + N[(z * N[(N[(N[(z * 0.0007936500793651), $MachinePrecision] + N[(z * y), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]
\begin{array}{l}
\\
\frac{0.083333333333333 + z \cdot \left(\left(z \cdot 0.0007936500793651 + z \cdot y\right) - 0.0027777777777778\right)}{x}
\end{array}
Initial program 93.9%
remove-double-neg93.9%
distribute-frac-neg293.9%
sub-neg93.9%
associate-+l+93.9%
fma-define93.9%
sub-neg93.9%
metadata-eval93.9%
+-commutative93.9%
unsub-neg93.9%
distribute-frac-neg293.9%
remove-double-neg93.9%
Simplified93.9%
Taylor expanded in x around 0 66.2%
distribute-lft-in66.2%
Applied egg-rr66.2%
(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 93.9%
remove-double-neg93.9%
distribute-frac-neg293.9%
sub-neg93.9%
associate-+l+93.9%
fma-define93.9%
sub-neg93.9%
metadata-eval93.9%
+-commutative93.9%
unsub-neg93.9%
distribute-frac-neg293.9%
remove-double-neg93.9%
Simplified93.9%
Taylor expanded in x around 0 66.2%
Final simplification66.2%
(FPCore (x y z) :precision binary64 (/ (+ 0.083333333333333 (* z -0.0027777777777778)) x))
double code(double x, double y, double z) {
return (0.083333333333333 + (z * -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 * (-0.0027777777777778d0))) / x
end function
public static double code(double x, double y, double z) {
return (0.083333333333333 + (z * -0.0027777777777778)) / x;
}
def code(x, y, z): return (0.083333333333333 + (z * -0.0027777777777778)) / x
function code(x, y, z) return Float64(Float64(0.083333333333333 + Float64(z * -0.0027777777777778)) / x) end
function tmp = code(x, y, z) tmp = (0.083333333333333 + (z * -0.0027777777777778)) / x; end
code[x_, y_, z_] := N[(N[(0.083333333333333 + N[(z * -0.0027777777777778), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]
\begin{array}{l}
\\
\frac{0.083333333333333 + z \cdot -0.0027777777777778}{x}
\end{array}
Initial program 93.9%
remove-double-neg93.9%
distribute-frac-neg293.9%
sub-neg93.9%
associate-+l+93.9%
fma-define93.9%
sub-neg93.9%
metadata-eval93.9%
+-commutative93.9%
unsub-neg93.9%
distribute-frac-neg293.9%
remove-double-neg93.9%
Simplified93.9%
Taylor expanded in x around 0 66.2%
Taylor expanded in z around 0 31.8%
+-commutative31.8%
*-commutative31.8%
Simplified31.8%
Final simplification31.8%
(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 93.9%
remove-double-neg93.9%
distribute-frac-neg293.9%
sub-neg93.9%
associate-+l+93.9%
fma-define93.9%
sub-neg93.9%
metadata-eval93.9%
+-commutative93.9%
unsub-neg93.9%
distribute-frac-neg293.9%
remove-double-neg93.9%
Simplified93.9%
Taylor expanded in x around 0 66.2%
Taylor expanded in z around 0 26.0%
(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 2024186
(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)))