MATLAB_Convergence Help

Description:

MATLAB_Convergence is a graphical user interface (GUI) that illustrates the key features of the definition of a convergent sequence.

To use the GUI, you must first input a sequence, or use the preset sequence (1
3)n for n a natural number. To input the sequence, simply click on the appropriate input box and input the sequence using MATLAB notation. For example, the sequence (1
3)n for n a natural number in MATLAB notation is (1/3)^n

or the sequence e-n, n a natural number, in MATLAB is written as exp(-n)


PIC

Figure 1: Sequence inputted using MATLAB Notation


Recall that the definition of convergence requires you to know what the limit should be before checking the definition. Hence, the second feature of the GUI is a plotting utility in order to gain intuition about what the limit should be in the definition of convergence. To use the plotting utility in the GUI, input two natural numbers and click Plot. The GUI will plot all the terms of sequence between the two inputed natural numbers. WARNING: You may need to plot the sequence between two very large natural numbers to pinpoint a potential limit, or ‘worse’ maybe the plot is signaling the sequence diverges!

Once you have a candidate for the limit, use the third feature of GUI to find the ‘N’ in the definition of convergence for a given epsilon. Furthermore, GUI will output a plot that shows how all the terms in the sequence past N are within epsilon of the limit.


PIC

Figure 2: Output after clicking Find N


To reset the GUI, click the ‘Reset’ button.