[This question has been rewritten]
To simple down my last question, I think this example will be more clear. Suppose I have this list of functions list1[a] and append them to another list of functions list2[a].
list1[a_] := List[
{(w + a), -d},
{-a, -d},
{-(w + a), -(t + d)},
{-a, -(t + d)},
{-a, -d},
{(w - a), -d},
{-a, -(t + d)},
{(w - a), -(t + d)}
];
list2[a_] := List[];
For[i = 1, i <= 8, i++,
AppendTo[list2[a], list1[a][[i]]]
];
Now, for example, I want to make a=1 and see list2. My problem is, when I do this:
list2[1]
I get
{}
Thank you for you patience!
listI can't figure out what your function is trying to do. But doesWith[{list = Table[i a, 5]}, Table[c1* ArcCos[(list[[i]].list[[i + 1]])/(Norm[list[[i]]]* Norm[list[[i + 1]]])], {i, Length[list] - 1}] ]output something like what you're looking for (ie: a list of functions)? – aardvark2012 Oct 08 '17 at 21:56Appendseems wrong, I think you may meanAppendTo. But honestly, I can't figure out what question you are asking. Can you pare it down to a simple version? – bill s Oct 08 '17 at 22:28list2[a_] := List[];creates a "function" namedlist2which, by default, returnsList[]. YourForloop then overloadslist2for a specific case where the argument is explicitlya. After running your code then typinglist2[a]a result identical to typinglist1[a]is returned. Note that the definitions forlist2[1]orlist2[someotherargument]have not been modified. – LLlAMnYP Oct 12 '17 at 11:49