标签: python arrays numpy typeerror scalar
x= np.linspace(0,1,n) r2fun = np.zeros(n) r2fun = -np.math.sin((np.math.pi*x)/end)
我收到此错误 TypeError:只能将size-1数组转换为Python标量