Rev 10294 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
10294 | bpr | 1 | <ul class="inline nopuce"> |
12987 | bpr | 2 | <li><table class="wimsborder"> |
3 | <caption>$addtable</caption> |
||
4 | <tr><td $opcolor>+</td> |
||
535 | bpr | 5 | !for j=0 to $q-1 |
12987 | bpr | 6 | <td $hdcolor>$(el$j)</td> |
535 | bpr | 7 | !next j |
8077 | bpr | 8 | </tr> |
535 | bpr | 9 | !for i=0 to $q-1 |
12987 | bpr | 10 | <tr><td $hdcolor>$(el$i)</td> |
11 | !for j=0 to $q-1 |
||
12 | !if $field=prime |
||
13 | !set t=!eval ($i+$j)%$q |
||
14 | !else |
||
15 | !set t=!item $i+1 of $(add$j) |
||
16 | !endif |
||
17 | <td>$(el$t)</td> |
||
18 | !next j |
||
19 | </tr> |
||
535 | bpr | 20 | !next i |
21 | </table> |
||
10294 | bpr | 22 | </li><li> |
23 | <table class="wimsborder"> |
||
24 | <caption>$multable</caption> |
||
8077 | bpr | 25 | <tr><td $opcolor>*</td> |
535 | bpr | 26 | !for j=0 to $q-1 |
12987 | bpr | 27 | <td $hdcolor>$(el$j)</td> |
535 | bpr | 28 | !next j |
8077 | bpr | 29 | </tr> |
535 | bpr | 30 | !for i=0 to $q-1 |
12987 | bpr | 31 | <tr><td $hdcolor>$(el$i)</td> |
32 | !for j=0 to $q-1 |
||
33 | <td> |
||
34 | !if $field=prime |
||
35 | !set t=!eval ($i*$j)%$q |
||
36 | !else |
||
37 | !set t=!item $i+1 of $(mul$j) |
||
38 | !endif |
||
39 | $(el$t) |
||
40 | </td> |
||
41 | !next j |
||
42 | </tr> |
||
535 | bpr | 43 | !next i |
8077 | bpr | 44 | </table> |
10294 | bpr | 45 | </li></ul> |