output::tableForm -- printing
objects in table form
Introductionoutput::tableForm(obj) prints the object
obj in table form.
Call(s)output::tableForm(object <, seperator> <,
options>)
Parametersobject |
- | list or set of any MuPAD objects |
seperator |
- | string between columns |
options |
- | one single option or a set of options |
OptionsUnquoted |
- | strings will be printed without quotes |
Unique |
- | all columns are of the same width |
Left, Center, Right |
- | the entries will be aligned left, center or right |
Sort=
procedure |
- | the entries will be sorted |
Output= file |
- | Output into a file. |
Returnsno return value
Related
Functionsoutput::tree, print, fopen, fprint, fclose
Detailsoutput::tableForm prints the elements of the given
object in table form. The width of the table depends on the size of
TEXTWIDTH. The width
of a column depends on the widest entry in this column.seperator is given then it is appended to each
object. Appending spaces to the separator results additionally space
between columns. By default the separator is one space.
Option: Unquotedfprint will be calles with the option
Unquoted. E. g. strings will be printed
without quotes.
Option: Unique
Option: Left, Center, Right
Option: Sort = procedure
Option: Output = filefile is a string, a file named
file will be opened and overwritten and closed after
writing. If file is a file descriptor the table will be
appended to file without closing file.
Example
1>> output::tableForm(anames(DOM_DOMAIN))
ClientObject DOM_ARRAY DOM_BOOL DOM_COMPLEX
DOM_DOMAIN DOM_EXEC DOM_EXPR DOM_FAIL
DOM_FLOAT DOM_FUNC_ENV DOM_IDENT DOM_INT
DOM_LIST DOM_NIL DOM_NULL DOM_POINT
DOM_POLY DOM_POLYGON DOM_PROC DOM_PROC_ENV
DOM_RAT DOM_SET DOM_STRING DOM_TABLE
DOM_VAR Plot Pref misc
output plot polylib specfunc
stdlib
>> output::tableForm(map(anames(DOM_DOMAIN), expr2text), " ", {Unique, Center})
"ClientObject" "DOM_ARRAY" "DOM_BOOL"
"DOM_COMPLEX" "DOM_DOMAIN" "DOM_EXEC"
"DOM_EXPR" "DOM_FAIL" "DOM_FLOAT"
"DOM_FUNC_ENV" "DOM_IDENT" "DOM_INT"
"DOM_LIST" "DOM_NIL" "DOM_NULL"
"DOM_POINT" "DOM_POLY" "DOM_POLYGON"
"DOM_PROC" "DOM_PROC_ENV" "DOM_RAT"
"DOM_SET" "DOM_STRING" "DOM_TABLE"
"DOM_VAR" "Plot" "Pref"
"misc" "output" "plot"
"polylib" "specfunc" "stdlib"
>> output::tableForm(anames(DOM_DOMAIN), ", ", {Sort = FALSE, Right})
ClientObject, DOM_ARRAY, DOM_BOOL, DOM_COMPLEX,
DOM_DOMAIN, DOM_EXEC, DOM_EXPR, DOM_FAIL,
DOM_FLOAT, DOM_FUNC_ENV, DOM_IDENT, DOM_INT,
DOM_LIST, DOM_NIL, DOM_NULL, DOM_POINT,
DOM_POLY, DOM_POLYGON, DOM_PROC, DOM_PROC_ENV,
DOM_RAT, DOM_SET, DOM_STRING, DOM_TABLE,
DOM_VAR, Plot, Pref, misc,
output, plot, polylib, specfunc,
stdlib
misc::tableForm