RE: Another proposal for a "split" function to complement "mid"
For positive numbers, we can make it even simpler:
fix some value V0, and take split = (a+b)/2 if this value is <= V0 and split = sqrt(a*b) otherwise.
If we want a continuous function, we can take (a+b)/2 * w((a+b)/2) + sqrt(a*b) * (1-w((a+b)/2), for some function w(z) which is 1 for small values z and decreases to 0 when z -> infinity. For example, we can take w(z)=1/(1+z).
Still needs to be generalized to negative values.
-----Original Message-----
From: stds-1788@xxxxxxxx [mailto:stds-1788@xxxxxxxx] On Behalf Of Michel Hack