Maxima Function
intervalp (e)
Return true if the input is an interval and return false if it isn't.
true