Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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?

Thanks in advance for your answers!