Python Forum

Full Version: About mathematical equations
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys!
I try to write equatoins not like that:
y=x^2+3x+11
But i like to write how we can write on our hands.Like this image
[Image: EXn6RR9HHpH2AH2j9]

So how can i write?
Note: i slightly remember that i can do it like : print(“$ y=x^2+1 $”)
The syntax $ 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.
Thanks
I forgot to mention the sympy module which also has capabilities with respect to latex.