Ujjain, with its tradition of scholarship, had been an important centre of mathematic learning since the 4th century CE. Two of the most famous mathematical brains of ancient India, Varahamihira (505-587 CE) and Brahmagupta (598-665 CE) belong to the Ujjain school of mathematics.
Varahamihira is said to have been one of the nine jewels of navaratnas in the court of Chandragupta II. Though he was born as Mihira. It is popularly held that overwhelmed by his genius, Vikramaditya conferred upon him the name Varaha (boar). Thereafter he come to be known as Varahamihira. Varahamihira is best known for his Panchasiddhantika (the Five Astronomical Conons, 575 CE) and Brihat Samhita.