Looking for simple iteration method

  • Context: High School 
  • Thread starter Thread starter dmehling
  • Start date Start date
  • Tags Tags
    Method
Click For Summary

Discussion Overview

The discussion revolves around finding a simple method for performing iterations based on the equation z^2 + c, with a specific interest in presenting the results in tabular form. The context includes programming implementation and the potential use of iteration methods for mathematical sequences.

Discussion Character

  • Exploratory, Homework-related

Main Points Raised

  • One participant seeks an easy way to perform iterations using the equation z^2 + c without the need for complex numbers.
  • Another participant questions the clarity of the request, suggesting that the iterations might be intended for solving equations like f(x) = 0, and proposes using a spreadsheet for tabular results.
  • A third participant outlines a basic iterative process involving setting an initial value for z, evaluating z^2 + c, and storing previous values, while noting that the process can lead to an infinite loop unless a cutoff condition is applied.
  • The original poster confirms the outlined process but expresses uncertainty about how to implement it due to a lack of programming experience.

Areas of Agreement / Disagreement

Participants generally agree on the iterative process described but have differing levels of understanding regarding implementation and the specific goals of the iterations. The discussion remains unresolved regarding the best approach for someone with limited programming experience.

Contextual Notes

There are limitations in the clarity of the original request, particularly regarding the intended application of the iterations and the specific programming context. The discussion does not resolve how to effectively implement the iteration method for a beginner.

dmehling
Messages
114
Reaction score
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.
 
Mathematics news on Phys.org
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.
 
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.
 
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.
 

Similar threads

  • · Replies 19 ·
Replies
19
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 1 ·
Replies
1
Views
10K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K