| 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: , |
|