是什么导致此错误? 'Mul'对象没有属性'log'

时间:2019-12-30 16:06:37

标签: 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'

0 个答案:

没有答案