Re: [R] Integrate and subdivisions limit

2011-01-12 Thread Hans W Borchers
> Dear all, > I have some issues with integrate in R thus I would like to request > your help. I am trying to calculate the integral of f(x)*g(x). > The f(x) is a step function while g(x) is a polynomial. > If f(x) (step function) changes its value only few times (5 or 6 'steps') > everything is ca

[R] Integrate and subdivisions limit

2011-01-12 Thread Alaios
Dear all, I have some issues with integrate in R thus I would like to request your help. I am trying to calculate the integral of f(x)*g(x). The f(x) is a step function while g(x) is a polynomial. If f(x) (step function) changes its value only few times (5 or 6 'steps') everything is calulated ok