Previous Up Next

6.2.3  Table of values and graph of a recurrent sequence

The tableseq command fills a column of a spreadsheet with a recurrence relation. The spreadsheet can be opened with Alt+T (see Section 2.10).

tableseq takes three arguments, which can be different depending on how many terms are involved in the recurrence relation.

Examples

To display the values of the sequence u0=3.5, un+1=sin(un), select a cell of the spreadsheet, say B0, and input tableseq(sin(x),x,3.5) in the command line. By pressing Enter, The corresponding column of the spreadsheet is filled with the recurrence relation and an initial portion of the sequence:

rowB
0sin(x)
1x
23.5
3−0.35078322769
4−0.343633444925
5−0.336910330426

To display the values of the Fibonacci sequence u0=1, u1=1,…, un+2=un+un+1, select a cell, say B0, and input tableseq(x+y,[x,y],[1,1]) in the commandline. You get:

rowB
0x+y
1x
2y
31
41
52

Previous Up Next