Difference between revisions of "MatrixRank Command"
From GeoGebra Manual
m (typo) |
|||
(6 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version= | + | <noinclude>{{Manual Page|version=5.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude> |
{{command|vector-matrix}} | {{command|vector-matrix}} | ||
− | ;MatrixRank | + | ;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> |
− | :* <code><nowiki>MatrixRank | + | :* <code><nowiki>MatrixRank({{2, 2}, {1, 1}})</nowiki></code> yields ''1''. |
− | :* <code><nowiki>MatrixRank | + | :* <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 undefined variables. | |
− | :* <code><nowiki> | + | :{{example|<div><code><nowiki>MatrixRank({{1, 2}, {k*1, k*2}})</nowiki></code> yields ''1''.</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.
Hint: In the CAS View this command also works with undefined variables.
- Example:
MatrixRank({{1, 2}, {k*1, k*2}})
yields 1.