Direct way to calculate nth term of cyclically repeating function?

  • Context: Undergrad 
  • Thread starter Thread starter ktoz
  • Start date Start date
  • Tags Tags
    Function Term
Click For Summary

Discussion Overview

The discussion revolves around finding a direct method to calculate the nth term of a cyclically repeating function, as opposed to iterating through each step. The context includes mathematical reasoning and potential applications in programming.

Discussion Character

  • Exploratory
  • Mathematical reasoning

Main Points Raised

  • One participant questions the terminology of "cyclic functions" and seeks a method to directly compute the nth term in a series of functions defined by a sequence.
  • Another participant suggests using the modulo function as a potential solution to the problem of calculating the nth term directly.
  • A later reply provides additional context about the Mandelbrot generating function and discusses different sets of values (escape, chaotic, convergent) but seeks clarification on how to apply the modulo suggestion in this context.
  • One participant expresses skepticism about the feasibility of avoiding iteration, suggesting that it may not be possible to compute the nth term without going through the steps.

Areas of Agreement / Disagreement

Participants do not reach a consensus; there are competing views on whether a direct calculation method exists or if iteration is necessary.

Contextual Notes

The discussion highlights the potential limitations of the proposed modulo approach and the need for further clarification on its application within the context of the Mandelbrot set.

ktoz
Messages
170
Reaction score
12
"cyclic functions" may not be the correct term, but I don't know what else to call them. (only have basic high school math training, no calculus) Here's what I'm looking for.

Given the following series of functions

f(a) = b (step 1)
f(b) = c (step 2)
f(c) = d (step 3)
...
f(n) = a (step n)

Is there a general way to rework these so that you can directly calculate the value at steps 1,2,3 etc rather than having to iterate through all the steps from a to x, something like this?

f(0) = a
f(1) = b
f(2) = c
f(3) = d
...
f(n) = a

This problem arose from a computer program I'm working on and it would be much more efficient to directly calculate the n'th term rather than having to iterate through them all.

Thanks for any help
 
Mathematics news on Phys.org
How about using the mod (modulo) function?
 
Example?

Tide said:
How about using the mod (modulo) function?

Here's a little more background. Using the Mandelbrot generating function Z1 = Z0^2 + c yeilds either:

Escape set - values not in set
Chaotic set - values don't escape but also don't settle into a repeating set of values
Convergent set - values converge to either a single value or a repeating set of values

Convergent values take the form
f(a) = b
f(b) = c
f(c) = d
...
f(n) = a

With the above in mind, how would I apply your modulo suggestion?

Thanks

Ken
 
That's a little different than what I thought you were asking in your original post. I'm afraid you're stuck with iterating.
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
7
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 125 ·
5
Replies
125
Views
21K