#var('d,e,f') from sympy import * x,y,z = symbols("x y z") A = matrix([[1,2,3],[3,2,1],[1,1,1]]) w = vector([d,e,f]) A*w
I am getting this error.Please help me Traceback (most recent call last): A*w File "", line 1, in <module> File "/tmp/tmpufgyTp/___code___.py", line 7, in <module> w = vector([d,e,f]) File "free_module_element.pyx", line 496, in sage.modules.free_module_element.vector (build/cythonized/sage/modules/free_module_element.c:4828) File "free_module_element.pyx", line 593, in sage.modules.free_module_element.prepare (build/cythonized/sage/modules/free_module_element.c:5319) File "/home/thyagarajulu/Sage/local/lib/python2.7/site-packages/sage/structure/sequence.py", line 300, in Sequence return Sequence_generic(x, universe, check, immutable, cr, cr_str, use_sage_types) File "/home/thyagarajulu/Sage/local/lib/python2.7/site-packages/sage/structure/sequence.py", line 504, in __init__ x = [universe(t) for t in x] File "/home/thyagarajulu/Sage/local/lib/python2.7/site-packages/sympy/core/symbol.py", line 77, in __new__ return Symbol.__xnew_cached_(cls, name, **assumptions) File "/home/thyagarajulu/Sage/local/lib/python2.7/site-packages/sympy/core/cache.py", line 93, in wrapper r = func(*args, **kw_args) File "/home/thyagarajulu/Sage/local/lib/python2.7/site-packages/sympy/core/symbol.py", line 81, in __new_stage2__ raise TypeError("name should be a string, not %s" % repr(type(name))) TypeError: name should be a string, not <class 'sympy.core.symbol.Symbol'> -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.