Problem with solve().
12-24-2013, 09:32 AM (This post was last modified: 12-24-2013 09:35 AM by John P.)
Post: #1
 John P Member Posts: 196 Joined: Dec 2013
Problem with solve().
I think there is a problem with solve() in HP Prime. In Home and in CAS when I enter solve(1,x) or solve(1,X) I get [[]], empty matrix, but when I do solve(0,x) or solve(0,X) I get {x} or{X} as a solution. I think in both cases should be empty matrix or empty list.
Thanks.
12-24-2013, 10:21 AM
Post: #2
 Thomas Radtke Senior Member Posts: 777 Joined: Dec 2013
RE: Problem with solve().
Your contribution made me try solving 1 and 1=0 on the 32SII, resulting in both cases 'no root found'. Nice. Solving 0 for any variable gives an arbitrary number, maybe a starting value for the solver. Also ok.

The Prime is correct here IMHO.
12-24-2013, 02:19 PM
Post: #3
 Han Senior Member Posts: 1,881 Joined: Dec 2013
RE: Problem with solve().
(12-24-2013 09:32 AM)John P Wrote:  I think there is a problem with solve() in HP Prime. In Home and in CAS when I enter solve(1,x) or solve(1,X) I get [[]], empty matrix, but when I do solve(0,x) or solve(0,X) I get {x} or{X} as a solution. I think in both cases should be empty matrix or empty list.
Thanks.

Actually, the second case seems fine. If a function is identically zero, then solution set would be the entire domain of that function. The problem is that the domain is ambiguous so returning the input variable is an acceptable way (to me) of presenting the solution.

Graph 3D | QPI | SolveSys