For questions relating to assignments to symbols, patterns, or expressions.

learn more… | top users | synonyms

7
votes
1answer
87 views

Maximum number of literal values for SetDelayed?

Under what circumstances should I expect Mathematica to turn a delayed assignment into an immediate assignment? I have put together a minimal example (available here) which demonstrates this behavior. ...
3
votes
0answers
81 views

Why is it not allowed to define vectors of variables in a scoping construct?

The following command assigns 1 to a, 2 to b and 3 to c: ...
0
votes
0answers
49 views

Evaluating an expression a second time returns wrong result

I have the following code: ...
0
votes
0answers
171 views

Assign variable's value programmatically

Not easy to explain what I'm looking for, so please sorry if I'm not so short. Having many variables to be managed in several different combinations, I need to automate the assignment of preset ...
0
votes
0answers
156 views

Assigning numerical values to constants results in complex coefficients in Equations of Motion

I am using Mathematica to get the Equations of Motion (EOM) for a mechanical system (using Lagrangian Mechanics). While I get the EOM in symbolic form, on introducing the following code for assigning ...