CAS: overriding HOME variables, bug or feature? (for me, a feature!)
|
07-11-2021, 02:05 PM
Post: #2
|
|||
|
|||
RE: CAS: overriding HOME variables, bug or feature? (for me, a feature!)
(07-09-2021 10:43 PM)ramon_ea1gth Wrote: simplify(‘Z:=Z0·exp(i·β·z)’) If you do use simplify "feature", I suggest create CAS variables first. This documented what HOME variables are being overrided. CAS> simplify('[Z, Z0] := [0, 100]') CAS> Z := Z0 * exp(i*β*z) However, I would advise against doing this. With Undefined Behavior, Anything is Possible Quote:(Edited: minor change to have a non-zero value of Z0 before retrieving Z). Besides using undefined-behavior, Z0 cannot be symbolic, thus the need to assign it something. (all overrided HOME variables have the same problem) It might be safer to add a character before capitalized name. We could use hard-space, " ", but that is just asking for trouble ... On HP Prime emulator, I use "%". (maxima also use %, %i = √-1, %e = 2.718281828...) CAS> %Z := %Z0 * exp(i*β*z) CAS> diff(%Z, %Z0) // %Z0 is true variable e^(i*β*z) It would be nice if HP Prime truly separate HOME and CAS variables. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
CAS: overriding HOME variables, bug or feature? (for me, a feature!) - ramon_ea1gth - 07-09-2021, 10:43 PM
RE: CAS: overriding HOME variables, bug or feature? (for me, a feature!) - Albert Chan - 07-11-2021 02:05 PM
RE: CAS: overriding HOME variables, bug or feature? (for me, a feature!) - Albert Chan - 07-12-2021, 01:43 PM
RE: CAS: overriding HOME variables, bug or feature? (for me, a feature!) - jte - 01-20-2023, 03:10 AM
RE: CAS: overriding HOME variables, bug or feature? (for me, a feature!) - Tyann - 01-20-2023, 06:13 AM
RE: CAS: overriding HOME variables, bug or feature? (for me, a feature!) - jte - 01-20-2023, 08:37 AM
RE: CAS: overriding HOME variables, bug or feature? (for me, a feature!) - ramon_ea1gth - 07-11-2021, 10:17 PM
RE: CAS: overriding HOME variables, bug or feature? (for me, a feature!) - ramon_ea1gth - 07-12-2021, 02:07 PM
|
User(s) browsing this thread: 2 Guest(s)