[BUG?] Wrong numeric result with CAS fsolve/zeros/solve
12-19-2016, 04:15 AM
Post: #1
 danielmewes Junior Member Posts: 29 Joined: Dec 2014
[BUG?] Wrong numeric result with CAS fsolve/zeros/solve

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.
 « Next Oldest | Next Newest »

 Messages In This Thread [BUG?] Wrong numeric result with CAS fsolve/zeros/solve - danielmewes - 12-19-2016 04:15 AM RE: [BUG?] Wrong numeric result with CAS fsolve/zeros/solve - danielmewes - 12-19-2016, 07:53 AM RE: [BUG?] Wrong numeric result with CAS fsolve/zeros/solve - parisse - 12-19-2016, 04:37 PM RE: [BUG?] Wrong numeric result with CAS fsolve/zeros/solve - Jan_D - 12-19-2016, 06:47 PM RE: [BUG?] Wrong numeric result with CAS fsolve/zeros/solve - danielmewes - 12-20-2016, 03:18 AM RE: [BUG?] Wrong numeric result with CAS fsolve/zeros/solve - Jan_D - 12-20-2016, 01:14 PM RE: [BUG?] Wrong numeric result with CAS fsolve/zeros/solve - toml_12953 - 12-20-2016, 01:54 PM

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