[Date Index] [Thread Index] [Author Index]
Functions of Arrays
Functions can be defined via f[x1_, x2_] := x1^2 + x2^2 in Mathematica. But how can I manage it to define a function depending on an array? I would like to do something like Array[x,2] f[x_,x_]:=x^2+x^2 because the length of the array varies in my application.