python: changing symbol variable and assign numerical value
问题 In order to calculate derivatives and other expressions I used the sympy package and said that T = sy.Symbol('T') now that I have calculated the right expression: E= -T**2*F_deriv_T(T,rho) where def F_deriv_rho(T,rho): ret = 0 for n in range(5): for m in range(4): inner= c[n,m]*g_rho_deriv_rho_np*g_T_np ret += inner return ret that looks like this: F_deriv_rho: [0.0 7.76971e-5*T 0.0001553942*T**2*rho T*(-5.14488e-5*log(rho) - 5.14488e-5)*log(T) + T*(1.22574e-5*log(rho)+1.22574e-5)*log(T) + T*