Updates:
        Labels: -smichr -NeedsReview

Comment #12 on issue 2639 by [email protected]: Product() is seriously broken
http://code.google.com/p/sympy/issues/detail?id=2639

The only thing remaining is to pattern Product after Sum in taking more than one limit.

It doesn't autoevaluate (use product() or Product().doit())

    >>> Product(x,(x,1,3))
    Product(x, (x, 1, 3))

It prints properly
    >>> Product(f(n), (n, 1, k))
    Product(f(n), (n, 1, k))

It doesn't take mutiple products
    >>> Product(f(n), (n, 1, k),(a,1,3))
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "sympy\concrete\products.py", line 32, in __new__
        raise NotImplementedError
    NotImplementedError

The limit must be given as a tuple
    >>> Product(f(n), n, 1, k)
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "sympy\concrete\products.py", line 32, in __new__
        raise NotImplementedError
    NotImplementedError

so we have
- sum and prod to act like Add and Mul on a list
- summation and product to do symbolic sums
- Sum and Product to do unevaluated symbolic sums and products


--
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.

Reply via email to