Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Newton Raphson Method - Confused

  • 09-05-2013 10:14pm
    #1
    Registered Users, Registered Users 2 Posts: 1,829 ✭✭✭


    Hi guys,
    I have been trying to revise newton raphson for my maths exam in college and I'm having a problem.
    I can calculate the values shown in x1, x2, and x3 fine.
    However I get confused on x4.
    On my calculator for x4 under column f(x) I get 3.7521856 E -10.
    The picture here shows the answer to be 2.33 E -10.
    Please tell me where I'm going wrong.
    Thanks,
    Thomas


Comments

  • Registered Users, Registered Users 2 Posts: 32 entangled


    Hey,
    As far as I can tell, you're right.
    Possibly a typo in the book or something like that.


  • Registered Users, Registered Users 2 Posts: 1,829 ✭✭✭tcawley29


    entangled wrote: »
    Hey,
    As far as I can tell, you're right.
    Possibly a typo in the book or something like that.

    Thats what I thought too. But then I looked at another example and my final answer is always much bigger than the lecturer's final answer.
    Thanks though :)


  • Registered Users, Registered Users 2 Posts: 1,829 ✭✭✭tcawley29


    Here is another example of where it all goes wrong in the final step.
    The page says the answer is 3.2918 E -6.
    I get 1.7909648 E -6.


  • Registered Users, Registered Users 2 Posts: 970 ✭✭✭Ciaran


    tcawley29 wrote: »
    Here is another example of where it all goes wrong in the final step.
    The page says the answer is 3.2918 E -6.
    I get 1.7909648 E -6.

    Again the book's wrong. Is it just these two or are there more errors in the book?


  • Registered Users, Registered Users 2 Posts: 1,829 ✭✭✭tcawley29


    Ciaran wrote: »
    Again the book's wrong. Is it just these two or are there more errors in the book?

    Couldn't tell ya. The lecturer just comes into class and gives us handouts like this once in a while. Its quite possible that he made these questions up himself (Usually does).

    On the bright side, thanks everyone for letting me know I was doing it right. Nice easy question for the exam next week I'm guessing :)


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 1,595 ✭✭✭MathsManiac


    The scanned sheets are not wrong.

    The issue is related to rounding errors. If you retain the full available precision in the calculations, by using the memory button on your calculator, then you will get the answers on the sheet, in both cases. If you start each calulation afresh, retaining only the level of precision displayed in the table, then your numbers will start to deviate gradually from those shown, which have been calculated to a greater level of precision than they are displayed. (They look to me as though they have been pasted from an Excel sheet, by the way, and I have replicated them in Excel and got the same answers.)

    For example, the last number in the first row of the first sheet shows 0.089744. However, this is really 0.089743589743589743589... (a recurring decimal). These small errors gradually become detectable as the iterative process continues.

    You'll still get the same value for the root, of course.


  • Registered Users, Registered Users 2 Posts: 1,829 ✭✭✭tcawley29


    The scanned sheets are not wrong.

    The issue is related to rounding errors. If you retain the full available precision in the calculations, by using the memory button on your calculator, then you will get the answers on the sheet, in both cases. If you start each calulation afresh, retaining only the level of precision displayed in the table, then your numbers will start to deviate gradually from those shown, which have been calculated to a greater level of precision than they are displayed. (They look to me as though they have been pasted from an Excel sheet, by the way, and I have replicated them in Excel and got the same answers.)

    For example, the last number in the first row of the first sheet shows 0.089744. However, this is really 0.089743589743589743589... (a recurring decimal). These small errors gradually become detectable as the iterative process continues.

    You'll still get the same value for the root, of course.

    Just tried there and you're 100% correct. Didn't get the exact same answer but I was a hell of a lot closer to it than what I got before.
    Thanks MathsManiac.
    Now I have to learn integration with area/volume before wednesday and I'm golden :D


  • Registered Users, Registered Users 2 Posts: 970 ✭✭✭Ciaran


    The scanned sheets are not wrong.

    The issue is related to rounding errors. If you retain the full available precision in the calculations, by using the memory button on your calculator, then you will get the answers on the sheet, in both cases. If you start each calulation afresh, retaining only the level of precision displayed in the table, then your numbers will start to deviate gradually from those shown, which have been calculated to a greater level of precision than they are displayed. (They look to me as though they have been pasted from an Excel sheet, by the way, and I have replicated them in Excel and got the same answers.)

    For example, the last number in the first row of the first sheet shows 0.089744. However, this is really 0.089743589743589743589... (a recurring decimal). These small errors gradually become detectable as the iterative process continues.

    You'll still get the same value for the root, of course.

    Ah, very nice. I wondered if there was something systematic going on as it was only the value of the function for the last iteration that was different in both cases; the derivative was the same.


Advertisement