[R] calculate the integral
Bert Gunter
bgunter@4567 @end|ng |rom gm@||@com
Wed Oct 24 16:39:13 CEST 2018
Is this homework? This list has a no homework policy.
Also, please stop posting in html.
Bert Gunter
On Wed, Oct 24, 2018 at 6:40 AM malika yassa via R-help <
r-help using r-project.org> wrote:
> helloplease can anyone help me, I find it difficult to calculate this
> integrali have this
> programmx<-rnorm(10,0,1)y<-rexp(10,2)z<-exp(10,3)s<-vector()for ( j in
> 1:10)s[j]<-x[j+1]+x[j]s1[i]<-s[j]/2f<-function(y,u){exp(y-u)}sapply(x,
> function(i){
> z[j] integrate(f,lower=s1[j],upper=,s1[j+1] x=i)$value
> for each value of x I will have a vectori can't calculate thisthank you in
> advance
>
>
>
>
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
>
[[alternative HTML version deleted]]
More information about the R-help
mailing list