Godtone
Joined 17 December 2020
m →My Python 3 code: add EDO error function that rewards accuracy rather than inaccuracy (a novel way of ranking EDOs) |
|||
| Line 1,197: | Line 1,197: | ||
print(', '+styler(x,relerr),end='') | print(', '+styler(x,relerr),end='') | ||
print() | print() | ||
def bestprodedos(ivs,edos=range(1,201)): | |||
prodedos = [] | |||
for edo in edos: | |||
prodivs = prod([ abs( pval(x,ed(edo)) - steps(x,ed(edo)) )*4 for x in ivs if len(fact(x)) > 1 ]) | |||
prodedos.append((edo,prodivs)) | |||
prodedos.sort(key=lambda edo_prod: edo_prod[1]) | |||
return prodedos | |||
</syntaxhighlight> | </syntaxhighlight> | ||