Re: [sympy] Basic Boolean classes and the SingletonRegistry

2012-02-10 Thread Ronan Lamy
Le jeudi 09 février 2012 à 12:58 -0700, Aaron Meurer a écrit : > 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 someth

Re: [sympy] GSoc 2012: Expression of Enthusiasm

2012-02-10 Thread Joachim Durchholz
Am 09.02.2012 23:51, schrieb scolobb: My favourite is "implement symbolic (formal) logics and set theory". I haven't ever had serious courses in either of these subjects, but I hope the patchy knowledge I have can be quite easily fixed to yield the proper coverage. I'd be happy to serve as a d

[sympy] Simple Question

2012-02-10 Thread Alberto
Hi to all, If i write a line like: >>> a (-sin(sin(x)) + cos(sin(x)))*cos(sin(sin(x)) + cos(sin(x))) >>> diff(a) (-sin(sin(x))*cos(x) - cos(x)*cos(sin(x)))*cos(sin(sin(x)) + cos(sin(x))) - (- sin(sin(x))*cos(x) + cos(x)*cos(sin(x)))*(-sin(sin(x)) + cos(sin(x)))*sin(sin( sin(x)) + cos(sin(x))) >>>

[sympy] Re: Simple Question

2012-02-10 Thread smichr
Unless DEBUG statements have been included, the only way to see the steps is to look at the code (perhaps by using a debugger). -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com. To unsubscribe

Re: [sympy] Re: Simple Question

2012-02-10 Thread Alberto Barbaro
Thanks, Can you indicate to me the class or give me some other hints. Thanks Alberto 2012/2/10 smichr > Unless DEBUG statements have been included, the only way to see the > steps is to look at the code (perhaps by using a debugger). > > -- > You received this message because you are subscribe

[sympy] unhashable in py3.2

2012-02-10 Thread smichr
Does anyone know how to fix this problem in Py3.2: ... return func_cache_it_cache[k] TypeError: unhashable type: 'RegularPolygon' What makes something hashable or unhashable? Everything passes in 2.7. /c -- You received this message because you are subscribed to the Google Groups "sympy"

Re: [sympy] Re: Simple Question

2012-02-10 Thread Chris Smith
Help on function diff in module sympy.core.function: diff(f, *symbols, **kwargs) Differentiate f with respect to symbols. This is just a wrapper to unify .diff() and the Derivative class; its interface is similar to that of integrate(). You can use the same shortcuts for multiple

[sympy] Hi Aaron

2012-02-10 Thread Gaurav Sathe
I am an undergraduate student currently doing my Masters in Mathematics and will be doing my B.Tech in Computer Science. I have been doing both discrete and abstract maths for almost three years now and I love coding in Python. I would very much like to be part of GSOC 2012 for SymPy. I was going

Re: [sympy] unhashable in py3.2

2012-02-10 Thread Ronan Lamy
Le vendredi 10 février 2012 à 06:23 -0800, smichr a écrit : > Does anyone know how to fix this problem in Py3.2: > > ... > return func_cache_it_cache[k] > TypeError: unhashable type: 'RegularPolygon' > > What makes something hashable or unhashable? Everything passes in 2.7. The most probable

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

2012-02-10 Thread Laereom
I'm using the 0.7.1 version for win32. Come to think of it, I -am- using 64 bit windows, rather than 32 bit, could that be a factor? I don't see where the development versions are. Out of curiosity, those who are running this successfully, what versions are you using? On Feb 9, 11:07 pm, Aaron

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

2012-02-10 Thread Chris Smith
On Fri, Feb 10, 2012 at 9:41 PM, Laereom wrote: > I'm using the 0.7.1 version for win32.  Come to think of it, I -am- > using 64 bit windows, rather than 32 bit, could that be a factor? > > I don't see where the development versions are.  Out of curiosity, > those who are running this successfully

Re: [sympy] Hi Aaron

2012-02-10 Thread someone
Hi, > I am an undergraduate student currently doing my Masters in > Mathematics and will be doing my B.Tech in Computer Science. I have > been doing both discrete and abstract maths for almost three years now > and I love coding in Python. I would very much like to be part of GSOC > 2012 for SymPy

Re: [sympy] Hi Aaron

2012-02-10 Thread Chris Smith
I wonder if anything with Shur polynomials would be of interest: http://math.tntech.edu/techreports/TR_2009_2.pdf -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from this gro

Re: [sympy] unhashable in py3.2

2012-02-10 Thread Chris Smith
Thanks, Ronan. That was the ticket. The tests now pass in 3.2. -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.co

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

2012-02-10 Thread Laereom
I'm jealous. Where are the development downloads? I don't see them on the main download page. On Feb 10, 8:22 am, Chris Smith wrote: > On Fri, Feb 10, 2012 at 9:41 PM, Laereom wrote: > > I'm using the 0.7.1 version for win32.  Come to think of it, I -am- > > using 64 bit windows, rather than 3

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

2012-02-10 Thread Chris Smith
On Fri, Feb 10, 2012 at 11:20 PM, Laereom wrote: > I'm jealous.  Where are the development downloads?  I don't see them > on the main download page. If you set up a git account you can always download it really easily. See https://github.com/sympy/sympy/wiki/Getting-the-bleeding-edge https://g

