Re: Issue 2641 in sympy: limit() doesn't always pass on to gruntz() when it should

2013-06-19 Thread sympy
Updates: Status: Fixed Comment #17 on issue 2641 by skirpic...@gmail.com: limit() doesn't always pass on to gruntz() when it should http://code.google.com/p/sympy/issues/detail?id=2641 (No comment was entered for this change.) -- You received this message because this project is

Re: Issue 3461 in sympy: Incorrect Limit

2013-06-19 Thread sympy
Updates: Status: Fixed Comment #6 on issue 3461 by skirpic...@gmail.com: Incorrect Limit http://code.google.com/p/sympy/issues/detail?id=3461 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to

Re: Issue 3809 in sympy: isprime can be faster

2013-06-19 Thread sympy
Comment #37 on issue 3809 by dana.jac...@gmail.com: isprime can be faster http://code.google.com/p/sympy/issues/detail?id=3809 I've been working on primality tests and proofs for a Perl module, so this is something I've been looking at a lot recently. Here are my long-winded thoughts, with

Re: Issue 2482 in sympy: Stop bundling mpmath

2013-06-19 Thread sympy
Comment #44 on issue 2482 by skirpic...@gmail.com: Stop bundling mpmath http://code.google.com/p/sympy/issues/detail?id=2482 https://github.com/sympy/sympy/pull/2192 -- You received this message because this project is configured to send all issue notifications to this address. You may

Re: Issue 3809 in sympy: isprime can be faster

2013-06-19 Thread sympy
Comment #38 on issue 3809 by asmeu...@gmail.com: isprime can be faster http://code.google.com/p/sympy/issues/detail?id=3809 Thanks for the write up. I didn't realize that gmpy2 has this functionality. We already support gmpy and gmpy2 as optional dependencies to make the polys faster. We

Re: Issue 2866 in sympy: Pretty printing of empty matrices

2013-06-19 Thread sympy
Comment #6 on issue 2866 by smi...@gmail.com: Pretty printing of empty matrices http://code.google.com/p/sympy/issues/detail?id=2866 hmm...good question (and no good answer from me) -- You received this message because this project is configured to send all issue notifications to this

Re: Issue 3809 in sympy: isprime can be faster

2013-06-19 Thread sympy
Comment #39 on issue 3809 by dana.jac...@gmail.com: isprime can be faster http://code.google.com/p/sympy/issues/detail?id=3809 I can check the gmpy2 functions -- the underlying code should be solid since it was written for a PRIMO validator that has been used a lot in the last two years,

Re: Issue 2934 in sympy: gosper_sum return NaN

2013-06-19 Thread sympy
Updates: Status: Fixed Comment #4 on issue 2934 by skirpic...@gmail.com: gosper_sum return NaN http://code.google.com/p/sympy/issues/detail?id=2934 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue

Re: Issue 2482 in sympy: Stop bundling mpmath

2013-06-19 Thread sympy
Comment #45 on issue 2482 by ondrej.c...@gmail.com: Stop bundling mpmath http://code.google.com/p/sympy/issues/detail?id=2482 Hi Tadej, what you wrote also applies to Debian. I think we should make it so that if people really want to depend on mpmath externally have the option to do so ---

Issue 3898 in sympy: sift

2013-06-19 Thread sympy
Status: Valid Owner: Labels: Type-Defect Priority-Medium Combinatorics New issue 3898 by asmeu...@gmail.com: sift http://code.google.com/p/sympy/issues/detail?id=3898 I just saw this:

Re: Issue 2482 in sympy: Stop bundling mpmath

2013-06-19 Thread sympy
Comment #46 on issue 2482 by asmeu...@gmail.com: Stop bundling mpmath http://code.google.com/p/sympy/issues/detail?id=2482 Actually, we need to drop 2.5 to use relative imports, because import * doesn't work with it due to some bug (if I remember correctly). -- You received this message

Re: Issue 2482 in sympy: Stop bundling mpmath

2013-06-19 Thread sympy
Comment #47 on issue 2482 by tadej.ja...@gmail.com: Stop bundling mpmath http://code.google.com/p/sympy/issues/detail?id=2482 Sergey, thanks for stepping in and reviving this issue by preparing a pull request! I like Ondřej's proposed approach. Indeed, this will simplify sympy's maintenance

Issue 3899 in sympy: error: package directory 'sympy' does not exist

