Printing with Sympy


In [ ]:
import sympy as sp

In [ ]:
x = sp.symbols("x")
integ = sp.Integral(sp.sqrt(1/x), x)

Pretty print

ASCII


In [ ]:
sp.pprint(integ, use_unicode=False)

Unicode


In [ ]:
sp.pprint(integ, use_unicode=True)

LaTeX


In [ ]:
print(sp.latex(integ))

MathML


In [ ]:
sp.printing.mathml(integ)