output::tableForm
-- printing
objects in table formoutput::tableForm(
obj)
prints the object
obj
in table form.
output::tableForm(object <, seperator> <,
options>)
object |
- | list or set of any MuPAD objects |
seperator |
- | string between columns |
options |
- | one single option or a set of options |
Unquoted |
- | 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. |
no return value
output::tree
, print
, fopen
, fprint
, fclose
output::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.fprint
will be calles with the option
Unquoted. E. g. strings will be printed
without quotes.file
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
.>> 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