
5 May
2008
5 May
'08
2:38 p.m.
On Mon, May 5, 2008 at 6:48 AM, John Maddock <john@johnmaddock.co.uk> wrote:
Given that this function is inherently related to the "units in the last place" metric, I wonder if we can compose a name from that?
Maybe extending the API slightly how about:
T upl_distance(T, T); // "representation distance" T relative_distance(T, T); // AKA relative error. T ulp(T); // distance between arg and next(arg)
Thoughts?
I like these a lot. I was thinking about suggesting ulp_* names last week but didn't want to get into a discussion on a subject I'm not very knowledgeable about. --Michael Fawcett