(x)
evaluates the logarithm to the base 10 of an interval
evaluates the logarithm to the base 10 of an interval
evaluates the logarithm to the base 10 of an interval
def log10(x):
    """evaluates the logarithm to the base 10 of an interval"""
    np = import_module('numpy')
    if isinstance(x, (int, float)):
        if x <= 0:
            return interval(-np.inf, np.inf, is_valid=False)
        else:
            return interval(np.log10(x))
    elif isinstance(x, interval):
        if not x.is_valid:
            return interval(-np.inf, np.inf, is_valid=x.is_valid)
        elif x.end <= 0:
            return interval(-np.inf, np.inf, is_valid=False)
        elif x.start <= 0:
            return interval(-np.inf, np.inf, is_valid=None)
        return interval(np.log10(x.start), np.log10(x.end))
    else:
        raise NotImplementedError
def log10 ( x ) : np = import_module ( 'numpy' ) if isinstance ( x , ( int , float ) ) : if x <= 0 : return interval ( - np . inf , np . inf , is_valid = False ) else : return interval ( np . log10 ( x ) ) elif isinstance ( x , interval ) : if not x . is_valid : return interval ( - np . inf , np . inf , is_valid = x . is_valid ) elif x . end <= 0 : return interval ( - np . inf , np . inf , is_valid = False ) elif x . start <= 0 : return interval ( - np . inf , np . inf , is_valid = None ) return interval ( np . log10 ( x . start ) , np . log10 ( x . end ) ) else : raise NotImplementedError