Suppose that $a,b \in R$ and $a<b$.
Now the $diam(a,b)$ = $b-a$
I am slightly confused at this point, because, by definition,
The diameter of a subset $A$ of a metric space $X$ is the $sup${$d(a,b)$|$a,b\in A$},
But in the above case $a$,$b$ do not belong to $(a,b)$ ,then why is the diameter of $(a,b)$ calculated using elements that don't belong to the set ?