Invalid Parenthensis in Formula

MM2forever

Active Member
Licensed User
Longtime User
Hi guys,
can you tell me what gives the invalid parenthensis with this formula?:

(234.67*0.434292289*Ln(6.1*exp((7.45*temp.Value)/(234.67+temp.Value)*
2.3025851)*lf.Value/100/6.1))/(7.45-0.434292289*Ln(6.1*exp((7.45*
temp.Value)/(234.67+temp.Value)*2.3025851)*lf.Value/100/6.1))

is it the Ln function which recieves a value higher than a Double or just some wrong brackets?
 

dzt

Active Member
Licensed User

:sign0085::sign0148:

Why don't you try to brake it in smaller parts?
 

specci48

Well-Known Member
Licensed User
Longtime User
Hi MM2forever,

there is no function exp() provided by basic4ppc. Is this a custon function implemented by you?


specci48
 

MM2forever

Active Member
Licensed User
Longtime User
uppsss...

I thought replaced all exp's, but i forgot some as you see.
(it used to be an excel formula)

Thanks for the lead!

I've corrected it to this:

(234.67*0.434292289*Ln(6.1*cE^(7.45*temp.Value)/(234.67+temp.Value)*
2.3025851)* lf.Value/100/6.1))/(7.45-0.434292289*Ln(6.1*(cE^(7.45*
temp.Value)/(234.67+temp.Value)*2.3025851)*lf.Value/100/6.1))

but it still gives me the same error
 

MM2forever

Active Member
Licensed User
Longtime User
hi, i finally made it:

I've eased and split up the formula to this:

SDD=6.1078*10^((a*temp.Value)/(b+temp.Value))
DD=lf.Value/100*SDD
v=Log(DD/6.1078)
TD=b*v/(a-v)

(TD is the result)

now it works!

BTW: this formula calculates the 'dew point' from the given temperature and rel. humidity
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…