Like the title says i want to transform a Matrix into a list so i can use LinearSolve what's the way to do it?
xk[k_, n_] := (-1 + (k)*(2/(n)))
xk[1, 2]
f[x_] := 1/(1 + 25 x^2)
f[6]
fk[n_] := Table[f[xk[i, n]], {i, 0, n}]
fk[10]
PlotPoint[x_] :=
ListPlot[Table[{xk[i, x], Part[fk[x], i + 1]}, {i, 0, x}]]
PlotLine[x_] := Plot[f[i], {i, xk[0, x], xk[x, x]}]
Show[PlotLine[10], PlotPoint[10]]
getMatrix[N_] :=
Table[xk[i - 1, N - 1]^(j - 1), {i, N}, {j, N}] // MatrixForm
getMatrix[3]
LinearSolve[List[getMatrix[4]], Table[xk[k, 3], {k, 0, 3}]]
Tried List
MatrixFormin definitions of you matrix quantities. Delete//MatrixFormfrom the definition ofgetMatrix. Then, deleteListfrom yourLinearSolve. – K.J. Dec 02 '19 at 15:51MatrixFormis a formatting-only function, and not to use it in definitions. That was good advice... – MarcoB Dec 02 '19 at 22:34