Post Reply 
Saving expressions?
03-21-2020, 06:48 PM (This post was last modified: 03-21-2020 07:05 PM by victorvbc.)
Post: #11
RE: Saving expressions?
Sorry for the delay.

What happens is when you call a variable that has an assigned value, it is usually evaluated. So if you declare the variables before assembling the matrix, it will always store the values, not the symbolic expressions in said matrix.

If you change those variables and call the matrix again, it won't update with the new values.

See:    

Now, if you use the single quotes (or declare before assigning anything to the variables), the matrix will actually store the symbolic expression, which will be evaluated with the current values whenever you call it on the command line.

See:    

This way, whenever you wanna see the expression without values, you just have to purge the variables.

Is this what you want? I'm not sure if I follow.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Saving expressions? - Dands - 03-20-2020, 07:15 PM
RE: Saving expressions? - CyberAngel - 03-20-2020, 09:40 PM
RE: Saving expressions? - victorvbc - 03-21-2020, 03:30 AM
RE: Saving expressions? - Dands - 03-21-2020, 04:19 AM
RE: Saving expressions? - toml_12953 - 03-21-2020, 10:47 AM
RE: Saving expressions? - CyberAngel - 03-21-2020, 12:32 PM
RE: Saving expressions? - toml_12953 - 03-21-2020, 02:40 PM
RE: Saving expressions? - CyberAngel - 03-21-2020, 04:38 PM
RE: Saving expressions? - Dands - 03-21-2020, 04:58 PM
RE: Saving expressions? - CyberAngel - 03-21-2020, 05:23 PM
RE: Saving expressions? - victorvbc - 03-21-2020 06:48 PM
RE: Saving expressions? - Dands - 03-21-2020, 08:18 PM
RE: Saving expressions? - toml_12953 - 03-21-2020, 08:26 PM



User(s) browsing this thread: 1 Guest(s)