Chapter 6 incgammabeta


MPD78
11-24-2009, 02:13 PM
Hello all,

In the incgammabeta.h routine the first line and following comment are,

struct Beta : Gauleg18 {
// Gauleg18 provides coefficients for Gauss-Legendre quadrature.

The fitab.h routine (Chapter 15) requires the incgammabeta.h to be included.

However, I recieve an error from the compiler that states

"Gauleg18 : base class undefined"

No problem, the base class Gauleg18 simply needs to be defined. Right?

However, I have searched the NR3 book all over and I can't find any other reference to Gauleg18. Chapter 4 contains the Guassian quadrature routines gausleg and gauslag and some others but no Gauleg18.

What am I doing wrong. Is Gauleg18 supposed to be supplied by me?

Any help would be appreciated.

PS: I am terrible at finding stuff so If I overlooked it, I wouldn't be suprised.

Thanks
Matt

davekw7x
11-24-2009, 03:13 PM
...I have searched the NR3 book...


The listing for Gauleg18 is in section 6.2, near the top of Page 261.

For future reference, you might want to bookmark this: Numerical Recipes Routines (http://www.nr.com/routines/)

Regards,


Dave

MPD78
11-24-2009, 05:51 PM
Thanks Dave,

I completly missed it and the sad part is that I did use the index of routines.

Trying to program from home with a 2 year old running around isn't such a good idea. LOL

Thanks
Matt