| Author |
Comment/Response |
littledrifty
|
09/22/11 3:55pm
In[54]:=
x = {1, 2, 3, 4};
f[x_] := x + 1
a = Map[f, x];
f1[x_] := x^2
b = Map[f1, a]
Out[58]= {4, 9, 16, 25}
I have a big list of functions etc. just like that second part above that includes f, a,f1,b. my list of functions is much longer... takes up about two pages of mathematica. I want to make all the functions and everything between the functions one big function.
(I looked up module, but I could not get it to work with functions in the mix)
in the end I would love to do this with the function above, so that I can do the same with my giant function in the long mathematica document. the one above and mine are very similar, except mine is just much longer.
Map[giantfunction,x]={4,9,16,25}
URL: , |
|