Re: Issue 3722 in sympy: solve can try split equation into real and imaginary parts

2013-06-17 Thread sympy
Updates: Labels: NeedsReview smichr Comment #8 on issue 3722 by smi...@gmail.com: solve can try split equation into real and imaginary parts http://code.google.com/p/sympy/issues/detail?id=3722 https://github.com/sympy/sympy/pull/2178 -- You received this message because this

Re: Issue 3896 in sympy: sum of three-phase cos^2 or cos^4 do not simplify to 3/2 and 9/8, respectively

2013-06-17 Thread sympy
Comment #4 on issue 3896 by smi...@gmail.com: sum of three-phase cos^2 or cos^4 do not simplify to 3/2 and 9/8, respectively http://code.google.com/p/sympy/issues/detail?id=3896 If you read the preamble to fu in fu.py and find the transform that specifically does what you want, you can

Issue 3897 in sympy: integrate(1/x) gives log(x), not log(abs(x))

2013-06-17 Thread sympy
Status: New Owner: Labels: Type-Defect Priority-Medium Integration New issue 3897 by ben.luc...@gmail.com: integrate(1/x) gives log(x), not log(abs(x)) http://code.google.com/p/sympy/issues/detail?id=3897 I would've assumed something so simple would have been reported already - but I

Re: Issue 2014 in sympy: use ordered_iter or iterable instead of checking for literal container

2013-06-17 Thread sympy
Comment #20 on issue 2014 by asmeu...@gmail.com: use ordered_iter or iterable instead of checking for literal container http://code.google.com/p/sympy/issues/detail?id=2014 Sure. But please submit it as a pull request, not a patch. -- You received this message because this project is

Re: Issue 3897 in sympy: integrate(1/x) gives log(x), not log(abs(x))

2013-06-17 Thread sympy
Updates: Status: Duplicate Mergedinto: 1657 Comment #1 on issue 3897 by asmeu...@gmail.com: integrate(1/x) gives log(x), not log(abs(x)) http://code.google.com/p/sympy/issues/detail?id=3897 It was reported already :) -- You received this message because this project is

Re: Issue 1657 in sympy: integrate(1/x, x) should return log(abs(x))

2013-06-17 Thread sympy
Comment #4 on issue 1657 by asmeu...@gmail.com: integrate(1/x, x) should return log(abs(x)) http://code.google.com/p/sympy/issues/detail?id=1657 Issue 3897 has been merged into this issue. -- You received this message because this project is configured to send all issue notifications to

Re: Issue 3890 in sympy: dsolve failing for an equality muliplied by -1

2013-06-17 Thread sympy
Updates: Status: Started Owner: julien.r...@gmail.com Labels: NeedsReview Comment #2 on issue 3890 by julien.r...@gmail.com: dsolve failing for an equality muliplied by -1 http://code.google.com/p/sympy/issues/detail?id=3890 https://github.com/sympy/sympy/pull/2181

Re: Issue 3812 in sympy: simplify(Implies) is wrong

2013-06-17 Thread sympy
Updates: Status: Fixed Comment #7 on issue 3812 by smi...@gmail.com: simplify(Implies) is wrong http://code.google.com/p/sympy/issues/detail?id=3812 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue

Re: Issue 3894 in sympy: diag does not work with int

2013-06-17 Thread sympy
Updates: Status: Invalid Comment #1 on issue 3894 by smi...@gmail.com: diag does not work with int http://code.google.com/p/sympy/issues/detail?id=3894 The comma was omitted in the in the first OP attempt but included in the succeeding one. The doctests also show that int works. What

Re: [sympy] Re: The Vectors and Electromagnetism GSoC projects

2013-06-17 Thread Stefan Krastanov
Thanks for the summary. I will be on IRC at the specified time. On 16 June 2013 21:24, Prasoon Shukla prasoon92.i...@gmail.com wrote: I, Gilbert and Sachin met up today on the IRC. We talked about how exactly will we implement the Reference Frames - that is - how the data regarding position

Re: [sympy] Re: Problem with using SymPyPrt on both IPy2 and IPy3

