Rev 3264 | Rev 3460 | 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 |
3263 | bpr | 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 |
||
3264 | bpr | 32 | row([1,3],1,2,3<br>3,4,5<br>5,6,7) |
33 | the submatrix of the 3×3 matrix consisting of the first and the last rows |
||
3263 | bpr | 34 | :row |
35 | 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' |
||
37 | :randomitem |
||
38 | randomitem(\list) |
||
39 | a random item of (comma-separated) \list. |
||
40 | :randomrow |
||
41 | randomrow(\mat) |
||
42 | a random row of the matrix \mat. |
||
43 | :column |
||
44 | column(2,\m) |
||
45 | items of column number 2 of the matrix \m, as a comma-separated list (same as <tt>\m[;2]</tt>) |
||
46 | :column |
||
47 | column(2..5,\m) |
||
48 | the submatrix of \m consisting of columns number 2 to 5 (same as <tt>\m[;2..5]</tt>) |
||
49 | :column |
||
50 | column([1,3],1,2,3<br>3,4,5<br>5,6,7) |
||
51 | the submatrix of the 3×3 matrix consisting of the first and the last columns |
||
52 | :asis |
||
53 | asis(How do you do? item(1,2,3)) |
||
54 | the string as it is, protected from transformations and conditionality. |
||
55 | :htmlmath |
||
56 | htmlmath(2*x^2+3*x) |
||
57 | the best possible way to render the expressionin html way: 2x<sup>2</sup>+3x |
||
58 | :texmath |
||
59 | texmath(2*x^2+3*x) |
||
60 | the TeX source of the expression |