Iterative / recursive program with multiple output ?
Hello,
I’m quite new to Mathcad and Mathcad Prime. I already looked for a solution in this forum and in the help files, but did not find anything suitable. Here’s my problem:
I defined a function f_next_s: Input s_n (current) -> Output s_n+1 (next).
Now I want to repeat this procedure n times, starting with s_1(given):
Step INPUT (s_cur) OUTPUT (s_pre)
1 s_1 s_2
2 s_2 s_3
3 s_3 …
… … …
n s_n s_n+1
AND
I want to store the values of s_1, s_2, … s_n+1 so that I can go on calculating with them.
Here is what I tried, but it doesn't work (it only gives out the first result, which is s_2):

Here ( http://communities.ptc.com/message/157701#157701 ) it says I should write the values in an array. But I can’t figure out how this works…
Can you please help me?
Best regards
Sebastian

