Godtone (talk | contribs)
→My Python 3 code: include octave complements of intervals in odd limits by default
Godtone (talk | contribs)
m →My Python 3 code: removed redundant space
Line 561: Line 561:
def consistent_err(x, et2, p=None):
def consistent_err(x, et2, p=None):
return pval(x if type(x)==list else fact(x,p), et2, p) - steps(as_float(x,p),et2)
return pval(x if type(x)==list else fact(x,p), et2, p) - steps(as_float(x,p),et2)
def odd_lim(lim, remove=set(), add=set(), include_complements = True):
def odd_lim(lim, remove=set(), add=set(), include_complements=True):
odds = set([i for i in range(1,lim+1,2) if i not in remove])
odds = set([i for i in range(1,lim+1,2) if i not in remove])
odds |= set(add)
odds |= set(add)