       Re: Solving Equations with 3 variables and many parameters

• To: mathgroup at smc.vnet.net
• Subject: [mg132379] Re: Solving Equations with 3 variables and many parameters
• From: Bob Hanlon <hanlonr357 at gmail.com>
• Date: Sun, 2 Mar 2014 21:26:14 -0500 (EST)
• Delivered-to: l-mathgroup@mail-archive0.wolfram.com
• Delivered-to: l-mathgroup@wolfram.com
• Delivered-to: mathgroup-outx@smc.vnet.net
• Delivered-to: mathgroup-newsendx@smc.vnet.net
• References: <20140302060452.5EAEC69E6@smc.vnet.net>

```You need to use Equal ( == ) in the equations rather than Set ( = ).

eqns1 = {P1 == (a + C*b + b*P2)/(2*b),
P2 == (a + C*b + b*P1)/(2*b)};

sol1 = Solve[eqns1, {P1, P2}];

eqns1 /. sol1 // Simplify

{{True, True}}

eqns2 = {P1 == (a + C*b + b*P2 + b*P3)/(2*b),
P2 == (a + C*b + b*P1 + b*P3)/(2*b),
P3 == (a + C*b + b*P1 + b*P2)/(2*b)};

sol2 = Solve[eqns2, {P1, P2, P3}];

eqns2 /. sol2 // Simplify

{{True, True, True}}

Bob Hanlon

On Sun, Mar 2, 2014 at 1:04 AM, drascher <rascher at usfca.edu> wrote:

> Hello,
>
> I am able to get Mathematica to solve:
>
> Solve[{P1=(a+C*b+b*P2)/(2*b),
> P2=(a+C*b+b*P1)/(2*b)}, {P1, P2}]
>
> but it won't solve the following (which is one more variable P3 and its
> equation):
>
> Solve[{P1=(a+C*b+b*P2+b*P3)/(2*b),
> P2=(a+C*b+b*P1+b*P3)/(2*b),
> P3=(a+C*b+b*P1+b*P2)/(2*b)}, {P1, P2, P3}]
>
> It says that it doesn't understand how to interpret the word "Solve" even
> though it does it for the first eqn.
>
> Any help is appreciated.
>
>

```

• Prev by Date: Re: Possible bug in Floor function?
• Next by Date: Re: can we use ListVectorPlot to plot arrows? (tail at point, head
• Previous by thread: Solving Equations with 3 variables and many parameters
• Next by thread: Re: Solving Equations with 3 variables and many parameters