Godtone (talk | contribs)
m →My Python 3 code: renaming for clarity
Godtone (talk | contribs)
→My Python 3 code: added a function for calculating the signed error of the pval mapping of an interval in a rank one temperament
Line 547: Line 547:
p = prime_limit(prime_idx( len(r)-1 ))
p = prime_limit(prime_idx( len(r)-1 ))
return sum([ r[i]*round(steps(p[i],et2)) for i in range(len(r)) ])
return sum([ r[i]*round(steps(p[i],et2)) for i in range(len(r)) ])
def consistent_err(x, et2, p=None):
return pval(x if type(x)==list else fact(x), et2, p) - steps(as_float(x), et2)
</syntaxhighlight>
</syntaxhighlight>