taytorat SciMax Toolbox tcontract

SciMax Toolbox >> tcl_output

tcl_output

Maxima Function

Calling Sequence

tcl_output (list, i0, skip)
tcl_output(list,i0)
tcl_output([list_1,...,list_n],i)

Description

Prints elements of a list enclosed by curly braces { }, suitable as part of a program in the Tcl/Tk language.

tcl_output (list, i0, skip) prints list, beginning with element i0 and printing elements i0 + skip, i0 + 2 skip, etc.

tcl_output (list, i0) is equivalent to tcl_output (list, i0, 2).

tcl_output ([list_1, ..., list_n], i) prints the i'th elements of list_1, ..., list_n.

Examples:

(%i1) tcl_output ([1, 2, 3, 4, 5, 6], 1, 3)$
 {1.000000000     4.000000000
 }
(%i2) tcl_output ([1, 2, 3, 4, 5, 6], 2, 3)$
 {2.000000000     5.000000000
 }
(%i3) tcl_output ([3/7, 5/9, 11/13, 13/17], 1)$
 {((RAT SIMP) 3 7) ((RAT SIMP) 11 13)
 }
(%i4) tcl_output ([x1, y1, x2, y2, x3, y3], 2)$
 {$Y1 $Y2 $Y3
 }
(%i5) tcl_output ([[1, 2, 3], [11, 22, 33]], 1)$
 {SIMP 1.000000000     11.00000000
 }
taytorat SciMax Toolbox tcontract