Python Forum
About mathematical equations
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
About mathematical equations
#1
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 $”)
Reply
#2
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.
Reply
#3
Thanks
Reply
#4
I forgot to mention the sympy module which also has capabilities with respect to latex.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  plotting based on the results of mathematical formulas Timur 1 295 Feb-08-2024, 07:22 PM
Last Post: Gribouillis
  Taking Mathematical Expressions from Strings quest 2 664 Jul-02-2023, 01:38 PM
Last Post: Pedroski55
  Recognising mathematical expressions from word and pdf file Preeti15 0 1,738 Aug-19-2020, 09:06 AM
Last Post: Preeti15
  Mathematical Conversion Scripts for Weather Station Mickey53usa 11 4,489 Jun-24-2020, 03:14 AM
Last Post: buran
  Mathematical Operators in String AgileAVS 1 2,344 Mar-04-2020, 04:14 PM
Last Post: Gribouillis
  Mathematical function input Tiiill 2 2,673 Sep-10-2019, 09:25 PM
Last Post: nilamo
  Beginner user: mathematical operations Mahdi1994 1 2,813 Mar-19-2018, 11:07 AM
Last Post: Larz60+
  how to make a mathematical operation without the command "print" ewar2606 4 2,896 Mar-15-2018, 07:19 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020