Re: [R] Problem to solve an integral equation

2013-12-17 Thread David Winsemius
On Dec 17, 2013, at 11:25 AM, Aurélien Philippot wrote: > thanks David for your answer. > > Sorry for the integrand; as you noticed, a parenthesis was missing. > Here is another integrand which is properly defined: > > integrand<- > function(C,x){-((500+10*x+1*max(0,x-50))^(-1)-(5

Re: [R] Problem to solve an integral equation

2013-12-17 Thread David Winsemius
On Dec 17, 2013, at 8:53 AM, Aurélien Philippot wrote: > Dear R experts, > > I am trying to find numerical solutions for an integral equation. > > > Here is an example: > > I started by defining the integrand, as a function of x and C, where x is > the variable of integration and C is the par

Re: [R] Problem to solve an integral equation

2013-12-17 Thread Aurélien Philippot
thanks David for your answer. Sorry for the integrand; as you noticed, a parenthesis was missing. Here is another integrand which is properly defined: integrand<- function(C,x){-((500+10*x+1*max(0,x-50))^(-1)-(500+10*x+C)^(-1))* 1/(x*0.20*sqrt(10)*sqrt(2*pi))*exp(-0.5*((log(x

[R] Problem to solve an integral equation

2013-12-17 Thread Aurélien Philippot
Dear R experts, I am trying to find numerical solutions for an integral equation. Here is an example: I started by defining the integrand, as a function of x and C, where x is the variable of integration and C is the parameter I am interested in: integrand<- function(C,x){-((10*x)^(-1)-(1