The variable RhoLG
was declared inside the Module
. Mathematica uses a re-naming scheme to scope variables, so inside the Module
the variable that looks to you like RhoLG
is really RhoLG$19861474
.
(The bit after the $
will be different each time the Module
executes.
But, if you put the Print
statement inside the Module
it should work fine. So, you must have been putting the Print
outside the Module
. Since you want intermediate results, put the Print
right next to each place that RhoLG
is defined or updated.
If you're still having trouble, I'll try to put together a demo. But I don't have much time right now, so it'll have to wait until later (or maybe someone else can jump in and help you out).