14,643,383 members
Rate this:
See more:
in my project I want to calculate the position of the sun and the moon each time. gives us the longitude and latitude on the earth and date. and ecliptic latitude of the sun is 0.
Posted
Updated 4-Jan-14 22:05pm
v3
Nelek 4-Jan-14 13:07pm

You are lucky that you found two nice people answering you with good links. I strongly recommend you to read following links as well:
What have you tried?[^]
Some guidelines for posting questions in the forums[^]

because next time you might not find the same users again.
BillWoodruff 5-Jan-14 4:08am

Since this post has received two excellent answers, in order to make sure that other CP members are not discouraged from reading it ... and benefiting from those answers ... I have removed an edit to the title, and tags added, by another editor which express their view the question is not valuable.

Rate this:

## Solution 1

Here is a really good reference[^] for the formula's and algorithms that you need.

BTW, you need to try to implement these on your own, we will help when you get stuck, but don't just ask for the code unless you are willing to pay.
Thomas Daniels 4-Jan-14 11:59am

+5, that's indeed a very good reference for the algorithms.
Ron Beyer 4-Jan-14 12:04pm

Thanks!
Karthik_Mahalingam 4-Jan-14 16:10pm

5, excellent resource..
Ron Beyer 4-Jan-14 17:43pm

Thank you.
CPallini 5-Jan-14 6:06am

5.
Rate this:

## Solution 2

Ron Beyer 4-Jan-14 11:58am

Thomas Daniels 4-Jan-14 11:59am

Thank you!
Bakhos Sayssouk 4-Jan-14 14:10pm

thank you :)
Thomas Daniels 4-Jan-14 14:21pm

You're welcome!
Karthik_Mahalingam 4-Jan-14 16:09pm

Thomas Daniels 5-Jan-14 3:19am

Thank you!
CPallini 5-Jan-14 6:06am

5.
Thomas Daniels 5-Jan-14 6:08am

Thank you!
Bakhos Sayssouk 11-Jan-14 10:28am

this methods are on windows forms C#??. for example "trig" isn't exist in c#. i have a site for windows forms,thank you.
Thomas Daniels 11-Jan-14 10:37am

That problem has nothing to do with Windows Forms, the actual problem is that you need to create the `Trig` class also. Here you find all Astronomical calculation Tutorials, I think you'll find the `Trig` class there.
Bakhos Sayssouk 11-Jan-14 11:03am

yes thank you very much. :)