Godtone
Joined 17 December 2020
→My Python 3 code: added reduce function and fixed conversion function which is used by it |
m →My Python 3 code: minor correction to avoid unnecessary spam in output |
||
| Line 938: | Line 938: | ||
if noisy: | if noisy: | ||
cm = circular_mean(et2,currentharmonics,weights) | cm = circular_mean(et2,currentharmonics,weights) | ||
print( str.rjust( str(reduce(addable[-1])), widest ), '+', | print( str.rjust( str(reduce(addable[-1])[0]), widest ), '+', | ||
str( 100*(oldl-length( cm )) )[:6] + ',', | str( 100*(oldl-length( cm )) )[:6] + ',', | ||
str( math.atan2(cm[0],cm[1])/math.tau*360 )[:6], | str( math.atan2(cm[0],cm[1])/math.tau*360 )[:6], | ||