Consider the following alternative paragraphs containing a line of mathematics. The mathematics is in its own line (thus not in line with the text), e.g., for the sake of emphasis.
This paragraph contains a mathematical expression $$f(x)\to g(c)$$ After the mathematical statement I have not added punctuation.
This paragraph also contains a mathematical expression $$f(x)\to g(x).$$ However, I closed the mathematical statement with punctuation.
Which one is correct? Are there better alternatives? I think the second is correct, though I find the punctuation somehow inappropriate in the mathematical line (one might for example confuse it for a mathematical symbol).
This paragraph contains a mathematical expression: $f(x)\to g(x)$ After the mathematical statement I have not added punctuation.
This paragraph also contains a mathematical expression: $f(x)\to g(x)$. However, I closed the mathematical statement with punctuation.
The flow is broken in the first sentence. Given that we typically place math on its own line because it does not fit inline, I tend to think the punctuation rules should carry over from the inline conventions.
– csch2 Mar 30 '23 at 19:52\,before the punctuation and after the mathematical symbol. To be precise: $$a=b.\quad\text{bad!}$$ $$a=b,.\quad\text{good!}$$ – Kurt G. Jul 22 '23 at 05:55