Post Reply 
Saving expressions?
03-21-2020, 08:18 PM (This post was last modified: 03-21-2020 08:21 PM by Dands.)
Post: #12
RE: Saving expressions?
(03-21-2020 06:48 PM)victorvbc Wrote:  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.

Yes, that what happens, it will assign the values to my expression. What I want to do is to ALWAYS have the abcd matrix (your example) whenever I call the variable m and without any values assigned to it.

In other words, I want to save the expression and use it anytime I need it in other calculations. I think using the '' might work for me, but I wish they had a better way to do this.

I know it's possible to define functions in the TI Nspire calculators as follows:

[Image: Screen-Shot-2020-03-21-at-2-17-05-PM.png]

If I do this in that calculator, I can call the function anytime and pass values with no problem. I want to be able to do the same in my HP Prime. Ideas?
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)