Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #12220
| From | "Nasser M. Abbasi" <nma@12000.org> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: [newb] simple equation substitutions |
| Date | 2012-11-02 04:45 +0000 |
| Message-ID | <k6vj4k$6ad$1@smc.vnet.net> (permalink) |
| References | <k6t7qk$1mi$1@smc.vnet.net> |
| Organization | Time-Warner Telecom |
On 11/1/2012 2:19 AM, Neal Becker wrote:
> {y == x + 2, x == 7}
>
> Solve[%, y]
>
> -> {}
>
> What I expected to happen is have x->7 applied to y == x+2.
>
> My real plan is to develop a list of (a lot more complicated)
>expressions that will have repeated substitutions applied.
>
> Why didn't the above work and/or what should I do instead?
>
Solve wants you to list _all_ the variables.
-----------------------
In[4]:= {y==x+2,x==7};
Solve[%,{y,x}]
Out[5]= {{y->9,x->7}}
------------------------
--Nasser
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[newb] simple equation substitutions Neal Becker <ndbecker2@gmail.com> - 2012-11-01 07:19 +0000 Re: [newb] simple equation substitutions "Nasser M. Abbasi" <nma@12000.org> - 2012-11-02 04:45 +0000 Re: [newb] simple equation substitutions Peter Breitfeld <phbrf@t-online.de> - 2012-11-02 05:11 +0000 Re: [newb] simple equation substitutions p-crossbow <goramedforsiktigt@gmail.com> - 2012-11-02 05:11 +0000
csiph-web