Re: [R] making uniroot a bit more robust?

2006-11-17 Thread Martin Maechler
cleaning up my overflowing R mail box... > "Tamas" == Tamas K Papp <[EMAIL PROTECTED]> > on Fri, 27 Oct 2006 16:11:46 -0400 writes: Tamas> Hi, I wonder if it would make sense to make uniroot Tamas> detect zeros at the endpoints, eg Tamas> if f(lower)==0, return lower as

[R] making uniroot a bit more robust?

2006-10-27 Thread Tamas K Papp
Hi, I wonder if it would make sense to make uniroot detect zeros at the endpoints, eg if f(lower)==0, return lower as the root, else if f(upper)==0, return upper as the root, else stop if f(upper)*f(lower) > 0 (currently it stops if >=), else proceed to the algorithm proper. Currently I am using