'Internal function for updating isolation interval in cache.'

def _set_interval(self, interval):

    if self.is_real:
        _reals_cache[self.poly][self.index] = interval
    else:
        reals_count = len(_reals_cache[self.poly])
        _complexes_cache[self.poly][(self.index - reals_count)] = interval
