I agree that it is important to represent history and quote people accurately, however Ghazali may have been guilty of some double speak on mathematics.Can't beat "rationalists" whose "evidence-based rationalism" abruptly ends when they talk about religion. While he may know a lot about astrophysics, he knows very little about the history, philosophy and theology he is pontificating on.
He puts the end of the 'Golden Age' down to al-Ghazali writing about how "Mathematics is the work of the devil", the main problem is that he didn't even say anything like this. It's just an internet myth that people uncritically repeat based on the most egregious misrepresentation. It basically says "just because you are good at maths, doesn't mean you are good at religion too".
If he had actually bothered to read it, Tyson could have learned from the following passage:
It does not follow that a man who excels in one branch of knowledge excels in all others, nor that he should be equally versed in jurisprudence, theology, and medicine. It is possible to be entirely ignorant of metaphysics, and yet to be an excellent grammarian. There are past masters in every science who are entirely ignorant of other branches of knowledge.
He says this combined with al-Ghazalis occasionalism to end the GA, the problem again being that 1. occasionalism existed throughout the GA 2. AG's occasionalism is an argument for why miracles can exist even though there are laws of nature, not an argument for why science is pointless.
So his argument is based on something completely made up, paired with a ridiculous strawman. Hooray for Reason!
Strangely not quoted from the same text, I wonder why...
The second evil comes from the sincere but ignorant Muslims who thinks the best way to defend religion is by rejecting all the exact sciences. Accusing their professors of being astray, he rejects their theories of the eclipses of the sun and moon, and condemns them in the name of religion.
It is therefore a great injury to religion to suppose that the defense of Islam involves the condemnation of the exact sciences. The religious law contains nothing which approves them or condemns them, and in their turn they make no attack on religion
He could have fact checked this in 5 mins, or by actually reading the text himself rather than parroting an internet meme. It's hilarious how credulous "sceptical rationalists" become when they hear anything that chimes with their ideological worldview whilst confirming their own sense of superiority.
Can check for yourself how easy it would have been: http://faculty.smu.edu/jclam/western_religions/gazali.html
Consider what Ghazali says here;
‘This is a serious evil, and for this reason those who study mathematics should be checked from going too far in their researches. For though far removed as it may be from the things of religion, this study, serving as it does as an introduction to the philosophic systems, casts over religion its malign influence. It is rarely that a man devotes himself to it without robbing himself of his faith and casting off the restraints of religion.’
So from my uneducated perspective it looks as though Ghazali did believe in interference with the study of mathematics.