Brahmagupta made most of his discoveries while he was studying astronomy.
Brahmagupta was an Indian astronomer. Astronomy is the aspect of science is the part of science that studies the planets and outer space. Brahmagupta was the head of India's first observatory.
Brahmagupta was also a great mathematician. Most of his mathematical discoveries and work came about while studying a branch of science called astronomy.