Needs["SubKernels`LocalKernels`"]​​Block[{$mathkernel=$mathkernel<>" -threadpriority=2"},LaunchKernels[]]
Out[]=
{KernelObject[1,local],KernelObject[2,local],KernelObject[3,local],KernelObject[4,local],KernelObject[5,local],KernelObject[6,local],KernelObject[7,local],KernelObject[8,local],KernelObject[9,local],KernelObject[10,local],KernelObject[11,local],KernelObject[12,local],KernelObject[13,local],KernelObject[14,local],KernelObject[15,local],KernelObject[16,local]}
ClearAll[RootPade6,expM,MRB1,MRB2,err,goodDigits];​​​​Clear[RootHalley3];​​​​RootHalley3[n_Integer,prec_Integer]:=Module[{x,pc,t,f,fp,fpp,N0=n},(*initialseedatmodestprecision*)x=N[Exp[Log[N0]/N0],prec/8/6/4];​​pc=Precision[x];​​(*precisionrampwithcubic(order-3)refinement*)While[pc<prec,pc=Min[3pc,prec];(*3xprecisioneachstep*)x=SetPrecision[x,pc];​​t=x^N0;(*t=x^n*)f=t-N0;(*f(x)=x^n-n*)fp=N0t/x;(*f'(x)=nx^(n-1)=nt/x*)fpp=N0(N0-1)t/x^2;(*f''(x)=n(n-1)x^(n-2)*)(*Halleyupdate:x_{k+1}=x-(2ff')/(2f'^2-ff'')*)x=x-(2ffp)/(2fp^2-ffpp);];​​N[x,prec]];​​​​pr=2000;​​steps=Ceiling[pr/1000];​​​​expM[pre_Integer,alpha_?NumericQ]:=Module[{d,bb,cc,s,n,pr2,block,start,stop,rng,xvals,ctab,m,dot},pr2=Floor[1.005pre];​​n=Floor[alphapr2];​​block=Ceiling[n/steps];​​Print["Iterations required: ",n];​​d=N[ChebyshevT[n,3],pr2+50];​​bb=SetPrecision[-1,pr2+50];​​cc=-d;​​s=SetPrecision[0,pr2+50];​​start=1;​​While[start≤n,stop=Min[start+block-1,n];​​Print["Starting block ",start," to ",stop];​​rng=Range[start,stop];​​(*RootPade6replacementforExp[Log[rng]/rng]-1*)xvals=ParallelTable[N[RootHalley3[k,pr2]-1,pr2],{k,start,stop}];​​ctab=Table[cc=bb-cc;​​m=start+j-2;​​bb*=2(m+n)(m-n)/((m+1)(2m+1));​​cc,{j,1,stop-start+1}];​​dot=ctab.xvals;​​If[Dimensions[dot]=!={},Print["ERROR: dot is not scalar."];​​Print["Head[dot] = ",Head[dot]];​​Print["Dimensions[dot] = ",Dimensions[dot]];​​Abort[];];​​s+=dot;​​Print[stop," iterations done."];​​start=stop+1;];​​N[-s/d,pre]];​​​​Print["Computing MRB1..."];​​Print["The first run took this many seconds:",AbsoluteTiming[MRB1=expM[pr,1.32]][[1]]];​​​​Print["Computing MRB2..."];​​Print["the second run took this many seconds:",AbsoluteTiming[MRB2=expM[pr,1.34]][[1]]];​​​​If[ValueQ[MRB1]&&ValueQ[MRB2],err=N[Abs[MRB2-MRB1],50];​​Print["Error estimate = ",ScientificForm[err,20]];​​goodDigits=If[NumericQ[err]&&err>0,Floor[-Log10[err]],"at least "<>ToString[pr]];​​Print["Estimated good digits = ",goodDigits],Print["MRB1 or MRB2 failed; no valid error estimate."]];​​​​Print[pr," digits are ",MRB2];
Computing MRB1...
Iterations required: 2651
Starting block 1 to 1326
1326 iterations done.
Starting block 1327 to 2651
2651 iterations done.
The first run took this many seconds:0.160933
Computing MRB2...
Iterations required: 2692
Starting block 1 to 1346
1346 iterations done.
Starting block 1347 to 2692
2692 iterations done.
the second run took this many seconds:0.18432
Error estimate = 0.×
-2000
10
Estimated good digits = at least 2000
2000" digits are "0.18785964246206...2209597744091137
​​​​​​​​WhileNSUm/AlternatingSigns(fromafreshkernal,soitdon'tcheatwithitscache)doesfairforitssimplicity.
NSum[(-1)^n(n^(1/n)-1),{n,1,Infinity},Method"AlternatingSigns",WorkingPrecision2000]//AbsoluteTiming
Out[]=
{0.465495,0.187859642462067120248517934054273230055903094900138786172004684089477231564660213703296654433107496903842345856258019061231370094759226630438929348896184120837336626081613602738126379373435283212552763962171489321702076282062171516715408412680448363541671998519768025275989389939144579835055613509648521071207844423095868129497688526949564204255586483670441042527952471060666092633974834103115781678641668915460034222258838002545539689294711421221891050983287122773080200364452153905363950553322034706275511598128280395102192649146731762935161906598160186642458249506972033819929584209355151625143993576007645932912814517090824249158832041690664093344359148067055646928067870070281150093806069381393859533606579874055620623487043293607378195646031047639506648930613606455280675151935082808373767192968663981030949496374962773830498463245634793115753002892125232918161956269736970748657654760711780171957873683009659022606687536563055165673612881502014387561366865522106743053705910397357561914890936907779832035511933624046372534941054283636997170244185516548372793588220081344809610588020306478196195969537562878348123349763858630101407272529230147233333625091858402480370404888196767676011985811167916935279685204416002708613722868894510151029199885369057286592870868754254925337943953475897035633134403826388879866561959807335147399025657781331722610761279758527227427773089857749223059709625725627188367557529788792536168767394035432145136277254922931312627643573214462161877863771542054231282234462953965329033221714798202807598422106556489004853685870708326887487737763504768916098318553628166715910841219342016438600025850842655643500695483283012054619320515593504002350835126133592174089700732978427712896736516196022507711738808426232569788546537869046222708567487474709306935732666859085616282375386551243297564746491461917957586934299620814987853666317019726453426046837801075905514867871903957831506045244419075704451138205853339846921948287947648657593178595816527492977822095977440911}