home *** CD-ROM | disk | FTP | other *** search
- 10.11 Tables of Function Values
-
- If you want to look at a table of values for a formula, you
- can use the table command:
-
- table(f(x), x)
- table(f(x), x from xmin to xmax)
- table(f(x), x from xmin to xmax step dx)
-
- It causes a table of values for f(x) to be displayed with x=xmin,
- xmin+dx, ..., xmax. If xmin, xmax, and step omit, then xmin=-5, xmax=5,
- and dx=1 for default. You can specify a function to be in table(),
- Example. Make a table of x^2.
- Input:
- table(x^2, x)
- end
- Output:
- -5, 25
- -4, 16
- -3, 9
- -2, 4
- : :
- : :
-
- Its output can be written into a disk file for interfacing
- with other software (e.g. the numeric computation software).
-