Re: Mathematical Expressions for Wind Chill Script
Re: Mathematical Expressions for Wind Chill Script
- Subject: Re: Mathematical Expressions for Wind Chill Script
- From: Arthur J Knapp <email@hidden>
- Date: Fri, 01 Mar 2002 10:20:23 -0500
>
Date: Fri, 1 Mar 2002 00:06:43 -0500
>
From: Rob Jorgensen <email@hidden>
>
Subject: Mathematical Expressions for Wind Chill Script
>
I'd like to make a simple script which calculates wind chill, but I'm
>
not strong in math terminology and such. For instance, the (V 0.16)
>
in following formula is greek to me, and is not expressed correctly
>
in this message.
>
Wind Chill F = 35.74 + 0.6215T - 35.75(V 0.16) + 0.4275T(V 0.16)
>
V = Wind Speed (MPH) T = Temperature (degrees F)
>
<http://www.srh.noaa.gov/ftproot/ssd/images/windchill_new.gif>
I'm an idiot when it comes to math, but I think I can help:
>
Wind Chill F = 35.74 + 0.6215T - 35.75(V 0.16) + 0.4275T(V 0.16)
First, the 0.16 in "(V 0.16)" is actually superscripted, meaning
that V is being raised to the power of 0.16, which in AppleScript
is represented as:
V ^ 0.16
I think you're looking for something like this:
on WindChill(theTemperatureF, windAtMPH)
set T to theTemperatureF
set V to windAtMPH
set V_16 to V ^ 0.16
return 35.74 + (0.6215 * T) - (35.75 * V_16) + (0.4275 * T * V_16)
end WindChill
{ Arthur J. Knapp, of <
http://www.STELLARViSIONs.com>
<
mailto:email@hidden>
try
<
http://www.eagrant.com>
on error number -128
end try
}
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.