[sympy] What modules to understand first ?

2014-05-15 Thread Abhishek K Das
Hello everyone ! I am a newbie here . Please forgive me , if you find this question lame . As I asked a few days ago , that how can I contribute to sympy and Aaron replied by giving the links to easy-to-fix issue list and the development work-flow . Now what I am asking is that to write good

Re: [sympy] Failing doctest for as_dict method

2014-05-15 Thread Abhishek K Das
I am sorry for sending multiple times . I will make sure this does not happen again . On Friday, May 16, 2014 2:03:24 AM UTC+5:30, Joachim Durchholz wrote: > > 1) One message to the list is enough, it won't be read faster if you > send it thrice within ten minutes. Actually most knowledgeable pe

Re: [sympy] Failing doctest for as_dict method

2014-05-15 Thread Matthew Rocklin
Hi Joachim, Often times when people first send e-mails to the mailing list it takes a while for it to get through. I wouldn't blame them for sending multiple times. I've been guilty of this in the past. Hi Abhishek, You have a variable other, in your method definition that is never defined. M

Re: [sympy] SciPy talk

2014-05-15 Thread Rathmann
Right, balancing the multiplication tree can be a win, for the reasons you give. But, I don't think your code snippet is doing any of that. If I run a version (attached) that prints out the multiplies it evaluates, (fact 100) gives: (2 . 1) (3 . 2) (4 . 6) (5 . 24) (6 . 120) (7 . 720) (

Re: [sympy] Failing doctest for as_dict method

2014-05-15 Thread Joachim Durchholz
1) One message to the list is enough, it won't be read faster if you send it thrice within ten minutes. Actually most knowledgeable people on this list scan their SymPy inbox once per day Am 15.05.2014 20:15, schrieb Abhishek K Das: wrote this function for FiniteSet def as_dict(self,*a

Re: [sympy] skip builds on travis

2014-05-15 Thread Joachim Durchholz
Am 15.05.2014 18:40, schrieb Jason Moore: I just noticed this feature: http://docs.travis-ci.com/user/how-to-skip-a-build/ We could start promoting use of this in WIP PRs and any other commit that don't need to run. It could potentially speed up the testing queue significantly. Work well when

Re: [sympy] Including `as_dict` for FiniteSet

2014-05-15 Thread Abhishek K Das
There was a mistake in that implementation , I have corrected it and I am going through the development work-flow to get my implementation merged On Thursday, May 15, 2014 11:54:48 PM UTC+5:30, Harsh Gupta wrote: > > You should send us a PR with the implementation. There we see your > code in pr

Re: [sympy] Including `as_dict` for FiniteSet

2014-05-15 Thread Harsh Gupta
You should send us a PR with the implementation. There we see your code in proper context and figure out what the problem is. Also we don't accept patches on mailing list so you will have to send a PR anyway if you want the code to get merged. Go through the development workflow if you haven't alre

[sympy] Failing doctest for as_dict method

2014-05-15 Thread Abhishek K Das
wrote this function for FiniteSet def as_dict(self,*args): """ Rewrite a FiniteSet as a Dictionary. Examples >>> from sympy import Symbol >>> from sympy.core import sets >>> A = FiniteSet((0, 0), (0, 2), (2, 0), (2, 2))

[sympy] Doctest failing for as_dict

2014-05-15 Thread Abhishek K Das
I wrote this function for FiniteSet def as_dict(self,*other): """ Rewrite a FiniteSet as a Dictionary. Examples >>> from sympy import Symbol >>> from sympy.core import sets >>> A = FiniteSet((0, 0), (0, 2), (2, 0), (2, 2))

[sympy] Doctest failing for as_dict

2014-05-15 Thread Abhishek K Das
I wrote this function for FiniteSet def as_dict(self,*args): """ Rewrite a FiniteSet as a Dictionary. Examples >>> from sympy import Symbol >>> from sympy.core import sets >>> A = FiniteSet((0, 0), (0, 2), (2, 0), (2, 2))

[sympy] Including `as_dict` for FiniteSet

2014-05-15 Thread Abhishek K Das
I wrote this function for FiniteSet def as_dict(self,*args): """ Rewrite a FiniteSet as a Dictionary. Examples >>> from sympy import Symbol >>> from sympy.core import sets >>> A = FiniteSet((0, 0), (0, pi), (pi, 0), (pi, pi))

[sympy] skip builds on travis

2014-05-15 Thread Jason Moore
I just noticed this feature: http://docs.travis-ci.com/user/how-to-skip-a-build/ We could start promoting use of this in WIP PRs and any other commit that don't need to run. It could potentially speed up the testing queue significantly. Jason moorepants.info +01 530-601-9791 -- You received th

Re: [sympy] Easy/newbie question on default simplification behavior

2014-05-15 Thread Richard Fateman
I think the issue is really one of the computational domain, and whether the cancellation is always valid in that domain. In the formal algebraic structure (rational field extended by the indeterminate [x]) the cancellation is valid. The behavior of (x^2-1)/(x-1)is always indistinguish

Re: [sympy] SciPy talk

2014-05-15 Thread Richard Fateman
Gee, this is getting long. Here's the deal on the improved factorial. Perhaps you just haven't gotten large enough, or your multiplications are too slow, even for small numbers. Or there is something else odd about your program that I don't see. Certainly n=20 is way too small to be interestin