Hello,
I was wondering how I can write the polynomial, 1+x+x^2 + ...+x^10, using
summation.
I tried
sage: var('i,x')
sage: sum(x^i, (i,0,10)),
but I got the following error message:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/sage/sagenb/sage_notebook/worksheets/matrix89/26/code/6.py", line
7, in <module>
sympy.sum(x**i, (i,_sage_const_0 ,_sage_const_10 ))
File "", line 1, in <module>
NameError: name 'sympy' is not defined
Thank you.
In-Jae
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---