|
发表于 2010-10-26 17:51:08
|
显示全部楼层
If data is a string, it is interpreted as a matrix with commas or spaces separating columns, and semicolons separating rows.
So a**2, -a**2/2 are likely interpreted as string
Try this
G=numpy.matrix([[a**2,-a**2/2,0],[-a**2/2, a**2,0],[0,0,c**2]]) |
|