Previous Up Next

6.2.1  Array of values of a sequence

The tablefunc command fills two columns of a spreadsheet with a table of values of a function. The spreadsheet can be opened with Alt+T (see Section 2.10).

Example

To display the values of the sequence un=sin(n), select a cell of a spreadsheet (for example C0) and input tablefunc(sin(n),n,0,1) in the spreadsheet commandline. You get:

rowCD
 nsin(n)
 00.0
 10.841470984808
 20.909297426826
 30.14112000806
 4−0.756802495308
 

The graphic representation may be plotted with the plotfunc command (see 19.2.1).


Previous Up Next