search for: uniroot2

Displaying 1 result from an estimated 1 matches for "uniroot2".

Did you mean: uniroot
2007 Jan 31
2
what is the purpose of an error message in uniroot?
...end points not of opposite sign #this doesn't give a warning uniroot(f,interval=c(.1,5),y=0) $root [1] 1 $f.root [1] 1.054e-05 $iter [1] 9 $estim.prec [1] 6.104e-05 If I comment out the two lines of script in the uniroot function that produce this warning and create a new function, call it uniroot2, everything works as I'd like. But for didactic purposes, why did the creators of uniroot want the f() values at endpoints to be of opposite sign? Thanks in advance, Matt