Using a range variable to repeat the same calc many times
The code that I am working with is shown below.
I want to eventually make the matrix for the variable "Reactions(Conc)", extremely large (~1400 rows, 1 column), but I'm working with only 2 rows for now to learn how to code in the array mathematics. The calcs below are working fine, and are reporting the correct answers, but I don't want to type the Greek capital PI and the arguements for it 1400 times, so I'm trying to use the range variable i2 in place of the 0 and the 1 in the first and second rows of "Reactions(Conc)", and then I want to only enter the capital PI statement once, and just have the range variable repeat it for all ~1400 rows. This isn't working for me though. When I sub in the i2 where the 0 or 1 numbers are right no, it does not continue to give me the nice 1 X 2 matrix with the Conc variables that is shown here. It just shows up in red, doesn't symbolically evaluate it, and says "pattern match exception." Is there a different way to use this range variable so that it will take care of repeating the rows of "Reactions(Conc)" for me?


