Postfix + and -

For any real scalar a, a+ and a- have the same value as a, except they are used for constructing intervals.

(a to b) is open interval .

(a+ to b-) is open interval .

(a+ to b) is half open interval .

(a to b-) is half open interval .

For example

>> 3+
   3

>> 3-
   3

>> 3 to 5
   [3, 5]

>> 3+ to 5-
   (3, 5)

>> 3 to 5-
   [3, 5)



oz 2009-12-22