Continued fraction: Difference between revisions

Content added Content deleted
(→‎{{header|Perl 6}}: not returning functions: evaluating to Inf inside the main function)
m (→‎{{header|Perl 6}}: better TeX formula)
Line 701: Line 701:
Or, more consistently:
Or, more consistently:


<math>\mathrm{CF}_3(x) = a_0 + \cfrac{b_0}{a_1 + \cfrac{b_1}{a_2 + \cfrac{b_2}{a_3 + \frac{b_3}{x}}}}</math>
<math>\mathrm{CF}_3(x) = a_0 + \cfrac{b_0}{a_1 + \cfrac{b_1}{a_2 + \cfrac{b_2}{a_3 + \cfrac{b_3}{x}}}}</math>


Viewed as such, <math>\mathrm{CF}_n(x)</math> could be written recursively:
Viewed as such, <math>\mathrm{CF}_n(x)</math> could be written recursively: