Thread Links | Date Links | ||||
---|---|---|---|---|---|
Thread Prev | Thread Next | Thread Index | Date Prev | Date Next | Date Index |
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.