actually its my friends assignment to do this thing .. he asked me i am shell shocked . i never heard about it .. any suggestions offered .
He wanted to do x^3-x+1 using newton raphson in java ???
Cheers
Ty
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Oct 17, 2013, 4:13 PM
// Polynomial.java
// Newton.java
The output should be:
VulpesPosted Oct 20, 2013, 3:52 PM
x1 = x0 - f(x0)/f'(x0);
You then set x0 = x1 and work out a new value for x1 and keep on going like this until (hopefully) the results converge towards an answer.
Sometimes the results won't converge if the initial guess is poor or for other reasons.
Although formulas exist for finding the roots of cubic and quartic equations (but not for polynomials of higher degree) these are very cumbersome to use and so approximate methods such as Newton-Raphson may be preferred in practice.
If you examine my Polynomial.solve() method, you'll see that I'm using Newton-Raphson to find a root of the polynomial to a high degree of accuracy.
SUNIL GUTTAPosted Oct 18, 2013, 9:33 PM
Well i am very much more into c# as you also know :)
In this doubt of my friend you answered with ease . how ? Did u work with this some so called newton raphson method ??
i want to know What is the use of this method :)
cheers