Kultigin
Mechanical
- Dec 22, 2003
- 3
Hi,
I'm using Mathcad 2001 and I wrote a very complicated program that consists of a For loop. When I want to compare a variable u[n] with its previous value u[n-1] in the loop, I naturally assign it to another variable at the end of the For loop, i.e. uold <- u but Mathcad somehow updates the previous value. Therefore;
u[n]-u[n-1]=0
When I tried the single variables, there's no problem, however if my variable is a vector/matrix, the problem occurs. Is there anyone who faced a similar problem as me??
Thx...
I'm using Mathcad 2001 and I wrote a very complicated program that consists of a For loop. When I want to compare a variable u[n] with its previous value u[n-1] in the loop, I naturally assign it to another variable at the end of the For loop, i.e. uold <- u but Mathcad somehow updates the previous value. Therefore;
u[n]-u[n-1]=0
When I tried the single variables, there's no problem, however if my variable is a vector/matrix, the problem occurs. Is there anyone who faced a similar problem as me??
Thx...