Hello,
I am having issues in getting a subscript of n-1 to work in the programing of a matrix power method. Primarily, I'm wanting to express a function of just one number or variable (say n). By doing this, I want to take the norm of v(n) divided by the norm of v(n-1), with the output being that division. However, I'm uncertain in how to get the proper labeling of subscripts to get my output I'm wanting.
I am not sure what you are searching for. Are you after something like this?
Or are you trying to create vectors (which ones)?
BTW, your function r() could be written that way, too
Please state which version of Prime you are using. PTC in its wisdom has decided that Prime 2 and Prime 3 files have the same extensions but the formats are incompatible. P2 would not be able to read P3 files and P3 is not able to write in P2 format. So if you still use Prime 2 its very likely you get an answer file in P3 format your version cannot read.
I solved it. I went the route you were mentioning and used the function twice with a step lower. I was hoping for a logic in the summation itself, but that neatly ties it up.
Still not sure what you tried to find, but glad you found a solution.
For reference, here is the completed file.