Difference between revisions of "MatrixRank Command"

From GeoGebra Manual
Jump to: navigation, search
m
m (changed description of CAS syntax)
Line 4: Line 4:
 
:Returns the [[w:Rank_(linear_algebra)|rank]] of given matrix.
 
:Returns the [[w:Rank_(linear_algebra)|rank]] of given matrix.
 
:{{examples| 1=<div>
 
:{{examples| 1=<div>
:* <code><nowiki>MatrixRank[{{2, 2}, {1, 1}}]</nowiki></code> yields ''1'',
+
:* <code><nowiki>MatrixRank[{{2, 2}, {1, 1}}]</nowiki></code> yields ''1''.
:* <code><nowiki>MatrixRank[{{1, 2}, {3, 4}}]</nowiki></code> yields ''2'',
+
:* <code><nowiki>MatrixRank[{{1, 2}, {3, 4}}]</nowiki></code> yields ''2''.
:* let <code><nowiki>A = {{1, 2, 3}, {1, 1, 1}, {2, 2, 2}}</nowiki></code> be a 3x3-matrix, <code><nowiki>MatrixRank[A]</nowiki></code> yields ''2''.</div>}}
+
:* Let <code><nowiki>A = {{1, 2, 3}, {1, 1, 1}, {2, 2, 2}}</nowiki></code> be a 3x3-matrix. <code><nowiki>MatrixRank[A]</nowiki></code> yields ''2''.</div>}}
  
==CAS Syntax==
+
{{hint|1=
;MatrixRank[ <Matrix> ]
+
In the [[File:Menu view cas.svg|link=|16px]] [[CAS View]] this command also works with undefinde variables.
:Returns the [[w:Rank_(linear_algebra)|rank]] of given matrix.
+
:{{example|<div><code><nowiki>MatrixRank[{{1, 2}, {k*1,  k*2}}]</nowiki></code>  yields ''1''.</div>}}
:{{Examples|1=<div>
+
}}
:*<code><nowiki>MatrixRank[{{2, 2}, {1, 1}}]</nowiki></code> yields ''1'',
 
:*<code><nowiki>MatrixRank[{{1, 2}, {3, 4}}]</nowiki></code> yields ''2'',
 
:*<code><nowiki>MatrixRank[{{1, 2}, {k*1,  k*2}}]</nowiki></code>  yields ''1''.</div>}}
 

Revision as of 08:52, 27 August 2015


MatrixRank[ <Matrix> ]
Returns the rank of given matrix.
Examples:
  • MatrixRank[{{2, 2}, {1, 1}}] yields 1.
  • MatrixRank[{{1, 2}, {3, 4}}] yields 2.
  • Let A = {{1, 2, 3}, {1, 1, 1}, {2, 2, 2}} be a 3x3-matrix. MatrixRank[A] yields 2.


Note Hint: In the Menu view cas.svg CAS View this command also works with undefinde variables.
Example:
MatrixRank[{{1, 2}, {k*1, k*2}}] yields 1.
© 2024 International GeoGebra Institute