CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Newton Raphson - strange results

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 11, 2009, 05:49
Default Newton Raphson - strange results
  #1
Bren
Guest
 
Posts: n/a
Hi Guys, I've been using the Newton-Raphson method to solve a rather nasty nonlinear equation. The method is converging quickly and is obtaining the same solution (to within machine accuracy) as a tried and tested method I used previously.

My problem is that there are two roots of the equation, one is real and the other complex. I can find the real one easily but I can only get close to the complex solution - successive iterations jump between:

x0 +/- i*x1

where x0 and x1 are constants. The imaginary component of the solution continaully flips back and forth between +/- on going from one step to the next although the magnitude stays the same. When I substitute the solution (using both + and -ve imaginary components) I find that the function I am trying to solve isn't equal to zero; it is reasonably close but is large enough (0.2 ish) that it isn't likely to be a machine-accuracy issue.

Does anyone know why this is happening? The complex answer isn't too important for what I'm doing but I'd like to know why I'm seeing this behaviour. Cheers, Bren
  Reply With Quote

Old   February 11, 2009, 07:10
Default Re: Newton Raphson - strange results
  #2
Robin
Guest
 
Posts: n/a
http://www.bugman123.com/Fractals/Ne...hson-large.jpg
  Reply With Quote

Old   February 11, 2009, 07:14
Default Re: Newton Raphson - strange results
  #3
Bren
Guest
 
Posts: n/a
That's a nice picture but it really doesn't help me understand what's going on.
  Reply With Quote

Old   February 11, 2009, 09:40
Default Re: Newton Raphson - strange results
  #4
Robin
Guest
 
Posts: n/a
http://en.wikipedia.org/wiki/Newton_fractal

in particular:

"However, for every polynomial of degree at least 2 there are points for which the Newton iteration does not converge to any root: examples are the boundaries of the basins of attraction of the various roots."
  Reply With Quote

Old   February 11, 2009, 11:39
Default Re: Newton Raphson - strange results
  #5
Bren
Guest
 
Posts: n/a
Ok I take it back - that is very helpful )

Thanks Robin, that's an interesting find.
  Reply With Quote

Old   February 11, 2009, 11:47
Default Re: Newton Raphson - strange results
  #6
Robin
Guest
 
Posts: n/a
Have been a big fan of non-linear dynamics+fractals for years. There are fascinating overlaps with turbulence but that would be for another thread.
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with SST-Model - strange behaviour Peter85 OpenFOAM Running, Solving & CFD 11 November 18, 2010 02:32
Strange results from interFoam solution converges but sum of all forces not equal to zero nicasch OpenFOAM Running, Solving & CFD 0 April 15, 2008 03:01
Slip boundary condition giving strange results hemph OpenFOAM Running, Solving & CFD 3 January 18, 2007 06:15
Problems with repeating results Lee Siemens 4 May 26, 2006 04:39
benchmark results stefan Siemens 3 September 10, 2001 10:48


All times are GMT -4. The time now is 10:47.