m .. n -- produces a sequence of integers in the range from m to n inclusive. If n is less than m then the result is an empty sequence.
i1 : 1..5 |
i2 : {1..5} |
i3 : toList(1..5) |
The most confusing thing about this operator is that it is not a syntactic construction, and so the resulting sequences do not splice themselves into enclosing lists, as in each of the following examples. Use splice to fix that.
i4 : {10..10} |
i5 : {10..8} |
i6 : {3..5,8..10} |
i7 : splice {3..5,8..10} |
a .. i -- produces a sequence of symbols for use as variables in polynomial rings.
i8 : a .. i |
x_0 .. x_9 -- produces a sequence of indexed variables for use in polynomial rings.
i9 : x_0 .. x_9 |
i10 : x_(t_0) .. x_(t_5) |
i11 : x_a .. x_e |
This operator can be used with sequences or lists to produce rectangular intervals.
i12 : (0,0)..(1,3) |
i13 : p_(0,a) .. p_(1,c) |
This operator may be used as a binary operator in an expression like x .. y. The user may install binary methods for handling such expressions with code such as
X .. Y := (x,y) -> ...where X is the class of x and Y is the class of y.
Methods for .. :