Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I've been using SageMath for a short time but I think I can help you.

I don't understand your last command: t[eU,:]== [1,1]. You are comparing the tensor with [1,1]. I guess this is not what you intended. In essence you are defining a structure akin to a 3 by 3 matrix, so in order to define the tensor I would use something like:

t[0,0], t[1,1], t[2,2] = 1, 2, 3

In order to see the tensor you can use