Problem with ludcmp


d00mvw
03-21-2008, 05:01 PM
Hi Everyone

I'm trying to solve a linear set of equations i.e. Ax=B. I've implemented ludcmp and lubksb in C and run the example program xlubksb using the test matrices.

However, in constructing my own set of equations to be solved the complier just crashes (with no indication of what the error is) when the number of equations, n, becomes >34. That is, it works fine for 34 equations but falls over when trying to do 35 (i.e. A=[35][35]). Has anyone else experienced this problem?

Many thanks

James

davekw7x
03-21-2008, 10:21 PM
I'm trying to solve...
The Numerical Recipes functions ludcmp() and lubksb() can definitely handle systems of equations sized in the hundreds.

Could you show us your test program? How did you modify xlubksb.c to handle larger systems (Value of NP?) How about the data for the system you are trying to solve? (What test matrices?)

Maybe someone else can see if your problem can be duplicated.

Regards,

Dave

GuitarCrazyo
11-01-2009, 11:27 AM
I have been trying to do that since few months now lol
Actually, i was not using the fade option, Thanks for the tut.