 In 1842 Sastri went to Government Sanskrit College, Varanasi, where he taught rekha-ganita (Euclidean Geometry).In 1890 Sudhakar Dwivedi was appointed the teacher of mathematics and astrology after Bapudeva Sastri, retired in 1889.Bapudeva Sastri translated the Siddhānta Shiromani (a treatise on Hindu mathematics written in the twelfth century by Bhaskaracharya) and published it in Benares in 1891.