Thread: Newton method to find roots

  1. #16
    Registered User
    Join Date
    Sep 2007
    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
    New Zealand
    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
    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.

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-08-2008, 12:30 AM
  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, 04:11 AM