solving equations
- To: mathgroup at smc.vnet.net
- Subject: [mg105876] solving equations
- From: Maria Davis <arbiadr at gmail.com>
- Date: Tue, 22 Dec 2009 04:07:47 -0500 (EST)
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?
- Follow-Ups:
- Re: solving equations
- From: DrMajorBob <btreat1@austin.rr.com>
- Re: solving equations