inst/snippet/moments-exp.R

f1 <- function(x) { x * dexp(x,rate=2) }
f2 <- function(x) { x^2 * dexp(x,rate=2) }
integrate(f1,0,Inf)
integrate(f2,0,Inf)

Try the fastR package in your browser

Any scripts or data that you put into this service are public.

fastR documentation built on May 1, 2019, 11:18 p.m.