Linked Questions
38 questions linked to/from Elegant manipulation of the variables list
1
vote
1
answer
301
views
direct assignment to the element in a Table
I have already asked a related question here why set values in this way doesn't work?
But I think I have to write the question which I encountered explicitly?
...
4
votes
2
answers
260
views
why set values in this way doesn't work?
question is as follows
define a list
ttt={1,2};
and if I set values in this way
{ttt[[1]],ttt[[2]]}={3,4}
then the value ...
1
vote
2
answers
203
views
Why does Evaluate[a[[1]]]=0 assign a value to a variable while a[[1]]=0 doesn't?
I'm trying to do a small page counter with Mathematica, for leting me know about my reading progress on some books. I'm stuck on a problem:
...
16
votes
3
answers
9k
views
Assigning values to a list of variable names
As part of a calculation I need to do something like this
Evaluate[{aaa, bbb, ccc}[[ index]]] = {1, 2, 3, 4, 5}
so if index is ...
53
votes
2
answers
2k
views
Head and everything except Head?
I have been working on picking expressions apart using Head and Part and encountered a little mystery. Consider the canonical ...
49
votes
5
answers
5k
views
How to create symbols from strings and set values for them?
I am trying to convert a list of string names into symbols, which will then be used to store data. I have 24 files (where the name of each file is a member of the list mentioned above) that I need to ...
23
votes
5
answers
1k
views
Reassign values to symbols
I've got a situation where I have, say 4 symbols, a, b, c and ...
602
votes
19
answers
156k
views
Where can I find examples of good Mathematica programming practice?
I consider myself a pretty good Mathematica programmer, but I'm always looking out for ways to either improve my way of doing things in Mathematica, or to see if there's something nifty that I haven't ...