(x)
evaluates the exponential of an interval
evaluates the exponential of an interval
evaluates the exponential of an interval
def exp(x):
    """evaluates the exponential of an interval"""
    np = import_module('numpy')
    if isinstance(x, (int, float)):
        return interval(np.exp(x), np.exp(x))
    elif isinstance(x, interval):
        return interval(np.exp(x.start), np.exp(x.end), is_valid=x.is_valid)
    else:
        raise NotImplementedError
def exp ( x ) : np = import_module ( 'numpy' ) if isinstance ( x , ( int , float ) ) : return interval ( np . exp ( x ) , np . exp ( x ) ) elif isinstance ( x , interval ) : return interval ( np . exp ( x . start ) , np . exp ( x . end ) , is_valid = x . is_valid ) else : raise NotImplementedError