[BUG] Comparison fails
|
02-21-2014, 07:18 AM
Post: #2
|
|||
|
|||
RE: [BUG] Comparison fails
It's not a bug. == checks if the expressions are the same, not if they are mathematically equivalent. To do that the easiest is to simplify the difference between both sides and check if it's 0 or not. The reason is that automatic simplification may fail and would cost time, it's better to leave the programmer/user simplify himself (here factor should work for example), and that's what all CAS do.
|
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
[BUG] Comparison fails - Stefan - 02-20-2014, 10:56 PM
RE: [BUG] Comparison fails - parisse - 02-21-2014 07:18 AM
RE: [BUG] Comparison fails - Stefan - 02-21-2014, 07:01 PM
|
User(s) browsing this thread: 1 Guest(s)