LinearSolve - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Student[LinearAlgebra]

  

LinearSolve

  

solve the linear equations A . x = b

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

LinearSolve(A, b, options)

Parameters

A

-

Matrix or list

b

-

(optional) column Vector

options

-

(optional) parameters; for a complete list, see LinearAlgebra[LinearSolve]

Description

• 

The LinearSolve command returns the Vector x that satisfies the linear system A·x=b.

  

If b is omitted, then the linear system is interpreted from the first argument, which is taken to be the augmented Matrix in which the last column provides the right-hand side data.

Examples

> 

with⁡StudentLinearAlgebra:

> 

A≔1,2,3|4,5,6|7,8,0:

> 

b≔3,2,−2:

> 

LinearSolve⁡A,b

−22313

(1)
> 

M≔1,1,1,4|1,1,−2,1|3,1,1,8|−1,1,−1,−1|0,1,1,0:

> 

M_sol≔LinearSolve⁡M

M_sol≔25643−52−2

(2)
> 

M1..−1,1..−2·M_sol=M1..−1,−1

0110=0110

(3)
> 

R≔1,2,3|4,5,7|7,8,9|10,11,12:

> 

z≔3,2,0:

> 

LinearSolve⁡R,z

−76+_t142−176−3⁢_t142_t14

(4)

See Also

LinearAlgebra[LinearSolve]

Student[LinearAlgebra]

Student[LinearAlgebra][BackwardSubstitute]

Student[LinearAlgebra][GenerateMatrix]

Student[LinearAlgebra][LeastSquares]

Student[LinearAlgebra][LinearSolveTutor]

Student[LinearAlgebra][LinearSystemPlot]

Student[LinearAlgebra][LUDecomposition]