Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Mapping a function onto a list' topicStudent Support Forum > General > "Mapping a function onto a list"

Next Comment >Help | Reply To Topic
Author Comment/Response
Gideon
05/29/07 5:49pm

Hi All!

Here is my problem.
I have a function that takes three variables, say f[a_,b_,c_]:=a+b+c.
I also have a list, say, list=[{1,2,3,4,5}]
I want to apply this function to the list, in such a way, that only the first slot is changed, that is, for arbitrary b's and c's
Map[f,list] -> f[1,b,c]+f[2,b,c]+f[3,b,c]+f[4,b,c]+f[5,b,c]

Is this possible with the function Map or any other function? I would be grateful for any suggestion.

Gideon

URL: ,

Subject (listing for 'Mapping a function onto a list')
Author Date Posted
Mapping a function onto a list Gideon 05/29/07 5:49pm
Re: Mapping a function onto a list yehuda ben-s... 05/29/07 10:01pm
Next Comment >Help | Reply To Topic