Announcement

Collapse
No announcement yet.

recurrent function

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • recurrent function

    Please help!

    Does anyone know how to create code with recurrent function [x(i)=X(x(i-1))]?

    Thank you in advance for your help.

    Bronik

  • #2
    I don't understand completely what you want to accomplish. As I see it you have x and X in your function. Are they two different values/variables? If so, then it's easy - rename one. If not, then you have a recurrency level that I believe is unable to be supported.

    You can't have x(i) defined to reference a value of X ( X(x(i-1)) ) whereas "X" is the same as "x" because it essentially "redefines" X.

    I guess I need to know the process you are attempting to replicate/create? I would think the best way to handle something like this is with arrays and possibly array structures. You could calculate a new array off an existing array, then simply assign the newly calculated array to the original array label.

    MyCustomArray = NewCalcedArray;

    Let me know if I can help?? It sounds interesting though???
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      librovich,

      There is a recurrent function that I posted here to calculate factorial if that is any help.

      Comment

      Working...
      X