![]() |
|||||||
Phases of the MoonThis is a simple program which computes the approximate date and phase of the next quarter of the moon, and returns successive dates/phases on backtracking. The original Prolog program contains just two clauses, and uses built-in predicates for computing day numbers and dates.To run the demo or view the source code, please select from the following links:
|