Hello, i need to sum elements of matriŃes and vectors, for example here is
code (in notebook):
#
var('a,b,c,d,e,f,j')
v=vector([a,b,c])
m=matrix([[a,b,c],[d,e,f]])
sum(m[0,j]*v[j],(j,0,2))
#
I expect that it should result in a^2+b^2+c^2, but it gives
"TypeError: cannot evaluate symbolic expression numerically"
Is there any possibility to sum such expressions?
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org