Godtone (talk | contribs)
m My Python 3 code: removed redundant space
Godtone (talk | contribs)
m correction!!
Line 573: Line 573:
ivs|={iv(numer,oct_denom)}
ivs|={iv(numer,oct_denom)}
if include_complements:
if include_complements:
ivs = set([ iv(i[1]*2,i[0]) for i in ivs ])
ivs |= set([ iv(i[1]*2,i[0]) for i in ivs ])
return ivs
return ivs
def inconsistencies(ivs, et2, threshold=1/2):
def inconsistencies(ivs, et2, threshold=1/2):
return [r for r in ivs if abs( consistent_err(fact(r),et2) )>=threshold]
return [r for r in ivs if abs( consistent_err(fact(r),et2) )>=threshold]
</syntaxhighlight>
</syntaxhighlight>