1-Visitor
April 5, 2018
Question
Iterate a function for a range of variables
- April 5, 2018
- 2 replies
- 3535 views
Hi,
I am trying to run an equation in Mathcad 14 but to have it run through a loop from i=1 to i=29. I then want the output to be in an array form with each solution to the equation being output sequentially in the array.
e.g. put i=1 into the equation and run, output goes into row 1 of array
put i=2 into the equation and run, output goes into row 2 of array
I have attached an image showing my manual method, where I have laboriously gone through and done the equation 29 times (only the first several are shown). The image also shows my attempt at streamlining the equation to iterate through all 29, but this only outputs the answer at i=29 (the last one).
Any help would be appreciated.

