[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

19990803: quick exp() question



>From: Matt Fearon <address@hidden>
>Organization: Desert Research Institute
>Keywords: 199908032251.QAA13514

>Steve,
>
>From some reason, I can't seem to use the exp() function
>in gfunc correctly. I am trying to calculate saturation vapor
>pressure using tmpk in the clausius clapeyron equation.
>
>here is my forumla:
>
>mul(6.11, exp( mul ( 5423,sub(.003663,quo(1,tmpk)) ) ) )
>
>I keep receiving a stack empty error. I was wondering if you
>might be able to tell me what I am doing incorrectly.
>
>Thank you,
>-Matt Fearon
>address@hidden
>
>thanks for looking at that other complicated level comparison
>question for me.
>


Matt,

        EXP     (S1,S2)         Exponential to real

This function is arbitrary S1**S2, not just natural log e..

If you entend to create e**A then you need EXP(E,A), where E=2.71828182

Then:
mul(6.11,exp(E,mul(5423,sub(.003663,quo(1,tmpk)))))

Steve Chiswell