R
R
Rom Black2013-02-15 21:50:55
PHP
Rom Black, 2013-02-15 21:50:55

How to determine the phase of the moon?

Who can help with solving the problem from the point of view of programming in php (well, or at least in javascript)

Essence of the task: determination of the phase of the moon
1. Minimum task - determination of the current phase of the moon
2. Required task - determination of the phase of the moon for any date The

function only needs to return the results:
1. New Moon
2. Growing Moon - First quarter.
3. Growing Moon - Second quarter.
4. Full Moon
5. Waning Moon - Third Phase
6. Waning Moon - Fourth Phase.


How is this determined mathematically? Who can tell, can anyone come across a similar problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2013-02-15
@BuriK666

Take the exact date and exact time when the full moon was, in 29.5305882 days there will be a full moon again, etc., and count the phases of the moon.

E
evnuh, 2013-02-15
@evnuh

bit.ly/YkwjXH Tons
of solutions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question