I don't think intention was to discrediting these people at the time.
I know in modern times they especially refrain from teaching how "orientals" contributed to math and science tho.
I mentioned how Arabs worked in early Algebra to my friends once and they started talking to me about propaganda.
(On sidenote I love being a middle-eastern immigrant in US, everyone assumes I am transphobic! Awesome. /s)