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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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. 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 |
|||
12-24-2013, 03:57 PM
(This post was last modified: 12-24-2013 04:09 PM by Michael de Estrada.)
Post: #4
|
|||
|
|||
RE: Problem with solve().
I would think that both cases should return a syntax error, since the first entry is supposed to be an equation. If a variable is entered in the first position without an equality, then it is implicitly treated as =0. So, the first case would be 1=0, which is an error, and second would be 0=0, which is trivial. For example, in CAS view if I enter solve(x=0,0} the result is {0}. If I only enter solve{x} then I first get a message "Warning, argument is not an equation, solving x=0" followed by the correct result {0}. Also, this occurs with solve(x,x). When I enter solve(0,x), the message "solving 0=0" is nonsense IMO.
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)