Difference between revisions of "MatrixRank Command"

From GeoGebra Manual
Jump to: navigation, search
m (changed description of CAS syntax)
m (command syntax: changed [ ] into ( ))
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=5.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 
<noinclude>{{Manual Page|version=5.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 
{{command|vector-matrix}}
 
{{command|vector-matrix}}
;MatrixRank[ <Matrix> ]
+
;MatrixRank( <Matrix> )
 
: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>}}
  
 
{{hint|1=
 
{{hint|1=
 
In the [[File:Menu view cas.svg|link=|16px]] [[CAS View]] this command also works with undefinde variables.
 
In the [[File:Menu view cas.svg|link=|16px]] [[CAS View]] this command also works with undefinde variables.
:{{example|<div><code><nowiki>MatrixRank[{{1, 2}, {k*1,  k*2}}]</nowiki></code>  yields ''1''.</div>}}
+
:{{example|<div><code><nowiki>MatrixRank({{1, 2}, {k*1,  k*2}})</nowiki></code>  yields ''1''.</div>}}
 
}}
 
}}

Revision as of 17:37, 29 September 2017


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