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)]
1 | initial version |
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)]
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)]