Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #1688

Re: broadcasting of Equal ? (newbie question)

From "Kevin J. McCann" <Kevin.McCann@umbc.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: broadcasting of Equal ? (newbie question)
Date 2011-04-15 07:56 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <io8tnl$qb7$1@smc.vnet.net> (permalink)
References <io6d27$dq9$1@smc.vnet.net>

Show all headers | View raw


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
>

Back to comp.soft-sys.math.mathematica | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

broadcasting of Equal ? (newbie question) Alan <alan.isaac@gmail.com> - 2011-04-14 08:59 +0000
  Re: broadcasting of Equal ? (newbie question) "Kevin J. McCann" <Kevin.McCann@umbc.edu> - 2011-04-15 07:56 +0000
  Re: broadcasting of Equal ? (newbie question) Alan <alan.isaac@gmail.com> - 2011-04-15 07:57 +0000

csiph-web