fix mathfuns.rst doc formatting issues