Subversion Repositories wimsdev

Rev

Rev 3282 | Rev 4091 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3263 bpr 1
:Data and list manipulation
3264 bpr 2
:Function,Example,Effect
3460 bpr 3
:items( )
3263 bpr 4
items(a,b,c,d,e,f)
5
the number of items (here it's 6) in the list {a,b,c,d,e,f}
3460 bpr 6
:item( )
3263 bpr 7
item(3,a,b,c,d,e,f)
3460 bpr 8
item number 3 of the list {a,b,c,d,e,f} (hence c) ; <tt>item(3,\ll)</tt> is the item number 3 of the list \ll (same as <tt>\ll[3]</tt>)
9
:item( .. , )
3263 bpr 10
item(2..5,a,b,c,d,e,f)
11
items number 2 to 5 of the list {a,b,c,d,e,f} (hence b,c,d,e)
3460 bpr 12
:item([ , ], )
3263 bpr 13
item([2,4],\ll)
14
items number 2 and 4 of the list \ll (same as <tt>\ll[2,4]</tt>)
3460 bpr 15
:position( )
3263 bpr 16
position(make,do,go,make,take)
3460 bpr 17
number of position of the item `make' in the list {do,go,make,take} (hence 3)
18
:rows( )
3263 bpr 19
rows(\m)
20
the number of rows in the matrix \m
3460 bpr 21
:row( , )
3263 bpr 22
row(2,\m)
23
row number 2 of the matrix \m (same as <tt>\m[2;]</tt>)
3460 bpr 24
:row( .. , )
3263 bpr 25
row(2..5,\m)
26
the submatrix of \m consisting of rows number 2 to 5 (same as <tt>\m[2..5;]</tt>)
3460 bpr 27
:row([ , ], )
3264 bpr 28
row([1,3],1,2,3<br>3,4,5<br>5,6,7) 
29
the submatrix of the 3&times;3 matrix consisting of the first  and the last rows
3460 bpr 30
:row(   , )
3263 bpr 31
row(column 1 > 1 and column 2 = good,\mat)
32
the submatrix of \mat consisting of rows where column 1 is > 1 and column 2 is the word `good'
3460 bpr 33
:randomitem( )
3263 bpr 34
randomitem(\list)
35
a random item of (comma-separated) \list.
3460 bpr 36
:randomrow( )
3263 bpr 37
randomrow(\mat)
38
a random row of the matrix \mat.
3460 bpr 39
:column( , )
3263 bpr 40
column(2,\m)
41
items of column number 2 of the matrix \m, as a comma-separated list (same as <tt>\m[;2]</tt>)
3460 bpr 42
:column( .. , )
3263 bpr 43
column(2..5,\m)
44
the submatrix of \m consisting of columns number 2 to 5 (same as <tt>\m[;2..5]</tt>)
3460 bpr 45
:column([ , ], )
3263 bpr 46
column([1,3],1,2,3<br>3,4,5<br>5,6,7)
47
the submatrix of the 3&times;3 matrix consisting of the first  and the last columns
3460 bpr 48
:asis( )
3263 bpr 49
asis(How do you do? item(1,2,3))
50
the string as it is, protected from transformations and conditionality.
3460 bpr 51
:htmlmath( )
3263 bpr 52
htmlmath(2*x^2+3*x)
53
the best possible way to render the expressionin html way: 2x<sup>2</sup>+3x
3460 bpr 54
:texmath( )
3263 bpr 55
texmath(2*x^2+3*x)
56
the TeX source of the expression