[sympy] Re: question about creating a 2d array of symbols

2012-02-10 Thread Comer
On Feb 8, 1:02 am, Chris Smith wrote: > Perhaps a `separator`="_" keyword could be added. Chris, thanks. I have experimented a bit and have some results and some questions which remain. Here goes. I have written a little modification to symarray called csymarray. I list it below and then co

Re: [sympy] Re: question about creating a 2d array of symbols

2012-02-10 Thread Matthew Rocklin
It sounds like you want to actually create the variables a_00 = Symbol('a_00'), a_01 = ... in the active namespace. In a previous e-mail you wrote that you wanted something like the following for i in range(1,3): for j in range(1,3): aij = Symbol('a_%d%d' % (i,j)) Unfortunately this

Re: [sympy] Re: question about creating a 2d array of symbols

2012-02-10 Thread Chris Smith
> So, it seems that ZS is defined and has length 3. So it is three > 'vectors'. But the individual components are not defined? Who ordered > that? I want to create the 3x3 matrix and then create a new symmetric > matrix from ZS  ( the 'S' in the name ZS is for using the Symbol() > rather than symbo

[sympy] Re: question about creating a 2d array of symbols

2012-02-10 Thread Comer
Hi Matt, Thanks for the reply! On Feb 10, 1:59 pm, Matthew Rocklin wrote: > It sounds like you want to actually create the variables a_00 = > Symbol('a_00'),  a_01 = ... in the active namespace. > > In a previous e-mail you wrote that you wanted something like the following > for i in range(1,3)

[sympy] Re: question about creating a 2d array of symbols

2012-02-10 Thread Comer
Hi Chris, Thanks very much for your reply and its content. Between you and Matt I think I see better what is going on. Comer On Feb 10, 2:23 pm, Chris Smith wrote: > > So, it seems that ZS is defined and has length 3. So it is three > > 'vectors'. But the individual components are not defined?

Re: [sympy] Re: question about creating a 2d array of symbols

2012-02-10 Thread Chris Smith
On Sat, Feb 11, 2012 at 1:15 AM, Comer wrote: > Hi Chris, > > Thanks very much for your reply and its content. Between you and Matt > I think I see better what is going on. I appreciated how helpful the python community was when I was learning (Danny Yoo was the tutor-list monitor at the time and

[sympy] sympy.printing ignores __repr__ and __str__

2012-02-10 Thread Casey W. Stark
Hi all. I'm writing a library that depends on sympy and I was having trouble with sympy.printing. I have a class called Unit that behaves slightly differently than sympy.physics.Unit. Its superclass is also AtomicExpr, but instead of holding name and abbrev attributes, it holds symbol (string) an

Re: [sympy] GSoc 2012: Expression of Enthusiasm

2012-02-10 Thread Sergiu Ivanov
Hello, Thank you for your feedback! I planned to provide an elaborate answer today but, unfortunately, it seems that I did eventually catch a cold, so I'm not really adequate, sorry :-( I plan to be back online tomorrow, (Sat, Feb 11). Sergiu -- You received this message because you are subscr

Re: [sympy] GSoc 2012: Expression of Enthusiasm

2012-02-10 Thread Aaron Meurer
On Fri, Feb 10, 2012 at 2:40 AM, Joachim Durchholz wrote: > Am 09.02.2012 23:51, schrieb scolobb: > >> My >> favourite is "implement symbolic (formal) logics and set theory".  I >> haven't ever had serious courses in either of these subjects, but I >> hope the patchy knowledge I have can be quite

Re: [sympy] GSoc 2012: Expression of Enthusiasm

2012-02-10 Thread Aaron Meurer
No rush. You've done the smart thing and started talking to us quite early, so you can afford to take your time and get things right. Aaron Meurer On Fri, Feb 10, 2012 at 2:40 PM, Sergiu Ivanov wrote: > Hello, > > Thank you for your feedback! > > I planned to provide an elaborate answer today b

Re: [sympy] sympy.printing ignores __repr__ and __str__

2012-02-10 Thread Aaron Meurer
On Fri, Feb 10, 2012 at 1:01 PM, Casey W. Stark wrote: > Hi all. > > I'm writing a library that depends on sympy and I was having trouble > with sympy.printing. > > I have a class called Unit that behaves slightly differently than > sympy.physics.Unit. Its superclass is also AtomicExpr, but instea

Re: [sympy] Simple Question

2012-02-10 Thread Aaron Meurer
We don't have anything like that supported directly. If you want to see how the code path works, the easiest way would be to step through it with a debugger, like pudb. Aaron Meurer On Fri, Feb 10, 2012 at 3:31 AM, Alberto wrote: > Hi to all, > If i write a line like: > a > (-sin(sin(x)) +

Re: [sympy] sympy.printing ignores __repr__ and __str__

2012-02-10 Thread Casey W. Stark
Hi Aaron. Thanks for the quick reply. I think I understand the printing behavior a lot better now, and why it's that way. The one thing I would suggest is adding a list of the printing methods to the docs there. As far as I can tell, the printmethod values are only in the source. Maybe under the