Function values at each step of loop
Function values at each step of loop
(OP)
I would like to capture the value of a function evaluated at each step of a while loop. It seems I should write the values to a vector, but I can't figure out how to write the values to a vector (dependent on indeterminate number of iterations of the loop) and then have the vector available outside of the while loop.




