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.
not a bad idea but...
try this:
function ans = contfrac(c)
%%
c(:,1);
if size(c,2)>1
ans + 1./contfrac(c(:,2:end));
end
how can i see this??
Which values occur exactly three times?
3306 Solvers
Find state names that start with the letter N
465 Solvers
140 Solvers
285 Solvers
309 Solvers
Solution 400202
just to test the function
%José Ramón Menzinger's Solution