Previous Up Next

5.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 :


Output :

two columns : n and sin(n)

Previous Up Next