Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Creating a list from a product' topicStudent Support Forum > General > Archives > "Creating a list from a product"

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'Creating a list from a product')
Author Date Posted
Creating a list from a product Tatjana 02/20/13 03:35am
Re: Creating a list from a product Bill Simpson 02/20/13 1:30pm
Next Comment >Help | Reply To Topic