MathGroup Archive 2012

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

Search the Archive

Re: Solving multiple equations

  • To: mathgroup at smc.vnet.net
  • Subject: [mg125548] Re: Solving multiple equations
  • From: Murta <rodrigomurtax at gmail.com>
  • Date: Sun, 18 Mar 2012 02:44:57 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <jk1g20$51v$1@smc.vnet.net>

Hi!
In your example, equation 1 and 2 are in differente forms. I used this
to solve your case:

eq1 = {0.15, 0.85, X1} == {X3, X2 + X4, X5};
eq2 = {X1 == 9/5, X4/(X3 + X4 + X5) == 1/3};

eq1t = Thread[{0.15, 0.85, X1} == {X3, X2 + X4, X5}];
Solve[Join[eq1t, eq2]]

best regards
Murta

On Mar 17, 4:55 am, Themis Matsoukas <tmatsou... at me.com> wrote:
> I have two set of equations, one in the form,
>
> eq1 = ({0.15, 0.85, X1} == {X3, X2 + X4, X5})
>
> and the other in the form
>
> eq2={1. X1 == 9/5, X4/(X3 + X4 + X5)==1/3}
>
> Solve understands both Solve[eq1] and Solve[eq2] but if I want to solve the two sets simultaneously, what is the best way to combine eq1 and eq2 into a single list of equations, either of the form of eq1 or of eq2, that Solve can understand?
>
> Themis




  • Prev by Date: Re: Solving multiple equations
  • Next by Date: Re: Symbolic tensor analysis in Mathematica 8
  • Previous by thread: Re: Solving multiple equations
  • Next by thread: Creating List