Indians employed planning principles and proportions that rooted the buildings to the cosmos, considering the movements of sun, stars, and other heavenly bodies. vastu shastra , the ancient Indian canons of architecture and town planning employs mathematical drawings called mandalas
Pythagoras theorem used in architecture: The Samrat Yantra, at Jaipur, designed by Jai Singh, measuring 147′ at its base and 90′ high could calculate time within two seconds accuracy per day. .
Jaipur was designed using the pithapada mandala as the basis. In this mandala of nine squares that represent the universe, earth occupies the central square. In the city, which consists of nine large squares, the central square is assigned to the royal palace. They calculated and planned city map using recursion: Length of City / Length of Middle Town : 771.1/340.5 ≈ 2.26; Length of Middle Town / Length of Castle: 340.5/151 ≈ 2.26