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

Learn moreOpportunities for recent engineering grads.

Apply TodayGiven an input real number x and a natural number n, output the row vector with the n first terms of the continued fraction. For more details, you could find help here: http://en.wikipedia.org/wiki/Continued_fraction

Example:

Inputs: x=pi; n = 10;

Output: y = [3 7 15 1 292 1 1 1 2 1];

41 correct solutions
57 incorrect solutions

Last solution submitted on Feb 17, 2016

1 player likes this problem

1 Comment