Cody

Problem 897. Finite Continued Fraction

Given 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];

Solution Stats

44.04% Correct | 55.96% Incorrect
Last Solution submitted on Mar 01, 2020

Problem Comments

Problem Recent Solvers28

Suggested Problems

Problem Tags