SOLVE wrong answers

05262022, 05:35 PM
(This post was last modified: 05262022 05:44 PM by C.Ret.)
Post: #4




RE: SOLVE wrong answers
(05262022 11:21 AM)Albert Chan Wrote: Try purge(x), or x='x', before solve. This may fix it. Purging the 'x' variable is strongly recommended. See, in the following capture, I deliberately give a value to the symbolic variable x, this does affect the resolution of a nonsymbolic expression by taking x=2 as the initial value. Consequently, the format of the input is of great importance since a nonsymbolic expression greatly affects the behavior of the CAS. (05262022 01:22 PM)jonmoore Wrote: I get the proper answer in CAS of 0.9199... However, as well as following Albert's advice it's worth bearing in mind that you should be using fsolve for that particular problem, as it's a numerical solve problem. An alternative method is to use solve, but deliberately giving a guess value or limiting the resolution to a specified interval. See the following screenshot. All the power of the solve function in CAS mode is summarized in its online help: Quote:Syntax: The most important fact, missing from the help explanations, is that the symbolic resolve function returns a list while the numeric resolve subroutine gives only a numeric output. The key detail in the user's equation is that ks2000 enters 1.7*10, which does not have the same meaning as the exact, symbolic integer 17. This has a determining effect on how the CAS of the HP Prime interprets the data and on the type of resolution. See in the screen capture the format of the result depending of entry containing a symbolic 17 versus a 1.7*10 expression. In case of a nonsymbolic expression, giving an intial guess (or a range interval) is strongly recommended. 

« Next Oldest  Next Newest »

Messages In This Thread 
SOLVE wrong answers  ks2000  05262022, 08:03 AM
RE: SOLVE wrong answers  Albert Chan  05262022, 11:21 AM
RE: SOLVE wrong answers  C.Ret  05262022 05:35 PM
RE: SOLVE wrong answers  Albert Chan  05262022, 06:57 PM
RE: SOLVE wrong answers  jonmoore  05262022, 01:22 PM

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