Re: Issue 4008 in sympy: geometric algebra doesn't seem to work

2013-09-08 Thread sympy
Comment #1 on issue 4008 by abro...@verizon.net: geometric algebra doesn't seem to work http://code.google.com/p/sympy/issues/detail?id=4008 Improper usage. The following works - from sympy.galgebra import * metric = '1 0 0,0 1 0,0 0 1' gamma_x,gamma_y,gamma_z = MV.setup('gamma_x gamma_y

Re: Issue 4008 in sympy: geometric algebra doesn't seem to work

2013-09-08 Thread sympy
Comment #2 on issue 4008 by abro...@verizon.net: geometric algebra doesn't seem to work http://code.google.com/p/sympy/issues/detail?id=4008 Improper use. metric is keyword. The following works - from sympy.galgebra import * metric = '1 0 0,0 1 0,0 0 1' gamma_x,gamma_y,gamma_z =

Issue 4009 in sympy: Incorrect behaviour in simplify when used with And and Equality

2013-09-08 Thread sympy
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 4009 by randy.he...@clockworklab.net: Incorrect behaviour in simplify when used with And and Equality http://code.google.com/p/sympy/issues/detail?id=4009 simplify(And(Equality(a, 2), c)) False This is obviously

Re: Issue 4009 in sympy: Incorrect behaviour in simplify when used with And and Equality

2013-09-08 Thread sympy
Updates: Status: Valid Cc: srjoglek...@gmail.com Labels: Simplify Logic WrongResult Comment #1 on issue 4009 by asmeu...@gmail.com: Incorrect behaviour in simplify when used with And and Equality http://code.google.com/p/sympy/issues/detail?id=4009 (No comment was

Re: Issue 4009 in sympy: Incorrect behaviour in simplify when used with And and Equality

2013-09-08 Thread sympy
Comment #2 on issue 4009 by asmeu...@gmail.com: Incorrect behaviour in simplify when used with And and Equality http://code.google.com/p/sympy/issues/detail?id=4009 You really should use Equivalent, which is the logical double implies In [39]: simplify_logic(And(Equivalent(a, b), c))

Re: Issue 4009 in sympy: Incorrect behaviour in simplify when used with And and Equality

2013-09-08 Thread sympy
Comment #3 on issue 4009 by randy.he...@clockworklab.net: Incorrect behaviour in simplify when used with And and Equality http://code.google.com/p/sympy/issues/detail?id=4009 I am interested in actual equality, not equivalence. I am trying to check if a set of equations all hold, and am

Issue 4010 in sympy: integrate(sqrt(a**2/(a**2-x**2)), x) can't do it

2013-09-08 Thread sympy
Status: Valid Owner: Labels: Type-Defect Priority-Medium Integration New issue 4010 by ondrej.c...@gmail.com: integrate(sqrt(a**2/(a**2-x**2)), x) can't do it http://code.google.com/p/sympy/issues/detail?id=4010 var(x a) (x, a) integrate(sqrt(a**2/(a**2-x**2)), x) ⌠ ⎮

Re: Issue 4010 in sympy: integrate(sqrt(a**2/(a**2-x**2)), x) can't do it

2013-09-08 Thread sympy
Comment #1 on issue 4010 by ondrej.c...@gmail.com: integrate(sqrt(a**2/(a**2-x**2)), x) can't do it http://code.google.com/p/sympy/issues/detail?id=4010 The solution is atan() with some constants: http://www.wolframalpha.com/input/?i=integrate%28sqrt%28a**2%2F%28a**2-x**2%29%29%2C+x%29 --

Re: Issue 4008 in sympy: geometric algebra doesn't seem to work

2013-09-08 Thread sympy
Comment #3 on issue 4008 by asmeu...@gmail.com: geometric algebra doesn't seem to work http://code.google.com/p/sympy/issues/detail?id=4008 See this question from stackoverflow http://stackoverflow.com/q/18667274/161801 -- You received this message because this project is configured to

Re: Issue 4009 in sympy: Incorrect behaviour in simplify when used with And and Equality

