Ben Bolker <bbolker <at> gmail.com> writes:

>   Analytically or numerically?
>   It sounds like you want the answer analytically, in which case R
> can't do it, but it is an easy integral
> 
>   g(x)*s(x) = 10*x^3-15*x^2+4*x-6
>   indefinite integral = 10/3*x^4 -15/3*x^3 + 4/2*x^2 - 6*x + C

  oops, the first term should be 10/4*x^4

  (but of course you should never believe a solution you get from
the mailing list without checking it ...)

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to