Re: Solving linear systems in matrix notation?
- To: mathgroup at smc.vnet.net
- Subject: [mg68236] Re: [mg68187] Solving linear systems in matrix notation?
- From: "Carl K. Woll" <carlw at wolfram.com>
- Date: Sun, 30 Jul 2006 04:48:06 -0400 (EDT)
- References: <200607290500.BAA04910@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Ben wrote: > Hi, > > I have been following a tutorial that says to solve systems of linear equations like so: > > Solve[{2x + 4y == -4, 5x + 7y == 11}, {x, y}] > > I am wondering if there is a shorthand way to do it by just entering the co-efficients of each equation, i.e. matrix style: > > Solve??[{2,4,-4},{5,7,11}] > > cheers, > > Ben C. Use LinearSolve: In[10]:= Solve[{2 x + 4 y == -4, 5 x + 7 y == 11}, {x, y}] Out[10]= {{x->12,y->-7}} In[11]:= LinearSolve[{{2, 4}, {5, 7}}, {-4, 11}] Out[11]= {12,-7} Carl Woll Wolfram Research
- References:
- Solving linear systems in matrix notation?
- From: Ben <ben.carbery@spam.me>
- Solving linear systems in matrix notation?