Rev 4091 | Rev 5903 | 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) |
4091 | bpr | 8 | item number 3 of the list {a,b,c,d,e,f} (hence c) ; <tt class="wims_code_words">item(3,\ll)</tt> is the item number 3 of the list \ll (same as <tt class="wims_code_variable">\ll[3]</tt>) |
3460 | bpr | 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) |
4091 | bpr | 14 | items number 2 and 4 of the list \ll (same as <tt class="wims_code_variable">\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) |
4091 | bpr | 23 | row number 2 of the matrix \m (same as <tt class="wims_code_variable">\m[2;]</tt>) |
3460 | bpr | 24 | :row( .. , ) |
3263 | bpr | 25 | row(2..5,\m) |
4091 | bpr | 26 | the submatrix of \m consisting of rows number 2 to 5 (same as <tt class="wims_code_variable">\m[2..5;]</tt>) |
3460 | bpr | 27 | :row([ , ], ) |
5755 | bpr | 28 | row([1,3],1,2,3<br/>3,4,5<br/>5,6,7) |
3264 | bpr | 29 | the submatrix of the 3×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) |
4091 | bpr | 41 | items of column number 2 of the matrix \m, as a comma-separated list (same as <tt class="wims_code_variable">\m[;2]</tt>) |
3460 | bpr | 42 | :column( .. , ) |
3263 | bpr | 43 | column(2..5,\m) |
4091 | bpr | 44 | the submatrix of \m consisting of columns number 2 to 5 (same as <tt class="wims_code_variable">\m[;2..5]</tt>) |
3460 | bpr | 45 | :column([ , ], ) |
5755 | bpr | 46 | column([1,3],1,2,3<br/>3,4,5<br/>5,6,7) |
3263 | bpr | 47 | the submatrix of the 3×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 |