Shiny can be used to do fancy math, say, for someone trying to upload their GitHub website for their PhD thesis model. You've got to drop down for different things you might compare, and you can just toggle those in the UI changes kind of like you wrote a fancy front end JavaScript framework. In terms of putting like LaTeX equations on the screen, this is a completely built-in feature for Shiny for R and for Shiny for Python.