Re: [R] Integrate a 1-variable function with 1 parameter (Jose L. Romero)

2008-08-27 Thread Moshe Olshansky
ject: [R] Integrate a 1-variable function with 1 parameter (Jose L. Romero) > To: r-help@r-project.org > Received: Thursday, 28 August, 2008, 12:23 AM > Hey fellas: > > I would like to integrate the following function: > > integrand <- function (x,t) { > exp(-2*t)

Re: [R] Integrate a 1-variable function with 1 parameter (Jose L. Romero)

2008-08-27 Thread jose romero
n <[EMAIL PROTECTED]> > Subject: RE: [R] Integrate a 1-variable function with 1 parameter (Jose L. > Romero) > To: [EMAIL PROTECTED], r-help@r-project.org > Date: Wednesday, August 27, 2008, 2:42 PM > Here is one way: > > integrand <- function (t, x) { > exp(

Re: [R] Integrate a 1-variable function with 1 parameter (Jose L. Romero)

2008-08-27 Thread Peter Dalgaard
Peter Dalgaard wrote: > jose romero wrote: > >> Hey fellas: >> >> I would like to integrate the following function: >> >> integrand <- function (x,t) { >> exp(-2*t)*(2*t)^x/(10*factorial(x)) >> } >> >> with respect to the t variable, from 0 to 10. >> The variable x here works as a parameter

Re: [R] Integrate a 1-variable function with 1 parameter (Jose L. Romero)

2008-08-27 Thread Ravi Varadhan
oject.org Subject: [R] Integrate a 1-variable function with 1 parameter (Jose L. Romero) Hey fellas: I would like to integrate the following function: integrand <- function (x,t) { exp(-2*t)*(2*t)^x/(10*factorial(x)) } with respect to the t variable, from 0 to 10. The variable x her

Re: [R] Integrate a 1-variable function with 1 parameter (Jose L. Romero)

2008-08-27 Thread Peter Dalgaard
jose romero wrote: > Hey fellas: > > I would like to integrate the following function: > > integrand <- function (x,t) { > exp(-2*t)*(2*t)^x/(10*factorial(x)) > } > > with respect to the t variable, from 0 to 10. > The variable x here works as a parameter: I would like to integrate the said

[R] Integrate a 1-variable function with 1 parameter (Jose L. Romero)

2008-08-27 Thread jose romero
Hey fellas: I would like to integrate the following function: integrand <- function (x,t) { exp(-2*t)*(2*t)^x/(10*factorial(x)) } with respect to the t variable, from 0 to 10. The variable x here works as a parameter: I would like to integrate the said function for each value of x in 0,