• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mathematical Expressions for Wind Chill Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mathematical Expressions for Wind Chill Script


  • Subject: Re: Mathematical Expressions for Wind Chill Script
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 28 Feb 2002 22:33:46 -0800

On 2/28/02 9:06 PM, "Rob Jorgensen" <email@hidden> wrote:

> Howdy,
>
> 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)
>
> To see what I mean, look at:
>
> <http://www.srh.noaa.gov/ftproot/ssd/images/windchill_new.gif>
>
> Is it even possible to use AppleScript to perform this calculation?
> If so, I'd appreciate an example of the proper mathematical syntax
> for the (V 0.16) part.
>
> Thanks for any help you might offer.

on WindChill(T, V)

set F to 35.74 + (0.6215 * T) - (35.74 * (V ^ 0.16)) + ((0.4275 * T) *
(V ^ 0.16))
set F to round F
return F

end WindChill

set F to WindChill(40, 5)
--> 36

set F to WindChill(-15, 25)
--> -44


--
Paul Berkowitz
_______________________________________________
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.

  • Prev by Date: Re: Extracting from text [Lecture]
  • Next by Date: Eps Profiles
  • Previous by thread: Re: Do you know this page? :-)
  • Next by thread: Eps Profiles
  • Index(es):
    • Date
    • Thread