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

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

1. ## 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.  Reply With Quote

3. ## 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  Reply With Quote