Previous Up Next

6.13.4  Table of values and graph of a recurrent sequence: tableseq

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

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

For a one term recurrence relation:


Example. Display the values of the sequence u0=3.5, un+1=sin(un)
Select a cell of the spreadsheet (for example B0) and input in the command line:

tableseq(sin(x),x,3.5)

Output:

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


More generally, for a recurrence relation where each term depends on the previous k terms:


Example.
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])

Output:

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

Previous Up Next