yantra/madhava-ganita.js
माधव-गणित: the sine, the arc and π of the Kerala school, for the bīja tier
75 lines · 10 exports
The header, as the file states it
What it loads
What it exports
PISQRT3R_MINjyakojyaarctancapacapaOfJyarsinQuadrantMADHAVA_JYA_TABLESS verses named in the header
- SS 2.33versejyāṃ projjhya śeṣaṃ tattvāśvihataṃ tadvivaroddhṛtam । saṃkhyātattvāśvisaṃvarge saṃyojya dhanurucyate ।।
The channels it runs in
Every function, what it calls, who calls it
7 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.
Mādhava's Rsin for an arc s in minutes, 0 ≤ s ≤ 5400 (in minutes, on R = 3437′44″48‴).
jyā of an angle in degrees, as a unit sine (Rsin ÷ R), any angle.
koṭijyā (cosine) in degrees.
Mādhava's arc series on |z| ≤ 2 − √3.
arctan z in radians: reciprocal for |z| > 1, the tri-karaṇī step for z > tan 15°, then Mādhava's series.
cāpa of (y, x): the full-circle arc in degrees [0, 360) of the point (x, y).
cāpa of a unit jyā (arcsine), degrees in [−90, 90]: SS 2.33's inverse.