Calculating the value of e: Difference between revisions
m
→{{header|J}}: slightly more readable
m (→{{header|J}}) |
m (→{{header|J}}: slightly more readable) |
||
Line 2,216:
2.71828
</pre>
This is a floating point value (and, thus, accurate to 16 decimal places (15 places after the decimal point, in this example)).
The unary power verb ^ uses Euler's number as the base, hence
Line 2,223 ⟶ 2,225:
</pre>
<pre>
NB. approximation to e as a rational number
Line 2,231 ⟶ 2,233:
NB. 31 places shown with 20 terms
2.718281828459045234928752728335
NB. 40 terms
2.718281828459045235360287471353
NB. 50 terms,
2.718281828459045235360287471353
|