Update math elements.