Looking for simple iteration method

  • Thread starter dmehling
  • Start date
  • #1
114
0
I'm looking for an easy way to perform simple iterations. For example using the equation: z^2 + c, although I don't need it to do complex numbers. Also, I would like the iterations to be listed in tabular form.
 

Answers and Replies

  • #2
LCKurtz
Science Advisor
Homework Helper
Insights Author
Gold Member
9,559
770
It isn't very clear what you are asking. Iterations to do what? Solve f(x) = 0 by iteration?? Something like Newton's method? If you want results in a tabular form a spreadsheet might be just the ticket.
 
  • #3
35,137
6,886
I think you might be the same person who asked about the Mandelbrot set. What you want to do is this

Set c.
  1. Set z with an initial value.
  2. Evaluate z^2 + c.
  3. Store the value of the previous step in z.
  4. Go to step 2.
This is the basic idea, but it is oversimplified, and is an infinite loop. What you are doing is getting a sequence z0, z1, z2, ...To keep the loop from iterating forever, you want to exit the loop when |z| gets above a certain size. It's been a while since I looked at any Mandelbrot algorithms, but maybe the cutoff is |z| >= 2.

Hope this helps.
 
  • #4
114
0
Yes, that is what I need to do. However, I'm not sure how I would actually implement this. I have no real experience in programming. I am looking for the easiest way of doing it.
 

Related Threads on Looking for simple iteration method

  • Last Post
Replies
2
Views
2K
Replies
1
Views
2K
Replies
5
Views
6K
Replies
4
Views
750
Replies
4
Views
1K
  • Last Post
Replies
2
Views
1K
  • Last Post
Replies
2
Views
1K
  • Last Post
Replies
16
Views
2K
  • Last Post
Replies
3
Views
2K
Top