Re: solving equations
- To: mathgroup at smc.vnet.net
- Subject: [mg105897] Re: [mg105876] solving equations
- From: DrMajorBob <btreat1 at austin.rr.com>
- Date: Thu, 24 Dec 2009 00:15:12 -0500 (EST)
- References: <200912220907.EAA16855@smc.vnet.net>
- Reply-to: drmajorbob at yahoo.com
Mathematica doesn't allow "." in a variable name, since "." denotes the dot product. Sorry! Bobby On Tue, 22 Dec 2009 03:07:47 -0600, Maria Davis <arbiadr at gmail.com> 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? > -- DrMajorBob at yahoo.com
- References:
- solving equations
- From: Maria Davis <arbiadr@gmail.com>
- solving equations