If I want to define a function f(n) that calculates the determinant of a n times n-matrix like the Vandermonde determinant containing n variables x1,...,xn what is a good way to define the variables as variables.
If I want to do it in advance, then I have to fix an arbitrary maximal number of n, if I do it inside the routine then they will be definied multiply.
Is there an elegant way to do say that x(i) should be a variable for all i?