Re: [sympy] Summation of function

2015-02-03 Thread Gaurav Dhingra
Hi, I want to know about the "summation" function used in sympy. The code should be according to the documentation but for summation, As @asmeurer had mentioned earlier to me that- "he is not sure regarding the summation function. That what sympy should be doing with it." https://groups.google.c

Re: [sympy] Summation of function

2015-02-03 Thread Christophe Bal
Hello. summation(exp(a*x), (x, 1.2, 1.5)) = 0 because a summation with an empty set of indices k is zero by convention. This allows to say that summation over disjoint set A and B is the summation over their union. Maybe sympy should avoid the use of non integers for the lower and upper bounds.

Re: [sympy] Summation of function

2015-02-03 Thread Gaurav Dhingra
What i noticed is- what Aaron mentioned "As Mathematica or Maple have no problems with this why should it be forbidden or not working nicely in Sympy?" and i too think it would be better to have summation over non-integers as it is used in Physics. On Tuesday, February 3, 2015 at 1:37:36 PM UTC

Re: [sympy] Summation of function

2015-02-03 Thread Christophe Bal
Ok. In that case, summation(exp(a*x), (x, 1.2, 1.5)) = 0 is a normal feature. *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French math teacher in a "Lycée" **and **Python **amateur developer* 2015-02-03 9:11 GMT+01:00 Gaurav Dhingra : > What i n

[sympy] Improving the Quantum Computation module

2015-02-03 Thread Anurag Hota
Hello Sir, Sorry I am a bit late this year. I went through the Quantum Computation module . I would like to work on the Quantum error correction, Solovay-Kitaev algorithm, gate+circuit simplification using genetic algorithms, etc. I am currently working on thw W gate construction and implemen

Re: [sympy] Improving the Quantum Computation module

2015-02-03 Thread Aaron Meurer
Unfortunately, the quantum computation module currently doesn't have any active maintainers. If you apply for GSoC and we like your proposal, we will find someone to mentor it, but for now, don't be surprised if you don't get any responses to requests for help like this. You may need to dig through

Re: [sympy] Summation of function

2015-02-03 Thread Aaron Meurer
Do physics applications actually use summation notation with noninteger limits? If so, what convention do they use? Aaron Meurer On Tue, Feb 3, 2015 at 2:11 AM, Gaurav Dhingra wrote: > What i noticed is- what Aaron mentioned "As Mathematica or Maple have no > problems with this why should it be

Re: [sympy] Summation of function

2015-02-03 Thread Gaurav Dhingra
@asmeurer. I only know they are used in summing the "half-integer" spins. But i have no idea regarding the rules used. On Wednesday, February 4, 2015 at 12:48:58 AM UTC+5:30, Aaron Meurer wrote: > > Do physics applications actually use summation notation with noninteger > limits? If so, what con

Re: [sympy] Summation of function

2015-02-03 Thread Francesco Bonazzi
On Tuesday, February 3, 2015 at 8:18:58 PM UTC+1, Aaron Meurer wrote: > Do physics applications actually use summation notation with noninteger > limits? If so, what convention do they use? > Summing over the states of fermions. But that's a convention. > @asmeurer. I only know they are used

Re: [sympy] Improving the Quantum Computation module

2015-02-03 Thread Sean Vig
Code like this is used to do evaluation of quantum expressions, in this case, the commutator, see [1]. These are used, for example, to evaluate expressions or evaluate quantum operators applied to states. Sean [1] https://github.com/sympy/sympy/blob/master/sympy/physics/quantum/commutator.py#L175

Re: [sympy] Summation of function

2015-02-03 Thread Aaron Meurer
On Tue, Feb 3, 2015 at 1:52 PM, Francesco Bonazzi wrote: > > On Tuesday, February 3, 2015 at 8:18:58 PM UTC+1, Aaron Meurer wrote: > >> Do physics applications actually use summation notation with noninteger >> limits? If so, what convention do they use? >> > > Summing over the states of fermions

Re: [sympy] Positive-definiteness of a Matrix instance in sympy

2015-02-03 Thread Aaron Meurer
You've discovered that SymPy is really bad at dealing with algebraic expressions. I would recommend just sticking to what you did the first time, instead of dealing with sqrt(lambda), just use lambda. By the way, I don't think simplify() uses the new assumptions. You have to literally use refine(

Re: [sympy] A SymPy tutorial for students

2015-02-03 Thread Ivan Savov
> I'd want that the links to the tutorials have enough descriptive text to > that readers can decide which link to click. > With that in place, I do not see much room for confusion. > What do you think the two links should say? There is a lot of overlap between the two docs (intro, basics, an

Re: [sympy] Positive-definiteness of a Matrix instance in sympy

2015-02-03 Thread Chris Smith
> > A brief description is - the sqrt(matrix determinant) is not equal to the > product of the eigenvalues of matrix**(1/2). > > Could you please help a little bit in there...? Would what I am doing even > be mathematically correct? > >>> var('a:d') (a, b, c, d) >>> m=Matrix(2,2,[a,b,c,d]) >>>