[BUG?] Wrong numeric result with CAS `fsolve`/`zeros`/`solve` - Printable Version +- HP Forums ( https://www.hpmuseum.org/forum)+-- Forum: HP Calculators (and very old HP Computers) ( /forum-3.html)+--- Forum: HP Prime ( /forum-5.html)+--- Thread: [BUG?] Wrong numeric result with CAS `fsolve`/`zeros`/`solve` ( /thread-7444.html) |

[BUG?] Wrong numeric result with CAS `fsolve`/`zeros`/`solve` - danielmewes - 12-19-2016 04:15 AM
I was reading this post in another forum http://forum.hp-prime.de/showthread.php?tid=183 and can confirm that all of the following result in the wrong root 0 on the Prime: zeros(x^4 - 3x^3 - 2.75x^2 + 12x - 5) solve(x^4 - 3x^3 - 2.75x^2 + 12x - 5 = 0) fsolve(x^4 - 3x^3 - 2.75x^2 + 12x - 5 = 0) -> [2.5, 2., -2., 0] The correct result would be: -> [2.5, 2., -2., 0.5] Firmware version: 2016 08 29 (10637) The same commands work correctly with giac 1.2.2. Also, the exact version works on the Prime: zeros(x^4 - 3x^3 - (275/100)*x^2 + 12x - 5) -> [2, -2, 5/2, 1/2] This looks more significant than a small rounding error. RE: [BUG?] Wrong numeric result with CAS `fsolve`/`zeros`/`solve` - danielmewes - 12-19-2016 07:53 AM
Another case that's not affected is when I give a parameter range to solve: solve(x^4 - 3x^3 - 2.75x^2 + 12x - 5 = 0, x=(-3)..3) RE: [BUG?] Wrong numeric result with CAS `fsolve`/`zeros`/`solve` - parisse - 12-19-2016 04:37 PM
This has been fixed in the source code, I forgot to report it here. RE: [BUG?] Wrong numeric result with CAS `fsolve`/`zeros`/`solve` - Jan_D - 12-19-2016 06:47 PM
I have the Android app and noticed the same problem in version 8151. I had reasons to believe that the bug had been solved in the most recent update, but now I have updated my app to version 2016 12 08 (11226), CAS Version: 1.1.2 – 11, and I still have the same problems. See this thread: http://h30434.www3.hp.com/t5/Calculators/HP-Prime-How-would-you-factor-polynomials/td-p/5269068 RE: [BUG?] Wrong numeric result with CAS `fsolve`/`zeros`/`solve` - danielmewes - 12-20-2016 03:18 AM
Jan, the calculator firmware is lagging a bit behind the latest CAS source code. I think we have to wait for a future update until the fix actually ships. RE: [BUG?] Wrong numeric result with CAS `fsolve`/`zeros`/`solve` - Jan_D - 12-20-2016 01:14 PM
(12-20-2016 03:18 AM)danielmewes Wrote: Jan, the calculator firmware is lagging a bit behind the latest CAS source code. I think we have to wait for a future update until the fix actually ships.Hello Danielmewes, Can you, or anyone else, explain why Maké in message 12 of this thread: http://h30434.www3.hp.com/t5/Calculators/HP-Prime-How-would-you-factor-polynomials/td-p/5269068/page/2 can get the correct factorisation of the polynomial with version 10077 on his calculator, whereas I, on my Android app, and the most recent update, version 2016 12 08 (11226), CAS version 1.1.2 – 11, get the wrong factorisation, namely a factor x instead of (x-1.0)? RE: [BUG?] Wrong numeric result with CAS `fsolve`/`zeros`/`solve` - toml_12953 - 12-20-2016 01:54 PM
(12-19-2016 04:15 AM)danielmewes Wrote: I was reading this post in another forum http://forum.hp-prime.de/showthread.php?tid=183 On the Windows Virtual Calculator (build 11226), it's weird but the second function (solve) gets it right but the first and third get it wrong, as you have noted. Tom L |