chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Possible numbers bug


From: Panos Stergiotis
Subject: Re: [Chicken-users] Possible numbers bug
Date: Fri, 27 May 2011 17:47:45 +0200
User-agent: KMail/1.13.5 (Linux/2.6.32-5-amd64; KDE/4.4.5; x86_64; ; )

On Friday 27 May 2011 10:58:04 Dominic Pearson wrote:
> Hello folks,
> 
> I am trying to compute the sum i = 0 to n where n = 1000 of n^n, but
> chicken seems to return the incorrect answer.
for comparison: mathematica 7 (linux 64 bit)

Total[Table[i^i, {i, 1, 1000}]] + 1 yields
1000368199144695177095375011227646795567793680622934654583760988100234\
9107477161943814286590995278459458699426431912908947203429799064076796\
4725986043423846803832604080969103761537037623771364851006311573295146\
1774246705584266865759601815843666442832284556880313114548151539190975\
3984854966455765134658585827123364011662219561881734495316741026889083\
2176466302030669977040862534076609159502279137936809836930637560281385\
6646358773751558775213460225796579846583334007349358624342339332981334\
5712378888092831033487602613601759508156091794640268710052436521099808\
6355214201424290343406856093657323107934219403186441391810123815105650\
9267393515760392842472501391594073463001521843811073767021711026307504\
6957334678978218669066484698283466074129673958017977916836098347224322\
4195284535256468186824036956956619282555532355807806199752768998384886\
3374786789331581565252059172614339424600986143259233167583371070362625\
5545318520541661171488582295085815896143375944632775543805183809213012\
1883632710223140733220110974010258021646929833176692061964608379073280\
7627360614428085171565006289728508688964226799647192582924058589530750\
6745783853655618785595896857562256923489147469228109139156198347541176\
4835803581412867029415856566994208773628639094224154722601500447133063\
0113072042704288905042142628193771918594574302202147201188486345913190\
8337523074769660105474239288710631187830260363813190390520082520720579\
3366671291894623331279369709407422418787204597097644430924278218773832\
0257490080824330074991698698239561125811127607863900355221737846690567\
7073440744941452666621038398128402163034484769139570723557327166270983\
7224522304679291974725911315742582406485833141540094327821304295463505\
3574045209984512221264241903550178416824551412548637590007779082539288\
2477516535668998827495944058951025879855395277094935100495464454272656\
1747839910718823868177121590423411939224748975107908594805594509880561\
7963722928469554263782217625160428008228845552540344494860195267115187\
0922277661957539072111266461501406147442339747652734756199643118528586\
1416781966834012473048771016200679352998575882065367727437956331349545\
4526632718723482339494825759821076401694316043456512117937935456463521\
4630211977266949835589291323575761885949775166307342128638694561642055\
2553676731129813718251149464946366307375921921305682356166777609373942\
5742883930712609962163464088038826569132032160692637206183085942987973\
6845842764917848431154720779004016925956941192735535110259912654460393\
6628892174358133320008371710524117150460688354341886202404755217705526\
3424469501298905901938158245938633694105024815166679813689156668341197\
7134750943899048871267944689018938504750500112052257424555556257505602\
1323038791033798395033324502065323898911550701388295627776388079568721\
0857196493893142656713105966275422144605988058939600603604226921401402\
0965192942504886702979833963532794604531423755422678819891974817897806\
7895509376319365860369089847482697690654447397801745572036792998179602\
3041785852626797271283465789498383642350667978127819110846701

The + 1 is because 0^0 is not defined in mathematica



reply via email to

[Prev in Thread] Current Thread [Next in Thread]