Sequences, Continued
Exercises
Write for-statements in m-files to solve following exercises.
Use format long.
- The recurrence equation
has two fixpoints
and
.
Write afor-statement to iterate the recurrence equation 10 times.
What happens if you start with
and
respectively?
What happens if you iterate 50 times? 100 times? - Write a recurrence equation for the continued fraction

Hint: it is easier to write a recurrence equation for the continued fraction plus 1.
- Find the limit of the recurrence equation by iterating in Octave.
- Find the exact value of the continued fraction by first finding the fixpoints of the recurrence equation you used in a and then subtracting 1.
further info:
by Malin Christersson under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 Sweden License