Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Limit with variables from array

The following code:

x = [var(f'x{i}') for I in range(3)]
f = sum(x)
f.limit(x[1]=1)

gives an error:

SyntaxError: expression cannot contain assignment, perhaps you meant "=="?

If I replace x[1]=1 with x[1]==1, I get

ValueError: call the limit function like this, e.g. limit(expr, x=2).

and we go in circles. How to proceed?

Limit with variables from array

The following code:

x = [var(f'x{i}') for I i in range(3)]
f = sum(x)
f.limit(x[1]=1)

gives an error:

SyntaxError: expression cannot contain assignment, perhaps you meant "=="?

If I replace x[1]=1 with x[1]==1, I get

ValueError: call the limit function like this, e.g. limit(expr, x=2).

and we go in circles. How to proceed? proceed?

Limit with variables from array

The following code:

x = [var(f'x{i}') for i in range(3)]
f = sum(x)
f.limit(x[1]=1)

gives an error:

SyntaxError: expression cannot contain assignment, perhaps you meant "=="?

If I replace x[1]=1 with x[1]==1, I get

ValueError: call the limit function like this, e.g. limit(expr, x=2).

and we go in circles. How to proceed?

ADDED. This issue has been reported at https://github.com/sagemath/sage/issues/38761