forum.alglib.net
http://forum.alglib.net/

I m a New bie, please help...
http://forum.alglib.net/viewtopic.php?f=2&t=110
Page 1 of 1

Author:  lovemebabe [ Fri Nov 05, 2010 3:57 pm ]
Post subject:  I m a New bie, please help...

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...

Author:  Sergey.Bochkanov [ Sat Nov 06, 2010 10:23 am ]
Post subject:  Re: I m a New bie, please help...

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 :)

Author:  lovemebabe [ Sat Nov 06, 2010 2:29 pm ]
Post subject:  Re: I m a New bie, please help...

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...

Author:  Sergey.Bochkanov [ Sat Nov 06, 2010 9:55 pm ]
Post subject:  Re: I m a New bie, please help...

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

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/