Thread Links Date Links
Thread Prev Thread Next Thread Index Date Prev Date Next Date Index

Re: John's asinh split versus convert-to-sortable...



On 03/22/2012 10:06 PM, Kreinovich, Vladik wrote:
I like this reformulation, it only used sqrt which is usually very fast.

		split(x,y):
			u = x + sqrt(1 + x^2);
			v = y + sqrt(1 + y^2);
			t = sqrt(u*v);
			return s = (t - 1/t)/2;

This produces inf when x or y > 1e160, not a good splitting point.