In[]:=
Timing[CMRB=NSum[(-1)^n(n^(1/n)-1),{n,1,Infinity},WorkingPrecision200,Method"AlternatingSigns"]]
Out[]=
{0.15625,0.187859642462067120248517934054273230055903094900138786172004684089477231564660213703296654433107496903842345856258019061231370094759226630438929348896184120837336626081613602738126379373435283224982}
In[]:=
Precision[MKB]
Out[]=
99999.8
In[]:=
FMKB[prec_,MR_]:=Module[{},g[x_]=N[Log[x]/x,prec+5];t[prec]=Timing[MKB-(-(INIntegrate[Exp[-Pit+g[1+tI]],{t,0,Infinity},WorkingPrecisionprec+5,PrecisionGoalprec+5,Method"Trapezoidal",MaxRecursionMR])+I/Pi)];N[t[prec],prec]]
In[]:=
FMKB[1000,9]
Out[]=
{1.75,0.×+0.×}
-1006
10
-1006
10
In[]:=
ClearSystemCache[];prec=2000;g[x_]:=N[Log[x]/x,prec];Timing[MKB--(INIntegrate[Exp[-Pit+g[1+tI]],{t,0,Infinity},WorkingPrecisionprec,Method"Trapezoidal",MaxRecursion10]-I/Pi)]
Out[]=
{10.9844,0.×+0.×}
-2001
10
-2001
10
In[]:=
ClearSystemCache[];prec=3000;g[x_]:=N[Log[x]/x,prec];Timing[MKB--(INIntegrate[Exp[-Pit+g[1+tI]],{t,0,Infinity},WorkingPrecisionprec,Method"Trapezoidal",MaxRecursion11]-I/Pi)]
Out[]=
{45.5625,0.×+0.×}
-3001
10
-3001
10
In[]:=
ClearSystemCache[];prec=4000;g[x_]:=N[Log[x]/x,prec];Timing[MKB--(INIntegrate[Exp[-Pit+g[1+tI]],{t,0,Infinity},WorkingPrecisionprec,Method"Trapezoidal",MaxRecursion11]-I/Pi)]
Out[]=
{80.0313,0.×+0.×}
-4001
10
-4001
10
In[]:=
ClearSystemCache[];prec=5000;g[x_]:=N[Log[x]/x,prec];Timing[MKB--(INIntegrate[Exp[-Pit+g[1+tI]],{t,0,Infinity},WorkingPrecisionprec,Method"Trapezoidal",MaxRecursion12]-I/Pi)]
Out[]=
{236.125,0.×+0.×}
-5001
10
-5001
10
In[]:=
ClearSystemCache[];prec=10000;g[x_]:=N[Log[x]/x,prec];Timing[MKB--(INIntegrate[Exp[-Pit+g[1+tI]],{t,0,Infinity},WorkingPrecisionprec,Method"Trapezoidal",MaxRecursion13]-I/Pi)]
Out[]=
{1802.72,0.×+0.×}
-10001
10
-10001
10
In[]:=
ClearSystemCache[];prec=40000;g[x_]:=N[Log[x]/x,prec];Timing[MKB--(INIntegrate[Exp[-Pit+g[1+tI]],{t,0,Infinity},WorkingPrecisionprec,Method"Trapezoidal",MaxRecursion15]-I/Pi)]
Out[]=
{92496.8,0.×+0.×}
-40001
10
-40001
10