Subversion Repositories wimsdev

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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