Subversion Repositories wimsdev

Rev

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

!goto $wims_read_parm

:def
title=Rank
synonyme=matrix rank, rank of matrix
input=matrix
!exit

:proc

result=!exec pari matrank([$mat])
!exit

:output
!set pars=$[max(min($rows,10),1)]
<center>
<table border="0" cellpadding="2">
!for i=1 to $rows
 !set l=!line $i of $formula
 <tr>
 !if $i=1
  <td nowrap rowspan="$rows">rank $(m_leftpar$pars)
 !endif
 !for j=1 to $cols
  !set k=!item $j of $l
  <td nowrap align="center">$k
 !next j
 !if $i=1
  <td nowrap rowspan="$rows">$(m_rightpar$pars) = $result
 !endif
!next i

</table></center>
!exit