forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 1:58 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  [ 1 post ] 
Author Message
 Post subject: Adaptive Gauss-Kronrod quadrature, C++
PostPosted: Wed Jul 29, 2015 4:06 pm 
Offline

Joined: Wed Jul 29, 2015 3:42 pm
Posts: 1
I need to find an equivalent for MATLAB function "quadgk" in C++. I am aware of ALGLIB "autogk subpackage", but it seems so complicated to me and for some reason I was not able to use it. More precisely, my understanding is that the code is designed for a non parametric function (e.g. y = exp(x)), see Example: http://www.alglib.net/translator/man/manual.cpp.html#example_autogk_d1

However, my function is more sophisticated and has several parameters that I need to update before each use of the function. These parameters need to be passed to "void int_function_1_func" as arguments, while this requires many other changes in the code.

In the attached file "Code.cpp", one can notice that I need four parameters t1, t2, t3, and t4 to define my function "y".

Any idea how I can come up with a solution?

Thanks in advance.


Attachments:
Code.h [463 Bytes]
Downloaded 891 times
Code.cpp [1.02 KiB]
Downloaded 896 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

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