Al-Khwarizmi and new trends in mathematical astronomy in the ninth century