Issue 1565 in sympy: powsimp() does not combine exponents in some cases.

2009-07-30 Thread codesite-noreply
Status: Accepted Owner: asmeurer Labels: Type-Defect Priority-Medium Simplify NeedsReview New issue 1565 by asmeurer: powsimp() does not combine exponents in some cases. http://code.google.com/p/sympy/issues/detail?id=1565 powsimp does not combine exponents correctly in the following case,

Issue 1552 in sympy: documentation; Gotchas and Pitfalls

2009-07-30 Thread codesite-noreply
Comment #2 on issue 1552 by asmeurer: documentation; Gotchas and Pitfalls http://code.google.com/p/sympy/issues/detail?id=1552 I also added a warning about things like Rational(1, x) in the same branch, so repull. -- You received this message because you are listed in the owner or CC fields

Issue 1552 in sympy: documentation; Gotchas and Pitfalls

2009-07-30 Thread codesite-noreply
Updates: Status: PassedReview Labels: -NeedsReview Comment #3 on issue 1552 by asmeurer: documentation; Gotchas and Pitfalls http://code.google.com/p/sympy/issues/detail?id=1552 It has been merged in. Thanks Ondrej. -- You received this message because you are listed in the

Issue 1566 in sympy: Allow Integral to be evaluated at only an upper limit

2009-07-30 Thread codesite-noreply
Status: Accepted Owner: asmeurer Labels: Type-Enhancement Priority-Medium Integration New issue 1566 by asmeurer: Allow Integral to be evaluated at only an upper limit http://code.google.com/p/sympy/issues/detail?id=1566 Sometimes, you want to represent an unevaluated integral evaluated at

[sympy] Re: General questions about the structure of SymPy

2009-07-30 Thread Aaron S. Meurer
Hi. Ondrej will probably have better answers to your questions when he replies, but here is my take. On Jul 29, 2009, at 9:57 PM, Marco wrote: I was very impressed by the description of SymPy here: http://www.euroscipy.org/presentations/slides/index.html and especially slide 14

[sympy] documentation for Sum?

2009-07-30 Thread Phillip M. Feldman
I'd like to be able to calculate symbolic Sums (finite and infinite). From searches of this discussion group, it's clear that this can be done, but I can't find any relevant documentation. Any pointers will be appreciated. --~--~-~--~~~---~--~~ You received this

[sympy] Re: documentation for Sum?

2009-07-30 Thread Ondrej Certik
On Thu, Jul 30, 2009 at 12:34 AM, Phillip M. Feldmanpfeld...@verizon.net wrote: I'd like to be able to calculate symbolic Sums (finite and infinite). From searches of this discussion group, it's clear that this can be done, but I can't find any relevant documentation.  Any pointers will be

[sympy] Re: General questions about the structure of SymPy

2009-07-30 Thread Ondrej Certik
Hi, On Thu, Jul 30, 2009 at 12:15 AM, Aaron S. Meurerasmeu...@gmail.com wrote: Hi.  Ondrej will probably have better answers to your questions when he replies, but here is my take Aaron's replies are excellent. Some comments below: On Jul 29, 2009, at 9:57 PM, Marco wrote: I was very

[sympy] Re: documentation for Sum?

2009-07-30 Thread Vinzent Steinberg
On Jul 30, 2:52 pm, Ondrej Certik ond...@certik.cz wrote: We are missing good documentation for this, but look here for tons of examples how to evaluate sums symbolically and numerically: sympy/concrete/tests/test_sums_products.py Ondrej BTW: What about using sum_ or Sum instead of

[sympy] Re: documentation for Sum?

2009-07-30 Thread Ondrej Certik
On Thu, Jul 30, 2009 at 7:55 AM, Vinzent Steinbergvinzent.steinb...@googlemail.com wrote: On Jul 30, 2:52 pm, Ondrej Certik ond...@certik.cz wrote: We are missing good documentation for this, but look here for tons of examples how to evaluate sums symbolically and numerically:

[sympy] Re: Polynomial Decompose Error for Quartics+Cubics

2009-07-30 Thread smichr
Would your routine help any for the expression in issue 1562? simplify() doesn't do anything to it because Poly.cancel() doesn't cancel the sin and cos terms. The same for factor. I'm happy to report that factor is able to do the heavy lifting after you polify the expression you asked about

[sympy] Re: General questions about the structure of SymPy

2009-07-30 Thread Alan Bromborsky
Marco wrote: I was very impressed by the description of SymPy here: http://www.euroscipy.org/presentations/slides/index.html and especially slide 14 Internals: Object oriented model. I have a couple of general questions about how Object-oriented SymPy is. I'm a mathematician and would

[sympy] Polynomial Decompose Error for Quartics+Cubics

2009-07-30 Thread Mateusz Paprocki
Hi, On Thu, Jul 30, 2009 at 07:43:43AM -0700, smichr wrote: Would your routine help any for the expression in issue 1562? simplify() doesn't do anything to it because Poly.cancel() doesn't cancel the sin and cos terms. The same for factor. I'm happy to report that factor is able to

