Newton method to find roots

This is a discussion on Newton method to find roots within the C Programming forums, part of the General Programming Boards category; Can you plese help me , Ive been reading up on this for more than 2 hours now and I ...

  1. #16
    Registered User
    Join Date
    Sep 2007
    Posts
    104
    Can you plese help me , Ive been reading up on this for more than 2 hours now and I still cant mak a working program

  2. #17
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,307
    Your problem is still this:
    Quote Originally Posted by iMalc View Post
    Well that fixes one problem, but it's still hard-coded to find the sqrt of 2 instead of 'number'.
    Even if you don't know exactly what I'm saying, it isn't hard to guess.
    Consider running for a few more iterations than 10 though perhaps.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  3. #18
    Registered User
    Join Date
    Sep 2006
    Posts
    835
    Sorry, I was wrong, I was the one who made the sign mistake in deriving the correct formula from Newton's method. iMalc is correct, there is one mistake in your formula, but it's what he said, not the sign.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Best communication method to thousand childs?
    By Ironic in forum C Programming
    Replies: 8
    Last Post: 11-07-2008, 11:30 PM
  2. C# method
    By siten0308 in forum C# Programming
    Replies: 6
    Last Post: 07-15-2008, 07:01 AM
  3. Overriding a method in C
    By DavidDobson in forum C Programming
    Replies: 1
    Last Post: 07-05-2008, 07:51 AM
  4. Delegate Calling a method that Calls a delegate.
    By xddxogm3 in forum C# Programming
    Replies: 2
    Last Post: 05-05-2008, 12:59 AM
  5. Variable question I can't find answer to
    By joelmon in forum C++ Programming
    Replies: 3
    Last Post: 02-12-2002, 03:11 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21