Student[LinearAlgebra]
LinearSolve
solve the linear equations A . x = b
Calling Sequence
Parameters
Description
Examples
LinearSolve(A, b, options)
A
-
Matrix or list
b
(optional) column Vector
options
(optional) parameters; for a complete list, see LinearAlgebra[LinearSolve]
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.
with⁡StudentLinearAlgebra:
A≔1,2,3|4,5,6|7,8,0:
b≔3,2,−2:
LinearSolve⁡A,b
−22313
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
M1..−1,1..−2·M_sol=M1..−1,−1
0110=0110
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
See Also
LinearAlgebra[LinearSolve]
Student[LinearAlgebra][BackwardSubstitute]
Student[LinearAlgebra][GenerateMatrix]
Student[LinearAlgebra][LeastSquares]
Student[LinearAlgebra][LinearSolveTutor]
Student[LinearAlgebra][LinearSystemPlot]
Student[LinearAlgebra][LUDecomposition]
Download Help Document