Subversion Repositories wimsdev

Rev

Rev 2071 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2071 zjchen 1
!goto $wims_read_parm
2
 
3
:def
4
title=Rank
5
synonyme=matrix rank, rank of matrix
6
input=matrix
7
!exit
8
 
9
:proc
10
 
11
result=!exec pari matrank([$mat])
12
!exit
13
 
14
:output
15
!set pars=$[max(min($rows,10),1)]
16
<center>
3900 bpr 17
<table border="0" cellpadding="2">
2071 zjchen 18
!for i=1 to $rows
19
 !set l=!line $i of $formula
20
 <tr>
21
 !if $i=1
3900 bpr 22
  <td nowrap rowspan="$rows">rank $(m_leftpar$pars)
2071 zjchen 23
 !endif
24
 !for j=1 to $cols
25
  !set k=!item $j of $l
3900 bpr 26
  <td nowrap align="center">$k
2071 zjchen 27
 !next j
28
 !if $i=1
3900 bpr 29
  <td nowrap rowspan="$rows">$(m_rightpar$pars) = $result
2071 zjchen 30
 !endif
31
!next i
32
 
33
</table></center>
34
!exit
35