solve/linear - Maple Programming Help

solve/linear

systems of linear equations

 Calling Sequence solve(eqns, vars)

Parameters

 eqns - set or list of linear equations and inequations vars - list of names (unknowns)

Description

 • 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.

Examples

 > $\mathrm{solve}\left(\left\{ax+by=3,x-y=b\right\},\left[x,y\right]\right)$
 $\left[\left[{x}{=}\frac{{{b}}^{{2}}{+}{3}}{{a}{+}{b}}{,}{y}{=}{-}\frac{{a}{}{b}{-}{3}}{{a}{+}{b}}\right]\right]$ (1)
 > $\mathrm{solve}\left(\left\{Ix+y=1,Ix-y=2\right\},\left[x,y\right]\right)$
 $\left[\left[{x}{=}{-}\frac{{3}}{{2}}{}{I}{,}{y}{=}{-}\frac{{1}}{{2}}\right]\right]$ (2)