Somehow it feels very odd to me than an Arab would have invented algebra!
FWIW, from Wikipedia: Regarding al-Khwārizmī's religion, Toomer writes: Another epithet given to him by al-Ṭabarī, "al-Majūsī," would seem to indicate that he was an adherent of the old Zoroastrian religion https://en.wikipedia.org/wiki/Zoroastrianism. This would still have been possible at that time for a man of Iranian origin, but the pious preface to al-Khwārizmī's Algebrashows that he was an orthodox Muslim https://en.wikipedia.org/wiki/Muslim, so al-Ṭabarī's epithet could mean no more than that his forebears, and perhaps he in his youth, had been Zoroastrians.[22] https://en.wikipedia.org/wiki/Muhammad_ibn_Musa_al-Khwarizmi#cite_note-toomer-24 If that's true, al-Khwaarizmii would have been closer to Vedic philosophy than to Islaam, now wouldn't he?? https://en.wikipedia.org/wiki/Muhammad_ibn_Musa_al-Khwarizmi https://en.wikipedia.org/wiki/Muhammad_ibn_Musa_al-Khwarizmi