Calculating the value of e: Difference between revisions

m
→‎{{header|raku}}: minor simplification
imported>Maxima enthusiast
No edit summary
m (→‎{{header|raku}}: minor simplification)
Line 3,483:
=={{header|Raku}}==
(formerly Perl 6)
{{works with|Rakudo|20222023.0709}}
<syntaxhighlight lang="raku" line># If you need high precision: Sum of a Taylor series method.
# Adjust the terms parameter to suit. Theoretically the
Line 3,489:
# series takes an awfully long time so limit to 500.
 
constant 𝑒 = [\+] 1.FatRat X/flat 1, |[\*/] 1.FatRat..*;
 
.say for 𝑒[500].comb(80);
1,934

edits