[sympy] playing with "oo"

2015-10-22 Thread Speed
Hello, I'm curious to know as to how we are treating oo here on the sympy project. as sometimes some ans shows that oo*I is possible, how are we really defining oo here. Regards, Speed -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe f

Re: [sympy] Sympy Piecewise expression for even and odd numbers

2015-10-22 Thread Aaron Meurer
I answered on StackOverflow. The short answer is, use Mod. Aaron Meurer On Thu, Oct 22, 2015 at 3:20 PM, Dzhelil Rufat wrote: > The objective is to implement a Piecewise expression that gives 0 when n is > even, and 1 when n is odd. One way to do it is using the floor function like > below: > >

Re: [sympy] Vectors Module Contribution

2015-10-22 Thread Aaron Meurer
Submit early and submit often. The earlier you make a pull request the earlier people can start commenting on your work. Aaron Meurer On Thu, Oct 22, 2015 at 4:34 PM, Jason Moore wrote: > Justin, > > We like to see "atomic" PRs that are shorter rather than longer so that they > are easy to revie

Re: [sympy] Vectors Module Contribution

2015-10-22 Thread Jason Moore
Justin, We like to see "atomic" PRs that are shorter rather than longer so that they are easy to review. Most super long PRs take forever to review and get merged, so send in smaller updates in general. And the atomic portion means that you pick one complete thing to add per PR which generally inc

Re: [sympy] Vectors Module Contribution

2015-10-22 Thread Justin
> > On Wednesday, 21 October 2015 17:37:31 UTC+2, Jason Moore wrote: >> >> I will help you get your dev environment setup and give info on how to >> make PRs, etc. >> >> Hey Jason, I have my dev environment set up per the development workflow wiki. I would like some information on how and when

[sympy] Sympy Piecewise expression for even and odd numbers

2015-10-22 Thread Dzhelil Rufat
The objective is to implement a Piecewise expression that gives 0 when n is even, and 1 when n is odd. One way to do it is using the floor function like below: from sympy import * from sympy.abc import n f = Lambda((n,), Piecewise((0, Eq(n, floor(n / S(2,

Re: [sympy] SymPy at PyCon India 2015

2015-10-22 Thread Aaron Meurer
On Thu, Oct 22, 2015 at 12:37 PM, Harsh Gupta wrote: > PyCon India was fun indeed, here are some feedback from the workshop: > > * Many of the workshop participants asked how does SymPy compare with > other CAS like Mathematica, Maple and Matlab. We should update the > SymPy vs X docs on the wiki.

Re: [sympy] SymPy at PyCon India 2015

2015-10-22 Thread Harsh Gupta
PyCon India was fun indeed, here are some feedback from the workshop: * Many of the workshop participants asked how does SymPy compare with other CAS like Mathematica, Maple and Matlab. We should update the SymPy vs X docs on the wiki. * The workshop was over represented by Data Scientists and th

[sympy] Re: Computer Science Capstone Projects at UCD

2015-10-22 Thread Jason Moore
One clarification. The mentorship role will be significantly less than GSoC. We basically need to provide the project idea and the students will run with that. We will provide support roles to provide them information and feedback on their implementations. Jason moorepants.info +01 530-601-9791

[sympy] Re: Problems with integrating ln(x-y) wrt. y

2015-10-22 Thread Speed
Use simplify(diff(-x*log(-x + y) + y*log(x - y) - y,y)) instead of only diff(-x*log(-x + y) + y*log(x - y) - y,y) as mentioned by Kalevi sympy does not do the simplification part autometically. and in sympy during integration sometimes the constants make a difference. Hope it helps. On Thursda

Re: [sympy] How can one exclude species from being processed in a doit()

2015-10-22 Thread Aaron Meurer
This apparently isn't widely supported. The only one I found was doit(integrals=False) disables integrals. It probably ought to use the syntax you suggest. Aaron Meurer On Wed, Oct 21, 2015 at 9:17 PM, Dzhelil Rufat wrote: > The documentation says: > > doit(**hints) > > Evaluate objects that are

Re: [sympy] Trouble with integral of ln(x-y)

2015-10-22 Thread Aaron Meurer
On Thu, Oct 22, 2015 at 2:45 AM, Filip wrote: > I'm trying to calculate the integral of ln(x-y) dy (with x and y complex) >>> integrate(ln(x-y), y) > but sympy gives me > -x*log(-x + y) + y*log(x - y) - y > If I try to differentiate this wrt. y I get >>> diff(-x*log(-x + y) + y*log(x - y) - y,

[sympy] Re: Problems with integrating ln(x-y) wrt. y

2015-10-22 Thread Kalevi Suominen
On Thursday, October 22, 2015 at 4:56:35 PM UTC+3, Filip wrote: > > I'm trying to integrate ln(x-y) dy, but the result I get from SymPy is > very different from Maple's answer. > Here is what I get when I integrate in SymPy: > In [2]: > > integrate(ln(x-y), y) > > Out[2]: > > -x*log(-x + y) + y*

[sympy] Trouble with integral of ln(x-y)

2015-10-22 Thread Filip
I'm trying to calculate the integral of ln(x-y) dy (with x and y complex) >> integrate(ln(x-y), y) but sympy gives me -x*log(-x + y) + y*log(x - y) - y If I try to differentiate this wrt. y I get >> diff(-x*log(-x + y) + y*log(x - y) - y, y) -x/(-x + y) - y/(x - y) + log(x - y) - 1 which i

[sympy] Problems with integrating ln(x-y) wrt. y

2015-10-22 Thread Filip
I'm trying to integrate ln(x-y) dy, but the result I get from SymPy is very different from Maple's answer. Here is what I get when I integrate in SymPy: In [2]: integrate(ln(x-y), y) Out[2]: -x*log(-x + y) + y*log(x - y) - y When I try to differentiate this, i get something very different fro

Re: [sympy] Finding the Riemann tensor for the surface of a sphere with sympy.diffgeom

2015-10-22 Thread Francesco Bonazzi
On Monday, 19 October 2015 19:32:22 UTC+2, Francesco Bonazzi wrote: > > We should eventually merge this: > https://github.com/sympy/sympy/pull/9112 > > Given that this PR is too large to review, I extracted and rewrote the code concerning N-dim arrays (made it more similar to SymPy's matrix modu