• 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: Math expression help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Math expression help


  • Subject: Re: Math expression help
  • From: kai <email@hidden>
  • Date: Wed, 10 May 2006 00:20:18 +0100


On 9 May 2006, at 21:42, Dale J Martin wrote:

Can someone please explain this to me...... I have the expression in one statement and it gives the wrong answer. After breaking it up I get the answer is correct answer

[snip]

set Dz to cos (latitude - pi / 2) * (cos (Dec) * (cos (-HA) + (sin (latitude - pi / 2) * (sin (Dec)))))

To get the same result as your individual statements, Dale, try this:

--------
set Dz to (cos latitude - pi / 2) * (cos Dec) * (cos -HA) + (sin latitude - pi / 2) * (sin Dec)
--------


On 10 May 2006, at 00:01, Dale J Martin wrote:

Okay let's try something simple.....

[snip]

set x to cos HA * (cos Dec)

-------- set x to (cos HA) * (cos Dec) --------

You might also find this useful:

http://developer.apple.com/documentation/AppleScript/Conceptual/ AppleScriptLangGuide/AppleScript.aa.html

---
kai


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Math expression help (From: Dale J Martin <email@hidden>)

  • Prev by Date: Re: Math expression help
  • Next by Date: Re: Character Encoding in plain text
  • Previous by thread: Re: Math expression help
  • Next by thread: Character Encoding in plain text
  • Index(es):
    • Date
    • Thread