forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 11:46 pm

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Infinite loop in the integration
PostPosted: Wed Jan 11, 2012 1:28 am 
Offline

Joined: Mon Nov 22, 2010 11:19 am
Posts: 10
Hello, Sergey!

Recently I tried to use your library for calculation integrals like the following:

\int\limits_{-1}^1 g(x')G(x,x')dx'

where Green function G(x,x') is
Image

If one considers a simple case when g(x)=1, the integral can be calculated at the whole region x\in(-1..1), except of the boundary points x=-1 and x=1. But using the routines autogksingular/autogkiteration program is trapped into infinite loop even when x is quite close to -1/1, for example, for x=-0.97.

And my question:
Is there some way to make the library calculate the integrals with the stated Green function exactly on the region x\in(-1..1) ?

P.S. I use AlgLib v. 3.1.0
P.P.S. In the formula for G(x,x') one can put \xi,\xi'=x,x'


Top
 Profile  
 
 Post subject: Re: Infinite loop in the integration
PostPosted: Wed Jan 11, 2012 5:35 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
Can you try ALGLIB 3.4? Previous versions of ALGLIB had difficulties when integrating functions with numerical noise higher than some level. There was a fix made at 3.4, which solved this issue. I suppose that it should solve your problem.


Top
 Profile  
 
 Post subject: Re: Infinite loop in the integration
PostPosted: Thu Jan 12, 2012 5:30 pm 
Offline

Joined: Mon Nov 22, 2010 11:19 am
Posts: 10
Thank you! With 3.4.0 version my code works perfectly! Even better than Maple in some cases. Function G(x,x') has a logarithmic singularity when x=x', Maple code can fail under the certain data, but your recent code can calculate the integral in this cases.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 38 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group