Sequence Command

From GeoGebra Manual
Revision as of 02:31, 4 November 2009 by K Voss (talk | contribs) (create official page from pdf)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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: L = {(2, 1), (2, 2), (2, 3), (2, 4), (2, 5)}.
Sequence[Expression, Variable i, Number a, Number b, Increment]
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.
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: L = {(2, 1), (2, 1.5), (2, 2), (2, 2.5), (2, 3)}.

Note: Since the parameters a and b are dynamic you could use slider variables as well.

© 2024 International GeoGebra Institute