]>
Book Contents Previous Section 9.69 Segment Next Section 9.71 Set Book Index

## 9.70 SegmentBinding

The SegmentBinding type is used to indicate a range for a named symbol.

First give the symbol, then an = and finally a segment of values.

x = a..b

x=a..b

Type: SegmentBinding Symbol

This is used to provide a convenient syntax for arguments to certain operations.

sum(i**2, i = 0..n)

Type: Fraction Polynomial Integer
draw(x**2, x = -2..2)

The left-hand side must be of type Symbol but the right-hand side can be a segment over any type.

sb := y = 1/2..3/2

y=(1 2)..(3 2)

Type: SegmentBinding Fraction Integer

The left- and right-hand sides can be obtained using the variable variable SegmentBinding and segment segment SegmentBinding operations.

variable(sb)

y

Type: Symbol
segment(sb)

(1 2)..(3 2)

Type: Segment Fraction Integer

For more information on related topics, see SegmentXmpPage and UniversalSegmentXmpPage .

Book Contents Previous Section 9.69 Segment Next Section 9.71 Set Book Index