I want to differentiate an expression as follows in `sympy`. I am using `jupyter qtconsole` with enabled latex:
from sympy import *
init_printing()
p0,nu,lamb,k,epsp, dp0 = symbols(r'p_0, nu, lambda, kappa, \delta\epsilon_p^p, \deltap_0')
test = Eq(epsp,((lamb-k)/nu)*dp0/p0)
p0expr = solve(test,p0)[0]
diff(p0expr, epsp)
diff(p0expr,k)
diff(p0expr,lamb)
I'd like to focus on the last three lines of code, lines 6, 7 and 8. Lines 7 and 8 output latex style output while line 6 does not. Why does line 6 not get output in latex? This makes no sense to me could anyone please explain?