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)
|
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)
|
Output :