Re: [Rcpp-devel] uniroot problem

2019-12-28 Thread Jeff Newmiller
I get 230 for all three runs, which looks right to me. I don't understand your concern .. maybe you need to plot Fn yourself. On December 28, 2019 7:48:27 PM PST, Shaami wrote: >Any suggestion plz. What could be missing that I donot get function >root to >be zero at some points? > >On Tue, 24 De

Re: [Rcpp-devel] uniroot problem

2019-12-28 Thread Shaami
Any suggestion plz. What could be missing that I donot get function root to be zero at some points? On Tue, 24 Dec 2019, 1:45 PM Shaami, wrote: > Dear Friends > > Could you please help with the following example? I do not get function > value at zero using uniroot() in R. Could you suggest somet

Re: [Rcpp-devel] uniroot problem

2019-12-23 Thread Dirk Eddelbuettel
On 24 December 2019 at 13:45, Shaami wrote: | Could you please help with the following example? I do not get function | value at zero using uniroot() in R. Could you suggest something? I want | function value zero at any point like 2.4, 2.5, 2.6, 4.5, 5.9 etc. | | Thank You | | x = c(-100, -20,

[Rcpp-devel] uniroot problem

2019-12-23 Thread Shaami
Dear Friends Could you please help with the following example? I do not get function value at zero using uniroot() in R. Could you suggest something? I want function value zero at any point like 2.4, 2.5, 2.6, 4.5, 5.9 etc. Thank You x = c(-100, -20, 100, 230, 500, 920, 1000) a = c(1000, 12, 300