Re: Issue 4019 in sympy: divisors could use a 'pairs' flag

2013-09-16 Thread sympy
Comment #2 on issue 4019 by smi...@gmail.com: divisors could use a 'pairs' flag http://code.google.com/p/sympy/issues/detail?id=4019 (modulo the conditional to take the middle element when the list has an odd length) Rather than another flag, should this just be called `divisor_pairs`?

Re: Issue 4016 in sympy: Parser fails to parse pi with implicit_multiplication

2013-09-16 Thread sympy
Updates: Status: Fixed Comment #4 on issue 4016 by smi...@gmail.com: Parser fails to parse pi with implicit_multiplication http://code.google.com/p/sympy/issues/detail?id=4016 (No comment was entered for this change.) -- You received this message because this project is configured

Issue 4021 in sympy: latex printing of Derivative

2013-09-16 Thread sympy
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 4021 by lep@gmail.com: latex printing of Derivative http://code.google.com/p/sympy/issues/detail?id=4021 t = Symbol('t') r = Function('r')(t) print latex(Derivative(r,t,3)) Out : \frac{\partial^{3}}{\partial^{3} t}

Re: Issue 4021 in sympy: latex printing of Derivative

2013-09-16 Thread sympy
Comment #1 on issue 4021 by asmeu...@gmail.com: latex printing of Derivative http://code.google.com/p/sympy/issues/detail?id=4021 I think this has been fixed. In [9]: latex(Derivative(r,t,3)) Out[9]: '\\frac{d^{3}}{d t^{3}} r{\\left (t \\right )}' In [10]: r = Function('r')(t, x) In [11]:

Issue 4022 in sympy: powdenest won't denest a power

2013-09-16 Thread sympy
Status: Valid Owner: Labels: Type-Defect Priority-Medium Simplify New issue 4022 by asmeu...@gmail.com: powdenest won't denest a power http://code.google.com/p/sympy/issues/detail?id=4022 In [5]: powdenest(S(-8*2**(2/3)/(3*nu**(1/3)*(y_i - 1)**(22/3)*((y_i - 1)**(-8/3))**(7/4))),

Re: Issue 4020 in sympy: Wrong integral for tanh

2013-09-16 Thread sympy
Comment #2 on issue 4020 by versusv...@gmail.com: Wrong integral for tanh http://code.google.com/p/sympy/issues/detail?id=4020 Look here: http://www.sympygamma.com/input/?i=tanh%28x%29.integrate%28x%29 Yeah, diff and simplify gives me tanh too, but tanh always less then one, which means that

Re: [sympy] Re: Pattern matching

2013-09-16 Thread Thilina Rathnayake
@Mario: Thank you very much for the reply. I will have to go for this option If I am unable to fix `match()` @Aaron: Sure. Regards, Thilina On Mon, Sep 16, 2013 at 3:43 AM, Aaron Meurer asmeu...@gmail.com wrote: It's annoying to do this all the time, though. With dsolve and classify_ode, I

[sympy] Cancel common expression?

2013-09-16 Thread Boris Kheyfets
Hello SymPy users, Is there a way to make SymPy cancel common expression? For example: from sympy import *var(a b)b = 1/(sqrt(a) - 1)**(S(8)/3)b.diff(a) / (2 * sqrt(2) * b**(S(3)/4)) # gives: -sqrt(2)/(3*sqrt(a)*(sqrt(a) - 1)**(11/3)*((sqrt(a) - 1)**(-8/3))**(3/4)) I want SymPy to cancel

Re: [sympy] Re: Feynman diagrams

2013-09-16 Thread F. B.
Further considerations: - soon there will be a PR to add auto-matrix indices capabilities. In the construction of a tensor, indices marked by True instead of an index symbol will be considered auto-matrix indices, they behave upon multiplication with other tensors as matrices or

[sympy] direct evaluation of boolean expressions

2013-09-16 Thread Moritz Beber
Dear all, (Sorry in case this is a double post, it seems to have vanished as far as I can tell.) I have a large number of boolean expressions (a few thousand) that each only depend on a few symbols, but in total there are thousands of symbols as well, and I know the truth values of each

[sympy] evaluate system of boolean expressions

2013-09-16 Thread Moritz Beber
Dear all, My question basically has two parts: 1.) I have a number of (a few thousand) logical expressions each consisting of a handful of symbols (in total there are several thousand symbols as well). Currently, I generate a dictionary (let's call it 'big_dict') with the symbols and their

Re: [sympy] Re: Feynman diagrams

2013-09-16 Thread F. B.
Concerning MadGraph5, it's written in Python (with exceptions), it's license is the UoI-NCSA open source license: http://www.opensource.org/licenses/UoI-NCSA.php http://en.wikipedia.org/wiki/University_of_Illinois/NCSA_Open_Source_License It is similar to the New BSD (as used in SymPy), but

Re: [sympy] Two integration test suites

2013-09-16 Thread Aaron Meurer
The site just says: The mathematical knowledge on this website is freely available for any educational, academic or commercial use. Please include the website address and appropriately acknowledge its author in any product incorporating its contents. So I guess that means we can reuse it. But I

Re: [sympy] evaluate system of boolean expressions

2013-09-16 Thread Aaron Meurer
On Mon, Sep 16, 2013 at 5:56 AM, Moritz Beber moritz.be...@gmail.com wrote: Dear all, My question basically has two parts: 1.) I have a number of (a few thousand) logical expressions each consisting of a handful of symbols (in total there are several thousand symbols as well). Currently, I

