Difference between revisions of "LUDecomposition 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== ;LUDecomposition( <Matrix> ) :Calculates the w:LU_decomposition|LU decomp...")
 
 
Line 3: Line 3:
 
;LUDecomposition( <Matrix> )
 
;LUDecomposition( <Matrix> )
 
:Calculates the [[w:LU_decomposition|LU decomposition]] of the given matrix.
 
:Calculates the [[w:LU_decomposition|LU decomposition]] of the given matrix.
:{{example|1=<code><nowiki>LUDecomposition({{1,0},{0,1}})</nowiki></code> yields {{{1,0},{0,1}},{{1,0},{3,1}},{{1,2},{0,-2}}}. }}
+
:{{example|1=<code><nowiki>LUDecomposition({{2,0},{1,1}})</nowiki></code> returns the matrices <math>\begin{pmatrix}0&1\\1&0\end{pmatrix}</math>,<math>\begin{pmatrix}1&0\\2&1\end{pmatrix}</math> and <math>\begin{pmatrix}1&1\\0&-2\end{pmatrix}</math>.}}
  
 
:{{note|1=See also [[QRDecomposition_Command|QRDecomposition]] command.}}
 
:{{note|1=See also [[QRDecomposition_Command|QRDecomposition]] command.}}

Latest revision as of 10:38, 29 April 2023


CAS Syntax

LUDecomposition( <Matrix> )
Calculates the LU decomposition of the given matrix.
Example: LUDecomposition({{2,0},{1,1}}) returns the matrices \begin{pmatrix}0&1\\1&0\end{pmatrix},\begin{pmatrix}1&0\\2&1\end{pmatrix} and \begin{pmatrix}1&1\\0&-2\end{pmatrix}.


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