This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: some problem with QAWF integration


xie qiong writes:
 > Hello there,
 > 
 > I have an urgent question about QAWF function.
 >  
 > I need to computer a semi-infinit integration
 > \int_{0} ^{\infty} f(x)*sin(w*x)/x dx
 > The integrand f(x) * sin(w*x) / x has a finite value
 > limit(equal to w) at x = 0.0 but f(x) / x doesn't a
 > finite value limit at x = 0.0.
 > 
 > In this case, what can I do to make QAWF work?

Break the integration range into two parts (0,pi/w) (pi/w,inf) and
compute the first with a standard integrator.

Brian




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]