Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To give a name to an append list

If I code this

A=matrix([[(1/2),(1/4),0],[1,3,-1], [1,1,0]])
b=vector([5, 18,10])
c=vector([102, 303, -100])
t=matrix(A.augment(b))
c=c.list()
c.append(0)
show(t,c)

Sagemath return what is expected. But if I want to change the name of c.append(0), it return none, So I cannot reuse the augmented vector.

To give a name to an append list

If I code this

A=matrix([[(1/2),(1/4),0],[1,3,-1], [1,1,0]])
b=vector([5, A = matrix([[1/2, 1/4, 0], [1, 3, -1], [1, 1, 0]])
b = vector([5, 18,10])
c=vector([102, c = vector([102, 303, -100])
t=matrix(A.augment(b))
c=c.list()
t = matrix(A.augment(b))
c = c.list()
c.append(0)
show(t,c)
show(t, c)

Sagemath return SageMath returns what is expected. expected. But if I want to change the name of c.append(0), it return ? It returns noneNone, So so I cannot reuse the augmented vector.