Re: [R] Integration of two dimension function

2012-05-17 Thread Petr Savicky
On Thu, May 17, 2012 at 09:43:13PM -0400, li li wrote: > Dear all, >I have a function f <- function(x,y,c){as.numeric(x*y < c) } > I need to solve the value of c so that when I take the integral of > the function f from 0.2 to 0.8 with respect to x and from 0 to 1 > with respect to y, the int

[R] Integration of two dimension function

2012-05-17 Thread li li
Dear all, I have a function f <- function(x,y,c){as.numeric(x*y < c) } I need to solve the value of c so that when I take the integral of the function f from 0.2 to 0.8 with respect to x and from 0 to 1 with respect to y, the integral equal some prefixed value, say 0.025. It involves two dim