4
LINEAR ALGEBRA
VECTOR OPERATIONSxx
Introducing a vector
Addressing a vector element
Scalar product
Cross product
x needs with(LinearAlgebra)
(use template)
> element := U[i]
> prd := DotProduct(U,V)
> W := CrossProduct(U,V)
MATRIX OPERATIONS xx
Introducing a matrix
Addressing a matrix element
Transposed matrix
Product of matrices
Inverse of a matrix
Determinant
Minor of an element
Adjoint matrix
Row operations
Column operations
Reduced row echelon form
x
x
x needs with(LinearAlgebra)
(use template)
> element := A[i,j]
> AT := Transpose(A)
> C := A.B
> C := MatrixMatrixMultiply(A,B)
-1
> Ainv := A
> Ainv := MatrixInverse(A)
> detA := Determinant(A)
> aij := Minor(A,i,j)
> Aij := Minor(A,i,j,output=matrix)
> Aadj := Adjoint(A)
> B := RowOperation(A,i,fac)
> B := RowOperation(A,[i,j])
> B := RowOperation(A,[i,j],fac)
> B := ColumnOperation()
> B := ReducedRowEchelonForm(A)
SYSTEMS OF LINEAR EQUATIONSx
By giving matrix A and right hand side B
By giving separate equations
By giving separate row operations
Using the extended matrix
to continue with Gauss-Eliminatie
to continue with Gauss-Jordan
Maple Quick Reference
use tab to jump to the next element
Selects the i-th element
> sol := LinearSolve(A,B)
> eq1 := 3*x-4*y+z-u=16
> eq2 :=
> sol := solve([eq1,eq2,],[x,y,])
> B := RowOperation()
> eq1 := 3*x-y+2*z-u
> eq2 :=
> AB := GenerateMatrix([eq1,..],[x,y,..],
augmented = true)
> C := GaussianElimination(AB)
> sol := BackwardSubstitute(C)
> C := ReducedRowEchelonForm(AB)
> sol := BackwardSubstitute(C)
1ste bac Vakgroep Wiskunde Groep T Hogeschool Leuven
x
x
x
x
x
x
x
x
x
x
x
x
x
use tab to jump to the next element
Selects the element on row i, column j
!! use decimal point . to multiply
output = minor of A(i,j)
output = original matrix with row i and column j deleted
Multiply row i with a factor fac
Rows i and j switch places
Add fac times row j to row i
Same as RowOperation, but now for column operations
!! Maple does not put conditions on parameters
x needs with(LinearAlgebra)
!! other free variabels are possible when system has solutions
Introduce the equations one by one
Write equations names and variable names between sqaure brackets
!! other free variabels are possible when system has solutions
use simplify when useful
Introduce the equations one by one
generates the extended matrix
x
x
x
x
Find a row echelon form (Leading elements are sometimes
Solution using backward substitution
Find the reduced row echelon form
Solution using backward substitution
1)