forum.alglib.net

ALGLIB forum
It is currently Thu Mar 28, 2024 12:23 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  [ 4 posts ] 
Author Message
 Post subject: autogk Precision selection
PostPosted: Wed Jul 20, 2022 11:33 pm 
Offline

Joined: Wed Jul 20, 2022 11:27 pm
Posts: 4
Hi there!

I'm a studen and lately I have been trying to use the ALGLIB in C++ for integration. The issue I had was that using GSL I would get:
Image
Accuracy played no role (it was just time consuming)

Switching to the free version of ALGLIB, I got some wanted results:
Image

With some tuning it's exactly what I expected to see :) :)

But it takes ~100-1000x time more. And I thought maybe I would try to have a lower precision (relative, since i dont really care)

But I tried 2 days, in the trial version, and didn't find any hint.

Is there a way to lower the precision of the autogk integration?

Thanks!


Top
 Profile  
 
 Post subject: Re: autogk Precision selection
PostPosted: Thu Jul 21, 2022 7:35 pm 
Offline

Joined: Wed Jul 20, 2022 11:27 pm
Posts: 4
Any hint on the routines which are responsible for error handling would be helpfull. I'm lost through the files and not that experienced :)


Top
 Profile  
 
 Post subject: Re: autogk Precision selection
PostPosted: Fri Jul 22, 2022 9:25 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 903
Hi!

Present version of ALGLIB automatically selects precision to guarantee best results. If you want, you may tweak this part of the code yourself - it is in autogkinternaliteration() function, code that works with state->eps field.


Top
 Profile  
 
 Post subject: Re: autogk Precision selection
PostPosted: Fri Jul 22, 2022 9:27 am 
Offline

Joined: Wed Jul 20, 2022 11:27 pm
Posts: 4
Sergey.Bochkanov wrote:
Hi!

Present version of ALGLIB automatically selects precision to guarantee best results. If you want, you may tweak this part of the code yourself - it is in autogkinternaliteration() function, code that works with state->eps field.

Thanks for the reply!
I thought it chooses machine percision or close to that, accuracy!

WIll check it :)


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 51 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