[R] Integrate two function in R

Ben Bolker bbolker at gmail.com
Thu Dec 16 14:21:35 CET 2010


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 ...)



More information about the R-help mailing list