| Author |
Comment/Response |
Tatjana
|
02/20/13 03:35am
Say I have a list a={1,2,3,...,n} and some constant b. I am trying to create a new list such that newlist={
b*a[[1]],
b*a[[1]]*a[[2]],
b*a[[1]]*a[[2]]*a[[3]],
.
.
.,
b*a[[1]]*a[[2]]*a[[3]]*...*a[[n]]}.
Do I have to use Do loop? I tried with Table but could not make it work. What about NestList?
Thank you
URL: , |
|