x = diameter I
Returns the diameter (the difference between the endpoints) of the input interval.
The object diameter is a method function.