Updates:
Status: Started
Comment #1 on issue 1718 by asmeurer: re-writing of sums and products
http://code.google.com/p/sympy/issues/detail?id=1718
As Chris said, this is easy to fix. Just remove the conditional from
products.py (the line number has changed to around 130). If I do this, it
works
In [1]: product(2**f(k),(k,1,n))
Out[1]:
n
__
\ `
) f(k)
/_,
k = 1
2
In [2]: product(2**(2*f(k)),(k,1,n))
Out[2]:
n
__
\ `
) 2⋅f(k)
/_,
k = 1
2
Furthermore, no tests fail (at least on concrete, but I think it's safe to
assume that product() is not used anywhere else).
The question is, do we want to do this? I suppose it could be considered
to be some form of evaluation. On the other hand, I see the reasoning
behind not doing this unless the summation() evaluates to something.
I guess I'll submit this as a pull request to stir up some discussion about
it.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
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/sympy-issues?hl=en.