Is it a good practice to end a mathematical equation with a comma or a period in a scientific article?
In-line formulas are punctuated as required by the grammar.  For displayed formulas there are two conventions: punctuate as required by the grammar; or no punctuation.  See if the journal specifies this in their style (most don't).  Example



[Jahnke &amp; Emde, Dover Publications]