Thread: Finding square root by Newton-Raphson method

  1. #1
    Registered User
    Join Date
    Jan 2016
    Posts
    1

    Finding square root by Newton-Raphson method

    I'm new to programming, and this is my first college class

    how can i programming below picture by newton-raphson method with c++?

    Finding square root by Newton-Raphson method-421311282_44722-jpg



  2. #2
    Ticked and off
    Join Date
    Oct 2011
    Location
    La-la land
    Posts
    1,728
    You:

    If you're not willing to spend any effort, why should anyone else bother?

  3. #3
    Registered User
    Join Date
    Sep 2010
    Location
    Europe
    Posts
    87
    Which in this case give you this formula:

    https://en.wikipedia.org/wiki/Square...ion_algorithms

    Declare an array of floats or doubles. Now start with a value, let's say x1=1.5, and use the formula to compute x2, x3, x4 etc. These values go more closer to sqrt 2.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 04-02-2015, 10:48 PM
  2. Finding square root by Newton-Raphson program
    By Majorpain2587 in forum C Programming
    Replies: 11
    Last Post: 05-31-2013, 03:38 PM
  3. Newton raphson method - C
    By arazki1yes in forum C Programming
    Replies: 8
    Last Post: 04-04-2011, 01:11 PM
  4. using newton raphson method
    By sanskaar in forum C Programming
    Replies: 21
    Last Post: 09-27-2010, 12:02 AM
  5. Newton Raphson Method
    By zeb1d1ah in forum C Programming
    Replies: 2
    Last Post: 12-07-2009, 06:26 AM