The Līlāvatī is Indian mathematician Bhāskara II's treatise on mathematics, written in 1150. It is the first volume of his main work, the Siddhānta Shiromani, alongside the Bijaganita, the Grahaganita and the Golādhyāya.
His book on arithmetic is the source of interesting legends that assert that it was written for his daughter, Lilavati. A Persian translation of the Lilavati was commissioned in 1587 by Emperor Akbar and it was executed by Faizi. According to Faizi, Lilavati was Bhaskara II’s daughter. Bhaskara II studied Lilavati's horoscope and predicted that she would remain both childless and unmarried. To avoid this fate, he ascertained an auspicious moment for his daughter's wedding and to alert his daughter at the correct time, he placed a cup with a small hole at the bottom of a vessel filled with water, arranged so that the cup would sink at the beginning of the propitious hour. He put the device in a room with a warning to Lilavati to not go near it. In her curiosity though, she went to look at the device and a pearl from her bridal dress accidentally dropped into it, thus upsetting it. The auspicious moment for the wedding thus passed unnoticed leaving a devastated Bhaskara II. It is then that he promised his daughter to write a book in her name, one that would remain till the end of time as a good name is akin to a second life.
Many of the problems are addressed to Līlāvatī herself who must have been a very bright young woman. For example "Oh Līlāvatī, intelligent girl, if you understand addition and subtraction, tell me the sum of the amounts 2, 5, 32, 193, 18, 10, and 100, as well as [the remainder of] those when subtracted from 10000." and "Fawn-eyed child Līlāvatī, tell me, how much is the number [resulting from] 135 multiplied by 12, if you understand multiplication by separate parts and by separate digits. And tell [me], beautiful one, how much is that product divided by the same multiplier?"
The word Līlāvatī itself means playful or one possessing play (from Sanskrit, Līlā = play, -vatī = female possessing the quality).
The book contains thirteen chapters, mainly definitions, arithmetical terms, interest computation, arithmetical and geometrical progressions, plane geometry, solid geometry, the shadow of the gnomon, the Kuṭṭaka - a method to solve indeterminate equations, and combinations. Bhaskara II gives the value of pi as 22/7 in the book but suggest a more accurate ratio of 3927/1250 for use in astronomical calculations. Also according to the book, the largest number is the parardha equal to one hundred thousand billion.