I'm trying to do some list manipulations with a number of lists, so I have indexed each list. For example, mat is a list, mat is a list, and so on. When I try working with these indexed lists, I am having some problems. The best way to illustrate my problems is with this example taken directly from a notebook:
Here are two identical lists - one is a ''normal'' list, and one is indexed:
Verifying that they are equal:
Now when I try assigning 4 to the second element in the indexed list, I receive the following error:
Set::''setps'': ''\!\(testlistb\) in assignment of part is not a symbol.''
The indexed list has not changed:
When I do the same thing for the ''normal'' list, I receive no errors and it works fine:
What is going on here? Clearly testlista = testlistb, so when I say testlistb[] = 4, it should take the second element of testlistb, 2, and replace it with 4, but it doesn't. If someone could please tell me what's going on here it would be helpful.
P.S. I'm using the student version of Mathematica V 3.0.