标签: python python-3.x
import numpy as np import sympy as sym r = sym.Symbol('r') rhos =0.02*10**7 rs = 89.74 f = np.log(rhos/ ((r/rs)*(1+(r/rs)))) alpha = sym.diff(f,r)
AttributeError: 'Mul' object has no attribute 'log'