forum.alglib.net

ALGLIB forum
It is currently Sun Apr 28, 2024 12:30 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: I m a New bie, please help...
PostPosted: Fri Nov 05, 2010 3:57 pm 
Offline

Joined: Fri Nov 05, 2010 12:47 pm
Posts: 9
Dear all,
I am in a dire need of integration.h file. I am using netbeans for C++ projects. I want to add alglib in my programs having complex exponantials to be integrated..
Please help me with this.
1. On Windows 7, how to add alglib in netbeans? Do I have to compile each files every time or I can just copy-pest them in my include folder of Cygwin?(I am having Cygwin environment on Windows to execute C++ programs).
2.Please give one example code other than that given in the documentation.


Will be waiting for the reply.
Thanks...


Top
 Profile  
 
 Post subject: Re: I m a New bie, please help...
PostPosted: Sat Nov 06, 2010 10:23 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 906
1. I think that adding ALGLIB files to your project is the best solution. If you want to speed up compilation of your project, you can add only those units which are used by integration.cpp (ap.cpp, alglibinternal.cpp, linalg.cpp, specialfunctions.cpp)
2. What kind of example you want to see? Just don't know what use case to demonstrate :)


Top
 Profile  
 
 Post subject: Re: I m a New bie, please help...
PostPosted: Sat Nov 06, 2010 2:29 pm 
Offline

Joined: Fri Nov 05, 2010 12:47 pm
Posts: 9
Thank You admin for the reply.

I have successfully added the files to my program. and it gives me output on the integration limits also..
But the only problem now remains that, inside the integration function, there is a variable for which I need to run the loop. This variable is an array.
Let's say, I want to carry out integration over a function of x, and this function contains an array Ek[p], p can have any integer value. I want to integrate this function of x to be integrated over the limit of [0,1000] for each value of Ek[p], and the each time the value must be added to the previous value.
Its like "sigma(integration(fn(x)dx))"..

I am able to do the integration part, but don't know how to implement with sigma part...


Top
 Profile  
 
 Post subject: Re: I m a New bie, please help...
PostPosted: Sat Nov 06, 2010 9:55 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 906
If you want to calculate parameterized integral for all values of parameter, I recommend you to repeatedly call integrator with different values of parameter (there is additional void* parameter which you can use to pass some data to function). There is no other way of doing so with ALGLIB


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 290 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group