question about SimpsonIntegral

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

question about SimpsonIntegral

Qiwen Chen
Hi,
 
I am a beginner of quantlib. I am trying to figure out how to use  class SimpsonIntegral. Especially, I don't know what's the structure inside class F, which is a parameter of the operator(). Thanks
 
Best Regards
 
Qiwen
Reply | Threaded
Open this post in threaded view
|

Re: question about SimpsonIntegral

Luigi Ballabio
On Thu, 2006-10-26 at 19:43 -0400, Qiwen Chen wrote:
> I am a beginner of quantlib. I am trying to figure out how to use
> class SimpsonIntegral. Especially, I don't know what's the structure
> inside class F, which is a parameter of the operator(). Thanks

You can pass anything that can be called as f(). This includes plain
functions as well as instances of any class that defines an operator().

Later,
        Luigi


----------------------------------------

There are two ways to write error-free programs; only the third one
works.
-- unknown