Revision history [back]

Keeping zeros after matrix multiplication

Hello, Sage Community!

Suppose I do the following:

var('x y z')
u = vector([0, 1, 1])
v = vector([x, y, z])
u * v


The result is obviously y+z. I would like to keep the zeros after the multiplication, in order to have 0x+y+z as my result. Is it possible?