[sympy] Re: Request review for issue 1484

2012-02-09 Thread Marchael
Thanks Aaron, I'm sorry for that. In my previous GSoC project I used mercurial and http://codereview.appspot.com/ and I never tried github before :( I've read doc about workflow and created pull request https://github.com/sympy/sympy/pull/1039 On Feb 8, 8:48 pm, Aaron Meurer wrote: > If you need

Re: [sympy] Re: Request review for issue 1484

2012-02-09 Thread Aaron Meurer
Maybe https://github.com/sympy/sympy/wiki/Git-hg-rosetta-stone will be useful to you then. Don't worry if you don't know git. We expect that incoming students won't. We will teach you everything that you need to know. Making you use it now at the application stage to submit your patch is just t

[sympy] Re: sympy formul from string

2012-02-09 Thread janwillem
I realise that I have to give that more thought. Thanks for getting me on track. On Feb 8, 5:58 pm, Chris Smith wrote: > On Wed, Feb 8, 2012 at 4:43 PM, janwillem wrote: > > Thanks Chris, I must confess I overlooked sympyfy, however, there is a > > problem with symbols not being defined as is th

[sympy] images in git?

2012-02-09 Thread krastanov.ste...@gmail.com
Hi, The new plotting module tests keep a number of reference png images for comparison. ~20 images each ~200KB is more than the size of our code base. I do not know it it will be a good decision to burden git with those. What do you think? Stefan -- You received this message because you are sub

Re: [sympy] Basic Boolean classes and the SingletonRegistry

2012-02-09 Thread Aaron Meurer
On Thu, Feb 9, 2012 at 12:33 AM, Joachim Durchholz wrote: > Am 09.02.2012 02:48, schrieb Sean Vig: > >> As a second note, when I asked Aaron about this or IRC, he mentioned it >> may >> not be possible at all to have something with an attribute named None, as >> would be the case for something lik

Re: [sympy] images in git?

2012-02-09 Thread Aaron Meurer
I just did a git clone, and everything, including the checkout is 52MB. Is it possible to use SVG versions of the images? That should be much smaller, I would think, as the plots are vector images anyway. Also, git will handle any diffs on a SVG much better than from a binary file. What are the

Re: [sympy] images in git?

2012-02-09 Thread krastanov.ste...@gmail.com
On 9 February 2012 21:12, Aaron Meurer wrote: > I just did a git clone, and everything, including the checkout is 52MB. > > Is it possible to use SVG versions of the images?  That should be much > smaller, I would think, as the plots are vector images anyway.  Also, > git will handle any diffs on

Re: [sympy] Re: unevaluated nsolve as a sympy expression

2012-02-09 Thread Aaron Meurer
I don't think it's possible to convert a code closure into a symbolic object. Once the lambda is created, we can't know what it does (unless you try to parse the bytecode). We should be able to sympify the string form of a lambda, but it presently doesn't work. I thought we had an issue for this,

Re: [sympy] Re: unevaluated nsolve as a sympy expression

2012-02-09 Thread Aaron Meurer
I'm assuming you answered your own questions here with your symbolic nsolve. Were there any issues that you didn't resolve? Aaron Meurer On Tue, Jan 10, 2012 at 9:34 AM, krastanov.ste...@gmail.com wrote: > The problem of "python functions evaluate immediately sympy functions don't" > is obvious

Re: [sympy] Re: unevaluated nsolve as a sympy expression

2012-02-09 Thread krastanov.ste...@gmail.com
On 9 February 2012 21:39, Aaron Meurer wrote: > I'm assuming you answered your own questions here with your symbolic > nsolve.  Were there any issues that you didn't resolve? Just one issue: the sympification of lambda x : x Does it make sense for sympify(lambda x : x) to return an implemented_f

Re: [sympy] Re: float(expression) works but int(expression) does not

2012-02-09 Thread Aaron Meurer
I think int(sin(2)) should work. It should give the same thing as int(sin(2).evalf()). Is there an open issue for this? If not, please open one. Aaron Meurer On Tue, Jan 10, 2012 at 1:00 PM, krastanov.ste...@gmail.com wrote: > > > On 10 January 2012 20:46, Joachim Durchholz wrote: >> >> Am 1

Re: [sympy] images in git?

2012-02-09 Thread Matthew Rocklin
Is there an intermediate format in matplotlib to which we can compare? It seems odd to compare images that are generated by an external library. Couldn't a change in matplotlib cause our tests to fail? On Feb 9, 2012 12:26 PM, "krastanov.ste...@gmail.com" < krastanov.ste...@gmail.com> wrote: > On

[sympy] Symbolic value, can't compute

2012-02-09 Thread Laereom
So, I'm trying to get into the most basic use of sympy for a nested path processor in a project I'm working on. Currently, I'm just attempting to get it to solve a 3 dimensional distance equation for one formula. Here's how it goes: def path_processor(self,origin,destination): sym_x,

Re: [sympy] images in git?

2012-02-09 Thread Aaron Meurer
I was thinking this as well. Though it might not just be for tests (e.g., examples as well). That's why I asked what they are used for. Aaron Meurer On Feb 9, 2012, at 2:19 PM, Matthew Rocklin wrote: Is there an intermediate format in matplotlib to which we can compare? It seems odd to compare

