Oct-04-2020, 12:24 PM
(This post was last modified: Oct-04-2020, 12:25 PM by Gribouillis.)
The syntax
In an ordinary terminals, it is not possible to display equations this way because terminals normally don't have this capability. They are only matrices of characters.
$ y=x^2+1 $
is Latex (or TeX) syntax. In python, you can use it in matplotlib graphics or in Jupyter notebooks. You can also use it in a web browser with the mathjax extension. Last but not least, you can use Python to produce Latex documents and compile them by using Latex. You could also search in Pypi the existing modules related to latex.In an ordinary terminals, it is not possible to display equations this way because terminals normally don't have this capability. They are only matrices of characters.