Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Vectorial division

If $\boldsymbol{D}$ isd a matrix. One can easily compute

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

but is there a simple way to compute :

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

Vectorial division

If $\boldsymbol{D}$ isd is a matrix. One can easily compute

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

but is there a simple way to compute :

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