Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Documentation / Mathematica / Built-in Functions / Lists and Matrices / Matrix Operations /

Further Examples: LinearSolve

This is the solution of the linear system m.s == v.

In[1]:=

In[2]:=

In[3]:=

Out[3]=

This checks the result.

In[4]:=

Out[4]=

LinearSolve with one argument gives a LinearSolveFunction object that corresponds to a given matrix.

In[5]:=

Out[5]=

You can apply the LinearSolveFunction object repeatedly to vectors to get solutions.

In[6]:=

Out[6]=

In[7]:=

Out[7]=

We can also solve rectangular linear systems if a solution exists.

In[8]:=

Out[8]=

This checks the result.

In[9]:=

Out[9]=

In this case we have an infinite number of solutions. To get all the solutions we can use Solve.

In[10]:=

Out[10]=

The set of solutions is one-dimensional.

In[11]:=

Out[11]=

This checks the result.

In[12]:=

Out[12]=

In[13]:=

Out[13]=

The solution generated by LinearSolve corresponds to c == 0.

In[14]:=

Out[14]=

There are systems of linear equations for which there are no solutions.

In[15]:=

Out[15]=

In[16]:=

Modular systems

You can solve matrix equations over the integers modulo .

In[17]:=

In[18]:=

In[19]:=

Out[19]=

This checks the result.

In[20]:=

Out[20]=

This clears the variables.

In[21]:=



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information


 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy | [ja] |
Sign up for our newsletter: