(x)
Evaluates the ceiling of an interval
Evaluates the ceiling of an interval
Evaluates the ceiling of an interval
def ceil(x):
    """Evaluates the ceiling of an interval"""
    np = import_module('numpy')
    if isinstance(x, (int, float)):
        return interval(np.ceil(x))
    elif isinstance(x, interval):
        if x.is_valid is False:
            return interval(-np.inf, np.inf, is_valid=False)
        else:
            start = np.ceil(x.start)
            end = np.ceil(x.end)
            #Continuous over the interval
            if start == end:
                return interval(start, end, is_valid=x.is_valid)
            else:
                #Not continuous over the interval
                return interval(start, end, is_valid=None)
    else:
        return NotImplementedError
def ceil ( x ) : np = import_module ( 'numpy' ) if isinstance ( x , ( int , float ) ) : return interval ( np . ceil ( x ) ) elif isinstance ( x , interval ) : if x . is_valid is False : return interval ( - np . inf , np . inf , is_valid = False ) else : start = np . ceil ( x . start ) end = np . ceil ( x . end ) #Continuous over the interval if start == end : return interval ( start , end , is_valid = x . is_valid ) else : #Not continuous over the interval return interval ( start , end , is_valid = None ) else : return NotImplementedError