What is the right way to declare of matrix whose coefficients are functions of a variable $x$ ?
I tried :
Table[Table[a[i,j][x_],{j,1,NN}],{i,1,NN}]
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityIt's worth knowing about the Array
function which might be used like this:
Array[a[#1, #2][x_] &, {4, 4}]
This reproduces the output of OP's initial version (with NN
set to 4
). I'm not convinced that that is really what OP wants, so this variation
Array[a[#1, #2, x_] &, {4, 4}]
might also appeal.
N
as a variable change it.. $\endgroup$Table[Table[a[i, j, x_], {j, 1, 2}], {i, 1, 2}]
$\endgroup$Table[a[i, j][x_], {i, 1, NN}, {j, 1, NN}]
? Why two calls toTable
? $\endgroup$