Hi All
is it possible with the picaxe to do the following eq
0.6108*exp(17.27*T/(T+237.3)) 1st part
x/100*1st part
result =2nd part - 1st part
have tried removing the dec point then reaplying them but dont
seem to be making any head way as the results from the first part are less than 1
or as usual am I over thinking it
regards
john
is it possible with the picaxe to do the following eq
0.6108*exp(17.27*T/(T+237.3)) 1st part
x/100*1st part
result =2nd part - 1st part
have tried removing the dec point then reaplying them but dont
seem to be making any head way as the results from the first part are less than 1
Code:
symbol svp=6108 '0.6108*10000
symbol tempcor=1727'17.27*100
symbol temprw=2373 '237.3*10
symbol dry=b12
symbol pp=w10
symbol result=w11
'0.6108*exp(17.27*dry/(dry+237.3)) first part of result
'second eq pp/100*first part
'3rd eq 2nd eq - 1st eq
pp=80
dry=24
w0=dry*tempcor/100 'w0 to= 17.27*dry after /
sertxd ("dry*17.27=",32,#w0,cr,lf)'calculated result=414.48
w1=dry+temprw/1000 'dry+237.3 after /
sertxd ("dry*237.3=",32,#w1,cr,lf)'calculated result=261.3
w2=w0/w1
sertxd ("17,27*dry/237.3*dry for exp=",32,#w2,cr,lf)'calculated result=1.586
w3=svp*w2 'svp=0.6108*exp
sertxd ("w3=",32,#w3,cr,lf)'calculated=0.968
w3=w3/10000
sertxd ("first part of eq=",32,#w3,cr,lf)
w4=w3*100 '100*first section of equ 2
sertxd (#w4,cr,lf)
pp=pp/w4
sertxd ("snd part result=",32,#pp,cr,lf)
result=pp-w3/100
sertxd ("result",32,#result,cr,lf)
dry=result-w3
sertxd ("dry=",32,#dry,cr,lf)
regards
john