1 | initial version |
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.)
2 | No.2 Revision |
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.)