yantra/patha/candravakya.js
चन्द्रवाक्य, the Moon's vākyas regenerated from a canon's own numbers (slice 9 of the vedha-yantra engine).
345 lines · 0 exports
The header, as the file states it
What it loads
- yantra/patha/katapayadi.jsmodule
- yantra/patha/parahita-madhyama.jsmodule
- yantra/patha/sphuta.jsmodule
- yantra/patha/spanda-ganita.jsmodule
- yantra/patha/kala-dvara.jsmodule
What it exports
SS verses named in the header
- SS 2.29versegrahaṃ saṃśodhya mandoccāttathā śīghrādviśodhya ca । śeṣaṃ kendrapadaṃ tasmādbhujajyā koṭireva ca ।।
The channels it runs in
Every function, what it calls, who calls it
26 top-level functions read from the source; the doc line is the comment above each; calls and callers are resolved across the registry’s modules by name. Line numbers are the file’s at engine 3f94072.
A number of degrees (31.5), a [num, den] pair of BigInts, or a rational [n, d] → exact rational.
── the canons ────────────────────────────────────────────────────────────────────────────────────────────────────
The bhuja (0…5400′) of an arc in arcminutes (SS 2.29-2.30).
Resolve options → the model: rates in arcminutes per civil day (exact), the epicycle, the sine, the rounding.
The manda-phala in arcminutes, signed, for a kendra (apogee − Moon) in arcminutes (SS 2.29-2.45).
The true advance of the Moon after n civil days from the apogee, exact, in arcminutes [0, 21600).
Exact arcminutes → whole seconds (or minutes) of arc, rounded half up, on the circle.
Whole units (seconds or minutes) → { rasi, deg (within the rāśi), amsa (total degrees), min, sec } and the integer.
Read a vākya word (the tradition's or this generator's) as a place: vāmato gatiḥ, then the layout.
One vākya: exact advance, rounded place, integer, word in both scripts, and the round trip.
The table: day 0 (the cycle start, 0) and vākyas 1 … count (default 248). Cached per model.
How nearly N days close the anomaly, by the canon's own integers (exact): whole anomalistic months, and what is left over as an arc of anomaly and as days.
Convergents p/q of the canon's anomalistic month in days (q months ≈ p days), from its continued fraction.
The canon's true Moon on Kali day d, computed directly (exact arcminutes), with the mean places and the anomaly.
The whole day in [fromDay, toDay] on which the mean anomaly is nearest zero: a khaṇḍa for the vākya count.
The Moon on Kali day d by the vākyas: the khaṇḍa's dhruva + whole cycles × their dhruvas + the vākya of the rest.
The vākya way against the canon's own true Moon on the same day: the method's error, in arcminutes, signed.
Civil date → Kali day (kala-dvara.js).