| Author |
Comment/Response |
Connie
|
10/06/11 8:07pm
Hi,
I am attempting to solve a series of equations and need to set the solved for variable and use it in later equations. My code is as follows:
Pe = 1; (*Exit Pressure*)
P0 = 100; (*User set desired pressure*)
T = 273; (* Temperature of operation*)
k = 1.28; (*Ratio of specific heats CO2*)
sol = Solve[ Pe/P0 == ( 1 + ((k - 1)/2)*Me^2)^(k/(1 - k)), Me][[2]];
sol2 = Solve[Te/T == (1 + ((k - 1)/2)*Me^2)^-1, Te]
and the output is
{{Te -> 273./(1. + 0.14 (Me -> 3.52382)^2)}}
which is not exactly what I want. I want to set Me equal to the solved for value and then use it to find Te, which seems to be doing something odd at the moment.
Help much appreciated. Thanks in advance.
-Connie
URL: , |
|