Combinations and permutations: Difference between revisions
m
→{{header|Raku}}: Fix comments: Perl 6 --> Raku
SqrtNegInf (talk | contribs) m (→{{header|Phix}}: Fix comment: Perl 6 --> Raku) |
SqrtNegInf (talk | contribs) m (→{{header|Raku}}: Fix comments: Perl 6 --> Raku) |
||
Line 1,816:
=={{header|Raku}}==
(formerly Perl 6)
<math>\ln n! \approx
\frac{1}{2}\ln(2\pi n) + n\ln\left(\frac{n}{e} + \frac{1}{12 e n}\right)</math>
Notice that
<lang perl6>multi P($n, $k) { [*] $n - $k + 1 .. $n }
|