yantra/bija-samskara.js
बीज-संस्कार तन्त्र: the Sūrya-Siddhānta's grahas carried to the sky
432 lines · 41 exports
The header, as the file states it
What it loads
- yantra/madhava-ganita.jsmodule
- yantra/spanda-lattice.jsmodule
- yantra/_records.jsmodule
- yantra/meridian.jsmodule
- yantra/ss8-dhruva.jsmodule
- yantra/bija-vyakhya.jsmodule
What it exports
REVKALPA_APSISKALPA_NODEPLANETSBASISBIJA_MADHYAWINDOW_TPHALA_FAMILIEStextMeansbijaTimecorrectedMeanssunAtmoonAtplanetAtplanetCorebareOfcoreOfgrahasAtdirghaOfdirghaPhaladirghaHRdirghaBkalaBijamandaPhalaparidhitermSumtermPartsphalaCmprakashaVakratabijaGrahaspatrawrapmod360BANDHABANDHA_BODIESBANDHA_NBANDHA_EPOCHattachBandhabandhaForboundMeansderiveBandhaSS verses named in the header
- SS 1.29verseyuge sūryajñaśukrāṇāṃ khacatuṣkaradārṇavāḥ । kujārkiguruśīghrāṇāṃ bhagaṇāḥ pūrvayāyinām ।।
- SS 2.34verseravermandaparidhyaṃśā manavaḥ śītago radāḥ ।
- SS 2.39versetadguṇe bhujakoṭijye bhagaṇāṃśavibhājite । tadbhujajyāphaladhanurmāndaṃ liptādikaṃ phalam ।।
- SS 1.68versebhacakraliptāśītyaṃśaṃ paramaṃ dakṣiṇottaram । vikṣipyate svapātena svakrāntyantādanuṣṇaguḥ ।।
- SS 12.73versebhacakraṃ dhruvayorbaddhaṃ ākṣiptaṃ pravahānilaiḥ । paryetyajasraṃ tannaddhā grahakakṣā yathākramam ।।
- SS 8.2verseaṣṭārṇavāḥ śūnyakṛtāḥ pañcaṣaṣṭirnageṣavaḥ । aṣṭārthā abdhayo aṣṭāgā aṅgāgā manavastathā ।।
- SS 8.3versekṛteṣavo yugarasāḥ śūnyavāṇā viyadrasāḥ । khavedāḥ sāgaranagā gajāgāḥ sāgarartavaḥ ।।
- SS 8.4versemanavo atha rasā vedā vaiśvaṃ āpyārdhabhogagam । āpyasyaivābhijitprānte vaiśvānte śravaṇasthitiḥ ।
- SS 8.5versetricatuḥ pādayoḥ sandhau śraviṣṭhā śravaṇasya tu । svabhogato viyannāgāḥ ṣaṭkṛtiryamalāśvinaḥ ।।
- SS 8.6verserandhrādrayaḥ kramādeṣāṃ vikṣepāḥ svādapakramāt । diṅmāsaviṣayāḥ saumye yāmye pañca diśo nava ।।
- SS 8.7versesaumye rasāḥ khaṃ yāmye agāḥ saumye khārkāstrayodaśa । dakṣiṇe rudrayamalāḥ saptatriṃśadathottare ।।
- SS 8.8verseyāmya adhyardhatrikakṛtā nava sārdhaśareṣavaḥ । uttarasyāṃ tathā ṣaṣṭistriṃśatṣaṭtriṃśadeva hi ।।
- SS 1.21verseparamāyuḥ śataṃ tasya tayāhorātrasaṃkhyayā । āyuṣo ardhamitaṃ tasya śeṣakalpo ayaṃ ādimaḥ ।।
The channels it runs in
Every function, what it calls, who calls it
49 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.
Turns of a body with `rev` revolutions a mahāyuga at civil day t (452¾ yugas gone at the Kali start).
Turns of an apsis/node with `rev` revolutions a kalpa (1000 yugas).
The text's means at civil day t (degrees): SS 1.29–1.47, exact integers. Rāhu is the node's westward place.
Bīja time: centuries from the window's middle, the linear part held at ±5, the slow part at ±1.6 — or as the record's dīrgha part says (holdLinear / holdSlow: null runs on).
Which side of the window and how far beyond its edge (centuries, signed; held at the measured span), or null inside.
Σ a_k u^k, k = 1…: zero at the window's edge.
The slow time a body's phala sees outside: 'hold' the record's hold, { fade: c } from the edge's value to the middle's over c centuries, 'zero' the amplitudes as at the window's middle, 'run' carried on.
The basis the dīrgha-phala read: the record's, with aruṇa and varuṇa at the dīrgha record's own means.
One dīrgha-phala term in degrees (or a fraction, for 'radial'): amplitude a0 + Σ a_j |u|^j per side, on jyā/koṭijyā.
A body's dīrgha-phala on its geocentric place, and the edge step removed by the tapering offset. Returns [λ, β].
A star-planet's dīrgha-phala on its own orbit: [degrees on the heliocentric place, fraction on the distance].
The pulsating epicycle (SS 2.38): even − (even − odd)·|jyā κ|, as a fraction of the circle.
SS 2.39 with the arc: the manda-phala of kendra κ (= mean − mandocca), degrees, subtractive while κ < 180°.
The same sum, term by term, for a page that shows the derivation: the argument a (deg, the whole-number combination of the basis), its jyā and koṭijyā, the measured amplitudes (s, c; their slopes sT, cT in Ts) and the term's value — exactly what termSum adds, so Σ value ≡ termSum(terms, B, Ts). Display only: kula-pariksha.js tests the families, this only lays them out.
exact ratios [n, d] of BigInts, d > 0, in lowest terms
a written decimal ("-0.005037463454212717", "1.2544256065135158e-12", or a number by its shortest decimal) as an exact ratio
The bandha of a record's params: whole counts, dhruva and vṛddhi (BigInt), with the epoch's kāla — exact.
The working bandha of a record: derived from its own slots, checked against the witness file when that is the record's.
Bind a record (as read from bija-patra.json): its params carry their bandha under a symbol key — not in the sealed JSON, kept by {...params}. Every record is bound; a new seal gets its own bandha from its own slots.
The bandha that holds for P: present, with the Sun–Moon slots and the kāla it was made from — else null.
The bound means (degrees) at uniform day t: dhruva + R·Δ/days + vṛddhi·(Δ/36525)², the whole days of Δ taken exactly.
The corrected means and the basis vector at t, from the record's slots (inside the window the Sun–Moon means from the bandha).
The true Sun: λ, its distance (mean = 1), and the parts.
The true Moon: λ, latitude β (degrees).
A star-planet on Nīlakaṇṭha's construction: the heliocentric manda-sphuṭa on its kakṣyā, set on the true Sun.
The bare construction of a record entry: its slots without any phala term (cached per entry).
The core of a record entry: the construction with only its geocentric phala (geoTerms, sunRadTerms — the Earth's side of the figure); the planet's own orbit's phala (helio, radial, plane, latitude) left to the dīrgha record.
A star-planet. Inside the measured window, the full record. Outside it, the dīrgha record (mode 'full' or 'core' or 'bare' for the construction; its slots on the manda ratio, the kakṣyā's eccentricity and the inclination; its dīrgha-phala).
काल-बीज: seconds by which the civil instant t lags uniform time. K = { t0, step, sec: [...] } (knots step days apart from t0), linear between knots, the edge value held outside. Absent K → 0 (the record measured without it).
The grahas at civil ahargaṇa t (the engine's day, D13 meridian): carried to the record's own day (meridian.recordDays, owner rule A 2026-11-02), moved onto uniform days by the kāla-bīja, then means → bīja → manda/śīghra → phala.
The measured record (bija-patra.json).
The nine grahas at an ahargaṇa (civil days since Laṅkā midnight at the Kali start; BigInt, Rational or number).