Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Problem 1289. Evaluating continued fractions

Created by Tim

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.

Problem Group

Solution Statistics

19 correct solutions 21 incorrect solutions
Last solution submitted on Aug 01, 2014

Solution Comments