2013-06-19 Thread sympy
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 3899 by dutu8...@gmail.com: error: package directory 'sympy' does not exist http://code.google.com/p/sympy/issues/detail?id=3899 While installing sympy i get following error: C:\sympy-0.7.2-py3.2\setup.py install

Re: Issue 3899 in sympy: error: package directory 'sympy' does not exist

2013-06-19 Thread sympy
Comment #1 on issue 3899 by asmeu...@gmail.com: error: package directory 'sympy' does not exist http://code.google.com/p/sympy/issues/detail?id=3899 Does it work if you change to the sympy-0.7.2-py3.2 directory first (using dir)? -- You received this message because this project is

Re: Issue 3899 in sympy: error: package directory 'sympy' does not exist

2013-06-19 Thread sympy
Comment #2 on issue 3899 by dutu8...@gmail.com: error: package directory 'sympy' does not exist http://code.google.com/p/sympy/issues/detail?id=3899 I'm sorry but I don't really understand what you mean by that. Copying 'sympy-0.7.2-py3.2' or the content from it somewhere else? -- You

Re: Issue 3222 in sympy: Memory problems with the cache

2013-06-19 Thread sympy
Comment #6 on issue 3222 by supp...@mooncoder.com: Memory problems with the cache http://code.google.com/p/sympy/issues/detail?id=3222 Documentation is one thing, but there is something more important. The cache mechanism can actually hurt sympy because for some people, sympy crashes or

Re: Issue 3222 in sympy: Memory problems with the cache

2013-06-19 Thread sympy
Comment #7 on issue 3222 by asmeu...@gmail.com: Memory problems with the cache http://code.google.com/p/sympy/issues/detail?id=3222 I completely agree. There was some discussion on the mailing list about this issue a month or two ago. The idea is to make the cache more local, so that it

Re: Issue 3899 in sympy: error: package directory 'sympy' does not exist

2013-06-19 Thread sympy
Comment #3 on issue 3899 by asmeu...@gmail.com: error: package directory 'sympy' does not exist http://code.google.com/p/sympy/issues/detail?id=3899 No, I mean making sympy-0.7.2-py3.2 your working directory, so that the command is just python setup.py install. -- You received this

Re: Issue 3222 in sympy: Memory problems with the cache

2013-06-19 Thread sympy
Comment #8 on issue 3222 by supp...@mooncoder.com: Memory problems with the cache http://code.google.com/p/sympy/issues/detail?id=3222 No, I don't have enough experience in python (yet :-) ).

Re: Issue 3222 in sympy: Memory problems with the cache

2013-06-19 Thread sympy
Comment #9 on issue 3222 by asmeu...@gmail.com: Memory problems with the cache http://code.google.com/p/sympy/issues/detail?id=3222 Oh wow, that's too complicated. Though actually we only care about the memory from objects that have a refcount of 1. I guess just counting the number of

Re: [sympy] Possible bug in method 'refine_root()' of class sympy.polys.polytools.Poly

2013-06-19 Thread Heiner Kirchhoffer
Hi Mateusz and all, refine_root() doesn't work with non-squarefree polynomials. Unfortunately it's not written in the documentation. Remove root multiplicities with sqf() and then proceed with your original approach, e.g.: In [8]: sqf_list(f) Out[8]: ⎛ ⎡⎛ 2 ⎞⎤⎞ ⎝1, ⎣⎝x -

[sympy] newbie question : exporting sympy plots to svg

2013-06-19 Thread a . jaury
Hello everybody, bonjour tout le monde, I wonder if there's a way to export sympy plots to svg, as savefig with matplotlib ? Actually my aim is to convert this svg file to tkz from inkscape... thank you, merci d'avance, alex -- You received this message because you are subscribed to the

Re: [sympy] newbie question : exporting sympy plots to svg

2013-06-19 Thread Stefan Krastanov
The plot object has a `save` method. Calling it with a filename ending on `.svg` should be enough if you use the matplotlib backend. The capabilities of the plotting module depend a lot on the backend that you are using. a=plot(...) a.save(*.svg) On 19 June 2013 09:32, a.ja...@gmail.com

Re: [sympy] newbie question : exporting sympy plots to svg

2013-06-19 Thread a . jaury
Thank you, it works. I only tried savefig... Sorry for the noise. Le mercredi 19 juin 2013 11:18:07 UTC+2, Stefan Krastanov a écrit : The plot object has a `save` method. Calling it with a filename ending on `.svg` should be enough if you use the matplotlib backend. The capabilities of the

