Mathematics in ancient India was highly developed. Both Jain and Vedic stream developed it for its own purposes. They invented zero. Value of hypotaneous was calculated long before Pithogorous.
Value of Pie was determined accurate to 7 decimals. Numbers could be counted trillion multiplied by trillions 3000 years back. Ancient Indians calculated exact path of the Sun, the moon and other planets. Aryabhatt told us the earth moving around the sun 2000 years back. formula of square, cube and square roots were known to them. Surprisingly they knew logarithms, trigonometry and calculus.