Re: Math expression help
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