[sympy] Domains in Matrices

2013-06-19 Thread Saurabh Jha
Hi, This topic is extensively discussed earlier in mailing list. What I have here [0] is essentially correct though inefficient implementation of addition and subtraction operations for sparse matrix. This is the time where I need to think about adding domains support to matrices. I can think of

[sympy] as_numer_denom() - query

2013-06-19 Thread Manoj Kumar
I have a query regarding as_numer_denom. Example: a, b = symbols(a b) eq = a*y/x**2 + 2*b*y - b/x eq.as_numer_denom (a*x*y + 2*b*x**3*y - b*x**2, x**3) Shouldn't there be one x less in the numerator and denominator? -- You received this message because you are subscribed to the Google

Re: [sympy] as_numer_denom() - query

2013-06-19 Thread Aaron Meurer
as_numer_denom doesn't do any canceling. It is designed to be the fastest way to convert a rational function into a product of polynomials. If you want it canceled, you can call cancel on the result. Aaron Meurer On Wed, Jun 19, 2013 at 9:06 AM, Manoj Kumar manojkumarsivaraj...@gmail.com wrote:

Re: [sympy] Diophantine Equation Module

2013-06-19 Thread Ondřej Čertík
On Tue, Jun 18, 2013 at 11:23 PM, Thilina Rathnayake thilina.r...@gmail.com wrote: When we ask the user to specify the parameter to be used, what should be the input? should it be a symbol or a string which contain the symbol to be used. What I am asking is whether we should use, var(t)

Re: [sympy] Diophantine Equation Module

2013-06-19 Thread Stefan Krastanov
Inputting the parameter as a keyword to the solver seems like an extremely fragile solutions. What if we need two parameters? What if we do not need any? How we add appropriate assumptions to the parameter (integer or whatever)? Moreover, this would create two divergent styles for the different

Re: [sympy] Diophantine Equation Module

2013-06-19 Thread Ondřej Čertík
On Wed, Jun 19, 2013 at 9:39 AM, Stefan Krastanov krastanov.ste...@gmail.com wrote: Inputting the parameter as a keyword to the solver seems like an extremely fragile solutions. What if we need two parameters? What if we do not need any? I think for linear equations it is clear from the

[sympy] History and background on computer algebra software

2013-06-19 Thread Matthew Rocklin
Can anyone recommend a good review of computer algebra software other than wikipedia? -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com.

Re: [sympy] Domains in Matrices

2013-06-19 Thread David Joyner
On Wed, Jun 19, 2013 at 9:25 AM, Saurabh Jha saurabh.j...@gmail.com wrote: Hi, This topic is extensively discussed earlier in mailing list. What I have here [0] is essentially correct though inefficient implementation of addition and subtraction operations for sparse matrix. This is the time

[sympy] Re: Domains in Matrices

2013-06-19 Thread Saurabh Jha
I was thinking about adding what you said in above levels. In bottom levels, I thought of passing domains explicitly to functions after they are determined from above levels. The lower level functions will form the basis of functions/methods at upper levels. I am still not sure if this is the

Re: [sympy] Diophantine Equation Module

2013-06-19 Thread Thilina Rathnayake
Ondrej: That's exactly what I am doing right now. I am just implementing the low level functionalities which just solves the equation and for the time being I am returning solutions as a set of tuples. I think the only assumption on the parameters would be that they are Integers. Sometimes they

Re: [sympy] History and background on computer algebra software

2013-06-19 Thread David Joyner
On Wed, Jun 19, 2013 at 12:41 PM, Matthew Rocklin mrock...@gmail.com wrote: Can anyone recommend a good review of computer algebra software other than wikipedia? Do you mean online? There is http://orms.mfo.de/ http://www.symbolicnet.org/toc.html and the rosetta stone

Re: [sympy] Diophantine Equation Module

2013-06-19 Thread Stefan Krastanov
Inputting the parameter as a keyword to the solver seems like a fragile solutions. What if we need two parameters? What if we do not need any? How we add appropriate assumptions to the parameter (integer or whatever)? Moreover, this would create two divergent styles for the different solvers: why

Re: [sympy] Diophantine Equation Module

