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?