
linsolve - solve linear systems

Calling sequence:
linsolve(sys, unk)

Parameters:
sys   --  set of equations
unk   --  set of unknowns

Summary:

linsolve(sys, unk) solves the linear system sys with respect to the indeterminates
unk.  It returns a set of assignments of the indeterminates when there is a
solution, and null() when there is no solution.

This function should be used only for linear systems, as it does not check the
linearity of sys. Otherwise, the function solve should be used instead.

--_>>_-linsolve({x+y=1,2*x+2*y=3},{x,y});

-_>>_-linsolve({x+y=1,2*x+y=3},{x,y});

                        {y = -1, x = 2}

-_>>_-linsolve({cos(x)+sin(x)=1,cos(x)-sin(x)=0},{cos(x),sin(x)});

                    {cos(x) = 1/2, sin(x) = 1/2}

-_>>_-linsolve({2*a[1]+3*a[2]=5,7*a[2]+11*a[3]=13,
             17*a[3]+19*a[1]=23},{a[1],a[2],a[3]});

           {a[2] = 981/865, a[1] = 691/865, a[3] = 398/865}
           _______
See also:  --_solve_-

