'Internal function for retrieving isolation interval from cache.'

def _get_interval(self):

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