Brahmagupta is the author of two early works on mathematics and astronomy: the Brahmasphuṭasiddhanta a theoretical treatise, and the Khaṇḍakhadyaka a more practical text.