Skip to content
Prev 46699 / 63424 Next

numerical issue in contour.default?

On 13.09.2013 16:44, Prof Brian Ripley wrote:
You are right, I can reproduce it only on 64 bit.
Agreed, so I'll put a workaround in my package for now.
O.K., I will report it. After a look in the sources I would guess that 
it may be in:

src/main/contour-common.h

static int ctr_intersect(double z0, double z1, double zc, double *f)
{
     if ((z0 - zc) * (z1 - zc) < 0.0) {
	*f = (zc - z0) / (z1 -	z0);
	return 1;
     }
     return 0;
}


... but you are right, too many things depend on it.

Many thanks for the immediate feedback!

Thomas