local variable depending on another
|
10-09-2017, 06:00 PM
Post: #1
|
|||
|
|||
local variable depending on another
Hello,
How i can program a local variable that depend of another local variable and then discovery the value of on variable like function of another? Basically this is my code: /////////////////////////////////////////////////////////////////////////////////// LOCAL coef_A3,pol_3,pv_sat3,pp_vap2,Trosee; LOCAL expressao2, conv_temp, pp_vap1; conv_temp:=273; pp_vap1:=101; coef_A3=1-(Trosee+conv_temp)/647.096); pol_3=-7.85951783*coef_A3+1.84408259*(coef_A3^1.5)-11.7866497*(coef_A3^3)+22.6807411*(coef_A3^3.5)-15.9618719*(coef_A3^4)+1.80122502*(coef_A3^7.5); pv_sat2=(647.096/(Trosee+conv_temp))*pol_3)*22.064*10^6; pp_vap2:=pp_vap1; expr2=pv_sat2-pp_vap2; CAS(solve(expr2=0,Trosee)); PRINT ("T de rosée2="+Trosee+"ºC"); /////////////////////////////////////////////////////////////////// Where coef_A3, pol_3, pv_sat2 are functions of Trosee that is unknown. Thanks! |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
local variable depending on another - Ziz - 10-09-2017 06:00 PM
RE: local variable depending on another - webmasterpdx - 10-10-2017, 12:46 AM
RE: local variable depending on another - cyrille de brébisson - 10-10-2017, 07:31 AM
|
User(s) browsing this thread: 1 Guest(s)