Re: solving equations
- To: mathgroup at smc.vnet.net
- Subject: [mg105881] Re: solving equations
- From: dh <dh at metrohm.com>
- Date: Wed, 23 Dec 2009 02:41:09 -0500 (EST)
- References: <hgq28n$ged$1@smc.vnet.net>
Hi Maria,
look at the equations:
Csource.receiverRole.RT == Csource.sendRole.RT + Csource.TT
x == Csource.receiverRole.RT
Csource.TT == 0
from this it follows: {{x -> Csource.sendRole.RT}}
Daniel
Maria Davis wrote:
> My file a.txt contains these equations:
>
> x == Csource.receiverRole.RT
> Csource.receiverRole.RT == Csource.sendRole.RT + Csource.TT
> Csource.sendRole.RT == A.inputPort.RT
> A.inputPort.RT == A.outputPort.RT + A.PT
> A.ouputPort.RT == C.receiverRole.RT
> C.receiverRole.RT == C.sendRole.RT + C.TT
> C.sendRole.RT == B.inputPort.RT
> B.inputPort.RT == B.outputPort.RT + B.PT
> B.ouputPort.RT == Csink.receiverRole.RT
> Csink.receiverRole.RT == Csink.sendRole.RT + Csink.TT
> Csink.sendRole.RT == DataSink.inputPort.RT
> DataSink.inputPort.RT == 0
> Csource.TT == 0
> Csink.TT == 0
> C.TT == 0.5
> A.PT == 2
> B.PT == 1.5
>
> For solving these equations in x, I have used the command:
> Solve[ReadList["C:\\a.txt", Expression], {x}]
> However the result obtained is: {{x -> Csource.sendRole.RT}} which is
> wrong.
>
> In a second essay, I have changed variables name (B.inputPort.RT,
> Csink.sendRole.RT...) by names like a,b,c...
> and consequently I have obtained the desired result.
>
> But, in my work, I need using the first format for representing
> variable names.
> Please can you help me?
>