In the ninth century the Persian mathematician Muhammad ibn Musa al-Khwarizmi wrote The Compendious Book on Calculation by Completion and Balancing. It was the first book to introduce the concept of algebra to European scholars. Al-Khwarizmi developed a unifying theory which allowed rational and irrational numbers to be treated as algebraic objects.