solve/linear
systems of linear equations
Calling Sequence
Parameters
Description
Examples
solve(eqns, vars)
eqns
-
set or list of linear equations and inequations
vars
list of names (unknowns)
The linear system defined by eqns is solved for the unknowns vars. If a solution exists, the solution is returned as a list of equations. If the system is underdetermined, the solver will parametrize the solutions in terms of one or more of the unknowns.
Currently, the solver uses a number of special algorithms in addition to ordinary Gaussian elimination. All algorithms are geared to large sparse systems though they also perform well on dense systems. The special algorithms (selected automatically) are for:
(a) rational coefficients, using a "primitive" fraction-free algorithm;
(b) floating-point coefficients, using Gaussian elimination with partial pivoting for stability;
(c) rational function coefficients over the rationals, more generally, an algebraic number field, using a "primitive" fraction-free algorithm.
solve⁡a⁢x+b⁢y=3,x−y=b,x,y
x=b2+3a+b,y=−a⁢b−3a+b
solve⁡I⁢x+y=1,I⁢x−y=2,x,y
x=−3⁢I2,y=−12
See Also
LinearAlgebra[LinearSolve]
solve[system]
SolveTools[Linear]
Download Help Document