| Alternative 1 | |
|---|---|
| Error | 0.86% |
| Cost | 15689 |
(FPCore (x y z)
:precision binary64
(+
(+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)
(/
(+
(* (- (* (+ y 0.0007936500793651) z) 0.0027777777777778) z)
0.083333333333333)
x)))(FPCore (x y z)
:precision binary64
(let* ((t_0 (* (log x) (+ x -0.5)))
(t_1 (* z (* (/ z x) (+ 0.0007936500793651 y)))))
(if (<= z -2.9e+21)
(+ (+ 0.91893853320467 (* x (+ (log x) -1.0))) t_1)
(if (<= z 5e-37)
(+
(+ (+ 0.91893853320467 t_0) (- 1.0 (exp (log1p x))))
(/
(fma
z
(fma (+ 0.0007936500793651 y) z -0.0027777777777778)
0.083333333333333)
x))
(+
(+ 0.91893853320467 (- t_0 x))
(+ (fma -0.0027777777777778 (/ z x) (/ 0.083333333333333 x)) t_1))))))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);
}
double code(double x, double y, double z) {
double t_0 = log(x) * (x + -0.5);
double t_1 = z * ((z / x) * (0.0007936500793651 + y));
double tmp;
if (z <= -2.9e+21) {
tmp = (0.91893853320467 + (x * (log(x) + -1.0))) + t_1;
} else if (z <= 5e-37) {
tmp = ((0.91893853320467 + t_0) + (1.0 - exp(log1p(x)))) + (fma(z, fma((0.0007936500793651 + y), z, -0.0027777777777778), 0.083333333333333) / x);
} else {
tmp = (0.91893853320467 + (t_0 - x)) + (fma(-0.0027777777777778, (z / x), (0.083333333333333 / x)) + t_1);
}
return tmp;
}
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 code(x, y, z) t_0 = Float64(log(x) * Float64(x + -0.5)) t_1 = Float64(z * Float64(Float64(z / x) * Float64(0.0007936500793651 + y))) tmp = 0.0 if (z <= -2.9e+21) tmp = Float64(Float64(0.91893853320467 + Float64(x * Float64(log(x) + -1.0))) + t_1); elseif (z <= 5e-37) tmp = Float64(Float64(Float64(0.91893853320467 + t_0) + Float64(1.0 - exp(log1p(x)))) + Float64(fma(z, fma(Float64(0.0007936500793651 + y), z, -0.0027777777777778), 0.083333333333333) / x)); else tmp = Float64(Float64(0.91893853320467 + Float64(t_0 - x)) + Float64(fma(-0.0027777777777778, Float64(z / x), Float64(0.083333333333333 / x)) + t_1)); end return tmp 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]
code[x_, y_, z_] := Block[{t$95$0 = N[(N[Log[x], $MachinePrecision] * N[(x + -0.5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(z * N[(N[(z / x), $MachinePrecision] * N[(0.0007936500793651 + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.9e+21], N[(N[(0.91893853320467 + N[(x * N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[z, 5e-37], N[(N[(N[(0.91893853320467 + t$95$0), $MachinePrecision] + N[(1.0 - N[Exp[N[Log[1 + x], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(N[(0.0007936500793651 + y), $MachinePrecision] * z + -0.0027777777777778), $MachinePrecision] + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(N[(0.91893853320467 + N[(t$95$0 - x), $MachinePrecision]), $MachinePrecision] + N[(N[(-0.0027777777777778 * N[(z / x), $MachinePrecision] + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]]]]]
\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}
\begin{array}{l}
t_0 := \log x \cdot \left(x + -0.5\right)\\
t_1 := z \cdot \left(\frac{z}{x} \cdot \left(0.0007936500793651 + y\right)\right)\\
\mathbf{if}\;z \leq -2.9 \cdot 10^{+21}:\\
\;\;\;\;\left(0.91893853320467 + x \cdot \left(\log x + -1\right)\right) + t_1\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-37}:\\
\;\;\;\;\left(\left(0.91893853320467 + t_0\right) + \left(1 - e^{\mathsf{log1p}\left(x\right)}\right)\right) + \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(0.0007936500793651 + y, z, -0.0027777777777778\right), 0.083333333333333\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;\left(0.91893853320467 + \left(t_0 - x\right)\right) + \left(\mathsf{fma}\left(-0.0027777777777778, \frac{z}{x}, \frac{0.083333333333333}{x}\right) + t_1\right)\\
\end{array}
| Original | 9.94% |
|---|---|
| Target | 2.13% |
| Herbie | 0.65% |
if z < -2.9e21Initial program 38.52
Taylor expanded in x around inf 38.47
Simplified38.47
[Start]38.47 | \[ \left(\left(-1 \cdot \log \left(\frac{1}{x}\right) - 1\right) \cdot x + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
|---|---|
*-commutative [=>]38.47 | \[ \left(\color{blue}{x \cdot \left(-1 \cdot \log \left(\frac{1}{x}\right) - 1\right)} + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
sub-neg [=>]38.47 | \[ \left(x \cdot \color{blue}{\left(-1 \cdot \log \left(\frac{1}{x}\right) + \left(-1\right)\right)} + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
metadata-eval [=>]38.47 | \[ \left(x \cdot \left(-1 \cdot \log \left(\frac{1}{x}\right) + \color{blue}{-1}\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
distribute-lft-in [=>]38.52 | \[ \left(\color{blue}{\left(x \cdot \left(-1 \cdot \log \left(\frac{1}{x}\right)\right) + x \cdot -1\right)} + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
mul-1-neg [=>]38.52 | \[ \left(\left(x \cdot \color{blue}{\left(-\log \left(\frac{1}{x}\right)\right)} + x \cdot -1\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
log-rec [=>]38.52 | \[ \left(\left(x \cdot \left(-\color{blue}{\left(-\log x\right)}\right) + x \cdot -1\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
remove-double-neg [=>]38.52 | \[ \left(\left(x \cdot \color{blue}{\log x} + x \cdot -1\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
distribute-lft-in [<=]38.47 | \[ \left(\color{blue}{x \cdot \left(\log x + -1\right)} + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
Taylor expanded in z around inf 38.89
Simplified24.42
[Start]38.89 | \[ \left(x \cdot \left(\log x + -1\right) + 0.91893853320467\right) + \frac{{z}^{2} \cdot \left(0.0007936500793651 + y\right)}{x}
\] |
|---|---|
associate-/l* [=>]24.42 | \[ \left(x \cdot \left(\log x + -1\right) + 0.91893853320467\right) + \color{blue}{\frac{{z}^{2}}{\frac{x}{0.0007936500793651 + y}}}
\] |
unpow2 [=>]24.42 | \[ \left(x \cdot \left(\log x + -1\right) + 0.91893853320467\right) + \frac{\color{blue}{z \cdot z}}{\frac{x}{0.0007936500793651 + y}}
\] |
Applied egg-rr0.44
if -2.9e21 < z < 4.9999999999999997e-37Initial program 0.6
Simplified0.52
[Start]0.6 | \[ \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}
\] |
|---|---|
associate-+l- [=>]0.6 | \[ \color{blue}{\left(\left(x - 0.5\right) \cdot \log x - \left(x - 0.91893853320467\right)\right)} + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
sub-neg [=>]0.6 | \[ \left(\left(x - 0.5\right) \cdot \log x - \color{blue}{\left(x + \left(-0.91893853320467\right)\right)}\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
associate--r+ [=>]0.6 | \[ \color{blue}{\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) - \left(-0.91893853320467\right)\right)} + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
associate--r+ [<=]0.6 | \[ \color{blue}{\left(\left(x - 0.5\right) \cdot \log x - \left(x + \left(-0.91893853320467\right)\right)\right)} + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
sub-neg [<=]0.6 | \[ \left(\left(x - 0.5\right) \cdot \log x - \color{blue}{\left(x - 0.91893853320467\right)}\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
fma-neg [=>]0.52 | \[ \color{blue}{\mathsf{fma}\left(x - 0.5, \log x, -\left(x - 0.91893853320467\right)\right)} + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
sub-neg [=>]0.52 | \[ \mathsf{fma}\left(\color{blue}{x + \left(-0.5\right)}, \log x, -\left(x - 0.91893853320467\right)\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
metadata-eval [=>]0.52 | \[ \mathsf{fma}\left(x + \color{blue}{-0.5}, \log x, -\left(x - 0.91893853320467\right)\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
neg-sub0 [=>]0.52 | \[ \mathsf{fma}\left(x + -0.5, \log x, \color{blue}{0 - \left(x - 0.91893853320467\right)}\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
associate-+l- [<=]0.52 | \[ \mathsf{fma}\left(x + -0.5, \log x, \color{blue}{\left(0 - x\right) + 0.91893853320467}\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
neg-sub0 [<=]0.52 | \[ \mathsf{fma}\left(x + -0.5, \log x, \color{blue}{\left(-x\right)} + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
+-commutative [=>]0.52 | \[ \mathsf{fma}\left(x + -0.5, \log x, \color{blue}{0.91893853320467 + \left(-x\right)}\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
unsub-neg [=>]0.52 | \[ \mathsf{fma}\left(x + -0.5, \log x, \color{blue}{0.91893853320467 - x}\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
Applied egg-rr0.53
Simplified0.53
[Start]0.53 | \[ \left(\left(\left(0.91893853320467 + \left(x + -0.5\right) \cdot \log x\right) - e^{\mathsf{log1p}\left(x\right)}\right) + 1\right) + \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), 0.083333333333333\right)}{x}
\] |
|---|---|
associate-+l- [=>]0.53 | \[ \color{blue}{\left(\left(0.91893853320467 + \left(x + -0.5\right) \cdot \log x\right) - \left(e^{\mathsf{log1p}\left(x\right)} - 1\right)\right)} + \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), 0.083333333333333\right)}{x}
\] |
*-commutative [=>]0.53 | \[ \left(\left(0.91893853320467 + \color{blue}{\log x \cdot \left(x + -0.5\right)}\right) - \left(e^{\mathsf{log1p}\left(x\right)} - 1\right)\right) + \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), 0.083333333333333\right)}{x}
\] |
if 4.9999999999999997e-37 < z Initial program 26.13
Taylor expanded in z around inf 26.2
Simplified17.18
[Start]26.2 | \[ \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \left(0.083333333333333 \cdot \frac{1}{x} + \left(\frac{{z}^{2} \cdot \left(0.0007936500793651 + y\right)}{x} + -0.0027777777777778 \cdot \frac{z}{x}\right)\right)
\] |
|---|---|
+-commutative [=>]26.2 | \[ \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \left(0.083333333333333 \cdot \frac{1}{x} + \color{blue}{\left(-0.0027777777777778 \cdot \frac{z}{x} + \frac{{z}^{2} \cdot \left(0.0007936500793651 + y\right)}{x}\right)}\right)
\] |
associate-+r+ [=>]26.2 | \[ \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{\left(\left(0.083333333333333 \cdot \frac{1}{x} + -0.0027777777777778 \cdot \frac{z}{x}\right) + \frac{{z}^{2} \cdot \left(0.0007936500793651 + y\right)}{x}\right)}
\] |
+-commutative [=>]26.2 | \[ \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \left(\color{blue}{\left(-0.0027777777777778 \cdot \frac{z}{x} + 0.083333333333333 \cdot \frac{1}{x}\right)} + \frac{{z}^{2} \cdot \left(0.0007936500793651 + y\right)}{x}\right)
\] |
fma-def [=>]26.2 | \[ \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \left(\color{blue}{\mathsf{fma}\left(-0.0027777777777778, \frac{z}{x}, 0.083333333333333 \cdot \frac{1}{x}\right)} + \frac{{z}^{2} \cdot \left(0.0007936500793651 + y\right)}{x}\right)
\] |
associate-*r/ [=>]26.19 | \[ \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \left(\mathsf{fma}\left(-0.0027777777777778, \frac{z}{x}, \color{blue}{\frac{0.083333333333333 \cdot 1}{x}}\right) + \frac{{z}^{2} \cdot \left(0.0007936500793651 + y\right)}{x}\right)
\] |
metadata-eval [=>]26.19 | \[ \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \left(\mathsf{fma}\left(-0.0027777777777778, \frac{z}{x}, \frac{\color{blue}{0.083333333333333}}{x}\right) + \frac{{z}^{2} \cdot \left(0.0007936500793651 + y\right)}{x}\right)
\] |
associate-/l* [=>]17.72 | \[ \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \left(\mathsf{fma}\left(-0.0027777777777778, \frac{z}{x}, \frac{0.083333333333333}{x}\right) + \color{blue}{\frac{{z}^{2}}{\frac{x}{0.0007936500793651 + y}}}\right)
\] |
associate-/r/ [=>]17.18 | \[ \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \left(\mathsf{fma}\left(-0.0027777777777778, \frac{z}{x}, \frac{0.083333333333333}{x}\right) + \color{blue}{\frac{{z}^{2}}{x} \cdot \left(0.0007936500793651 + y\right)}\right)
\] |
unpow2 [=>]17.18 | \[ \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \left(\mathsf{fma}\left(-0.0027777777777778, \frac{z}{x}, \frac{0.083333333333333}{x}\right) + \frac{\color{blue}{z \cdot z}}{x} \cdot \left(0.0007936500793651 + y\right)\right)
\] |
Taylor expanded in z around 0 26.19
Simplified1.26
[Start]26.19 | \[ \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \left(\mathsf{fma}\left(-0.0027777777777778, \frac{z}{x}, \frac{0.083333333333333}{x}\right) + \frac{{z}^{2} \cdot \left(0.0007936500793651 + y\right)}{x}\right)
\] |
|---|---|
unpow2 [=>]26.19 | \[ \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \left(\mathsf{fma}\left(-0.0027777777777778, \frac{z}{x}, \frac{0.083333333333333}{x}\right) + \frac{\color{blue}{\left(z \cdot z\right)} \cdot \left(0.0007936500793651 + y\right)}{x}\right)
\] |
associate-*l/ [<=]17.18 | \[ \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \left(\mathsf{fma}\left(-0.0027777777777778, \frac{z}{x}, \frac{0.083333333333333}{x}\right) + \color{blue}{\frac{z \cdot z}{x} \cdot \left(0.0007936500793651 + y\right)}\right)
\] |
associate-*r/ [<=]1.21 | \[ \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \left(\mathsf{fma}\left(-0.0027777777777778, \frac{z}{x}, \frac{0.083333333333333}{x}\right) + \color{blue}{\left(z \cdot \frac{z}{x}\right)} \cdot \left(0.0007936500793651 + y\right)\right)
\] |
associate-*l* [=>]1.26 | \[ \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \left(\mathsf{fma}\left(-0.0027777777777778, \frac{z}{x}, \frac{0.083333333333333}{x}\right) + \color{blue}{z \cdot \left(\frac{z}{x} \cdot \left(0.0007936500793651 + y\right)\right)}\right)
\] |
Final simplification0.65
| Alternative 1 | |
|---|---|
| Error | 0.86% |
| Cost | 15689 |
| Alternative 2 | |
|---|---|
| Error | 0.92% |
| Cost | 14792 |
| Alternative 3 | |
|---|---|
| Error | 8.05% |
| Cost | 9292 |
| Alternative 4 | |
|---|---|
| Error | 0.86% |
| Cost | 9161 |
| Alternative 5 | |
|---|---|
| Error | 0.56% |
| Cost | 8260 |
| Alternative 6 | |
|---|---|
| Error | 1.64% |
| Cost | 7748 |
| Alternative 7 | |
|---|---|
| Error | 2.13% |
| Cost | 7620 |
| Alternative 8 | |
|---|---|
| Error | 7.38% |
| Cost | 7492 |
| Alternative 9 | |
|---|---|
| Error | 11.38% |
| Cost | 6980 |
| Alternative 10 | |
|---|---|
| Error | 11.38% |
| Cost | 6980 |
| Alternative 11 | |
|---|---|
| Error | 50.2% |
| Cost | 1092 |
| Alternative 12 | |
|---|---|
| Error | 53.71% |
| Cost | 969 |
| Alternative 13 | |
|---|---|
| Error | 54.29% |
| Cost | 968 |
| Alternative 14 | |
|---|---|
| Error | 60.88% |
| Cost | 841 |
| Alternative 15 | |
|---|---|
| Error | 60.89% |
| Cost | 841 |
| Alternative 16 | |
|---|---|
| Error | 61.53% |
| Cost | 320 |
| Alternative 17 | |
|---|---|
| Error | 66.92% |
| Cost | 192 |
| Alternative 18 | |
|---|---|
| Error | 98.82% |
| Cost | 128 |
herbie shell --seed 2023121
(FPCore (x y z)
:name "Numeric.SpecFunctions:$slogFactorial from math-functions-0.1.5.2, B"
:precision binary64
:herbie-target
(+ (+ (+ (* (- x 0.5) (log x)) (- 0.91893853320467 x)) (/ 0.083333333333333 x)) (* (/ z x) (- (* z (+ y 0.0007936500793651)) 0.0027777777777778)))
(+ (+ (- (* (- x 0.5) (log x)) x) 0.91893853320467) (/ (+ (* (- (* (+ y 0.0007936500793651) z) 0.0027777777777778) z) 0.083333333333333) x)))