Python | sympy.init_printing() method
Last Updated :
18 Jun, 2019
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.
from sympy import * init_printing()
x, y = symbols( 'x y' )
gfg = Integral(sqrt( 1 / x), x)
print (gfg)
|
Output :
Example #2 :
from sympy import * init_printing()
x, y = symbols( 'x y' )
gfg = sqrt( 1 / x)
print (gfg)
|
Output :
Share your thoughts in the comments
Please Login to comment...