Problem 1289. Evaluating continued fractions
Given row vector
c=[c0 c1 c2 c3 ...]
evaluate the continued fraction
x=c0+1/(c1+1/(c2+1/(c3+...)))
If c is a matrix, return column vector x in which x(i) is the solution for row i of c.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers52
Suggested Problems
-
Increment a number, given its digits
632 Solvers
-
224 Solvers
-
Back to basics 19 - character types
257 Solvers
-
Back to basics 25 - Valid variable names
318 Solvers
-
Replace multiples of 5 with NaN
426 Solvers
More from this Author10
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!