Re: [sympy] Re: Feynman diagrams

2013-09-16 Thread Aaron Meurer
It looks like that license is exactly the 3-clause BSD license, except the opening clause reads like the MIT license instead of the BSD license. So it should be completely fine to reuse the source code however you want. Aaron Meurer On Mon, Sep 16, 2013 at 11:32 AM, F. B. franz.bona...@gmail.com

Re: [sympy] Two integration test suites

2013-09-16 Thread F. B.
But no claim is raised that the test suites cover the whole range of interesting problems! In fact they developed around the discussion of Albert Rich's Rubi (RUle-Based Integration). It is worth to look this up: http://www.apmaths.uwo.ca/~arich/ Wow, that code is amazingly simple!

[sympy] Wester P9

2013-09-16 Thread Pablo Puente
I am implementing Wester test cases as part of Issue 694. Can somebody explain me what is P9 problem (attached)? I think is the Frobenius norm but what are a,b,c? Elements of A? Thanks, Pablo -- You received this message because you are subscribed to the Google Groups sympy group. To

Re: [sympy] Re: Feynman diagrams

2013-09-16 Thread mario
Lie groups are the reason why it is better to represent gamma matrices as (Lorentz, Spinor, Spinor), the (Lorentz)-matrix representation loses the spinor-type transformation properties. Why? the spinor transformations appear in matrix form S G(m) S**-1 = L(m, -n) G(n) On Monday, September

Re: [sympy] Re: Feynman diagrams

2013-09-16 Thread Stefan Krastanov
The generation of diagrams is indeed written in python and the algorithm is fairly simple and easy to implement (I even have an implementation in my repo). You can see the algorithm here http://arxiv.org/abs/1106.0522 (and in a few other links already posted on this mail thread). However this

Re: [sympy] args and class inheritance

2013-09-16 Thread F. B.
It would be nice to have function overloading in Python... what about some kind of decorator to __new__ to filter the default args construction (and avoid calling all of __new__ functionalities)? An inspiration might be: http://www.artima.com/weblogs/viewpost.jsp?thread=101605 On Monday,

Re: [sympy] Re: Feynman diagrams

2013-09-16 Thread Ondřej Čertík
On Mon, Sep 16, 2013 at 12:05 PM, Aaron Meurer asmeu...@gmail.com wrote: It looks like that license is exactly the 3-clause BSD license, except the opening clause reads like the MIT license instead of the BSD license. So it should be completely fine to reuse the source code however you want.

Re: [sympy] Re: Feynman diagrams

2013-09-16 Thread F. B.
On Monday, September 16, 2013 8:46:10 PM UTC+2, Ondřej Čertík wrote: We should however still copy their license into our LICENSE file (or somewhere), to comply with it. Well, open source philosophy is to share the code, but almost all open source project require citing whose original

Re: [sympy] Two integration test suites

2013-09-16 Thread F. B.
What about asking people at Mathics some help to import these rule-based integration scripts? Mathics is a project to create an interpreter similar to Wolfram Mathematica, with algorithmic fallback on SymPy and/or Sage. I think they are experienced in translating Mathematica code to SymPy. --

Re: [sympy] Power expression in denominator?

2013-09-16 Thread Aaron Meurer
The issue is that you have a nested power. x**a**b != x**(a*b) in general (see http://docs.sympy.org/latest/tutorial/simplification.html#powers), so SymPy doesn't simplify this automatically. The solution should be to use powdenest, but it seems that powdenest(force=True) is not working for me.

Re: [sympy] Cancel common expression?

2013-09-16 Thread Aaron Meurer
This is the exact same kind of expression as at https://groups.google.com/forum/#!topic/sympy/ibBh-i6DevE. Aaron Meurer On Mon, Sep 16, 2013 at 6:25 AM, Boris Kheyfets kheyfbo...@gmail.com wrote: Hello SymPy users, Is there a way to make SymPy cancel common expression? For example: from

Re: [sympy] Two integration test suites

2013-09-16 Thread Aaron Meurer
I think the people at Mathics is just Angus, but sure, feel free to ask him if he wants to help out :) Aaron Meurer On Mon, Sep 16, 2013 at 4:42 PM, F. B. franz.bona...@gmail.com wrote: What about asking people at Mathics some help to import these rule-based integration scripts? Mathics is a

Re: [sympy] Re: Feynman diagrams

2013-09-16 Thread Ondřej Čertík
On Mon, Sep 16, 2013 at 4:39 PM, F. B. franz.bona...@gmail.com wrote: On Monday, September 16, 2013 8:46:10 PM UTC+2, Ondřej Čertík wrote: We should however still copy their license into our LICENSE file (or somewhere), to comply with it. Well, open source philosophy is to share the

Re: [sympy] Wester P9

2013-09-16 Thread Aaron Meurer
You should go to Wester's website (I think there is a link on the issue) and download the files he used to test the various computer algebra systems. Many of the entries in the paper itself are abridged, so you have to look at the actual test files to see what input he actually meant. Aaron