Re: [R] upper bound in the integrate function depends on a parameter

2011-12-04 Thread e eeyore
at 11:04 AM, e eeyore wrote: > > > > On Sun, Dec 4, 2011 at 4:47 PM, David Winsemius wrote: > >> >> You almost did write it in R. You just left the "m" unspecified. If you >> replace "m" by 5 the code works. >> > > Check how wolfra

Re: [R] upper bound in the integrate function depends on a parameter

2011-12-04 Thread e eeyore
On Sun, Dec 4, 2011 at 4:47 PM, David Winsemius wrote: > > You almost did write it in R. You just left the "m" unspecified. If you > replace "m" by 5 the code works. > Check how wolfram work with same integral, I dont need to replace anything.. http://www.wolframalpha.com/input/?i=integrate+x*2%2

Re: [R] upper bound in the integrate function depends on a parameter

2011-12-04 Thread e eeyore
This is not homework, I calculate some expectations and to finish that I must solve integral like this one.. Upper bound have some unknown parameter, but I dont know how to write it in R. Do I must define m like symbol, or something else, just need help with that. I know how this work in MatLab, b