Post Reply 
CAS Problem
10-23-2023, 07:06 AM
Post: #6
RE: CAS Problem
CAS == does not check if expressions are mathematically equivalent, it checks if they have the same internal representation (as expressions). Using == should therefore be limited to objects that are always in "normal" form like integers or rationals. For everything else, one should make the difference and apply some simplification rules, and see if it's 0 or not.
Note that for floats, using == should also not be used, instead one should take abs(difference) and compare to a (relative) precision.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
CAS Problem - springer5 - 10-22-2023, 11:53 PM
RE: CAS Problem - lrdheat - 10-23-2023, 02:21 AM
RE: CAS Problem - Dougggg - 10-23-2023, 03:01 AM
RE: CAS Problem - springer5 - 10-23-2023, 08:42 AM
RE: CAS Problem - ftneek - 10-23-2023, 03:15 AM
RE: CAS Problem - Dougggg - 10-23-2023, 04:23 AM
RE: CAS Problem - parisse - 10-23-2023 07:06 AM
RE: CAS Problem - springer5 - 10-23-2023, 08:38 AM
RE: CAS Problem - PƤlzer - 10-29-2023, 11:56 AM
RE: CAS Problem - Dougggg - 10-23-2023, 09:18 AM
RE: CAS Problem - Patocuy - 10-23-2023, 02:52 PM



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