Python Forum
About mathematical equations - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: About mathematical equations (/thread-30082.html)



About mathematical equations - seyidcemkarakas - Oct-04-2020

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 $”)


RE: About mathematical equations - Gribouillis - Oct-04-2020

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.


RE: About mathematical equations - seyidcemkarakas - Oct-04-2020

Thanks


RE: About mathematical equations - Gribouillis - Oct-04-2020

I forgot to mention the sympy module which also has capabilities with respect to latex.