nSolve error on nSpire CX

998 views
Skip to first unread message

Hartman, B

unread,
Jan 8, 2018, 2:46:03 PM1/8/18
to tinspire
OK... I was showing my Precalc class how to check a rational equation with nSolve.  I warned them that it will only give one answer.  I then showed how to tell it where to start, so I had them enter ",2" and found no more solutions.  Since the one and only answer was at -0.5, we did that and it showed -0.5 as a solution.  I then had them do -.499 to start, and it said 3 is an answer; even though that is an extraneous root.  Why did it not give 3 when I told it to start at 2???

thanks

Bruce

Confidential Notice: This email, and any attachments to it, may contain confidential information. It is intended for use by the individual or entity named as the recipient on the email. If the reader of this email is not the intended recipient, or a person responsible for delivery to the intended recipient, you should not read, use, copy or disseminate the information. Any unauthorized use is strictly prohibited. If you have received this communication in error, please delete and destroy this communication immediately and notify the sender by "reply" or phone of the error.
nSolve Error.tns

John Hanna

unread,
Jan 8, 2018, 3:00:28 PM1/8/18
to tins...@googlegroups.com

Bruce,

Take a look at the Newton’s Method iterations starting at each point. Some starting points can be ‘diabolical’.

 

What’s the function?

Regards,

         John

--
--
To post to this group, send email to tins...@googlegroups.com
To unsubscribe send email to tinspire+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com.au/group/tinspire?hl=en-GB?hl=en-GB
The tns documents shared by group members are archived at
https://sites.google.com/site/tinspiregroup/classroom-news/welcome-abouttime

---
You received this message because you are subscribed to the Google Groups "tinspire" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tinspire+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

B Hartman

unread,
Jan 9, 2018, 3:17:44 PM1/9/18
to tins...@googlegroups.com
I attached the tns file in my original post. 

John Hanna

unread,
Jan 9, 2018, 4:32:37 PM1/9/18
to tins...@googlegroups.com

Got it.In this screenshot, notice the difference:

 

… x, -0.499 indicates a lower bound for the search interval.

… x=-0.499 is an initial guess.

(I got this from the catalog syntax help)

 

So you are restricting the domain to exclude the only real root.

Still not sure why it returns 3 yet… stay tuned.

Regards,

         John

image002.jpg

John Hanna

unread,
Jan 9, 2018, 4:58:42 PM1/9/18
to tins...@googlegroups.com

Why x=3?

Looking at the graph of each side of the equation, I see that f2 and f3 get ‘close to each other’ near x=3. Since nSolve is looking for a numeric approximation to the equation and you’ve eliminated the -.5 value by restricting the domain, the next best guess is x=3 because the values do get closer together as you approach x=3 (even though they’re really ‘large negative’ numbers – see a table).

 

If you use the simplified form of the expression things go better:

 

…but I could be wrong! (I also don’t think it’s using Newton’s Method).

Lesson: understand the device J

Regards,

         John

image004.jpg
image001.jpg
image003.jpg
Reply all
Reply to author
Forward
0 new messages