Subversion Repositories wimsdev

Rev

Rev 3282 | Rev 4091 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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