Post Reply 
Programming question and strange == result
10-09-2014, 06:59 PM
Post: #3
RE: Programming question and strange == result
(10-09-2014 06:12 PM)parisse Wrote:  a==b checks if a and b have the same representation, it does not check if they are mathematically equivalent. For that the best is simplify(a-b)==0.

Thanks for your answer! What exactly does "the same representation" mean in this situation? Neither english or math Wink is my native language..

Shouldn't at least this give the same result (true or 1 in both cases)?
simplify(2x-2==2(x-1)) results in true
simplify(2x-2==2x-2) results in 1

Any idea why quorem gives a different result inside/outside a program (and how to make it work within a program)?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programming question and strange == result - pr0 - 10-09-2014 06:59 PM



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