Array of values of a sequence : tablefunc

### 4.13.1 Array of values of a sequence : tablefunc

tablefunc is a command that should be used inside a spreadsheet (opened with Alt+t), it returns a template to fill two columns, with the table of values of a function. If the step value is 1, tablefunc(ex,n,n0,1), where ex is an expression depending on n, will fill the spreadsheet with the values of the sequence un=ex for n=n0, n0+1, n0+2,.....

Example : display the values of the sequence un=sin(n)
Select a cell of a spreadsheet (for example C0) and input in the command line :

tablefunc(sin(n),n,0,1)

Output :

two columns : n and sin(n)

- in the column C: the variable name n, the value of the step (this value should be equal to 1 for a sequence), the value of n0 (here 0), then a recurrence formula (C2+C$1, ...).
- in the column D: sin(n), "Tablefunc", then a recurrence formula.
- For each row, the values of the sequence un=sin(n) correspond to the values of n starting from n=n0 (here 0).