al-Khwarizmi (who some credit with inventing algebra) was most likely a Zoroastrian who was forced to convert to Islam. However, algebra seems to have been invented in ancient Babylon and later further developed by the Greeks and Indians, the sources for al-Khwarizmi's work. China also had algebra before al-Khwarizmi cam along.