Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: I need help on the Newton Raphson Method in java, here is the question

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Location
    Kampala, Uganda
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I need help on the Newton Raphson Method in java, here is the question

    Theme: The NRM Solver
    Aim:
    The aim of the assignment is to give students experience in programming routine computational procedures and generate the solutions. In essence, we computerize mathematics. In this assignment, you are going to computerize generation of a root for a polynomial of order 10 using the Newton Raphson Method (NRM).
    The problem:
    The generic ten-order polynomial is in form of
    P(x) = a0 + a1x + a2x2 + a3x3+ ... + a10x10
    ai is any integer.
    The NRM uses the formula xn+1 = xn – p (xn)/p’(xn). p’(x) is the first derivative of p(x). The user chooses the first estimate x0 and the subsequent estimates x1, x2, …. Are generated. The iterations continue until the difference between the two successive estimates is less than the acceptable error margin  or the so many iterations have been made.

    You are required to develop a program that solves a ten order polynomial using the NRM. The program should prompt the user input the coefficients and a0, a1 and a10 should be non zero. The program should use the first estimate to be 1.5, the acceptable error margin should be taken to be 0.00000001 and the iterations should be considered to be too many if they exceed 70.


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: I need help on the Newton Raphson Method in java, here is the question

    What have you tried? What's the problem? We are not a code service, so if you want help I suggest you post your code with full descriptions of the problem you are having.

    How To Ask Questions The Smart Way

Similar Threads

  1. Question concerning nextLine() method in Scanner Class
    By r_sardinas in forum Java SE APIs
    Replies: 2
    Last Post: October 20th, 2010, 08:35 PM
  2. Java Question
    By NiCKYmcd in forum Java Theory & Questions
    Replies: 1
    Last Post: August 25th, 2010, 08:47 AM
  3. Question for Java experts please
    By XElCaballoX in forum Java Theory & Questions
    Replies: 2
    Last Post: August 19th, 2010, 01:43 AM
  4. Bissection Method Baseball Question
    By nickcanada in forum Algorithms & Recursion
    Replies: 0
    Last Post: April 15th, 2010, 07:49 PM
  5. Java Newton's Method HELP PLEASE
    By nickcanada in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 7th, 2010, 05:53 PM