That's a very complicated expression for just an exponent. Are you sure you have the correct formula? I don't see any obvious syntactical error, but perhaps your calculation is resulting in overflow errors.<br><br>
Jeff Duda<br><br><div class="gmail_quote">On Fri, May 11, 2012 at 4:34 PM, Jeff Lake <span dir="ltr"><<a href="mailto:admin@michiganwxsystem.com" target="_blank">admin@michiganwxsystem.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
thats what I thought ..<br>
But I converted to php .. it ran the conversion as expected<div class="im"><br>
<pre cols="72">-Jeff Lake
MichiganWxSystem.com
WeatherMichigan.net
TheWeatherCenter.net
GRLevelXStuff.com</pre>
<br></div><div><div class="h5">
On 5/11/2012 5:06 PM, Roger Rodrigues Torres wrote:
<blockquote type="cite">I think that in some moment you are dividing by zero<br>
Is it correct? (237.3 + dewc)?<br>
<br>
<div class="gmail_quote">2012/5/11 Jeff Lake <span dir="ltr"><<a href="mailto:admin@michiganwxsystem.com" target="_blank">admin@michiganwxsystem.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">anybody tell
me why this is throwing a segmentation fault<br>
<br>
'define tempc = TMP2m - 273.16'<br>
'define dewc = DPT2m - 273.16'<br>
'define rh = pow(10, (1779.75 * (dewc - tempc) / ((237.3 +
dewc) *<br>
(237.3 + tempc)) + 2))'<br>
<br>
as soon as I added this GrADS starting complaining<br>
<span><font color="#888888"><br>
--<br>
-Jeff Lake<br>
MichiganWxSystem.com<br>
WeatherMichigan.net<br>
TheWeatherCenter.net<br>
GRLevelXStuff.com<br>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</font></span></blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Roger Rodrigues Torres<br>
PhD. Student in Meteorology<br>
National Institute for Space Research (INPE)<br>
Phone: 55 12 3186-9541<br>
Personal Webpage: <a href="http://rtorres.webnode.com.br" target="_blank">http://rtorres.webnode.com.br</a><br>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
gradsusr mailing list
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
</blockquote>
</div></div></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br><br>