Re: [sympy] Re: float(expression) works but int(expression) does not

2012-02-09 Thread Chris Smith
On Fri, Feb 10, 2012 at 2:57 AM, Aaron Meurer wrote: > I think int(sin(2)) should work.  It should give the same thing as > int(sin(2).evalf()).  Is there an open issue for this?  If not, please > open one. issue 3045, pull request 1034 -- You received this message because you are subscribed to

Re: [sympy] Symbolic value, can't compute

2012-02-09 Thread Chris Smith
On Fri, Feb 10, 2012 at 2:42 AM, Laereom wrote: > So, I'm trying to get into the most basic use of sympy for a nested > path processor in a project I'm working on.  Currently, I'm just > attempting to get it to solve a 3 dimensional distance equation for > one formula.  Here's how it goes: > >    

Re: [sympy] images in git?

2012-02-09 Thread krastanov.ste...@gmail.com
I am not aware of any matplotlib internal representation that can be used. Moreover I was left with the impression that comparison of final images is exactly what the matplotlib team does in their unittests. The ipython notebook also uses final images (png or svg). The same goes for matplotlib's ex

Re: [sympy] images in git?

2012-02-09 Thread Aaron Meurer
For examples, we could investigate a solution that involves generating them when we release. Aaron Meurer On Feb 9, 2012, at 1:26 PM, "krastanov.ste...@gmail.com" wrote: > On 9 February 2012 21:12, Aaron Meurer wrote: >> I just did a git clone, and everything, including the checkout is 52MB. >

Re: [sympy] images in git?

2012-02-09 Thread Aaron Meurer
How about testing exactly what is passed to matplotlib? That would also generalize to other backends, and would use virtually no space. It would also be independent of matplotlib itself (we don't really wan to test their functionality, as there's little we can do about it). Aaron Meurer On Feb 9,

Re: [sympy] images in git?

2012-02-09 Thread krastanov.ste...@gmail.com
OK, I will redo the tests. For the moment no images will be generated. Also at least for the moment I will leave the comparison code in, but commented out. It can be deleted later if we decide firmly against it. The comparison code was verified to work on another machine by @miham. What about the

[sympy] GSoc 2012: Expression of Enthusiasm

2012-02-09 Thread scolobb
Hello everyone, I'd like to apply for GSoC-2012 studentship with SymPy. I can't call myself a Python expert, but I've been regularly doing moderately complex stuff in Python for more than four years already. I have some basic experience with SymPy; I was much better at it a couple years ago, but

Re: [sympy] GSoc 2012: Expression of Enthusiasm

2012-02-09 Thread Aaron Meurer
Hi. On Thu, Feb 9, 2012 at 3:51 PM, scolobb wrote: > Hello everyone, > > I'd like to apply for GSoC-2012 studentship with SymPy.  I can't call > myself a Python expert, but I've been regularly doing moderately > complex stuff in Python for more than four years already.  I have some > basic experi

[sympy] Re: Symbolic value, can't compute

2012-02-09 Thread Laereom
Yeah, I did kind of mess that one up. I want it to be less than 2. I'm trying to solve for x and y, so I expect it to produce a line rather than a single variable answer. a is an actual number, so that's 'hard coded' in to the equation, rather than being another symbol. If those two were the onl

Re: [sympy] Re: Symbolic value, can't compute

2012-02-09 Thread Chris Smith
Can you print your origin and destination variables? When using the following, I don't have any problem: >>> var('a,b,c,x,y,z') (a, b, c, x, y, z) >>> eq=Eq(sqrt((x-a)**2+(1-b)**2+(z-c)**2), 2) >>> solve(eq, x) [a - sqrt(-b**2 + 2*b - c**2 + 2*c*z - z**2 + 3), a + sqrt(-b**2 + 2*b - c**2 + 2*c*z -

[sympy] Re: Symbolic value, can't compute

2012-02-09 Thread Laereom
Curioser and curioser. sym_x, sym_y = symbols('x,y') z = int(origin['z']) print origin print destination dest_x = int(destination['x']) dest_y = int(destination['y']) dest_z = int(destination['z']) equation = Eq( sqrt( (sym_x-dest_x)

Re: [sympy] Re: Symbolic value, can't compute

2012-02-09 Thread Chris Smith
On Fri, Feb 10, 2012 at 12:17 PM, Laereom wrote: > Curioser and curioser. > >        sym_x, sym_y = symbols('x,y') >        z = int(origin['z']) >        print origin >        print destination > >        dest_x = int(destination['x']) >        dest_y = int(destination['y']) >        dest_z = int(

Re: [sympy] Re: Symbolic value, can't compute

2012-02-09 Thread Aaron Meurer
var() is the same as symbols(), except you don't have to write the "=". The way it works is kind if hackish (it injects the variable names into the namespace) so you should only use it interactively (i.e., when typing commands at the Python prompt). If you are using a script, you should use symbols

[sympy] live.sympy.org errors?

2012-02-09 Thread smichr
With Firefox and IE under windows I get the following when I go to the online sympy: Traceback (most recent call last): File "/base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/_webapp25.py", line 701, in __call__ handler.get(*groups) File "/base/data/home/apps/sympy-l