MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Solving linear systems in matrix notation?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg68233] Re: [mg68187] Solving linear systems in matrix notation?
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sun, 30 Jul 2006 04:47:58 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

Solve[{2x + 4y == -4, 5x + 7y == 11}, {x, y}]

{{x -> 12, y -> -7}}

Solve[{{2,4},{5,7}}.{x,y}=={-4,11},{x,y}]

{{x -> 12, y -> -7}}

Solve[{{2,4,-4},{5,7,11}}.{x,y,-1}==0,{x,y}]

{{x -> 12, y -> -7}}

LinearSolve[{{2,4},{5,7}},{-4,11}]

{12,-7}

LinearSolve[{{2,4},{5,7}}][{-4,11}]

{12,-7}


Bob Hanlon

---- Ben <ben.carbery at spam.me> 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.
> 


  • Prev by Date: RE: Log Function
  • Next by Date: Re: Solving linear systems in matrix notation?
  • Previous by thread: Re: Solving linear systems in matrix notation?
  • Next by thread: Re: Solving linear systems in matrix notation?