Sequence Command
- Sequence( <End Value > )
-
Creates a list of integers from 1 to the given end value.
-
Sequence(4)
creates the list {1, 2, 3, 4}. -
2^Sequence(4)
creates the list {2, 4, 8, 16}.
- Sequence( <Start value k >, <End value n > )
-
Creates a list of integers from k to n (increasing or decreasing).
-
Sequence(7,13)
creates the list {7, 8, 9, 10, 11, 12, 13} -
Sequence(18,14)
creates the list {18, 17, 16, 15, 14} -
Sequence(-5, 5)
creates the list {-5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5}.
This syntax can be further simplified: instead of using e.g. the formal |
- Sequence( <Start value k>, <End value n>, <Increment> )
-
Creates a list of integers from k to n using the given increment.
-
Sequence(7,13,2)
creates the list {7, 9, 11, 13} -
Sequence(7,13,4)
creates the list {7, 11}
- Sequence( <Expression>, <Variable k>, <Start Value a>, <End Value b> )
-
Yields a list of objects created using the given expression and the index k that ranges from start value a to end value b.
-
Sequence((2, k), k, 1, 5)
creates a list of points whose y-coordinates range from 1 to 5: {(2, 1), (2, 2), (2, 3), (2, 4), (2, 5)} -
Sequence(x^k, k, 1, 10)
creates the list {x, x², x³, x⁴, x⁵, x⁶, x⁷, x⁸, x⁹, x¹⁰}
- Sequence( <Expression>, <Variable k>, <Start Value a>, <End Value b>, <Increment> )
-
Yields a list of objects created using the given expression and the index k that ranges from start value a to end value b with given increment.
-
Sequence((2, k), k, 1, 3, 0.5)
creates a list of points whose y-coordinates range from 1 to 3 with an increment of 0.5: {(2, 1), (2, 1.5), (2, 2), (2, 2.5), (2, 3)} -
Sequence(x^k, k, 1, 10, 2)
creates the list {x, x³, x⁵, x⁷, x⁹}.