[sympy] Re: Polynomial Decompose Error for Quartics+Cubics

2009-07-30 Thread william ratcliff
The problem is that the current problem with Poly breaks thinks which depend on it. For us, it breaks calculation of eigenvalues...Is it possible to exclude symbols which are not in the polynomial variable? Right now, it seems to decompose all symbols Thanks, William On Thu, Jul 30, 2009

[sympy] Polynomial Decompose Error for Quartics+Cubics

2009-07-30 Thread Mateusz Paprocki
Hi, On Thu, Jul 30, 2009 at 11:23:53AM -0400, william ratcliff wrote: The problem is that the current problem with Poly breaks thinks which depend on it. For us, it breaks calculation of eigenvalues...Is it possible to exclude symbols which are not in the polynomial variable? Right now, it

[sympy] Re: Polynomial Decompose Error for Quartics+Cubics

2009-07-30 Thread smichr
On Jul 29, 12:06 am, wflynny wfly...@gmail.com wrote: While finding eigenvalues for a matrix of mine, I ran into a polynomial decompose error. It seems that when a polynomial has both a cubic and quartic term and coefficients that consist of symbols, factortools.py runs into trouble. To

[sympy] Re: Polynomial Decompose Error for Quartics+Cubics

2009-07-30 Thread Aaron S. Meurer
On Jul 30, 2009, at 9:05 AM, Mateusz Paprocki wrote: Hi, On Thu, Jul 30, 2009 at 07:43:43AM -0700, smichr wrote: Would your routine help any for the expression in issue 1562? simplify() doesn't do anything to it because Poly.cancel() doesn't cancel the sin and cos terms. The same for

[sympy] Re: documentation for Sum?

2009-07-30 Thread Phillip M. Feldman
Something must be missing from that URL (I've tried various prefixes, but couldn't make any of them work). Phillip We are missing good documentation for this, but look here for tons of examples how to evaluate sums symbolically and numerically: sympy/concrete/tests/test_sums_products.py

[sympy] Re: documentation for Sum?

2009-07-30 Thread Phillip M. Feldman
I hate underscores, but Sum with a capital S seems reasonable. When doing the import, one could choose to import SymPy.sum as Sum, but it would be more convenient to be able to do 'from SymPy import *' and get everything at one shot. BTW: What about using sum_ or Sum instead of overwriting

[sympy] Re: documentation for Sum?

2009-07-30 Thread Ondrej Certik
On Thu, Jul 30, 2009 at 12:53 PM, Phillip M. Feldmanpfeld...@verizon.net wrote: Something must be missing from that URL (I've tried various prefixes, but couldn't make any of them work). I mean the path in the sympy checkout or tarball. Ondrej Phillip We are missing good documentation

[sympy] Re: documentation for Sum?

2009-07-30 Thread James Pearson
On Thu, Jul 30, 2009 at 11:56 AM, Phillip M. Feldman pfeld...@verizon.netwrote: I hate underscores, but Sum with a capital S seems reasonable. When doing the import, one could choose to import SymPy.sum as Sum, but it would be more convenient to be able to do 'from SymPy import *' and get

[sympy] problem with sum: bug or user error?

2009-07-30 Thread Phillip M. Feldman
I tried to construct a simple sum based on the examples in test_sums_products.py; here's my code: from sympy import * n= Symbol('n', integer=True) print Rational(1,2)+Rational(1,3)+Rational(1,4) print sum(Rational(1,n), (n, 2, 4)) The first print statement gives the correct result, 13/12. The

[sympy] Re: problem with sum: bug or user error?

2009-07-30 Thread Ondrej Certik
On Thu, Jul 30, 2009 at 4:31 PM, Phillip M. Feldmanpfeld...@verizon.net wrote: I tried to construct a simple sum based on the examples in test_sums_products.py; here's my code: from sympy import * n= Symbol('n', integer=True) print Rational(1,2)+Rational(1,3)+Rational(1,4) print

[sympy] Re: problem with sum: bug or user error?

2009-07-30 Thread Aaron S. Meurer
I think this should be in the Gotchas and Pitfalls documentation. Pull from http://github.com/asmeurer/sympy/tree/doc-day, which already has a typo fix (see Issue 1552). Aaron Meurer On Jul 30, 2009, at 4:40 PM, Ondrej Certik wrote: On Thu, Jul 30, 2009 at 4:31 PM, Phillip M.

[sympy] support for divergent sums?

2009-07-30 Thread Phillip M. Feldman
When I type something like the following, I would expect to get a result of oo, indicating that the sum diverges to infinity: sum(1/n, (n, 2, oo)) Instead, I get the same thing back (actually not quite-- the 's' changes to a capital 'S'). Any idea why this doesn't work?

[sympy] Re: problem with sum: bug or user error?

2009-07-30 Thread Aaron S. Meurer
The arguments of Rational have to be literal integers (Python ints or SymPy Integers). See http://docs.sympy.org/gotchas.html#python-numbers-vs-sympy-numbers (by the way Ondrej, when does that become updated with what you just merged?). So 2 and 3 are correct, while 1 and 4 are