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.



filter_none

edit
close

play_arrow

link
brightness_4
code

# 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


Output :

Example #2 :

filter_none

edit
close

play_arrow

link
brightness_4
code

# 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


Output :



My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

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.




Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.