Jump to content

Calculating the value of e: Difference between revisions

Added outline of a spigot algorithm for EDSAC, referring to task "Pi" for details.
(Added outline of a spigot algorithm for EDSAC, referring to task "Pi" for details.)
Line 993:
516445078182442352948636372141740238893441247963
5743702637552944483379980144
</pre>
===Spigot algorithm===
The EDSAC program to calculate pi by means of a spigot algorithm is easily modified to calculate e. It will then output 2070 correct digits of e (though it outputs only 252 correct digits of pi). Details will be found under the task "Pi".
<lang edsac>
[Code not given, as it is almost the same as the EDSAC spigot algorithm for pi.
See the task "Pi" for the EDSAC program and the changes needed to calculate e.]
</lang>
{{out}}
<pre>
2718281828459045235360287471352662497757247093699959574966967627724076630353547594571382178525166427
4274663919320030599218174135966290435729003342952605956307381323286279434907632338298807531952510190
1157383418793070215408914993488416750924476146066808226480016847741185374234544243710753907774499206
9551702761838606261331384583000752044933826560297606737113200709328709127443747047230696977209310141
6928368190255151086574637721112523897844250569536967707854499699679468644549059879316368892300987931
2773617821542499922957635148220826989519366803318252886939849646510582093923982948879332036250944311
7301238197068416140397019837679320683282376464804295311802328782509819455815301756717361332069811250
9961818815930416903515988885193458072738667385894228792284998920868058257492796104841984443634632449
6848756023362482704197862320900216099023530436994184914631409343173814364054625315209618369088870701
6768396424378140592714563549061303107208510383750510115747704171898610687396965521267154688957035035
4021234078498193343210681701210056278802351930332247450158539047304199577770935036604169973297250886
8769664035557071622684471625607988265178713419512466520103059212366771943252786753985589448969709640
9754591856956380236370162112047742722836489613422516445078182442352948636372141740238893441247963574
3702637552944483379980161254922785092577825620926226483262779333865664816277251640191059004916449982
8931505660472580277863186415519565324425869829469593080191529872117255634754639644791014590409058629
8496791287406870504895858671747985466775757320568128845920541334053922000113786300945560688166740016
9842055804033637953764520304024322566135278369511778838638744396625322498506549958862342818997077332
7617178392803494650143455889707194258639877275471096295374152111513683506275260232648472870392076431
0059584116612054529703023647254929666938115137322753645098889031360205724817658511806303644281231496
5507047510254465011727211555194866850800368532281831521960037356252794495158284188294787610852639813
9559900673764829224437528718462457803619298197139914756448826260390338
</pre>
 
113

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.