I have a function where a n
parameter is handed and a list of values is calculated inside of it. I then need to solve a linear system of equations that require me to construct a n x n
matrix where the first row is only 1
's the second row is the calculated list in a row and the following rows are this list raised to power i
, where i=2,...,n
.
Example:
n=4; list={2,3,5,4};
m = {{1, 1, 1, 1}, {2,3,5,4}, {4, 9, 25, 16}, {8,27,125,64}};
i
should be a power of two from1
ton
? That would fit with what he has. $\endgroup$Dynamic
expression, or do you just mean that the size of the matrix should change when you feed the function a differentn
? $\endgroup$