2013-06-19 Thread Stefan Krastanov
sorry for the dupe, problem with my drafts On 19 June 2013 19:14, Stefan Krastanov krastanov.ste...@gmail.com wrote: Inputting the parameter as a keyword to the solver seems like a fragile solutions. What if we need two parameters? What if we do not need any? How we add appropriate

[sympy] Lie algebra module

2013-06-19 Thread Mary Clark
Hello all, As we all know, this is the first week of GSOC and I'm working on a Lie algebra module. My blog is http://meclark256.wordpress.com/ Specifically I'd like to generate some discussion on the issue that I just wrote about in this week's blog entry, on actual physical commutation

Re: [sympy] Lie algebra module

2013-06-19 Thread David Joyner
On Wed, Jun 19, 2013 at 3:31 PM, Mary Clark mary.spritel...@gmail.com wrote: Hello all, As we all know, this is the first week of GSOC and I'm working on a Lie algebra module. My blog is http://meclark256.wordpress.com/ Specifically I'd like to generate some discussion on the issue that I

Re: [sympy] Lie algebra module

2013-06-19 Thread Mary Clark
Just a question on terminology: Are you talking about general commutation relations or just those for the standard lie algebra generators? Sorry, but could you clarify what you mean? For instance, what I'm saying is that su(2), for example, has a basis consisting of 3 elements, say u1,

Re: [sympy] Lie algebra module

2013-06-19 Thread David Joyner
On Wed, Jun 19, 2013 at 3:53 PM, Mary Clark mary.spritel...@gmail.com wrote: Just a question on terminology: Are you talking about general commutation relations or just those for the standard lie algebra generators? Sorry, but could you clarify what you mean? For instance, what I'm saying

Re: [sympy] Lie algebra module

2013-06-19 Thread Matthew Rocklin
I'm unfortunately ignorant of the commutation relations of su(2) and su(3) but I am generally interested in the clear expression of mathematics in code. Are you able to either point to simple and quick-to-read reference or give a clear example of the problem and the importance (I prefer the

Re: [sympy] Lie algebra module

2013-06-19 Thread Mary Clark
Thanks, David! I was scanning that document earlier, but I missed that part. That should definitely help. On Wednesday, 19 June 2013 21:14:03 UTC+1, David Joyner wrote: On Wed, Jun 19, 2013 at 3:53 PM, Mary Clark mary.sp...@gmail.comjavascript: wrote: Just a question on

Re: [sympy] Diophantine Equation Module

2013-06-19 Thread Stefan Krastanov
How we add appropriate assumptions to the parameter (integer or whatever)? I am not sure what you mean here. I guess that the solution is valid only for an integer t (if we are talking about a Diophantine equation). This information should be provided, through the new assumption module I

Re: [sympy] Diophantine Equation Module

2013-06-19 Thread Chris Smith
user can't know of the assumptions on the parameter. Besides being integers I didn't found any special assumption on them still. This is the job of the docstring. Also, since subs doesn't check that the new value matches the old assumption I don't think you have to bother with returning

Re: [sympy] Diophantine Equation Module

2013-06-19 Thread Chris Smith
Rather than use Parameters, I suggested that we just use a uniquely named symbol. The problem with Dummy is that you can still get a visual clash on symbols: Symbol(_t) looks like Dummy(t). This (or the perhaps ugly unique name), of course, could be replaced with user variables. -- You received

[sympy] Use of CSR representation

2013-06-19 Thread Saurabh Jha
Hi, I(with the help of Chris) have recently merged in two functions that convert Dictionary of Keys(DOK) representation to Compressed Row Format(CSR) format and vice versa. [1]. Since I don't actually know much about the applications of sparse matrices in domains like Computer Science, Physics,

Re: [sympy] Diophantine Equation Module

2013-06-19 Thread Aaron Meurer
There's no need to use a name convention. I'm sure Thilina didn't know about Dummy. Aaron Meurer On Wed, Jun 19, 2013 at 7:25 PM, Chris Smith smi...@gmail.com wrote: Rather than use Parameters, I suggested that we just use a uniquely named symbol. The problem with Dummy is that you can still

Re: [sympy] History and background on computer algebra software

2013-06-19 Thread Aaron Meurer
The foreword and preface of Bronstein's book detail some of the history of symbolic integration, which historically was one of the primary motivations for computer algebra. Aaron Meurer On Wed, Jun 19, 2013 at 12:07 PM, David Joyner wdjoy...@gmail.com wrote: On Wed, Jun 19, 2013 at 12:41 PM,