Jump to content

Calculating the value of e: Difference between revisions

no edit summary
imported>Lacika7
mNo edit summary
imported>Maxima enthusiast
No edit summary
Line 2,810:
{{output}}
<pre>𝕖</pre>
 
=={{header|Maxima}}==
Using the expansion of an associated continued fraction
<syntaxhighlight lang="maxima">
block(cfexpand([2,1,2,1,1,4,1,1,6,1,1,8,1,1,10,1,1,12,1,1,14]),float(%%[1,1]/%%[2,1]));
 
/* Comparing with built-in constant */
%e,numer;
</syntaxhighlight>
{{out}}
<pre>
2.718281828459045
 
2.718281828459045
</pre>
 
=={{header|min}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.