2013-09-08 Thread sympy
Comment #4 on issue 4009 by asmeu...@gmail.com: Incorrect behaviour in simplify when used with And and Equality http://code.google.com/p/sympy/issues/detail?id=4009 Oh, so Eq and Equivalent *are* different then. Eq should be treated as a predicate and left unchanged. -- You received this

Issue 4011 in sympy: Solutions for cubics

2013-09-08 Thread sympy
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 4011 by ben.luc...@gmail.com: Solutions for cubics http://code.google.com/p/sympy/issues/detail?id=4011 Say I have y = -2*x**3 + 4*x**2 - 2*x + 5 solutions = solve(y) print( [ask(Q.real(i)) for i in solutions] ) gives

Re: Issue 4011 in sympy: Solutions for cubics

2013-09-08 Thread sympy
Updates: Status: Valid Labels: Assumptions Solvers Simplify WrongResult Comment #1 on issue 4011 by asmeu...@gmail.com: Solutions for cubics http://code.google.com/p/sympy/issues/detail?id=4011 Regardless of the form of the solutions, ask should not return wrong results. As

Re: [sympy] Re: How to apply a variational operator in SymPy?

2013-09-08 Thread Saullo Castro
@Aaron, thank you very much for the explanation. I would have taken much longer to achieve this alone... we should post this as a question in StackOverflow since I haven't found it there so far... 2013/9/7 Aaron Meurer asmeu...@gmail.com The workflow is that you clone a repo once, from the

[sympy] History of Sympy

2013-09-08 Thread Christophe Bal
Hello, is there a little history of the birth and the evolution of Sympy ? I'm interesting by the human adventure. Christophe -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an

Re: [sympy] History of Sympy

2013-09-08 Thread Thilina Rathnayake
Hi, See if these links can help. http://docs.sympy.org/0.7.3/aboutus.html http://ondrejcertik.blogspot.com/ Regards, Thilina On Sun, Sep 8, 2013 at 1:50 PM, Christophe Bal projet...@gmail.com wrote: Hello, is there a little history of the birth and the evolution of Sympy ? I'm

Re: [sympy] History of Sympy

2013-09-08 Thread Christophe Bal
Thanks for this ! Christophe Le 8 sept. 2013 13:55, Thilina Rathnayake thilina.r...@gmail.com a écrit : Hi, See if these links can help. http://docs.sympy.org/0.7.3/aboutus.html http://ondrejcertik.blogspot.com/ Regards, Thilina On Sun, Sep 8, 2013 at 1:50 PM, Christophe Bal

Re: [sympy] Re: Announcement: New faster Common Subexpression Elimination (CSE) implementation

