Math expression help
Math expression help
- Subject: Math expression help
- From: Dale J Martin <email@hidden>
- Date: Tue, 9 May 2006 16:42:11 -0400
Hi all,
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
Thoughts?
Thanks,
Dale
set HA to 256.84 * 3.1415926535 / 180 --in radians
set Dec to 29.82 * 3.1415926535 / 180 --in radians
set latitude to 42.55574 * 3.1415926535 / 180 --latitude location in
radians.
set Dz to cos (latitude - pi / 2) * (cos (Dec) * (cos (-HA) + (sin
(latitude - pi / 2) * (sin (Dec)))))
display dialog "Dz " & Dz
set x1 to cos (latitude - pi / 2)
set x2 to cos (Dec)
set x3 to cos (-HA)
set x4 to x1 * x2 * x3
set x5 to sin (latitude - pi / 2)
set x6 to sin (Dec)
set x7 to x5 * x6
set x8 to x4 + x7
display dialog "C " & x8
_______________________________________________
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