Post Reply 
fSolve not working when given interval
08-30-2021, 12:26 PM
Post: #1
fSolve not working when given interval
New HP Prime user here, I was testing solve functions in cas, but found that

fsolve(x^2+4x+4=0, x) returns -2 as expected, but
fsolve(x^2+4x+4=0, x, -5..5) returns empty brackets.
solve() behaves the same as well.
Why is this happening?

And also, knowing when to use solve, fsolve, Solve app, etc. seems very confusing... could somebody explain when to use what?
Find all posts by this user
Quote this message in a reply
08-31-2021, 06:57 PM
Post: #2
RE: fSolve not working when given interval
bisection does not work if the function does not change sign, which is the case here because you have a root of multiplicity 2. This is detected by exact algorithms, i.e. in solve (without interval, interval forces numeric solving), not by numeric algorithms.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: