| Alternative 1 | |
|---|---|
| Error | 3.5 |
| Cost | 20548 |
(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 (* z (+ -0.0027777777777778 (* z (+ y 0.0007936500793651)))))
(t_1 (+ 0.91893853320467 (- (* (log x) (+ x -0.5)) x))))
(if (<= t_0 -1e+15)
(+ t_1 (/ y (/ x (* z z))))
(if (<= t_0 5e-23)
(+
t_1
(+ (* 0.083333333333333 (/ 1.0 x)) (* -0.0027777777777778 (/ z x))))
(if (<= t_0 1e+300)
(+ (/ (+ 0.083333333333333 t_0) x) (- (* x (log x)) x))
(+
(* x (+ (log x) -1.0))
(/ (+ 0.083333333333333 (* z -0.0027777777777778)) 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);
}
double code(double x, double y, double z) {
double t_0 = z * (-0.0027777777777778 + (z * (y + 0.0007936500793651)));
double t_1 = 0.91893853320467 + ((log(x) * (x + -0.5)) - x);
double tmp;
if (t_0 <= -1e+15) {
tmp = t_1 + (y / (x / (z * z)));
} else if (t_0 <= 5e-23) {
tmp = t_1 + ((0.083333333333333 * (1.0 / x)) + (-0.0027777777777778 * (z / x)));
} else if (t_0 <= 1e+300) {
tmp = ((0.083333333333333 + t_0) / x) + ((x * log(x)) - x);
} else {
tmp = (x * (log(x) + -1.0)) + ((0.083333333333333 + (z * -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
code = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) + ((((((y + 0.0007936500793651d0) * z) - 0.0027777777777778d0) * z) + 0.083333333333333d0) / x)
end function
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) :: t_1
real(8) :: tmp
t_0 = z * ((-0.0027777777777778d0) + (z * (y + 0.0007936500793651d0)))
t_1 = 0.91893853320467d0 + ((log(x) * (x + (-0.5d0))) - x)
if (t_0 <= (-1d+15)) then
tmp = t_1 + (y / (x / (z * z)))
else if (t_0 <= 5d-23) then
tmp = t_1 + ((0.083333333333333d0 * (1.0d0 / x)) + ((-0.0027777777777778d0) * (z / x)))
else if (t_0 <= 1d+300) then
tmp = ((0.083333333333333d0 + t_0) / x) + ((x * log(x)) - x)
else
tmp = (x * (log(x) + (-1.0d0))) + ((0.083333333333333d0 + (z * (-0.0027777777777778d0))) / x)
end if
code = tmp
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);
}
public static double code(double x, double y, double z) {
double t_0 = z * (-0.0027777777777778 + (z * (y + 0.0007936500793651)));
double t_1 = 0.91893853320467 + ((Math.log(x) * (x + -0.5)) - x);
double tmp;
if (t_0 <= -1e+15) {
tmp = t_1 + (y / (x / (z * z)));
} else if (t_0 <= 5e-23) {
tmp = t_1 + ((0.083333333333333 * (1.0 / x)) + (-0.0027777777777778 * (z / x)));
} else if (t_0 <= 1e+300) {
tmp = ((0.083333333333333 + t_0) / x) + ((x * Math.log(x)) - x);
} else {
tmp = (x * (Math.log(x) + -1.0)) + ((0.083333333333333 + (z * -0.0027777777777778)) / x);
}
return tmp;
}
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)
def code(x, y, z): t_0 = z * (-0.0027777777777778 + (z * (y + 0.0007936500793651))) t_1 = 0.91893853320467 + ((math.log(x) * (x + -0.5)) - x) tmp = 0 if t_0 <= -1e+15: tmp = t_1 + (y / (x / (z * z))) elif t_0 <= 5e-23: tmp = t_1 + ((0.083333333333333 * (1.0 / x)) + (-0.0027777777777778 * (z / x))) elif t_0 <= 1e+300: tmp = ((0.083333333333333 + t_0) / x) + ((x * math.log(x)) - x) else: tmp = (x * (math.log(x) + -1.0)) + ((0.083333333333333 + (z * -0.0027777777777778)) / x) 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(z * Float64(-0.0027777777777778 + Float64(z * Float64(y + 0.0007936500793651)))) t_1 = Float64(0.91893853320467 + Float64(Float64(log(x) * Float64(x + -0.5)) - x)) tmp = 0.0 if (t_0 <= -1e+15) tmp = Float64(t_1 + Float64(y / Float64(x / Float64(z * z)))); elseif (t_0 <= 5e-23) tmp = Float64(t_1 + Float64(Float64(0.083333333333333 * Float64(1.0 / x)) + Float64(-0.0027777777777778 * Float64(z / x)))); elseif (t_0 <= 1e+300) tmp = Float64(Float64(Float64(0.083333333333333 + t_0) / x) + Float64(Float64(x * log(x)) - x)); else tmp = Float64(Float64(x * Float64(log(x) + -1.0)) + Float64(Float64(0.083333333333333 + Float64(z * -0.0027777777777778)) / x)); end return tmp 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
function tmp_2 = code(x, y, z) t_0 = z * (-0.0027777777777778 + (z * (y + 0.0007936500793651))); t_1 = 0.91893853320467 + ((log(x) * (x + -0.5)) - x); tmp = 0.0; if (t_0 <= -1e+15) tmp = t_1 + (y / (x / (z * z))); elseif (t_0 <= 5e-23) tmp = t_1 + ((0.083333333333333 * (1.0 / x)) + (-0.0027777777777778 * (z / x))); elseif (t_0 <= 1e+300) tmp = ((0.083333333333333 + t_0) / x) + ((x * log(x)) - x); else tmp = (x * (log(x) + -1.0)) + ((0.083333333333333 + (z * -0.0027777777777778)) / x); end tmp_2 = 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[(z * N[(-0.0027777777777778 + N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(0.91893853320467 + N[(N[(N[Log[x], $MachinePrecision] * N[(x + -0.5), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, -1e+15], N[(t$95$1 + N[(y / N[(x / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e-23], N[(t$95$1 + N[(N[(0.083333333333333 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] + N[(-0.0027777777777778 * N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 1e+300], N[(N[(N[(0.083333333333333 + t$95$0), $MachinePrecision] / x), $MachinePrecision] + N[(N[(x * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision] + N[(N[(0.083333333333333 + N[(z * -0.0027777777777778), $MachinePrecision]), $MachinePrecision] / x), $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 := z \cdot \left(-0.0027777777777778 + z \cdot \left(y + 0.0007936500793651\right)\right)\\
t_1 := 0.91893853320467 + \left(\log x \cdot \left(x + -0.5\right) - x\right)\\
\mathbf{if}\;t_0 \leq -1 \cdot 10^{+15}:\\
\;\;\;\;t_1 + \frac{y}{\frac{x}{z \cdot z}}\\
\mathbf{elif}\;t_0 \leq 5 \cdot 10^{-23}:\\
\;\;\;\;t_1 + \left(0.083333333333333 \cdot \frac{1}{x} + -0.0027777777777778 \cdot \frac{z}{x}\right)\\
\mathbf{elif}\;t_0 \leq 10^{+300}:\\
\;\;\;\;\frac{0.083333333333333 + t_0}{x} + \left(x \cdot \log x - x\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\log x + -1\right) + \frac{0.083333333333333 + z \cdot -0.0027777777777778}{x}\\
\end{array}
Results
| Original | 6.3 |
|---|---|
| Target | 1.5 |
| Herbie | 3.6 |
if (*.f64 (-.f64 (*.f64 (+.f64 y 7936500793651/10000000000000000) z) 13888888888889/5000000000000000) z) < -1e15Initial program 17.8
Taylor expanded in y around inf 18.3
Simplified6.6
[Start]18.3 | \[ \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{y \cdot {z}^{2}}{x}
\] |
|---|---|
associate-/l* [=>]6.6 | \[ \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \color{blue}{\frac{y}{\frac{x}{{z}^{2}}}}
\] |
unpow2 [=>]6.6 | \[ \left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{y}{\frac{x}{\color{blue}{z \cdot z}}}
\] |
if -1e15 < (*.f64 (-.f64 (*.f64 (+.f64 y 7936500793651/10000000000000000) z) 13888888888889/5000000000000000) z) < 5.0000000000000002e-23Initial program 0.4
Taylor expanded in z around 0 0.8
if 5.0000000000000002e-23 < (*.f64 (-.f64 (*.f64 (+.f64 y 7936500793651/10000000000000000) z) 13888888888889/5000000000000000) z) < 1.0000000000000001e300Initial program 0.4
Taylor expanded in x around inf 0.4
Simplified0.4
[Start]0.4 | \[ \left(-1 \cdot \log \left(\frac{1}{x}\right) - 1\right) \cdot x + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
|---|---|
*-commutative [=>]0.4 | \[ \color{blue}{x \cdot \left(-1 \cdot \log \left(\frac{1}{x}\right) - 1\right)} + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
sub-neg [=>]0.4 | \[ x \cdot \color{blue}{\left(-1 \cdot \log \left(\frac{1}{x}\right) + \left(-1\right)\right)} + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
metadata-eval [=>]0.4 | \[ x \cdot \left(-1 \cdot \log \left(\frac{1}{x}\right) + \color{blue}{-1}\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
distribute-lft-in [=>]0.4 | \[ \color{blue}{\left(x \cdot \left(-1 \cdot \log \left(\frac{1}{x}\right)\right) + x \cdot -1\right)} + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
mul-1-neg [=>]0.4 | \[ \left(x \cdot \color{blue}{\left(-\log \left(\frac{1}{x}\right)\right)} + x \cdot -1\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
log-rec [=>]0.4 | \[ \left(x \cdot \left(-\color{blue}{\left(-\log x\right)}\right) + x \cdot -1\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
remove-double-neg [=>]0.4 | \[ \left(x \cdot \color{blue}{\log x} + x \cdot -1\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
*-commutative [=>]0.4 | \[ \left(\color{blue}{\log x \cdot x} + x \cdot -1\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
*-commutative [<=]0.4 | \[ \left(\log x \cdot x + \color{blue}{-1 \cdot x}\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
neg-mul-1 [<=]0.4 | \[ \left(\log x \cdot x + \color{blue}{\left(-x\right)}\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
unsub-neg [=>]0.4 | \[ \color{blue}{\left(\log x \cdot x - x\right)} + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
*-commutative [<=]0.4 | \[ \left(\color{blue}{x \cdot \log x} - x\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\] |
if 1.0000000000000001e300 < (*.f64 (-.f64 (*.f64 (+.f64 y 7936500793651/10000000000000000) z) 13888888888889/5000000000000000) z) Initial program 60.1
Simplified60.1
[Start]60.1 | \[ \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- [=>]60.1 | \[ \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 [=>]60.1 | \[ \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+ [=>]60.1 | \[ \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+ [<=]60.1 | \[ \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 [<=]60.1 | \[ \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 [=>]60.1 | \[ \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 [=>]60.1 | \[ \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 [=>]60.1 | \[ \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 [=>]60.1 | \[ \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- [<=]60.1 | \[ \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 [<=]60.1 | \[ \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 [=>]60.1 | \[ \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 [=>]60.1 | \[ \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}
\] |
Taylor expanded in z around 0 32.2
Taylor expanded in x around inf 32.2
Simplified32.2
[Start]32.2 | \[ \left(-1 \cdot \log \left(\frac{1}{x}\right) - 1\right) \cdot x + \frac{0.083333333333333 + -0.0027777777777778 \cdot z}{x}
\] |
|---|---|
*-commutative [=>]32.2 | \[ \color{blue}{x \cdot \left(-1 \cdot \log \left(\frac{1}{x}\right) - 1\right)} + \frac{0.083333333333333 + -0.0027777777777778 \cdot z}{x}
\] |
sub-neg [=>]32.2 | \[ x \cdot \color{blue}{\left(-1 \cdot \log \left(\frac{1}{x}\right) + \left(-1\right)\right)} + \frac{0.083333333333333 + -0.0027777777777778 \cdot z}{x}
\] |
metadata-eval [=>]32.2 | \[ x \cdot \left(-1 \cdot \log \left(\frac{1}{x}\right) + \color{blue}{-1}\right) + \frac{0.083333333333333 + -0.0027777777777778 \cdot z}{x}
\] |
distribute-rgt-in [=>]32.2 | \[ \color{blue}{\left(\left(-1 \cdot \log \left(\frac{1}{x}\right)\right) \cdot x + -1 \cdot x\right)} + \frac{0.083333333333333 + -0.0027777777777778 \cdot z}{x}
\] |
mul-1-neg [=>]32.2 | \[ \left(\color{blue}{\left(-\log \left(\frac{1}{x}\right)\right)} \cdot x + -1 \cdot x\right) + \frac{0.083333333333333 + -0.0027777777777778 \cdot z}{x}
\] |
log-rec [=>]32.2 | \[ \left(\left(-\color{blue}{\left(-\log x\right)}\right) \cdot x + -1 \cdot x\right) + \frac{0.083333333333333 + -0.0027777777777778 \cdot z}{x}
\] |
remove-double-neg [=>]32.2 | \[ \left(\color{blue}{\log x} \cdot x + -1 \cdot x\right) + \frac{0.083333333333333 + -0.0027777777777778 \cdot z}{x}
\] |
distribute-rgt-in [<=]32.2 | \[ \color{blue}{x \cdot \left(\log x + -1\right)} + \frac{0.083333333333333 + -0.0027777777777778 \cdot z}{x}
\] |
Final simplification3.6
| Alternative 1 | |
|---|---|
| Error | 3.5 |
| Cost | 20548 |
| Alternative 2 | |
|---|---|
| Error | 3.8 |
| Cost | 9548 |
| Alternative 3 | |
|---|---|
| Error | 3.5 |
| Cost | 8004 |
| Alternative 4 | |
|---|---|
| Error | 5.4 |
| Cost | 7888 |
| Alternative 5 | |
|---|---|
| Error | 4.2 |
| Cost | 7888 |
| Alternative 6 | |
|---|---|
| Error | 10.3 |
| Cost | 7496 |
| Alternative 7 | |
|---|---|
| Error | 12.3 |
| Cost | 7232 |
| Alternative 8 | |
|---|---|
| Error | 12.9 |
| Cost | 7108 |
| Alternative 9 | |
|---|---|
| Error | 13.2 |
| Cost | 6976 |
| Alternative 10 | |
|---|---|
| Error | 13.2 |
| Cost | 6852 |
| Alternative 11 | |
|---|---|
| Error | 43.5 |
| Cost | 6656 |
| Alternative 12 | |
|---|---|
| Error | 43.5 |
| Cost | 320 |
| Alternative 13 | |
|---|---|
| Error | 43.5 |
| Cost | 192 |
herbie shell --seed 2023020
(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)))