(02-14-2018 07:24 PM)John Keith Wrote: (02-12-2018 03:40 AM)Gerson W. Barbosa Wrote: For real fun, I would try a 2500-year-old algorithm (with a small adjustment for speed) on my 50g. No problem waiting three hours for the glorious thousand digits :-)
http://www.hpmuseum.org/cgi-sys/cgiwrap/...443#189221
There is also a 4-minute alternative (certainly more than 10 minutes on the 49G). Both programs require the LongFloat library, though.
I know it's "cheating", but LongFloat's built-in function FPI returns 1000 digits of PI in about 42 seconds on the HP50, about 1.1s on the emulator. :-)
Less than 74 seconds on my HP 49G. But this is not about getting it fast, it's about testing a method that was available in India at least sinced the late 14th century. I believe the continued fraction which works as a correction to the very slowly convergent Madhava-Leibniz series (a.k.a. Gregory series), was known to Madhava. 20 terms of the series and 20 terms of the continued fraction would have yielded 30 correct digits, but the latter might be not practical for manual calculation, or they just thought it was not worth the effort.
By using this method, a thousand digits can be computed in less than four hours (3h51m09s) on a 49G. I don't think they would have found that too slow back then :-)
1000
Code:
%%HP: T(3)A(D)F(.);
\<< 1. + DUP 'DIGITS' STO 4. + 3. / IP R\<-\->F DUPDUP FADD OVER FSQ 4. R\<-\->F
FMULT OVER DUP FADD DUPDUP FADD SWAP 1. R\<-\->F FSUB 0. R\<-\->F DUP 1. 8. ROLL
R\<-\->F
START UNROT OVER FINV FSUB OVER 2. R\<-\->F FSUB FINV FADD 6. ROLLD 4. ROLLD
OVER FADD PICK3 SWAP FDIV 4. ROLLD UNROT DUP2 SWAP FSUB 5. ROLL 6. PICK FADD FDIV
UNROT OVER 1. R\<-\->F FSUB DUP FADD FSUB UNROT 4. R\<-\->F FSUB UNROT 5. ROLLD
UNROT 6. ROLL 6. ROLL
NEXT 4. PICK FADD FINV FADD 4. R\<-\->F FMULT 5. ROLLD 4. DROPN
\>>
EVAL
-->
31415926535897932384626433832795028841971693993751058209749445923078164062862
089986280348253421170679821480865132823066470938446095505822317253594081284811
174502841027019385211055596446229489549303819644288109756659334461284756482337
867831652712019091456485669234603486104543266482133936072602491412737245870066
063155881748815209209628292540917153643678925903600113305305488204665213841469
519415116094330572703657595919530921861173819326117931051185480744623799627495
673518857527248912279381830119491298336733624406566430860213949463952247371907
021798609437027705392171762931767523846748184676694051320005681271452635608277
857713427577896091736371787214684409012249534301465495853710507922796892589235
420199561121290219608640344181598136297747713099605187072113499999983729780499
510597317328160963185950244594553469083026425223082533446850352619311881710100
031378387528865875332083814206171776691473035982534904287554687311595628638823
537875937519577818577805321712268066130019278766111959092164201989.E-1000
s: 13868.7266
That's about the time it takes the HP 50g to get the equivalent algebraic expression. Expanding it would take much, much longer.
1000
Code:
« PUSH RAD -105 CF -3 CF 4 + 3 IDIV2 DROP DUPDUP + OVER SQ 4 * OVER DUP + DUPDUP + SWAP 1 - 0 DUP 1
8 ROLL
START UNROT OVER INV - OVER 2 - INV + 6 ROLLD 4 ROLLD OVER + PICK3 SWAP / 4 ROLLD UNROT DUP2
SWAP - 5 ROLL 6 PICK + / UNROT OVER 1 - DUP + - UNROT 4 - UNROT 5 ROLLD UNROT 6 ROLL 6 ROLL
NEXT 4
PICK + INV + 4 * 5 ROLLD 4 DROPN POP
»
EVAL
-->
Code:
'(-(1/1335)+1/1333-1/1331+1/1329-1/1327+1/1325-1/1323+1/1321-1/1319+1/1317-1/1315+1/1313-1/1311+1/1309-
1/1307+1/1305-1/1303+1/1301-1/1299+1/1297-1/1295+1/1293-1/1291+1/1289-1/1287+1/1285-1/1283+1/1281-
1/1279+1/1277-1/1275+1/1273-1/1271+1/1269-1/1267+1/1265-1/1263+1/1261-1/1259+1/1257-1/1255+1/1253-
1/1251+1/1249-1/1247+1/1245-1/1243+1/1241-1/1239+1/1237-1/1235+1/1233-1/1231+1/1229-1/1227+1/1225-
1/1223+1/1221-1/1219+1/1217-1/1215+1/1213-1/1211+1/1209-1/1207+1/1205-1/1203+1/1201-1/1199+1/1197-
1/1195+1/1193-1/1191+1/1189-1/1187+1/1185-1/1183+1/1181-1/1179+1/1177-1/1175+1/1173-1/1171+1/1169-
1/1167+1/1165-1/1163+1/1161-1/1159+1/1157-1/1155+1/1153-1/1151+1/1149-1/1147+1/1145-1/1143+1/1141-
1/1139+1/1137-1/1135+1/1133-1/1131+1/1129-1/1127+1/1125-1/1123+1/1121-1/1119+1/1117-1/1115+1/1113-
1/1111+1/1109-1/1107+1/1105-1/1103+1/1101-1/1099+1/1097-1/1095+1/1093-1/1091+1/1089-1/1087+1/1085-
1/1083+1/1081-1/1079+1/1077-1/1075+1/1073-1/1071+1/1069-1/1067+1/1065-1/1063+1/1061-1/1059+1/1057-
1/1055+1/1053-1/1051+1/1049-1/1047+1/1045-1/1043+1/1041-1/1039+1/1037-1/1035+1/1033-1/1031+1/1029-
1/1027+1/1025-1/1023+1/1021-1/1019+1/1017-1/1015+1/1013-1/1011+1/1009-1/1007+1/1005-1/1003+1/1001-
1/999+1/997-1/995+1/993-1/991+1/989-1/987+1/985-1/983+1/981-1/979+1/977-1/975+1/973-1/971+1/969-
1/967+1/965-1/963+1/961-1/959+1/957-1/955+1/953-1/951+1/949-1/947+1/945-1/943+1/941-1/939+1/937-
1/935+1/933-1/931+1/929-1/927+1/925-1/923+1/921-1/919+1/917-1/915+1/913-1/911+1/909-1/907+1/905-
1/903+1/901-1/899+1/897-1/895+1/893-1/891+1/889-1/887+1/885-1/883+1/881-1/879+1/877-1/875+1/873-
1/871+1/869-1/867+1/865-1/863+1/861-1/859+1/857-1/855+1/853-1/851+1/849-1/847+1/845-1/843+1/841-
1/839+1/837-1/835+1/833-1/831+1/829-1/827+1/825-1/823+1/821-1/819+1/817-1/815+1/813-1/811+1/809-
1/807+1/805-1/803+1/801-1/799+1/797-1/795+1/793-1/791+1/789-1/787+1/785-1/783+1/781-1/779+1/777-
1/775+1/773-1/771+1/769-1/767+1/765-1/763+1/761-1/759+1/757-1/755+1/753-1/751+1/749-1/747+1/745-
1/743+1/741-1/739+1/737-1/735+1/733-1/731+1/729-1/727+1/725-1/723+1/721-1/719+1/717-1/715+1/713-
1/711+1/709-1/707+1/705-1/703+1/701-1/699+1/697-1/695+1/693-1/691+1/689-1/687+1/685-1/683+1/681-
1/679+1/677-1/675+1/673-1/671+1/669-1/667+1/665-1/663+1/661-1/659+1/657-1/655+1/653-1/651+1/649-
1/647+1/645-1/643+1/641-1/639+1/637-1/635+1/633-1/631+1/629-1/627+1/625-1/623+1/621-1/619+1/617-
1/615+1/613-1/611+1/609-1/607+1/605-1/603+1/601-1/599+1/597-1/595+1/593-1/591+1/589-1/587+1/585-
1/583+1/581-1/579+1/577-1/575+1/573-1/571+1/569-1/567+1/565-1/563+1/561-1/559+1/557-1/555+1/553-
1/551+1/549-1/547+1/545-1/543+1/541-1/539+1/537-1/535+1/533-1/531+1/529-1/527+1/525-1/523+1/521-
1/519+1/517-1/515+1/513-1/511+1/509-1/507+1/505-1/503+1/501-1/499+1/497-1/495+1/493-1/491+1/489-
1/487+1/485-1/483+1/481-1/479+1/477-1/475+1/473-1/471+1/469-1/467+1/465-1/463+1/461-1/459+1/457-
1/455+1/453-1/451+1/449-1/447+1/445-1/443+1/441-1/439+1/437-1/435+1/433-1/431+1/429-1/427+1/425-
1/423+1/421-1/419+1/417-1/415+1/413-1/411+1/409-1/407+1/405-1/403+1/401-1/399+1/397-1/395+1/393-
1/391+1/389-1/387+1/385-1/383+1/381-1/379+1/377-1/375+1/373-1/371+1/369-1/367+1/365-1/363+1/361-
1/359+1/357-1/355+1/353-1/351+1/349-1/347+1/345-1/343+1/341-1/339+1/337-1/335+1/333-1/331+1/329-
1/327+1/325-1/323+1/321-1/319+1/317-1/315+1/313-1/311+1/309-1/307+1/305-1/303+1/301-1/299+1/297-
1/295+1/293-1/291+1/289-1/287+1/285-1/283+1/281-1/279+1/277-1/275+1/273-1/271+1/269-1/267+1/265-
1/263+1/261-1/259+1/257-1/255+1/253-1/251+1/249-1/247+1/245-1/243+1/241-1/239+1/237-1/235+1/233-
1/231+1/229-1/227+1/225-1/223+1/221-1/219+1/217-1/215+1/213-1/211+1/209-1/207+1/205-1/203+1/201-
1/199+1/197-1/195+1/193-1/191+1/189-1/187+1/185-1/183+1/181-1/179+1/177-1/175+1/173-1/171+1/169-
1/167+1/165-1/163+1/161-1/159+1/157-1/155+1/153-1/151+1/149-1/147+1/145-1/143+1/141-1/139+1/137-
1/135+1/133-1/131+1/129-1/127+1/125-1/123+1/121-1/119+1/117-1/115+1/113-1/111+1/109-1/107+1/105-
1/103+1/101-1/99+1/97-1/95+1/93-1/91+1/89-1/87+1/85-1/83+1/81-1/79+1/77-1/75+1/73-1/71+1/69-1/67+1/65-
1/63+1/61-1/59+1/57-1/55+1/53-1/51+1/49-1/47+1/45-1/43+1/41-1/39+1/37-1/35+1/33-1/31+1/29-1/27+1/25-
1/23+1/21-1/19+1/17-1/15+1/13-1/11+1/9-1/7+1/5-1/3+1+1/(1/(4/(9/(16/(25/(36/(49/(64/(81/(100/(121/(144/
(169/(196/(225/(256/(289/(324/(361/(400/(441/(484/(529/(576/(625/(676/(729/(784/(841/(900/(961/(1024/
(1089/(1156/(1225/(1296/(1369/(1444/(1521/(1600/(1681/(1764/(1849/(1936/(2025/(2116/(2209/(2304/(2401/
(2500/(2601/(2704/(2809/(2916/(3025/(3136/(3249/(3364/(3481/(3600/(3721/(3844/(3969/(4096/(4225/(4356/
(4489/(4624/(4761/(4900/(5041/(5184/(5329/(5476/(5625/(5776/(5929/(6084/(6241/(6400/(6561/(6724/(6889/
(7056/(7225/(7396/(7569/(7744/(7921/(8100/(8281/(8464/(8649/(8836/(9025/(9216/(9409/(9604/(9801/(10000/
(10201/(10404/(10609/(10816/(11025/(11236/(11449/(11664/(11881/(12100/(12321/(12544/(12769/(12996/
(13225/(13456/(13689/(13924/(14161/(14400/(14641/(14884/(15129/(15376/(15625/(15876/(16129/(16384/
(16641/(16900/(17161/(17424/(17689/(17956/(18225/(18496/(18769/(19044/(19321/(19600/(19881/(20164/
(20449/(20736/(21025/(21316/(21609/(21904/(22201/(22500/(22801/(23104/(23409/(23716/(24025/(24336/
(24649/(24964/(25281/(25600/(25921/(26244/(26569/(26896/(27225/(27556/(27889/(28224/(28561/(28900/
(29241/(29584/(29929/(30276/(30625/(30976/(31329/(31684/(32041/(32400/(32761/(33124/(33489/(33856/
(34225/(34596/(34969/(35344/(35721/(36100/(36481/(36864/(37249/(37636/(38025/(38416/(38809/(39204/
(39601/(40000/(40401/(40804/(41209/(41616/(42025/(42436/(42849/(43264/(43681/(44100/(44521/(44944/
(45369/(45796/(46225/(46656/(47089/(47524/(47961/(48400/(48841/(49284/(49729/(50176/(50625/(51076/
(51529/(51984/(52441/(52900/(53361/(53824/(54289/(54756/(55225/(55696/(56169/(56644/(57121/(57600/
(58081/(58564/(59049/(59536/(60025/(60516/(61009/(61504/(62001/(62500/(63001/(63504/(64009/(64516/
(65025/(65536/(66049/(66564/(67081/(67600/(68121/(68644/(69169/(69696/(70225/(70756/(71289/(71824/
(72361/(72900/(73441/(73984/(74529/(75076/(75625/(76176/(76729/(77284/(77841/(78400/(78961/(79524/
(80089/(80656/(81225/(81796/(82369/(82944/(83521/(84100/(84681/(85264/(85849/(86436/(87025/(87616/
(88209/(88804/(89401/(90000/(90601/(91204/(91809/(92416/(93025/(93636/(94249/(94864/(95481/(96100/
(96721/(97344/(97969/(98596/(99225/(99856/(100489/(101124/(101761/(102400/(103041/(103684/(104329/
(104976/(105625/(106276/(106929/(107584/(108241/(108900/(109561/(110224/(110889/(111556/(112225/
(112896/(113569/(114244/(114921/(115600/(116281/(116964/(117649/(118336/(119025/(119716/(120409/
(121104/(121801/(122500/(123201/(123904/(124609/(125316/(126025/(126736/(127449/(128164/(128881/
(129600/(130321/(131044/(131769/(132496/(133225/(133956/(134689/(135424/(136161/(136900/(137641/
(138384/(139129/(139876/(140625/(141376/(142129/(142884/(143641/(144400/(145161/(145924/(146689/
(147456/(148225/(148996/(149769/(150544/(151321/(152100/(152881/(153664/(154449/(155236/(156025/
(156816/(157609/(158404/(159201/(160000/(160801/(161604/(162409/(163216/(164025/(164836/(165649/
(166464/(167281/(168100/(168921/(169744/(170569/(171396/(172225/(173056/(173889/(174724/(175561/
(176400/(177241/(178084/(178929/(179776/(180625/(181476/(182329/(183184/(184041/(184900/(185761/
(186624/(187489/(188356/(189225/(190096/(190969/(191844/(192721/(193600/(194481/(195364/(196249/
(197136/(198025/(198916/(199809/(200704/(201601/(202500/(203401/(204304/(205209/(206116/(207025/
(207936/(208849/(209764/(210681/(211600/(212521/(213444/(214369/(215296/(216225/(217156/(218089/
(219024/(219961/(220900/(221841/(222784/(223729/(224676/(225625/(226576/(227529/(228484/(229441/
(230400/(231361/(232324/(233289/(234256/(235225/(236196/(237169/(238144/(239121/(240100/(241081/
(242064/(243049/(244036/(245025/(246016/(247009/(248004/(249001/(250000/(251001/(252004/(253009/
(254016/(255025/(256036/(257049/(258064/(259081/(260100/(261121/(262144/(263169/(264196/(265225/
(266256/(267289/(268324/(269361/(270400/(271441/(272484/(273529/(274576/(275625/(276676/(277729/
(278784/(279841/(280900/(281961/(283024/(284089/(285156/(286225/(287296/(288369/(289444/(290521/
(291600/(292681/(293764/(294849/(295936/(297025/(298116/(299209/(300304/(301401/(302500/(303601/
(304704/(305809/(306916/(308025/(309136/(310249/(311364/(312481/(313600/(314721/(315844/(316969/
(318096/(319225/(320356/(321489/(322624/(323761/(324900/(326041/(327184/(328329/(329476/(330625/
(331776/(332929/(334084/(335241/(336400/(337561/(338724/(339889/(341056/(342225/(343396/(344569/
(345744/(346921/(348100/(349281/(350464/(351649/(352836/(354025/(355216/(356409/(357604/(358801/
(360000/(361201/(362404/(363609/(364816/(366025/(367236/(368449/(369664/(370881/(372100/(373321/
(374544/(375769/(376996/(378225/(379456/(380689/(381924/(383161/(384400/(385641/(386884/(388129/
(389376/(390625/(391876/(393129/(394384/(395641/(396900/(398161/(399424/(400689/(401956/(403225/
(404496/(405769/(407044/(408321/(409600/(410881/(412164/(413449/(414736/(416025/(417316/(418609/
(419904/(421201/(422500/(423801/(425104/(426409/(427716/(429025/(430336/(431649/(432964/(434281/
(435600/(436921/(438244/(439569/(440896/(442225/(443556/
(444889/835+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672
)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668
)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+267
2)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+66
8)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+26
72)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+6
68)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2
672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+
668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+
2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)
+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)
+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672
)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668
)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+267
2)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+66
8)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+26
72)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+6
68)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2
672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+
668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+
2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)
+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)
+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672
)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668
)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+267
2)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+66
8)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+26
72)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+6
68)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2
672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+
668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+
2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)
+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)
+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672
)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668)+2672)+668
)+2672)+668)+2672)+668)+2672)+668)+2672))*4'
EXPAND
-->
209825968201627626286623454595828256626709353294427565693247490908723674963328
437446737220228925859354323920568231930674733184239295858288420011592440669384
872031012213258537332909445846000903747665658888180242434346594380978304852173
052403372808186145692544868234515711423406188811364772876865637765490919076434
392771210399189504646019426036882136493770586097156188551653562529227766165281
757151724133041036460071532563393677368044337870650100262757747252991375882380
250620201017085686160848392397092831545551473286217654554917628548452574061153
069975606948031055019988881584904506395644140050798077890023084451291894497326
051903961793213476739142633750444261417276165846644921102222993269581502224908
997341571378437977195178421097830535179345748645267789093772601974921499991845
401937587852170647321448405827097658859639498298473057686922497943250306778251
041916305052893735026021428385807394291381395492996962793986222406725018359953
072078004002223662842307399263336028649795843721429601453448755585367626557498
760685012488702797279250113419102483986306543454752334763491632369843706569991
047137574804721539328768935056574597269592669763395749629148319846053893268546
966267252153515482975568525561183612983615350523775562374113789568264561165733
980089432434864965104974017069056/
667896800566637703395851118513503626141262321582626289553702325261623907354572
438254043502004959002868854942975857307918561401611054958654114240264009515552
200923163423327214742168578084961721459667457020661333684638926852020031848136
506591215222804140858795351641744040655966457807513342355269848746467904921756
092395537006240650450942873367057350825035314920399047941757674877322573778408
806778939307044804124356789509459360093717241638776925160070406891674464351926
499274636660943669592601023521686228225528199716726528231684826695828870347304
536961944452922511457510213498499968525892553651189414843449897338673657505718
626141672674142307483362631546562482632710881847919379078547871416496195345019
159779507094766464828561525894215976515907672692661978234580958904825570303785
429435771125352380855627325739133377789931371074249342603954029828721762250029
731123836036730436729508866487381850274816327061567345996978616965553971425079
225277549473507787885520688837580635372146777114593848029172095673038532289136
146665525606818535828272746221383566300894538111563291705413589743201178836426
902316517664023633837107436210497878988982635420985619424857564520193944361919
714122045000936522301890676982272649077234522014303978345842413157035790893429
82462406016044012038707143579375
1000 SWAP
FXND DUP SIZE R->I ALOG OVER - PICK3 * SWAP IQUOT + ->STR DUP HEAD -51
FC? { "." } { "," } IFTE + SWAP TAIL + 1 ROT 2 + SUB
EVAL
-->
3.1415926535897932384626433832795028841971693993751058209749445923078164062862
089986280348253421170679821480865132823066470938446095505822317253594081284811
174502841027019385211055596446229489549303819644288109756659334461284756482337
867831652712019091456485669234603486104543266482133936072602491412737245870066
063155881748815209209628292540917153643678925903600113305305488204665213841469
519415116094330572703657595919530921861173819326117931051185480744623799627495
673518857527248912279381830119491298336733624406566430860213949463952247371907
021798609437027705392171762931767523846748184676694051320005681271452635608277
857713427577896091736371787214684409012249534301465495853710507922796892589235
420199561121290219608640344181598136297747713099605187072113499999983729780499
510597317328160963185950244594553469083026425223082533446850352619311881710100
031378387528865875332083814206171776691473035982534904287554687311595628638823
537875937519577818577805321712268066130019278766111959092164201989
Edited to (try to) fix some formatting