Mathematics and geometric ornamentation in the medieval Islamic world