Difference between revisions of "MatrixRank Command"
From GeoGebra Manual
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>}} |
− | = | + | {{hint|1= |
− | + | 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>}} | |
− | :{{ | + | }} |
− | |||
− | |||
− |
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.
Hint: In the CAS View this command also works with undefinde variables.
- Example:
MatrixRank[{{1, 2}, {k*1, k*2}}]
yields 1.