Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'map with several arguments' topicStudent Support Forum > General > "map with several arguments"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
JamesF
10/12/12 9:33pm

You might try the built-in function Thread.

For example, with the definitions:

x={x1,x2,x3};
z={z1,z2,z3};
f[x_,y_,z_]:=x^2+y+z^2

Executing the command

Thread[f[x,y,z]]

returns the following:

{x1^2+y+z1^2, x2^2+y+z2^2, x3^2+y+z3^2}

Hope that helps.

URL: ,

Subject (listing for 'map with several arguments')
Author Date Posted
map with several arguments Felipe B 10/11/12 3:18pm
Re: map with several arguments Bill Simpson 10/12/12 2:00pm
Re: map with several arguments yehuda 10/12/12 5:05pm
Re: map with several arguments JamesF 10/12/12 9:33pm
Re: map with several arguments yehuda 10/14/12 02:34am
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic