Revision history [back]

Both

r1=[vector((D[j+1][i]-D[j][i])/D[j][i] for i in range(D[j].degree())) for j in range(D.nrows()-1)]


and

r1=[vector((D[j+1, i]-D[j, i])/D[j, i] for i in range(D[j].degree())) for j in range(D.nrows()-1)]


work for me.

(Elementwise vector division is not a standard mathematical operation, so it makes sense that just dividing by D[j] is not implemented, nor should it be.)

Both

r1=[vector((D[j+1][i]-D[j][i])/D[j][i] for i in range(D[j].degree())) for j in range(D.nrows()-1)]


and

r1=[vector((D[j+1, i]-D[j, i])/D[j, i] for i in range(D[j].degree())) for j in range(D.nrows()-1)]


work for me.

(Elementwise vector division is not a standard mathematical operation, so it makes sense that just dividing by D[j] is not implemented, implemented in SageMath, nor should it be.)be, since the software is aimed at mathematical use.)