Definition: Sequence is a GeoGebra LIST command.
Sequence[ <Expression>, <Variable>, <Start Value>, <End Value> ]
Sequence[ <Expression>, <Variable>, <Start Value>, <End Value>, <Increment> ]

Sequence - USE
Sequence[ <Expression>, <Variable>, <Start Value>, <End Value> ]
Sequence[Expression, Variable i, Number a, Number b]: Yields a list of objects created using the given expression and the index i that ranges from number a to number b.   
Example: L = Sequence[(2, i), i, 1, 5] creates a list of points whose y-coordinates range from 1 to 5:
Returns list: L = {(2, 1), (2, 2), (2, 3), (2, 4), (2, 5)}.
Sequence[ <Expression>, <Variable>, <Start Value>, <End Value>, <Increment> ]
Sequence[Expression, Variable i, Number a, Number b, Number c]: Yields a list of objects created using the given expression and the index i that ranges from number a to number b with given increment c. By default, increment is 1.
Example: L = Sequence[(2, i), i, 1, 3, 0.5] creates a list of points whose y-coordinates range from 1 to 3 with an increment of 0.5:         
Returns list: L = {(2, 1), (2, 1.5), (2, 2), (2, 2.5), (2, 3)}.
Some real cool dynamic sequences for points from lists by Daniel Mentrard where a is a number (or slider).
If you want a dynamic number of elements (here points from two lists in opposite order)
Sequence[(Element[L_2, i], Element[L_1, i]), i, 1, a]  See: listepoint1.ggb
If you want elements of a list between a and b (a<b) then
Sequence[(Element[L_1, i], Element[L_2, i]), i, a, b]  See: listepoint2.ggb
If you want n elements of a list starting with the ath element
Sequence[(Element[L_1, i], Element[L_2, i]), i, a, a+n-1]

Related topics:


 Up one level


Page last modified on December 06, 2009, at 03:38 AM