Absolute value: sometimes CAS is very clever, sometimes not!
|
09-08-2018, 03:28 PM
(This post was last modified: 09-08-2018 03:54 PM by compsystems.)
Post: #22
|
|||
|
|||
RE: Absolute value: sometimes CAS is very clever, sometimes not!
(09-08-2018 06:05 AM)parisse Wrote: If you want to play with evaluation, make sure that Simplification is set to None in CAS Settings. ok, but please hppteam include for next firmware the xcas autosimplify() command , otherwise how do I change the flag from a program code? if I need some times, maximum simplification and other times, do not simplify ------------- (09-08-2018 10:43 AM)ijabbott Wrote: Back to compsystem's point, why does 'x ≠ -1' get simplified to a boolean 'true' if x is unknown? (09-08-2018 10:52 AM)parisse Wrote: Because x (identifier) is different from 1 (integer), like for == which does not mean "mathematically equivalent". And with what purpose the operadopr = acts as ==, if there is a command (==) or evalb() for that purpose, also for ≠ PHP Code: evalb(x ≠ -1) returns True I think that the operator =, ≠, should not operate as a comparator, this affects the logic of the algorithms, so I suggest a cas flag for these operators do not assume the comparison. Another option is for the system to ask what kind of data it is . If it is symbolic assume(x,symbol);, do not compare |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)