[i]GeoGebra[/i] offers the command [i]Sequence[/i] which produces a list of objects. Thereby, the type of object, the length of the sequence (that’s the number of objects created) and the step width (e.g. distance between the objects) can be set using the following command syntax:[br][br][code][/code][code]Sequence(, , , , )[br][/code][br][br]For example: [code]Sequence(Segment((a, 0), (0, a)), a, 1, 10, 0.5)[/code][br][br][list][*][code][/code][code][/code][code]Segment((a, 0), (0, a))[/code][/*][/list] Determines the type of objects created. The expression needs to contain a variable (e.g. [code](a, 0) [br][/code]with variable [i]a[/i]). Each segment connects a point on the [i]x[/i]-axis with a point on the [i]y[/i]-axis (e.g. points [i](1, 0)[/i] and [i](0, 1)[/i]; points [i](2, 0)[/i] and [i](0, 2)[/i].[br][list][*][code][/code][code][/code][code]a[/code][/*][/list] Defines the name of the variable used.[br][list][*][code]1,10[/code][code] [/code][br][/*][/list] Determines the interval for the variable used (e.g. from 1 to 10).[br][list][*][code]0.5[/code][code][/code][/*][/list] Is optional and determines the step width for the variable used (e.g. 0.5).
[code]Sequence((i, i), i, 0, s)[br][/code][br][list][*]If [i]s[/i] is a slider with interval from 1 to 10 and increment 1, then command [code]Sequence((i, i), i, 0, s]) [/code]creates a list of [i]s + 1[/i] points whose length can be changed dynamically by dragging slider [i]s[/i].[/*][/list][list][*] Points have coordinates [i](0, 0)[/i], [i](1, 1)[/i], ..., [i](10, 10)[/i][/*][/list]
[table][tr][td]1.[/td][td][icon]https://wiki.geogebra.org/uploads/thumb/4/40/Menu_view_algebra.svg/180px-Menu_view_algebra.svg.png[/icon][br][/td][td]Enter [code]Sequence(Segment((a, 0), (0, a)), a, 1, 10, 0.5)[br][/code] into the [i]Input Bar[/i].[/td][/tr][tr][td]2.[br][/td][td][icon]https://www.geogebra.org/images/ggb/toolbar/mode_slider.png[/icon][/td][td]Create a slider [i]s[/i] for a number with Interval from 1 to 10 and [i]Increment[/i] 1[i].[/i][/td][/tr][tr][td]3.[br][/td][td][icon]https://wiki.geogebra.org/uploads/thumb/4/40/Menu_view_algebra.svg/180px-Menu_view_algebra.svg.png[/icon][/td][td]Enter [code]Sequence((i, i), i, 0, s)[br][/code] into the [i]Input Bar[/i].[/td][/tr][tr][td]4.[br][/td][td][icon]https://www.geogebra.org/images/ggb/toolbar/mode_move.png[/icon][br][/td][td] Move the slider [i]s[/i] to check the construction.[br][/td][/tr][/table]
Create a List of Segments and a List of Points like in the applets above by following the instuctions below.