Issue 626 in sympy: solve fails when solving for f(x).diff(x)

2009-05-22 Thread codesite-noreply
Updates: Status: Fixed Comment #3 on issue 626 by hazelnusse: solve fails when solving for f(x).diff(x) http://code.google.com/p/sympy/issues/detail?id=626 Ondrej, I think the patches I've attache fix this problem. This is the behavior I get: x = Symbol('x') f = Function('f')

Issue 626 in sympy: solve fails when solving for f(x).diff(x)

2009-05-22 Thread codesite-noreply
Updates: Status: Started Labels: NeedsReview Comment #4 on issue 626 by ondrej.certik: solve fails when solving for f(x).diff(x) http://code.google.com/p/sympy/issues/detail?id=626 Thanks --- set the issue to NeedsReview. Once the patches get in, set it to fixed. -- You

Issue 1430 in sympy: windowserror [126] plot

2009-05-22 Thread codesite-noreply
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 1430 by spconv: windowserror [126] plot http://code.google.com/p/sympy/issues/detail?id=1430 hello winxp sp3 here. cannot plot anything. my session: c:\TEMP\examples\beginnerpython --version Python 2.5.4

Issue 1430 in sympy: windowserror [126] plot

2009-05-22 Thread codesite-noreply
Updates: Status: Accepted Comment #1 on issue 1430 by ondrej.certik: windowserror [126] plot http://code.google.com/p/sympy/issues/detail?id=1430 Thanks for the bug report. Seems like a pyglet issue, I reported here: http://code.google.com/p/pyglet/issues/detail?id=420 -- You received

Re: [PATCH] Allow Function.eval to return non-instances of Basic.

2009-05-22 Thread Fabian Pedregosa
Ondrej Certik wrote: On Thu, May 14, 2009 at 12:04 PM, Fabian Pedregosa fab...@fseoane.net wrote: Specially annoying was the fact that you could not return list or tuples. I don't know the reason of this behaviour, fortunately changing it did not break any tests. If all tests pass, it's

Re: [PATCH] Allow Function.eval to return non-instances of Basic.

2009-05-22 Thread Ondrej Certik
On Fri, May 22, 2009 at 5:30 AM, Fabian Pedregosa fab...@fseoane.net wrote: Ondrej Certik wrote: On Thu, May 14, 2009 at 12:04 PM, Fabian Pedregosa fab...@fseoane.net wrote: Specially annoying was the fact that you could not return list or tuples. I don't know the reason of this

[PATCH] Fix for ISSUE 626

2009-05-22 Thread Luke
Issue 626 is fixed by these two patches. Also, solve can now Symbol, Function, and Derivative types. I implemented tests and everything passes on my machine. Thanks, ~Luke --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[sympy] how to conjugate only on I?

2009-05-22 Thread Oyster
is there a way to do so? thanx from sympy import * X,Y=symbols('XY') z=conjugate(X+Y*I) integrate(z,(X, -1, 1)) Integral(-I*conjugate(Y) + conjugate(X), (X, -1, 1)) integrate(integrate(z,(X, -1, 1)), (Y, -1,1)) Traceback (most recent call last): File interactive input, line 1, in ? File

[sympy] Re: how to conjugate only on I?

2009-05-22 Thread Priit Laes
Ühel kenal päeval, R, 2009-05-22 kell 01:46, kirjutas Oyster: is there a way to do so? thanx from sympy import * X,Y=symbols('XY') z=conjugate(X+Y*I) integrate(z, [X, -1, 1], [Y,-1,1]) Although sympy doesn't yet know how to handle these :(

[sympy] sympy vs matlab integrate, get 'final' result?

2009-05-22 Thread Oyster
please note the dual-integrate result how can I get an advanced value in sympy? thanx [smypy] from sympy import * X,Y=symbols('XY', real=True) integrate(2*X*X+2*Y*Y-1, (Y, -(1-X**2)**Rational(1,2), (1-X**2)**Rational(1,2)) ) -2*(1 - X**2)**(1/2)*(1 - 2*X**2) + 4*(1 - X**2)**(3/2)/3

[sympy] Re: Poll on usage of solve()

2009-05-22 Thread smichr
On May 22, 4:23 am, Luke hazelnu...@gmail.com wrote: Does anybody use solve() by passing the function and/or the symbol arguments as a set, rather than a list or a tuple? I can't see a reason why using it with a set would be beneficial, and without support for sets, there are some aspects

[sympy] Re: iteration over arguments

2009-05-22 Thread Ondrej Certik
On Fri, May 22, 2009 at 3:38 AM, smichr smi...@gmail.com wrote: Just out of curiosity, is there a reason that one has to use the .args option to get the arguments of a sympy-thing rather than just doing a direct iteration as in y=x+S(1) for arg in y:    print arg instead of the current

[sympy] Enhancing functionality of diff()

2009-05-22 Thread Luke
I would like to add code that would allow for diff() to differentiate with respect to not just Symbol instances, but also with respect to Function and Derivative instances. An example of why this would be useful would be when forming Lagrange's equations, on needs to differentiate the Lagrangian

[sympy] Re: sympy vs matlab integrate, get 'final' result?

2009-05-22 Thread Luke
I get a slightly different result when integrating in Matlab (2008a): [matlab] syms X Y L H K; int(int(2*X*X+2*Y*Y-1, Y, -sqrt(1-X*X), sqrt(1-X*X)), X, L, 1) ans = -2/3*(1-L^2)^(1/2)*L*(L-1)*(1+L) expand(ans) ans = 2/3*(1-L^2)^(1/2)*L-2/3*(1-L^2)^(1/2)*L^3 [/matlab] In sympy, it seems