Obtaining endpoints of an interval

### 5.6.2 Obtaining endpoints of an interval

The left and right commands can find the left and right endpoints of an interval. (See Section 7.2.3, Section 5.3.6, Section 5.5.1, Section 8.3.4 and Section 8.3.5 for other uses of left and right.)

- left and right take one argument: I, an interval.
- left(I) returns the left endpoint of the interval I.
- right(I) returns the right endpoint of the interval I.

#### Examples

left(i[2,5])

2.00000000000000 |  |  |  |  |  |  |  |  |  |

right(i[2,5])

5.00000000000000 |  |  |  |  |  |  |  |  |  |