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 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)? |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Programming question and strange == result - pr0 - 10-08-2014, 10:14 PM
RE: Programming question and strange == result - parisse - 10-09-2014, 06:12 PM
RE: Programming question and strange == result - pr0 - 10-09-2014 06:59 PM
RE: Programming question and strange == result - parisse - 10-10-2014, 05:47 AM
RE: Programming question and strange == result - parisse - 11-01-2014, 07:08 AM
|
User(s) browsing this thread: 1 Guest(s)