zhasanain
05-13-2004, 06:36 AM
Hi all,
I've copied the code for tred2() and tqli() into my VC++ project. tred2() works properly, but when i try to run tqli(), it gives me the following compilation error:
error C2065 : SIGN : undeclared identifier
This error arises from line 36 of the tqli() code, which is:
g=d[m]-d[l]+e[l]/(g+SIGN(r,g)); //This is dm - ks.
Does anyone know why this is happening? The SIGN macro hasn't been defined in either nr.h or nrutil.h. Do i have to include any other files to make this work?? I'm lost
It'd be really helpful if i could get an answer sooon, coz my project is due in a few days' time!!
Zehra
:confused: :confused:
I've copied the code for tred2() and tqli() into my VC++ project. tred2() works properly, but when i try to run tqli(), it gives me the following compilation error:
error C2065 : SIGN : undeclared identifier
This error arises from line 36 of the tqli() code, which is:
g=d[m]-d[l]+e[l]/(g+SIGN(r,g)); //This is dm - ks.
Does anyone know why this is happening? The SIGN macro hasn't been defined in either nr.h or nrutil.h. Do i have to include any other files to make this work?? I'm lost
It'd be really helpful if i could get an answer sooon, coz my project is due in a few days' time!!
Zehra
:confused: :confused: