Mathematicians rarely heed the advice of grammarians. In mathematical writing, one often places equations in a numbered environment outside of the inline text. Consider the following example.
Define f to be the function, f(x) = sin x (1) where x is to take values in [0,pi].
Although one rarely finds correct punctuation or consistent grammar in math textbooks or online, I'm inclined to be as anal as physically possible in my Ph.D. thesis and consult the appropriate authorities in the matter.
What is the correct protocol for punctuation in the numbered equation environment?
In particular, should there be a comma after "sin x"?