<![CDATA[Is it possible to reference current iteration number in Expression parameter for IterationList?]]>
https://help.geogebra.org/topic/is-it-possible-to-reference-current-iteration-number-in-expression-parameter-for-iterationlist
Sun, 23 Aug 2020 02:21:09 +0000Sat, 22 Aug 2020 09:40:04 +0000Zend_Feed<![CDATA[should be something like {1,1,(1+1)+1,((1+1)+1)+1+2,...}]]>
https://help.geogebra.org/topic/is-it-possible-to-reference-current-iteration-number-in-expression-parameter-for-iterationlist#comment-287840
Sat, 22 Aug 2020 09:43:26 +0000<![CDATA[so the N+1 element value can be a function of current iteration number and previous element values. List[n]=f(n,List(n-1))]]>
https://help.geogebra.org/topic/is-it-possible-to-reference-current-iteration-number-in-expression-parameter-for-iterationlist#comment-287842
Sat, 22 Aug 2020 09:47:13 +0000<![CDATA[do you mean x(IterationList((x(A) + x(B) + y(B), y(B) + 1), A, B, {(1, 0), (1, 1)}, 5)) you can do also defining A like a set of pair of numbers]]>
https://help.geogebra.org/topic/is-it-possible-to-reference-current-iteration-number-in-expression-parameter-for-iterationlist#comment-287854
Sat, 22 Aug 2020 15:04:21 +0000<![CDATA[Thanks! that is what i want. i had thought about defining another variable and let it be something like k=k+1. But i did not know that the first parameter of IterationList,i.e., the Expression, can be a tuple. So, i turned to the java source code, to find Sequence rely on algoSequence and IterationList rely on algoIterationList. Since the expression of sequence can be thought of a function of current iteration number, and expression of IterationList can be thought of a function of previous its previous list item value, I had thought that we might need a combined algorithm for Sequence and IterationList. Your answer shows me that sequence is actually a special case for IterationList, with expression defined as a tuple of two items.]]>
https://help.geogebra.org/topic/is-it-possible-to-reference-current-iteration-number-in-expression-parameter-for-iterationlist#comment-287878
Sun, 23 Aug 2020 02:21:26 +0000