Solve across an interval
|
12-01-2016, 06:19 PM
Post: #1
|
|||
|
|||
Solve across an interval
Help for solve shows the possibility of searching for solutions within an interval using the syntax "a..b" When passing the example given in help to the command line and executing, the calculator produces an error relating to syntax. Is it possible to search for solutions over an interval?
Somewhat related, when using advanced graphing app and numerical table to show multiple solutions "X" for a given f(X), there are functions that take a lot of time to graph that result in the table not filling, yet the function graphs immediately in regular graphing app. An example is a function I had a thread on recently... ((Sqrt(tan X + 1)-sqrt(sin X + 1))/x^3 |
|||
12-01-2016, 10:49 PM
Post: #2
|
|||
|
|||
RE: Solve across an interval
Which one of the solve examples do you have problems with?
I tried solve(x^2-x=1,x=1..2), and solve(x^2-x=1,x=0..-1) and it works fine, returning one solution only, as desired. |
|||
12-02-2016, 02:58 AM
Post: #3
|
|||
|
|||
RE: Solve across an interval
I just discovered that the interval works if one types it in with a space between each endpoint and the decimals: X=-1..2 produces syntax error concerning 2 decimal points while x=-1 .. 2 works, and will produce multiple results if a multiple of results are exist within the interval.
|
|||
12-02-2016, 12:32 PM
Post: #4
|
|||
|
|||
RE: Solve across an interval
(12-02-2016 02:58 AM)lrdheat Wrote: I just discovered that the interval works if one types it in with a space between each endpoint and the decimals: X=-1..2 produces syntax error concerning 2 decimal points while x=-1 .. 2 works, and will produce multiple results if a multiple of results are exist within the interval. What are your settings for the fraction mark? I am not able to cause a syntax error even when I do not specify the spaces like you mentioned. Graph 3D | QPI | SolveSys |
|||
12-02-2016, 03:55 PM
Post: #5
|
|||
|
|||
RE: Solve across an interval
I use "."s to indicate decimal
|
|||
12-02-2016, 04:16 PM
(This post was last modified: 12-02-2016 04:19 PM by DrD.)
Post: #6
|
|||
|
|||
RE: Solve across an interval | |||
12-03-2016, 02:43 AM
Post: #7
|
|||
|
|||
RE: Solve across an interval
You are correct...I was in home, works in CAS.
Dumb question: why doesn't it (intervals) work in home? (Or is there another expected syntax?) |
|||
12-03-2016, 05:55 AM
Post: #8
|
|||
|
|||
RE: Solve across an interval
It's important to remember that case matters. Lowercase commands are CAS commands, and use lowercase variables. Home commands use uppercase names and variables. Syntax errors result when you get them wrong.
|
|||
12-05-2016, 10:37 AM
Post: #9
|
|||
|
|||
RE: Solve across an interval
Hello,
Intervals are not implemented in home. Cyrille Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)