Well, Im new with this language and it looked amazing at first. But then I cant make a simple loop. I mean, c'mon, I try to do the same outside the loop and everything works fine. Here is the code:
For[i = 1, i < 4, i++, rhoPD = K11.rhoPD.K11 ]
(rhoPD and K11 are matrices). I thought, maybe is because Im defining rhoPD with himself (a normal thing to do in an interation), lets try something else. But then I try:
For[i = 1, i < 4, i++, rhoPD = a;]
AND IT DIDNT WORK EITHER. I tried clearing all variables, giving them values, but still got the error. What the hell is going on? I mean, how cant I do something so incredibly simple?