Python | sympy.init_printing() method
With the help of sympy.init_printing() method, we are able to print the unicode characters for mathematical expressions.
Syntax :
sympy.init_printing()
Return : Return the beautiful printing using unicode char.
Example #1 :
In this example we can see that by using sympy.init_printing() method, we are able to print the unicode characters.
# Import sympy from sympy import * init_printing() # Define symbols and trigo expression x, y = symbols('x y') gfg = Integral(sqrt(1 / x), x) print(gfg) |
chevron_right
filter_none
Output :
Example #2 :
# Import sympy from sympy import * init_printing() # Define symbols and trigo expression x, y = symbols('x y') gfg = sqrt(1 / x) print(gfg) |
chevron_right
filter_none
Output :
Recommended Posts:
- class method vs static method in Python
- Python | os.dup() method
- Python | set() method
- Python | next() method
- Python | os.sched_setaffinity() method
- Python | os.sched_getaffinity() method
- Python | shutil.which() method
- Python | os.minor() method
- Python | os.major() method
- Python | os.truncate() method
- Python | os.sched_get_priority_min() method
- Python | sympy.has() method
- Python PIL | Kernel() method
- Python | sympy.cos() method
- Python | os.fchmod() method
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