2013-09-08 Thread Ondřej Čertík
On Sat, Sep 7, 2013 at 7:06 PM, Cristóvão Sousa cris...@gmail.com wrote: On Sunday, September 8, 2013 1:55:12 AM UTC+1, Cristóvão Sousa wrote: Hi all, I just want to announce that a new implementation of Common Subexpression Elimination (CSE) routine has been merged into master (PR:

Re: [sympy] History of Sympy

2013-09-08 Thread Ondřej Čertík
On Sun, Sep 8, 2013 at 5:55 AM, Thilina Rathnayake thilina.r...@gmail.com wrote: Hi, See if these links can help. http://docs.sympy.org/0.7.3/aboutus.html http://ondrejcertik.blogspot.com/ There is also something here: https://github.com/certik/sympy/blob/master/README.rst#brief-history

Re: [sympy] History of Sympy

2013-09-08 Thread Ondřej Čertík
On Sun, Sep 8, 2013 at 11:18 AM, Ondřej Čertík ondrej.cer...@gmail.com wrote: On Sun, Sep 8, 2013 at 5:55 AM, Thilina Rathnayake thilina.r...@gmail.com wrote: Hi, See if these links can help. http://docs.sympy.org/0.7.3/aboutus.html http://ondrejcertik.blogspot.com/ There is also

Re: [sympy] History of Sympy

2013-09-08 Thread Christophe Bal
Thanks. Christophe Le 8 sept. 2013 19:18, Ondřej Čertík ondrej.cer...@gmail.com a écrit : On Sun, Sep 8, 2013 at 11:18 AM, Ondřej Čertík ondrej.cer...@gmail.com wrote: On Sun, Sep 8, 2013 at 5:55 AM, Thilina Rathnayake thilina.r...@gmail.com wrote: Hi, See if these links can help.

Re: [sympy] History of Sympy

2013-09-08 Thread Aaron Meurer
You can also check out the primary sources, namely, the mailing list archives, the archives of the patches list (it used to be used quite a bit before GitHub), old issues, and commits from http://github.com/sympy/sympy-old. The mailing list and patches list archives are probably the most

Re: [sympy] History of Sympy

2013-09-08 Thread Aaron Meurer
Or just buy Ondrej a beer and he'll tell you everything you want to know. Aaron Meurer On Sun, Sep 8, 2013 at 2:04 PM, Aaron Meurer asmeu...@gmail.com wrote: You can also check out the primary sources, namely, the mailing list archives, the archives of the patches list (it used to be used

Re: [sympy] History of Sympy

2013-09-08 Thread Christophe Bal
It would be a great pleasure but I'm a french frog... :-) 2013/9/8 Aaron Meurer asmeu...@gmail.com Or just buy Ondrej a beer and he'll tell you everything you want to know. Aaron Meurer On Sun, Sep 8, 2013 at 2:04 PM, Aaron Meurer asmeu...@gmail.com wrote: You can also check out the

Re: [sympy] History of Sympy

2013-09-08 Thread Ondřej Čertík
I drink wine too. :) On Sun, Sep 8, 2013 at 2:27 PM, Christophe Bal projet...@gmail.com wrote: It would be a great pleasure but I'm a french frog... :-) 2013/9/8 Aaron Meurer asmeu...@gmail.com Or just buy Ondrej a beer and he'll tell you everything you want to know. Aaron Meurer On

Re: [sympy] Re: How to apply a variational operator in SymPy?

2013-09-08 Thread Aaron Meurer
The workflow I described is not the only way to do things, it's just the way that we do things in this community (and most similar communities on GitHub). But some projects use completely different workflows (e.g., some projects push all their branches to the main repo and don't use forks at all).

[sympy] How to help sympy integrate sqrt(a**2/(a**2-x**2))

2013-09-08 Thread Ondřej Čertík
Hi, Currently SymPy can't do this integral: integrate(sqrt(a**2/(a**2-x**2)), x) and I reported it here: https://code.google.com/p/sympy/issues/detail?id=4010 It seems SymPy cannot even do this integral: integrate(sqrt(1/(1-x**2)), x) the solution of which is asin(x), at least for real x.

Re: [sympy] How to help sympy integrate sqrt(a**2/(a**2-x**2))

2013-09-08 Thread Aaron Meurer
The problem is that sqrt(1/x) is not the same as 1/sqrt(x). If you are working in a situation where it is, you can do integrate(1/sqrt(1 - x**2), x) and this works. These algebraic integrals are tricky. They only work with the current heurisch algorithm by accident, because they happen to come

Re: [sympy] How to help sympy integrate sqrt(a**2/(a**2-x**2))

2013-09-08 Thread Aaron Meurer
Another idea would be to implement a basic table lookup for such integrals (https://code.google.com/p/sympy/issues/detail?id=1393). This would be the least powerful, as it would only work for expressions exactly of the form we put in the table, but it would be fast, and wouldn't require figuring

Re: [sympy] How to help sympy integrate sqrt(a**2/(a**2-x**2))

2013-09-08 Thread Ondřej Čertík
On Sun, Sep 8, 2013 at 5:48 PM, Aaron Meurer asmeu...@gmail.com wrote: Another idea would be to implement a basic table lookup for such integrals (https://code.google.com/p/sympy/issues/detail?id=1393). This would be the least powerful, as it would only work for expressions exactly of the form