This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
>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