2013-06-17 Thread Shriramana Sharma
On Mon, Jun 17, 2013 at 10:43 AM, Shriramana Sharma samj...@gmail.com wrote: produces a segfault. I have asked about this over at http://lists.nongnu.org/archive/html/dvipng/ (but the archives apparently need some time to be updated.) Hm -- I finally traced this segfault back to dvipng's

Re: [sympy] Re: Docs padding

2013-06-17 Thread Thilina Rathnayake
This looks good to me. Justify adds too many spaces and it's really hard to read. I thinks lot of people are comfortable with new view (at least me !) Regards, Thilina On Mon, Jun 17, 2013 at 10:02 AM, Saurabh Jha saurabh.j...@gmail.comwrote: I feel that text that is more left justified and

[sympy] Finding a degree in an Expression

2013-06-17 Thread Thilina Rathnayake
Dear All, In my work related to the Diophantine Module for SymPy (PR #2168https://github.com/sympy/sympy/pull/2168) I came across a situation where I want to find the degree of an expression. I initially used max(degree_list(expr)) but it doesn't always return what I want. In [7]: from sympy

[sympy] GSoC Starts Today

2013-06-17 Thread Aaron Meurer
Just a reminder that GSoC officially starts today. Students and mentors, if you haven't set up a weekly meeting time yet, please do so. If you are unable to contact your student or your mentor, please let me know immediately. Aaron Meurer -- You received this message because you are subscribed

Re: [sympy] Slow tests

2013-06-17 Thread Aaron Meurer
Yes, use the @slow decorator. Then run the tests with --slow. Be sure to also include the --timeout flag, as some of the slow tests run for a **really** long time. We also need to run these tests with Travis (pull requests welcome!). Aaron Meurer On Mon, Jun 17, 2013 at 12:21 AM, Jason Moore

Re: [sympy] Re: Problem with using SymPyPrt on both IPy2 and IPy3

2013-06-17 Thread Aaron Meurer
I was recently getting errors with dvipdfmx building the PDF docs. I wonder if it's the same issue. Aaron Meurer On Mon, Jun 17, 2013 at 3:58 AM, Shriramana Sharma samj...@gmail.com wrote: On Mon, Jun 17, 2013 at 10:43 AM, Shriramana Sharma samj...@gmail.com wrote: produces a segfault. I have

Re: [sympy] Slow tests

2013-06-17 Thread Jason Moore
thanks! Jason moorepants.info +01 530-601-9791 On Mon, Jun 17, 2013 at 7:49 AM, Aaron Meurer asmeu...@gmail.com wrote: Yes, use the @slow decorator. Then run the tests with --slow. Be sure to also include the --timeout flag, as some of the slow tests run for a **really** long time. We

Re: [sympy] Finding a degree in an Expression

2013-06-17 Thread Thilina Rathnayake
Thank you Aaron for the reply. Shall I try to fix degree to do the expected thing? On Mon, Jun 17, 2013 at 8:23 PM, Aaron Meurer asmeu...@gmail.com wrote: There is also degree(), but it seems that it uses the wrong thing too. We should probably fix degree to do the more expected thing. For

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

2013-06-17 Thread Heiner Kirchhoffer
Hello, method 'refine_root()' of class 'Poly' seems to unexpectedly raise an exception. The following code produces the exception: x = Symbol( x ) p = Poly( x**4 - 6*x**3 + 11*x**2 - 6*x + 1 ) p.refine_root( 0, 1 ) # raises: sympy.polys.polyerrors.RefinementFailed: there should be exactly one

Re: [sympy] Finding a degree in an Expression

2013-06-17 Thread Aaron Meurer
Sure, and see if any tests fail. There may be a good reason for it to do what it is doing now. Aaron Meurer On Mon, Jun 17, 2013 at 10:54 AM, Thilina Rathnayake thilina.r...@gmail.com wrote: Thank you Aaron for the reply. Shall I try to fix degree to do the expected thing? On Mon, Jun 17,

[sympy] Plotting: how to set line colors

2013-06-17 Thread Ondřej Čertík
Hi, Here is one of my notebooks (work in progress) for the sympy tutorial: http://nbviewer.ipython.org/5799312 How can I set line colors in the plot at the prompt [8]? I didn't find it in the docs: http://docs.sympy.org/dev/modules/plotting.html I assume I should save it to a variable p and

[sympy] Re: Plotting: how to set line colors

2013-06-17 Thread Ondřej Čertík
On Mon, Jun 17, 2013 at 12:58 PM, Ondřej Čertík ondrej.cer...@gmail.com wrote: Hi, Here is one of my notebooks (work in progress) for the sympy tutorial: http://nbviewer.ipython.org/5799312 How can I set line colors in the plot at the prompt [8]? I didn't find it in the docs:

Re: [sympy] Re: Plotting: how to set line colors

2013-06-17 Thread Stefan Krastanov
I will write a more complete answer soon, but in the meantime you can check the `examples` folder. In the docs for the plotting module search for aesthetics. On 17 June 2013 21:00, Ondřej Čertík ondrej.cer...@gmail.com wrote: On Mon, Jun 17, 2013 at 12:58 PM, Ondřej Čertík

Re: [sympy] Finding a degree in an Expression

2013-06-17 Thread Thilina Rathnayake
Sure, I will check that. On Mon, Jun 17, 2013 at 11:38 PM, Aaron Meurer asmeu...@gmail.com wrote: Sure, and see if any tests fail. There may be a good reason for it to do what it is doing now. Aaron Meurer On Mon, Jun 17, 2013 at 10:54 AM, Thilina Rathnayake thilina.r...@gmail.com wrote:

Re: [sympy] Re: Plotting: how to set line colors

2013-06-17 Thread Stefan Krastanov
And by the way, as you mentioned, the docs for the plotting module can indeed be better. On 17 June 2013 21:56, Stefan Krastanov krastanov.ste...@gmail.com wrote: I answer your question in the attached notebook. But you should really check the 4 or 5 `example/beginner/plot*` ipython notebooks

Re: [sympy] Re: Plotting: how to set line colors

2013-06-17 Thread Ondřej Čertík
Hi Stefan, This is awesome, thanks a lot! I tested your notebook, it works great. As far as the examples/beginner/plot_colors.ipynb goes, I had to add the following two lines into the first cell: from sympy import sin, var, cos, pi, sqrt var(x y) I guess it was assumed it would do this

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

2013-06-17 Thread Chris Smith
I suppose this could be called a feature since the routine will fail if you comment out the error since it needs a sign change to find the root. But perhaps the refine_root could check return the evaluated root in that range if it can be found explicitly. Perhaps it would be better to evaluate

Re: [sympy] Re: Plotting: how to set line colors

2013-06-17 Thread Stefan Krastanov
Indeed, the example notebooks assume that certain setup was performed. I guess it is a leftover from before I learned that it is an ipython antipattern. On 17 June 2013 22:49, Ondřej Čertík ondrej.cer...@gmail.com wrote: Hi Stefan, This is awesome, thanks a lot! I tested your notebook, it

Re: [sympy] Re: Plotting: how to set line colors

2013-06-17 Thread Ondřej Čertík
Yeah, just yesterday I realized that it's probably better to launch then notebook just with ipython notebook and then just have a cell that initializes things properly (if needed), so for plotting I use: %pylab inline Ondrej On Mon, Jun 17, 2013 at 3:31 PM, Stefan Krastanov

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

2013-06-17 Thread Aaron Meurer
Regarding the radius of convergence, apparently the root test is a perfect test. See http://en.wikipedia.org/wiki/Cauchy%E2%80%93Hadamard_theorem and http://en.wikipedia.org/wiki/Radius_of_convergence#Theoretical_radius. I did not know this fact. This is nice, because SymPy is good at computing

Re: [sympy] How to prevent canonisation of fractions

2013-06-17 Thread Aaron Meurer
On Mon, Jun 17, 2013 at 12:39 AM, Ben Lucato ben.luc...@gmail.com wrote: Ok cool I thought it might be a case of just having to modify how I print. I'm not using any special printer - just doing print sympy.latex(y) Sure, that means that you're using the latex printer (as opposed to the string

[sympy] economical srepr for SparseMatrix

2013-06-17 Thread smichr
Is it worth adding a more economical printing of SparseMatrix in printing/repr.py? def _print_Sparse(m): return shortest representation for SparseMatrix o1 = m.shape[0], m.shape[1], m._smat o2 = Matrix(m).tolist() o3 = m.shape[0], m.shape[1], Matrix(m)._mat l1, l2, l3 =