Sorry for my English, is not my first language..

I have some trouble in terms of using integrate function in R.
fx is a function of m and x where m is supposed to be a unknown parameter.

>fx=function(m,x){
+ x*2/(3*m)*(1-x/(3*m))
+ }

The problem is in upper bound, it depends on parameter m.

>integrate(fx,lower=0,upper=3*m)$value

Is it possible to use the integrate function when bounds depend on a
parameter?

How to define m to solve this integral? The result should be m.

        [[alternative HTML version deleted]]

______________________________________________
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