Re: [R] question with integrate function

2018-02-06 Thread li li
Oh ok. Thanks very much. I will have to restrict to a shorter interval. Hanna 2018-02-06 14:33 GMT-05:00 Göran Broström : > Hi Hanna, > > your function is essentially zero outside a short interval around 9. And > the help page states: "If the function is approximately constant (in > particula

Re: [R] question with integrate function

2018-02-06 Thread Göran Broström
Hi Hanna, your function is essentially zero outside a short interval around 9. And the help page states: "If the function is approximately constant (in particular, zero) over nearly all its range it is possible that the result and error estimate may be seriously wrong." You could try to inte

Re: [R] question with integrate function

2018-02-06 Thread li li
Sorry. I meant in the previous email that the function h() is a monotone decreasing function. Thanks very much. 2018-02-06 13:32 GMT-05:00 li li : > Hi all, > The function h below is a function of c and it should be a monotone > increasing function since the integrand is nonnegative and integra