Logo by Tglad - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Follow us on Twitter
 
*
Welcome, Guest. Please login or register. April 25, 2024, 09:59:58 AM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: Newton's catapult  (Read 624 times)
0 Members and 1 Guest are viewing this topic.
Mircode
Alien
***
Posts: 37


« on: June 13, 2010, 06:35:20 PM »


Hi there!

I was wondering what happens, if one "fools" Newton's method with a function, that almost reaches y=0 but then takes a turn and goes back.

I.e. y=x²+0.1

The answer: Step by step we get closer to x=0, like Newton's method usually does, but when we are almost there, the slope of the tangent gets close to 0, "catapulting" the next x far away. (My very professional sketch illustrates it.)
Then it will approach x=0 again until it's close enough to be shot towards +/-infinity again. And so on and so on.

Now I was wondering, whether one could make a fractal from this rather chaotic behavior. 2-D would be nice, so it gets a little more complicated. The function would be z=f(x,y). At a point (x,y), we find the tangent ray with the steepest gradient. Our next (x,y)-pair is where this ray hits z=0.

That means:

gradx = df/dx, x=xold
grady = df/dy, y=yold
grad = sqrt(gradx^2 + grady^2)

dirx = -gradx/grad
diry = -grady/grad
len = f/grad

xnew = xold + len*dirx
ynew = yold + len*diry

The simplest function I could think of was z=x^2+y^2+1. But that would be rotationally symmetrical, so I chose z=x^2+2*y^2+1.

For visualizing it, I chose a bailout radius and colored depending on the iteration that reached this radius.
Sadly the results are not as breathtaking as I hoped in my enthusiasm (pic 2). Anyway, I still liked the idea and wanted to post it here, maybe someone finds a better function or a better way for coloring.

Greetings, Mircode


* newtoncat.gif (6.77 KB, 586x406 - viewed 72 times.)

* newtoncatres.gif (182.44 KB, 599x599 - viewed 83 times.)
Logged
kram1032
Fractal Senior
******
Posts: 1863


« Reply #1 on: June 13, 2010, 11:18:29 PM »

here you have the generic quadratic formula of Newton smiley
http://www.wolframalpha.com/input/?i=x[n%2B1]%3D%28a+x[n]^2-b%29%2F%282+a+x[n]%29

However, your idea has a problem:
A quadratic function like that has two zero points in the complex plane...

EDIT: Ok, well, what you do here is a map over the reals², rather than over the complex plane... That works too, I guess smiley
« Last Edit: June 13, 2010, 11:27:33 PM by kram1032 » Logged
Mircode
Alien
***
Posts: 37


« Reply #2 on: June 14, 2010, 10:44:30 AM »

Quote
here you have the generic quadratic formula of Newton smiley
http://www.wolframalpha.com/input/?i=x[n%2B1]%3D%28a+x[n]^2-b%29%2F%282+a+x[n]%29

Very interesting! I didn't know that wolframalpha can do that. I will try that now everytime before I implement Newton's algorithm for a problem.
However, it is the solution to the 1-D problem. In 2-D the variables x and y influence each other in every step.

And yes, no complex calculation. I should have mentioned that.
Logged
kram1032
Fractal Senior
******
Posts: 1863


« Reply #3 on: June 14, 2010, 10:54:04 AM »

You mentioned that implicitly. I just didn't read carefully enough^^

I can tell you already: In most cases, Wolfram Alpha wont do it. In case of the quadratic formula, you actually get a linear expression in the Newtonean form. Polynomials of higher order do already fail...

It similarly works for some special cases of the Mset. For instance: x[n+1]=x[n]² and x[n+1]=x[n]²-2
I didn't yet find any other value, wolfram alpha finds a continuous solution for. Not really surprising. The two points are especially rather undynamic but if you go for more interesting points, the behaviour becomes so complex that it should be basically impossible to express it in simple continuous and analytic formulae.
If someone manages to do so or at least find a continous version that still isn't in closed form (some weird integral might exist, that just does that smiley), that person pobably gets a Nobelprize, especially if the way of solving isn't limited to a particular problem but easily extendable on several cases smiley
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Newton chess Ultrafractal Jimmie 0 876 Last post February 24, 2013, 04:33:11 PM
by Jimmie
Newton z^4-1=0 Movies Showcase (Rate My Movie) JosLeys 7 1667 Last post September 05, 2014, 08:32:33 PM
by Mrz00m
newton + menger Mandelbulb3D Gallery ericr 0 550 Last post January 14, 2016, 03:40:47 PM
by ericr
Composite Newton - mandelbrot Fractal Science Kit Gallery Ilionstar 0 1313 Last post February 27, 2016, 11:53:54 AM
by Ilionstar
Newton Cross Fractal Science Kit Gallery Ilionstar 0 1097 Last post April 02, 2016, 09:00:30 PM
by Ilionstar

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.155 seconds with 24 queries. (Pretty URLs adds 0.008s, 2q)