Astrology Engine

Define the event to find

A chart asks where the Sun is at a given time. An event search reverses that question: when does the fitted Sun longitude reach a chosen direction? Before calculating a time, we must specify where to begin, which way to search, and what the dataset permits us to ask.

Before this lesson

Read the position-evaluation lesson and the preceding chart-calculation path. These examples use invented longitudes and relative times to expose the search contract; they are not predictions of actual solar events.

Read the preceding lesson.

What you will learn

You will distinguish invalid requests, admitted searches and missing results, convert day offsets to sampling times, and explain why admission does not guarantee a complete search.

Dotted-underlined terms open a definition beside the text. Select one to read more, then close it to continue.

Each step has its own check. Pass every step to complete the lesson. Your answers and checked steps are saved in this browser, so you can continue after leaving or reloading.

3. Separate admission from sampling reach

Passing the first check reserves a particular lookback interval; it does not reserve every time the search may sample. The fallback scan can take one-day steps as far as 730 days from the start. Its bound is much wider than 89 days and follows the requested direction.

Use the same invented published interval [0, 1000] days and start at day 100. Admission passes, but a backward scan at offset −101 asks for day −1. A forward scan at offset +730 asks for day 830, inside the published interval. Start at day 900 instead: admission still passes, but offset +101 reaches day 1001, beyond its upper edge. Published coverage and fitted support are distinct; evaluating longitude ultimately depends on the stored series support.

89 × 86,400 = 7,689,600 seconds; scan offsets reach ±730 days in the chosen direction

The backward Sun path first tries an estimated bracket, explained in the later acceleration lesson. Daily scanning is its fallback and the direct forward path. Thus 730 days is a coarse-scan bound, not a promise that every sample used by every branch is contained in an admitted interval. These constants document current policy without asserting a historical origin or universal search guarantee.

Connect this step to the source

src/coverage_window.rs

CoverageWindow::contains_with_lookback; DESIGN_LOOKBACK_S

Paths refer to the astrology-engine repository. Examples use invented inputs; a successful exercise is not an astronomical-accuracy test.

Sources for this section

Apply this step

Answer every part, then check. You can retry as often as you like.

Enter a number without units; tolerance ±0.00000001. Accepted tolerance: ±1e-8 seconds. Omit units and commas.

Enter a number without units; tolerance ±0.00000001. Accepted tolerance: ±1e-8 days. Omit units and commas.

3. Does passing the 89-day guard ensure every daily scan sample is readable?

Your lesson checks

0 of 3 steps passed.

Use the feedback beside each check to retry any unfinished step.