Surya Siddhanta
प्राक्कपाले +अधिकम् मध्याद् भवेत् प्राग्रहणम् यदि । मौक्षिकम् लम्बनम् हीनम् पश्चार्धे तु विपर्ययः॥
If the Sun be east of the nonagesimal and the parallax at the beginning be greater and that at the end be less than the parallax at the middle, or if the Sun be west, and the parallax at the beginning be less and that at the end be greater than the parallax at the middle -
english translation
prAkkapAle +adhikam madhyAd bhavet prAgrahaNam yadi । maukSikam lambanam hInam pazcArdhe tu viparyayaH॥
hk transliteration by Sanscript