While living in Baghdad during the ninth century AD he became the Chief Librarian at the House of Wisdom, a library and major center of intellectual study. In the year 820AD, al-Khwarizmi wrote Al-Kit...While living in Baghdad during the ninth century AD he became the Chief Librarian at the House of Wisdom, a library and major center of intellectual study. In the year 820AD, al-Khwarizmi wrote Al-Kitab al-mukhtasar ti Hisab al-jabr w’al-muqabala, translated to, The Compendious Book on Calculation by Restoration and Reduction, the first book to generalize solving equations using the principles of equality.