Continued fraction: Difference between revisions
m
Fix Perl6 -> Raku in comments
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
Thundergnat (talk | contribs) m (Fix Perl6 -> Raku in comments) |
||
Line 2,358:
where <math>f_n(x) = a_n + \frac{b_n}{x}</math>
<lang perl6>sub continued-fraction(@a, @b) {
map { .(Inf) }, [\o] map { @a[$_] + @b[$_] / * }, ^Inf
|