Difference between revisions of "MatrixRank Command"

From GeoGebra Manual
Jump to: navigation, search
m (typo)
m (typo)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}[[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''.</div>}}
+
:* <code><nowiki>MatrixRank({{1, 2}, {3, 4}})</nowiki></code> yields ''2''.
==CAS Syntax==
+
:* 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>}}
;MatrixRank[ <Matrix> ]
+
 
:Returns the [[w:Rank_(linear_algebra)|rank]] of given matrix.
+
{{hint|1=
:{{examples| 1=<div>
+
In the [[File:Menu view cas.svg|link=|16px]] [[CAS View]] this command also works with undefined variables.
:* <code><nowiki>MatrixRank[{{2, 2}, {1, 1}}]</nowiki></code> yields ''1'',
+
:{{example|<div><code><nowiki>MatrixRank({{1, 2}, {k*1, k*2}})</nowiki></code> yields ''1''.</div>}}
:* <code><nowiki>MatrixRank[{{1, 2}, {3, 4}}]</nowiki></code> yields ''2''.</div>}}
+
}}

Latest revision as of 10:51, 8 July 2019


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 undefined variables.
Example:
MatrixRank({{1, 2}, {k*1, k*2}}) yields 1.
© 2024 International GeoGebra Institute