Programming question and strange == result
|
10-08-2014, 10:14 PM
Post: #1
|
|||
|
|||
Programming question and strange == result
Made a very simple test program:
Quote:EXPORT TEST(X,Y) Running; TEST(x^2+x-3,x-1) Results in: {(x^2+x-3)/(x-1),0} Running: quorem(x^2+x-3,x-1) Results in: [x+2 -1] Why does the program give me that result? Have spent ALOT of time trying to figure this out..any ideas? Another very strange thing I noticed: 2x-2==2(x-1) results in 0 2x-2==2x-2 results in 1 simplify(2x-2==2(x-1)) results in true simplify(2x-2==2x-2) results in 1 Any reasonable explanation for this? |
|||
« 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)