Other library functions:
Dissonance functions for musical interval x>1:
diss(c,x) gives the dissonance value of x for accuracy c>0.
diss.f(c,x) gives the ratio n:m in the form m+n/1000, i.e.
n:m is the best rational approximation for x.
Example: diss.f(5,3.141592653589793)=7.022 (22:7)
bestval(a,b) finds the `nicest' number in the closed interval.
This function can be used for finding suitable scale
notations. For example, sucros may produce good
XSCALE and YSCALE specifications for plotting schemes.
Example: bestval(1.27,7.34)=5
L = More information about library functions