[sympy] deprecation warning is clobbering my test resquest

2013-05-14 Thread smichr
I want to run a test on a certain routine, but the deprecation warning is not allowing the tests to run. Below, some tests are run but before the runner can get to solvers.py where the test I am interested in running is located, it quits because of the deprecation error. What should be done? C:

[sympy] modify XFAIL so it only fails for given reason

2013-05-14 Thread smichr
Currently, XFAIL works like an unconditional except-clause which we all agree is a bad idea. And it's a bad idea for the XFAIL, too, because if you don't define a variable properly the test will fail but not for the reasons expected. Does anyone know how to modify XFAIL so it either 1) accepts t

Re: [sympy] solve((re(x)-2,im(x)-1),x) returns 2

2013-05-14 Thread Chris Smith
Right now, if abs(x) is present it is replaced with `sqrt(x**2)`. I guess that should be `sqrt(re(x)**2+im(x)**2)`? Also note that expanding abs(x) with complex=True gives a much more complicated expression: ``` >>> abs(x).expand(complex=1) I*sqrt(re(x)**2 + im(x)**2)*sin(atan2(0, re(x)**2 + im(x)

[sympy] Re: Vector Calculus module

2013-05-14 Thread Prasoon Shukla
I have been reading the documentation of the mechanics module and looking at the code to understand how the vector module will fit in with `mechanics`. Most of the things are clear to me at this point. Now I'd like to know a little more about using dyadics. I have read about dyadics from some w

Re: [sympy] solve((re(x)-2,im(x)-1),x) returns 2

2013-05-14 Thread Aaron Meurer
Oh wow. So solving this then is probably just as easy as automatically adding those relationships in whenever re(), im(), abs(), or im() are part of the equation (and also being careful that we don't miss out on solutions because we moved from the single equation solver to the system of equations s

Re: [sympy] solve((re(x)-2,im(x)-1),x) returns 2

2013-05-14 Thread Chris Smith
There is a missing relationship that you can supply for the first case: >>> solve((re(x)-2,im(x)-1,re(x)+I*im(x)-x)) [{re(x): 2, x: 2 + I, im(x): 1}] And for the second, if you re-write the abs and arg as below then an answer is obtained (provided you include the re(x) and im(x) as "symbols" to s

Re: [sympy] naive D3.js backend for our plotting module

2013-05-14 Thread Brian Granger
Once the IPython notebook gets a better architecture for interactive javascript capabilities (this work is planned during the 2nd half of 2013) I am expecting d3 based IPython work to explode. I am hopeful that there will be multiple notebook compatible d3 plotting libraries to choose from... Che

Re: [sympy] Status of Quantum Mechanics Module

2013-05-14 Thread Sean Vig
Hi Luke, Brian, the mentor for that project, commented on the status of the position/momentum stuff and the best way to approach that [1]. Basically, first, you'd need to understand what the current code does, what the PR is trying to accomplish, merge the branch with master, and get any broken te

Re: [sympy] Status of Quantum Mechanics Module

2013-05-14 Thread Aaron Meurer
You might also find some information by searching the mailing list archives for recent messages by students interested in quantum mechanics. I think the one with the thread title "[GSoC 2013] Symbolic Quantum Mechanics" might have a reply that could give you some more information. Aaron Meurer O

Re: [sympy] naive D3.js backend for our plotting module

2013-05-14 Thread Aaron Meurer
I'm sure David Li will be open to collaboration on this front. Aaron Meurer On Tue, May 14, 2013 at 4:06 PM, Stefan Krastanov < krastanov.ste...@gmail.com> wrote: > If it is in SymPy we would be able to plot any expressions, not only > those function that are in the javascript standard library.

[sympy] Status of Quantum Mechanics Module

2013-05-14 Thread lukebovard
Hey guys, I was looking at the list of the GSoC project for some potential things to help out on in my spare time and I'm really intrigued by quantum mechanics module. The GSoC 2013 project has something on the position and momentum basis and references this pull request

Re: [sympy] naive D3.js backend for our plotting module

2013-05-14 Thread Stefan Krastanov
If it is in SymPy we would be able to plot any expressions, not only those function that are in the javascript standard library. And I guess that with some ajax magic (which seems to be already employed), we would be able to separate the query into multiple python executions. And we wont need to

Re: [sympy] solve((re(x)-2,im(x)-1),x) returns 2

2013-05-14 Thread Aaron Meurer
It seems the first bug has been fixed in the git master. solve((re(x)-2,im(x)-1),x) now gives []. [] doesn't mean it is ignored. It just means it couldn't find any solutions. As for making things like this work, I agree we should do it. I'm not sure how, though. I think https://code.google.com/p/

Re: [sympy] naive D3.js backend for our plotting module

2013-05-14 Thread Aaron Meurer
So do you think this code should be moved to SymPy? One advantage of evaluating the plots in the browser is that we don't have to worry about the limits imposed on us by the app engine (no Python execution can take more than either 30 seconds or 60 seconds, I forget which). Aaron Meurer On Tue,

Re: [sympy] naive D3.js backend for our plotting module

2013-05-14 Thread Stefan Krastanov
> That's great. What is the relationship to the plotting implemented in SymPy > Gamma? Gamma does not use the plotting modue, nor does it use lambdify, evalf or any other evaluation method in python. It simply prints out the expression and evaluates all the samples in javascript in the browser. Th

Re: [sympy] Re: Symbolic representation of sequences & series

2013-05-14 Thread Aaron Meurer
On Tue, May 14, 2013 at 6:07 AM, Manoj Kumar wrote: > Hello, > > I guess I'm a bit late for the discussion on this thread but I suppose > this would influence my project in one way or the other. I have the > following points to make or queries to ask. > I don't think you're late. Nothing that ha

Re: [sympy] naive D3.js backend for our plotting module

2013-05-14 Thread Aaron Meurer
That's great. What is the relationship to the plotting implemented in SymPy Gamma? Aaron Meurer On Tue, May 14, 2013 at 11:08 AM, Stefan Krastanov < krastanov.ste...@gmail.com> wrote: > Hi all, > > I concorted a bare-bones D3.js backend for our plotting module that > can be used in IPython. It

Re: [sympy] naive D3.js backend for our plotting module

2013-05-14 Thread Matthew Rocklin
That's awesome! On Tue, May 14, 2013 at 12:08 PM, Stefan Krastanov < krastanov.ste...@gmail.com> wrote: > Hi all, > > I concorted a bare-bones D3.js backend for our plotting module that > can be used in IPython. It is only a prototype (done in about 30 > minutes), but it shows how simple it woul

[sympy] naive D3.js backend for our plotting module

2013-05-14 Thread Stefan Krastanov
Hi all, I concorted a bare-bones D3.js backend for our plotting module that can be used in IPython. It is only a prototype (done in about 30 minutes), but it shows how simple it would be to add such a backend if somebody has the time. The blog post with details http://blog.krastanov.org/2013/05/1

[sympy] solve((re(x)-2,im(x)-1),x) returns 2

2013-05-14 Thread Jaime Alonso-Martínez
solve((re(x)-2,im(x)-1),x) returns 2 instead of 2+I Similarily, solve((abs(x)-2,arg(x)-1),x) returns (2, -2) instead of the expected complex number it seems that solve cannot manage im(x) nor arg(x) I think that at least sympy should issue an error / warning instead of just ignoring the im(x)

Re: [sympy] Access individual symbols from lots

2013-05-14 Thread Chris Smith
It would probably be helpful to post the code that is generating the symbols. As far as "accessing" them, you have to assign them to a variable and access them through that variable, e.g. ``` >>> v = var('a:10') >>> v[1] a1 >>> v[5] a5 ``` In the above `v` is the Python variable that is pointing

Re: [sympy] Access individual symbols from lots

2013-05-14 Thread Stefan Krastanov
I guess that your problem stems from confusing python variables and SymPy Symbols. Creating a Symbol is not creating a variable. You can write x0 = Symbol('x0') but this is just as valid as completely_different_handle = Symbol('x0') or x0 = y0 = Symbol('x0') So accessing the Symbols that you

[sympy] Access individual symbols from lots

2013-05-14 Thread mumantariq
HI, I'm trying to access individual symbols from a bunch of symbols but cant figure out how, I have this buch: x00 x01 x02 x00 x01 x10 x11 x00 x10 x20 x00 x01 x02 x03 x00 x01 x10 x02 x11 x12 x00 x01 x10 x11 x20 x21 x00 x10 x20 x30 This is generated from another script, but if I wanted to acces

Re: [sympy] Polys Architecture and it's implications on Proposed matrix proposal

2013-05-14 Thread Tom Bachmann
Hi, you will by now have noticed that this is a rather hotly debated topic. A few pragmatic remarks: - the polys module, as it stands, works very well, and is used all throughout sympy (implicitly or explicitly) - by itself, this is no reason to copy its design - it is essentially impossible

[sympy] Polys Architecture and it's implications on Proposed matrix proposal

2013-05-14 Thread Saurabh Jha
Hi, I recently had a discussion with Ronan on irc on the polys module and he made the point that using functions instead of classes do not lead to increase in speed as pointed out in [1]. He made the following points-- the benchmarks are flawed because 1) they are too short (good benchmar

[sympy] Re: Symbolic representation of sequences & series

2013-05-14 Thread Manoj Kumar
Hello, I guess I'm a bit late for the discussion on this thread but I suppose this would influence my project in one way or the other. I have the following points to make or queries to ask. 1. The examples/exercises given in my book, limits itself to cases in which the coefficients are simpl

[sympy] Re: matplotlib works on google app engine!?

2013-05-14 Thread Ramana Venkata
It is awesome On Monday, May 13, 2013 3:00:51 PM UTC+5:30, Stefan Krastanov wrote: > > Hi, > > This surprised me quite a bit: > > > https://developers.google.com/appengine/docs/python/tools/libraries27#matplotlib > > http://gae-matplotlib-demo.appspot.com/ > > This means that sympy live and s