CAS command question
|
01-04-2017, 04:01 PM
(This post was last modified: 01-04-2017 04:16 PM by Han.)
Post: #18
|
|||
|
|||
RE: CAS command question
(01-04-2017 03:46 PM)DrD Wrote:(01-04-2017 03:06 PM)Han Wrote: Regarding 2, this has always been the behavior. A literal (symbolic) expression requires quotation (single quotes). These are left unevaluated. Otherwise, it is "evaluated" as is normally done when entering commands on the command line. Simple example: My point was simply that it should not come as a surprise that the argument to any function is evaluated unless specifically quoted because that was how the system was set up. (I am not making any subjective comment about which setup is better.) On the other hand, asking for a change in the behavior of specific functions would thereby cause a "surprise" in that it would no longer conform to the rest of the system. As for why it was originally set up that way, I can only guess that they probably tried it both ways (evaluation vs non-evaluation having priority) and made their decision based the pros and cons of each case. Regarding your comment on the second case... I'm not sure I follow. The example I gave shows how to use strings and still not have it evaluate anything -- just add ' to the start and end of the string. EDIT: I'm not sure to which of Arno K's comment you are referring, but if you are referring to his request to rename the commands, that would seem appropriate. The commands left and right behave more like "head" and "tail" (first and last arguments of an expression) for non-unary operators. Graph 3D | QPI | SolveSys |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 8 Guest(s)