Solved
simple loops and operations with variables in Prime 4.0
- September 28, 2020
- 2 replies
- 1974 views
Hello to everybody.
To define loops in mathcad, any release of it, I use the simple statement "m=1,2..nmod", where in this case nmod is the maximum number of modes for an electromagnetic calculation.
Since my background was in fortran or similar languages, I initialized a variable "totcap:=0" and then I tried to increase this value calculating each time terms to be added with respect to the previously calculated one, updating the quantity "totcap", ending the loop with the statement "return m", being m the index that I defined.
Actually, but probably is my trivial error in using Prime, it seems that I mixed variables that cannot be summed...
Attached is the file. May you help me?


