Ask Your Question

Revision history [back]

Infinitely many variables

Is there a way to define infinitely many variables? At the moment, I am able to define arbitrarily big number of symbolic variables, x[i], using a code as follows:

N=3
x=np.zeros(shape=(N),dtype=object)
for i in range(N):
    x[i]=var('x_', n=N )[i]

I would like to be able to define x_i for i=1,2,... Is this possible using the symbolic ring?