Re: broadcasting of Equal ? (newbie question)
- To: mathgroup at smc.vnet.net
- Subject: [mg118172] Re: broadcasting of Equal ? (newbie question)
- From: "Kevin J. McCann" <Kevin.McCann at umbc.edu>
- Date: Fri, 15 Apr 2011 03:56:32 -0400 (EDT)
- References: <io6d27$dq9$1@smc.vnet.net>
You will probably get a lot of responses to this, but basically you want the following: Solve[{x+y-1==0,2x+y-2==0},{x,y}] Sometimes it is more convenient to do it the way you indicate, and here is how: Solve[Thread[{x + y - 1, 2 x + y - 2} == {0, 0}], {x, y}] Pull the Thread part of the above out and try it by itself, and you will see that it gives you what you want. A more general thing to try would be to replace {0,0} with {a,b} and see what Thread does to that. Kevin On 4/14/2011 4:59 AM, Alan wrote: > I noticed that e.g. > Solve[{x + y - 1, 2 x + y - 2} == {0, 0}, {x, y}] > can be written as > Solve[{x + y - 1, 2 x + y - 2} == 0, {x, y}] > but I cannot find the rule that allows this. > (E.g., I do not find it in the help for Equal > or the help for Solve.) > > Can you point me to it? > > Thanks, > Alan >