i want to print the output of the equation in latex format (Output of the latex code), when i try to compile the following code , it is giving me the latex coede . can i print the latex equation i python?
import sympy
from sympy import *
t = symbols('t')
a = symbols('a')
b = symbols('b')
c = symbols('c')
L= Function('x')
deq = Eq(diff(L(t),t),a*L(t)+ b + c/L(t))
Lsoln = dsolve(deq, L(t))
pprint(Lsoln)
print(latex(Lsoln))