Python | sympy.init_printing() method (original) (raw)
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.
Python3 1=1 `
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 :
Python3 1=1 `
Import sympy
from sympy import * init_printing()
Define symbols and trigo expression
x, y = symbols('x y') gfg = sqrt(1 / x)
print(gfg)
`
Output :