Post Reply 
incorrect answer from solve() solving inequality
07-02-2019, 08:21 AM
Post: #1
incorrect answer from solve() solving inequality
I found the wrong answer when letting HP prime solving inequality:

The calculator gave result where x<=0 which should not be the case as x is under square root, and it cannot be 0 as the denominator will be 0 The rest interval are correct. So the calculator needs to exclude x<=0

   
Find all posts by this user
Quote this message in a reply
07-02-2019, 08:58 AM
Post: #2
RE: incorrect answer from solve() solving inequality
I see Wolfram alpha gives similar answer!
   
Find all posts by this user
Quote this message in a reply
07-02-2019, 02:32 PM (This post was last modified: 07-02-2019 02:32 PM by parisse.)
Post: #3
RE: incorrect answer from solve() solving inequality
Even if x is negative, the expression 1/(x+sqrt(x))+1/(x-sqrt(x)) is real valued :
normal(1/(x+sqrt(x))+1/(x-sqrt(x))) returns 2/(x-1)
Therefore the Prime answer is correct, and x=0 is also valid (since the limit at x=0 is -2 and -2<=1).
Find all posts by this user
Quote this message in a reply
07-02-2019, 04:46 PM
Post: #4
RE: incorrect answer from solve() solving inequality
Thank you, parisse.

For x is negative, it means that each of 1/(x+sqrt(x)), 1/(x-sqrt(x)) to be complex number. If so, that is correct.

For x is zero,

(1/(x+sqrt(x))+1/(x-sqrt(x)))
= (x-sqrt(x) + x + sqrt(x))/(x^2-x)
= (2x)/(x*(x-1))
and this will be equal to 2/(x-1) if x<> 0 (otherwise, it will be 0/0)

So (1/(x+sqrt(x))+1/(x-sqrt(x))) when x=0 should be undefined. However, lim x->0 of (1/(x+sqrt(x))+1/(x-sqrt(x))) is -2.
Find all posts by this user
Quote this message in a reply
Post Reply 




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