for loop continued fraction
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
i want use for loop this problem
the problem is 

what do i do?
x(n)=1+1/x(n-1) ?
i'm in tutorial line, so please explain easy
2 comentarios
Kevin Phung
el 29 de Mayo de 2019
What exactly is happening in each iteration? The picture is a bit confusing.
are you trying to do 1 + (1/1+n)?
Star Strider
el 29 de Mayo de 2019
Experiment with it to get the result you want.
Respuestas (1)
James Tursa
el 29 de Mayo de 2019
Yes, you can use the formula x(n) = 1 + 1/x(n-1) if you want to use a loop. Just start with x(1) = 1.
0 comentarios
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!