Beruflich Dokumente
Kultur Dokumente
K.Ramasubramanian
Cell for Indian Science and Technology in Sanskrit
Department of HSS, IIT Bombay
Powai, Mumbai 400 076, India
kramas@iitb.ac.in
Abstract
Indian Astronomy is rich in algorithms. The algorithms presented in the Indian astronomical texts have varying degrees of
complexities starting from the simple trair
asika rule, to the treatment of parallax in a solar eclipse or the computation of the elevation of lunar cusps. In the present article we will discuss a few
algorithms that are representative of the ingenuity and continuity
of the Indian astronomical tradition. We start with the interpolation formula presented by Brahmagupta (c.665 AD) and then
proceed to describe a select few algorithms from Tantrasangraha
of Nilakan.t.ha composed in 1500 AD. Here we present the algorithm for the calculation of time from shadow measurements and
the exact algorithm for the computation of lagna and the time
for the duration of an eclipse. We also comment on the iterative
process known as avises.akarma which aims at circumventing the
problem of interdependencies among several variables.
Introduction
It is not uncommon to find words which originate with a different connotation and in due course pick up a completely different connotation. The
word algorithm forms a good example of this. Its origin can be traced
back to the Persian mathematician, al-Khwarazmi (800-847 AD). It is
quite interesting to note the observations made by D.E. Knuth in this
context [1]:
183
184
K.Ramasubramanian
185
186
K.Ramasubramanian
(1)
where the variable x denotes the angle and x 0i s are multiples of 9000 .
The term Bhogya refers to the present interval between x n and xn+1 .
The term khand.aka refers to the I order tabular differences in the sine
values and we denote it by n .
n = f (xn ) f (xn1 ).
(2)
(n n+1 )
(n + n+1 )
,
f (xn + ) = f (xn ) +
2
2
(3)
(n n+1 )
f (xn + ) = f (xn ) +
n+1 +
1
. (4)
2
Clearly, the formula given by Brahmagupta is identical with the standard quadratic interpolation formula [8].
The technique of making a fairly good estimate of the time from the
shadow of an object cast by the Sun has been in vogue from time immemorial. Different cultures and traditions across the world have devised simple instruments for this purpose. In the Indian astronomical
tradition the instrument used is called sanku
.
187
rays from
the sun
E
X
Sanku
z
O
Celestial
Ecliptic
Equator
(Vernal equinox)
188
K.Ramasubramanian
(c.1500 AD) for determining the time from shadow measurement turns
out to be essentially a function of , and z, where z is the zenith
distance of the sun. Since and are already found through shadow
measurements, only z needs to be known. For this, consider the triangle
OXY in Fig.1. It can be easily seen that
OY
XY
OY
or
z = sin1
,
(6)
XY
The algorithm for finding the time from shadow measurements is presented by Nilakan.t.ha as follows [10]:
. ) : 6$ ) * (< (
" )
- '1
* *
,%- :
< ) ($ ; *
/
)
( 1 . * *
1 $
) 4 $ *
The sanku
189
(8)
R cos z
R sin .
cos cos
(9)
The above result can be easily understood using the tools of spherical
trigonometry.4 For this, consider Fig.3 where S is the Sun on its diurnal
path whose zenith distance is z, corresponding to the arc ZS. The
point where the sun sets in the western part of the horizon is denoted
by St . The segment P W is a part of the 6 00 clock circle, and the angle
Z P W = 90o . Applying four-part formula to the triangle P W S t , it can
be shown that, the ascensional difference is given by the relation
(well known in Indian Astronomy)
sin = tan tan .
(10)
Generally R cos z, which is the perpedicular distance of the sun from the horizon,
is called mah
asanku
in order to distinguish it from the gnomon (dv
adasa
ngula
sanku)
190
K.Ramasubramanian
90
Z
dirunal path
of the sun
90
90
Horizo
r )
to
ua vrtta
q
E ika
t
ha
(G
St
6
O
(T clo
iry ck
ak cir
vr cle
tta
)
B
D
cos z
tan tan
cos cos
cos z
sin .
cos cos
Hence, the time, t that is yet to elapse before sunset in angular measure
is
cosz
1
sin + ,
(11)
t = + = sin
cos cos
which is the same as Eq.(9) given by Nilakan.t.ha .
191
The method to determine the time elapsed after sunrise is exactly similar. It is worth mentioning in this context that, in finding z, the correction due to the finite size of the Sun and its parallax have also been
taken into account by Nilakan.t.ha [11]. If z 0 were the apparent zenith
distance, then the true zenith distance z is given by
z = z 0 +
= ds p,
with
(12)
R cos z, in an earlier
verse [12], which is to be used in the expression (Eq.9) for determining
the time from the shadow.
Lagna refers to the orient ecliptic point, that is, the point of the ecliptic which intersects with the eastern horizon at any desired instant.
Nilakan.t.ha while discussing the procedure for finding lagna, in his
Tantrasangraha
4.1
Conventional method
**
**
192
K.Ramasubramanian
: : " ) 1 " 67 ) " ( *
4 .# "1 & " 1 ( ( * *
" ) . 1 "
1 " - < *
,
/
/
/
( 4 67 $ " ;: ) ' <:
< & : '. # 5 =* *
. *
" <( ) ' *
/
81
;:
1 9 1 . ) - < * *
/
/
. ) )
1 ; & *
From the longitude of the Sun corrected for ayana, the number of minutes to be elapsed in that r
asi (are calculated).
This is multiplied by the duration of rising of that r
asi and
is divided by the number of minutes in a r
asi . This gives
that pr
an. as for the remaining r
asi to rise and that has to be
subtracted from the duration elapsed (since the sunrise).
From the remainder (h0 ), the durations of rising of the r
asis
that follow have to be subtracted. Having added the degrees
remaining in that r
asi to the Sun, the other r
asis (degrees
corresponding to r
asis ), as many number of them, whose
rising times were subtracted are also added. The remaining
pr
an.as (r) are multiplied by 30 and divided by the duration
of rising of that r
asi . The result obtained is once again
added to the Sun.
The remainder when multiplied by 60 gives the result in minutes. Thus, pr
aglagna , the orient ecliptic point should be
obtained. The astalagna , setting ecliptic point is obtained
by adding six signs to that.
To know the longitude of the ecliptic points from the mes. adi,
the ayana correction has to be applied reversely.
The procedure described here may be understood with the help of Fig.4.
Here S represents the Sun in the eastern part of the hemisphere, the
vernal equinox. R1 , R2 etc., are the ending points of the first r
asi (sign),
second r
asi and so on. h refers to the time elapsed after the sunrise and
H the hour angle of the the Sun.
193
Z (zenith)
P (pole)
tR
h
S
R1
u
Eq
Horizo
R2
r
ato
N
Ecl
ipti
Figure 4: Determination of pr
aglagna (orient ecliptic point) by the
conventional method
Let s be the s
ayana longitude5 of the Sun. Suppose the Sun is in the i th
r
asi (in the Fig.4, it is shown to be in the first r
asi ), whose rising time
at the observers location is given by T i . If Ri be the angle remaining to
be covered by the Sun in that r
asi (in minutes), then the time required
for that segment of the r
asi to come above the horizon is given by
Ri T i
,
(13)
30 60
where Ti is in ghat.ikas . A factor of 60 in the denominator indicates
that the result tRi is expressed in pr
an. as.6 Subtracting this time tRi
from the time elapsed since sunrise h, we have
t Ri =
h 0 = h t Ri .
From h0 the time required for the subsequent r
asis to rise, T i+1 , Ti+2 ,
etc., are subtracted till the remainder r remains positive. That is,
r = h0 Ti+1 Ti+2 . . . Ti+j1
(r + ve)
5
This refers to the longitude measured from the vernal equinox. Here, it may be
noted that in Indian astronomy, nirayan.a longitudes are more commonly used. They
refer to the longitude measured from a fixed point, which is generally taken to be the
beginning point of star called Asvini. It is also referred to as mes. a
di as in the last
line of the Sanskrit quotation given above.
6
Ghat.ik
a is a measure which is close to 24 minutes and pr
an. a 4 seconds.
194
K.Ramasubramanian
r 30
Ti+j
(in deg.).
(14)
(15)
(16)
because the horizon divides the ecliptic exactly into two parts. The
lagnas obtained by the above procedure are s
ayana lagnas. To obtain
the nirayan. a ones, one needs to subtract the ayan
am
. sa.
After describing the above method, Nilakan.t.ha remarks that it is only
approximate [14]:
; " # ;: <
4.2
Exact algorithm
195
(17)
P
al
urn
Di le
c
cir
Ec
lip
tic
Horizo
,
Eq
ua
tor
Figure 5: Determination of k
alalagna .
Now, vitribhalagna is the point on the ecliptic which is 90 away from
the lagna. Consider Fig.6, where S is the Sun, is the vernal equinox
and L is the orient ecliptic point, whose longitude is the lagna. V is
the vitribhalagna and K is the pole of the ecliptic. Dr. ks.epa is sine of
196
K.Ramasubramanian
(18)
(zenith)
K
H
P (pole)
V
S
Ecl
ipti
tor
Horizo
ua
Eq
Figure 6: Determination of pr
aglagna (orient ecliptic point) - exact
method.
This is essentially what is stated in the following verse [16].
)( ) ,% - ,%- < ' 1 )
/
0 * $ 6) # $ *
/
7 . - # 1 $7 ;
**
**
197
antyadyujy
a aks.a
R cos R sin
=
,
trijy
a
R
and,
y=
sin 24
It may be noted in the above equation that sin
R = 3438 is taken to be
1
. ks.epa (= R sin ZV , refer Fig.6) is given to be
8452 . Now, dr
dr.ks.epa
= xy
(19)
The nata (hour angle) or unnata may be obtained depending upon whether the computation is done at midday or
midnight. If nata is obtained, then the b
an. a (versed sine,
utkramajy
a) of it is to be subtracted from trijy
a , and the result is added to the carajy
a. If unnata, (is obtained) then the
198
K.Ramasubramanian
where l and s are the lagna and the Suns longitude respectively. From
the above equation, taking the inverse sine we get l s . To this, if we
add the longitude of the Sun we get the desired longitude that is lagna
(l ). The rationale behind the above equation can be easily understood
with the help of Fig.6.
Applying the cosine formula to the spherical triangle PZS we have,
cos ZS = sin sin + cos cos cos H.
Similarly from the triangle ZVS we get,
cos V S =
cos ZS
.
cos ZV
Both in the modern as well as ancient Indian astronomy, the true position of the planet7 is obtained from the mean position by applying
a correction to it. The correction term is known as mandaphala , in
Indian astronomy, while it is known as equation of centre in modern
astronomy.
In Fig.7, A represents the direction of the mandocca (apside) and its
= $. P0 is the mean planet whose longitude called
longitude OA
7
Though the treatment is general, in this section planet refers to either the Sun
or the Moon.
199
A (direction of mandocca)
P (planet)
Q
0
P0
0
MS
, r 0 also
varies such that
r
r0
= ,
K
R
is a constant. Here r is a given parameter. Then,
sin(M S 0 ) =
r
sin(0 $).
R
(20)
The difference between the true (mandasphut. a ) and the mean position,
is called mandaphala, whereas the difference between the mandocca and
200
K.Ramasubramanian
(22)
It may be noted that the calculation of true position of the planet involves sine inverse function ( Eq.(22)). Hence, if one needs to find the
instantaneous velocity of the planet called t
atk
alikagati, one would have
to find the time derivative of this function. It is indeed remarkable that
an exact formula for the derivative of sine inverse function is given in
Tantrasangraha
as follows [18]:
) $ " 0 67 ) 0 ) 1 (<+*
/
( 0 0 ' 1 ) 0 =
: * *
/
( " 67 ;
& : . ) & ;: = $7
*
/
( -
0 ( $ 6) 9 ) : ;: =* *
/
**
**
Let the product of the kot. iphala (in minutes)[r cos M ] and
the daily motion of the manda-kendra ( dM
dt ) be divided by the
square root of thesquare of the doh. phala subtracted from the
square of trijy
a ( R2 r 2 sin M ). The result thus obtained
has to be subtracted form the daily motion of the Moon if
the manda-kendra lies within six signs beginning from mr. ga
and added if it lies within six signs beginning from karkat. aka.
The result gives more accurate value of the Moons angular
velocity. In fact, the procedure for finding the instantaneous
velocity of the Sun is same as this.
If M be the manda-kendra , then the content of the above verse can be
expressed in mathematical form as
dM
r cos M
d
1 r
dt
(sin ( sin M )) = p
.
2
2
dt
R
R r sin2 M
(23)
201
This verse appears in the context of finding the true rate of motion of
the Moon (instantaneous velocity) from its average rate of motion (mean
velocity). The term gati refers to the rate of change of the longitude of
the planet.
Recalling the expression for the true longitude of the planet, Eq.(22),
the rate of change of it is
d
d
d
M S = 0 .
dt
dt
dt
(24)
Here, the first term in the RHS represents the mean velocity of the planet
and the second term the change in the mandaphala given by Eq.(23).
In the following section dealing with the computation of the duration of
an eclipse, the daily motion of the Moon denoted by d m is nothing but
the derivative of mandasphut. a given by Eq.(23),(24).
In Indian astronomy, the total duration of an eclipse is found by determining the first and the second half durations separately. More often
than not, there will be significant difference between the two durations.
For obtaining accurate values, they are calculated using an iterative procedure, called avises. akarma, as will be explained in this section. The
sum of the two durations gives the total duration of the eclipse. For instance, if T1 and T2 be the first and second half durations of the eclipse,
then the total duration of the eclipse is given by
T = T 1 + T2 ,
where both T1 and T2 are found iteratively.
6.1
The time interval between the Moon entering the umbral portion of the
shadow and the instant of opposition is the first half duration, T 1 , and
that between the instant of opposition and the exit of Moon out of the
umbral region is the second half duration T 2 . Naively, one may think
202
K.Ramasubramanian
that these two durations would be equal. However, this is not true
because of the continuous change in the velocities of both the Sun and
the Moon.
In Fig.6(a), AX = and OX = S represent the latitude of the Moon and
the sum of the semi-diameters of the shadow and the Moon respectively.
If dm ds refers to the difference in the instantaneous daily motion of
the Sun and the Moon, then the first half duration (T 1 ) is given by
OA
T1 =
=
Dif f. in daily motion
p
OX 2 AX 2
S2 2
=
dm d s
dm d s
ns
Moo
(a)
.
.
(25)
orbi
Ecliptic
rbit
s o
n
Moo
(b)
O
.
.
B
Y
Ecliptic
Figure 8: (a) The Earths shadow and the Moon just before the beginning of the eclipse and just after the release. (b) The Earths shadow
and the Moon just after the beginning of total eclipse and just before
its release.
6.2
203
the Moon. If m and s are the longitudes of the Sun and the Moon,
this difference in their daily motion called gatyantara or bhuktyantara is
given by
d
gatyantara = D(t) = (m s).
dt
Initially, and D(t) are calculated at the instant of opposition. If
Moons latitude and the rate of motion of the Sun and the Moon were
to be constant, then Eq.(25) would at once give the correct half duration of the eclipse and there would be no need for an iterative procedure.
However, they are continuously varying quantities. Hence, determining
T1 , using the latitude and gatyantara computed at the instant of opposition is only approximate and to get more accurate values avises. akarma,
a special kind of iterative procedure, is prescribed.
6.3
Concept of Avises.akarma
204
K.Ramasubramanian
6.4
t2 =
S 2 (tm t1 ) 2 (tm t1 )
D(tm t1 )
205
(26)
t0i
(28)
At this stage, the second half duration of the eclipse and the moks. ak
ala
are given by
T2 = t0r
te = tm + t0r
Now, the total duration of the eclipse is t e tb = T1 + T2 .
(29)
206
K.Ramasubramanian
Concluding Remarks
: A Landmark in the
History of Astronomy, Ed. by M.S.Sriram, K.Ramasubramanian
and M.D.Srinivas, Indian Institute of Advanced Study, Shimla,
2002.
nkara
4. (i) The verses attributed to Madhava (c.14th century) by Sa
207
obtaining the sine and cosine values for any desired angle, yield
results correct up to 7 decimal places. This is indeed a remarkable
result which may be considered far ahead of his times. (ii) For
more details and mathematical exposition of the above the reader
may refer to the article by M.S. Sriram published in the present
volume.
nkara
5. Ll
avat of Bhaskaracarya with the commentary of Sa
and
Narayan.a, Ed. by K.V.Sarma, VVRI, Hoshiarpur, 1975, ver.73, p
178.
6. Gan.ita-yuktibh
as.a
, Ed. with English Translation by K.V.Sarma,
with Explanatory Notes by K.Ramasubramanian, M.D.Srinivas
and M.S.Sriram (in press), Vol. I, Chap 4.
7. Khan.d.akh
adyaka of Brahmagupta, Ed. and Tr. by Bina Chatterjee, Motilal Banarsidass, 1970, Vol. 2, Uttarakhan. d.akh
adyaka,
Chap 1, ver.4.
8. Erwin Kreyszig, Advanced Engineering Mathematics, John Wiley
& Sons, 1983, p 774.
9. See for instance, Siddhantasiroman. i , Chap 3, verses 12-14.
10. For a detailed exposition on this, see K.Ramasubramanian
and M.S.Sriram, Corrections to the terrestrial latitude in
Tantrasangraha
Laghuvivr.tti of Sankara
208
K.Ramasubramanian