TypeError: need a summation variable

asked 2023-03-02 19:55:40 +0200

I am writing a sage script (IDE is PyCharm using the sage python interpreter):

from sage.all import *
k = var('k')

When I run this, I get the following error:

Traceback (most recent call last):
File "/path/file.py", line 22, in <module>
File "/other_path/calculus.py", line 620, in symbolic_sum
raise TypeError("need a summation variable")
TypeError: need a summation variable
edit retag flag offensive close merge delete


Cannot reproduce the problem in SageCell.

Max Alekseyev gravatar imageMax Alekseyev ( 2023-03-04 19:35:59 +0200 )edit