Question: Help!!! Rang Matrix

Hello to evereybody!! I'm newbie with Maple and I've to do a program that calculates the rank of a Matrix, I can't use the comand rank or similar. I think it's something like: repeat If det(A) =/= 0 then rang := nº rows else reduce(a) until rows=1 or det(a) =/= 0 But i don't know how to codificate it in maple!! Help!!! Thanks for reading my problem... Sorry...If my english is bad i'm not from England or Usa
Please Wait...