Comment #1 on issue 1838 by smichr: Add support for [0]*S(5), etc.
http://code.google.com/p/sympy/issues/detail?id=1838

This works in python from the left or right.

2*[1,2,3]
[1, 2, 3, 1, 2, 3]
[1,2,3]*2
[1, 2, 3, 1, 2, 3]
2*'o'
'oo'

For sympy, however, we might want to override that behavior and do something like vector multiplication which, in the case of noncommutives, could be done from the
left or the right. So it would be possible to make

S(3)*[1,2,3] give [3, 6, 9]
and for noncommutative x,
[a, b, c]*x give [a*x, b*x, c*x]
or x*[a, b, c] give [x*a, x*b, x*c]

This could be extended to Eq and Matrix classes, too.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to