Difference between revisions of "SVD Command"
From GeoGebra Manual
m (fix link) |
m (Text replace - ";(.*)\[(.*)\]" to ";$1($2)") |
||
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|vector-matrix}} | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|vector-matrix}} | ||
− | ;SVD | + | ;SVD( <Matrix> ) |
:Returns the [[w:Singular_value_decomposition | Singular Value Decomposition]] of the matrix (as a list of 3 matrices). | :Returns the [[w:Singular_value_decomposition | Singular Value Decomposition]] of the matrix (as a list of 3 matrices). | ||
:{{example|1=<div><code><nowiki>SVD[{{3, 1, 1}, {-1, 3, 1}}]</nowiki></code> yields a list containing <math> \left(\begin{array}{}-0.71&0.71\\0.71&0.71\\\end{array}\right) </math>, <math> \left(\begin{array}{}3.16&0\\0&3.46\\\end{array}\right)</math>, <math>\left(\begin{array}{}-0.89&0.41\\0.45&0.82\\0&0.41\\\end{array}\right)</math>.</div>}} | :{{example|1=<div><code><nowiki>SVD[{{3, 1, 1}, {-1, 3, 1}}]</nowiki></code> yields a list containing <math> \left(\begin{array}{}-0.71&0.71\\0.71&0.71\\\end{array}\right) </math>, <math> \left(\begin{array}{}3.16&0\\0&3.46\\\end{array}\right)</math>, <math>\left(\begin{array}{}-0.89&0.41\\0.45&0.82\\0&0.41\\\end{array}\right)</math>.</div>}} | ||
{{note|1=This command is also supported in the [[File:Menu view cas.svg|link=|16px]] [[CAS View]]. The numbers in the answer may vary in order between the [[File:Menu view algebra.svg|link=|16px]] ''Algebra View'' and [[File:Menu view cas.svg|link=|16px]] ''CAS View''.}} | {{note|1=This command is also supported in the [[File:Menu view cas.svg|link=|16px]] [[CAS View]]. The numbers in the answer may vary in order between the [[File:Menu view algebra.svg|link=|16px]] ''Algebra View'' and [[File:Menu view cas.svg|link=|16px]] ''CAS View''.}} |
Revision as of 17:15, 7 October 2017
- SVD( <Matrix> )
- Returns the Singular Value Decomposition of the matrix (as a list of 3 matrices).
- Example:
SVD[{{3, 1, 1}, {-1, 3, 1}}]
yields a list containing \left(\begin{array}{}-0.71&0.71\\0.71&0.71\\\end{array}\right) , \left(\begin{array}{}3.16&0\\0&3.46\\\end{array}\right), \left(\begin{array}{}-0.89&0.41\\0.45&0.82\\0&0.41\\\end{array}\right).
Note: This command is also supported in the CAS View. The numbers in the answer may vary in order between the Algebra View and CAS View.