Question: How to Check if one Interval is a Subset of Another

Hi,

I am trying to write a procedure that takes two intervals of real numbers (in interval notation) and checks if one is a subset of the other. For example, isSubset([-5,2],[-10,infinity)) would return true, but isSubset([-5,2],(-5,infinity)) would return false. Any idea how to go about this? I am having difficulty knowing where to start.

Thanks!

Please Wait...