Difference between revisions of "QRDecomposition Command"

From GeoGebra Manual
Jump to: navigation, search
(Created page with "<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|vector-matrix}} ==CAS Syntax== ;QRDecomposition( <Matrix> ) :Calculates the w:QR_decomposition|QR decomp...")
 
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
 
;QRDecomposition( <Matrix> )
 
;QRDecomposition( <Matrix> )
 
:Calculates the [[w:QR_decomposition|QR decomposition]] of the given matrix.
 
:Calculates the [[w:QR_decomposition|QR decomposition]] of the given matrix.
:{{example|1=<code><nowiki>QRDecomposition({{1,2},{3,4}})</nowiki></code> yields {{1/√10,3/5/(√10/5)},{3/√10,-1/5/(√10/5)}},{{√10,7/5*√10},{0,√10/5}}. }}
+
:{{example|1=<code><nowiki>QRDecomposition({{1,2},{3,4}})</nowiki></code> returns the matrices <math>\begin{pmatrix}1/\sqrt{10}&3/5/\sqrt{10}/5\\3/\sqrt{10}&1/5/\sqrt{10}/5\end{pmatrix}</math> and <math>\begin{pmatrix}\sqrt{10}&7/5\sqrt{10}\\0&\sqrt{10}/5\end{pmatrix}</math>.}}
 +
 
  
 
{{note|1=See also [[LUDecomposition_Command|LUDecomposition]] command.}}
 
{{note|1=See also [[LUDecomposition_Command|LUDecomposition]] command.}}

Latest revision as of 15:28, 2 May 2023


CAS Syntax

QRDecomposition( <Matrix> )
Calculates the QR decomposition of the given matrix.
Example: QRDecomposition({{1,2},{3,4}}) returns the matrices \begin{pmatrix}1/\sqrt{10}&3/5/\sqrt{10}/5\\3/\sqrt{10}&1/5/\sqrt{10}/5\end{pmatrix} and \begin{pmatrix}\sqrt{10}&7/5\sqrt{10}\\0&\sqrt{10}/5\end{pmatrix}.


Note: See also LUDecomposition command.
© 2024 International GeoGebra Institute