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

learn more… | top users | synonyms

3
votes
0answers
93 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
51 views

Evaluating an expression a second time returns wrong result

I have the following code: ...
0
votes
0answers
203 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
186 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 ...