[sympy] Re: Symmetric Matrix Fails Symmetry Check

2010-02-03 Thread smichr
Think of sympy as a tool not a mathematician ;-) *You* know they are equal, but sympy doesn't go through contortions to figure out if two things are equal or not when they don't have the same structure. Your question is answered as FAQ 1 at http://tinyurl.com/nwa87j where it reminds us that "The e

[sympy] Re: polynomial irreducibility test

2010-02-03 Thread Vinzent Steinberg
Hi, On Feb 3, 2:06 am, Kasun Samarasinghe wrote: > Hi all, > > When I examining the galoisplynomail source code I found that irreducibility > test is not implemented. > Is there any special reason? As I read there are several algorithms for that > and Rabin's irreducibility test > is an interesti

[sympy] Re: SymPy Cheat Sheet

2010-02-03 Thread smichr
I've thought that having something showing a flow diagram of how various operations change things might be useful...more visual e.g. type expr.as_coeff_terms().as_numer_denom() Atom Rational Integer Real NumberSymbol Symbol Add Mul x/y (1, (x, 1/y)) (x, y)

[sympy] Re: SymPy Cheat Sheet

2010-02-03 Thread smichr
I've thought that having something showing a flow diagram of how various operations change things might be useful...more visual e.g. type expr.as_coeff_terms().as_numer_denom() Atom Rational Integer Real NumberSymbol Symbol Add Mul x/y (1, (x, 1/y)) (x, y)

[sympy] Re: polynomial irreducibility test

2010-02-03 Thread Mateusz Paprocki
Hi, On Wed, Feb 03, 2010 at 02:06:10AM +0100, Kasun Samarasinghe wrote: > Hi all, > > When I examining the galoisplynomail source code I found that irreducibility > test is not implemented. Is there any special reason? basically irreducibility can be tested via factorization and usually you need

[sympy] Re: Symmetric Matrix Fails Symmetry Check

2010-02-03 Thread Mateusz Paprocki
Hi, On Wed, Feb 03, 2010 at 03:40:31AM -0800, smichr wrote: > And this suggests a little helper function knowing that a simple > expansion will do: > > >>> def mat_eq(a, b): > ... z = zip(iter(a), iter(b)) > ... for zi in z: > ... if (zi[0]-zi[1]).expand(): > ... r

[sympy] evaluating abs(x) --> x if x>0

2010-02-03 Thread archeryguru2000
Hello all, I have an issue with an integral I'm trying to evaluate. I have a matrix where each element is a function of (among other terms) an integrated Legendre polynomial. My opportunity is that certain returns are in the form of absolute values. For example, an output to one particular eleme

Re: [sympy] evaluating abs(x) --> x if x>0

2010-02-03 Thread Aaron S. Meurer
Just initiate r as r = Symbol('r', positive=True). Aaron Meurer On Feb 3, 2010, at 9:07 AM, archeryguru2000 wrote: > Hello all, > I have an issue with an integral I'm trying to evaluate. I have a > matrix where each element is a function of (among other terms) an > integrated Legendre polynomi

Re: [sympy] evaluating abs(x) --> x if x>0

2010-02-03 Thread Chad File
Wow! My head is lowered in shame. I have no clue why I didn't think of that. Thank you very much. Very embarrassed, ~~archery~~ Aaron S. Meurer wrote: Just initiate r as r = Symbol('r', positive=True). Aaron Meurer On Feb 3, 2010, at 9:07 AM, archeryguru2000 wrote: Hello all, I have

Re: [sympy] GSoC 2010

2010-02-03 Thread Aaron S. Meurer
What about the algorithms listed at http://wiki.sympy.org/wiki/GSoC2010Ideas#Detailed_Ideas? Are they still valid, or have some of these been implemented already? Are there other good ones not listed? Also, I am not sure what the prerequisites would be for implementing some of these. Mateu

Re: [sympy] GSoC 2010

2010-02-03 Thread Alan Bromborsky
Aaron S. Meurer wrote: What about the algorithms listed at http://wiki.sympy.org/wiki/GSoC2010Ideas#Detailed_Ideas? Are they still valid, or have some of these been implemented already? Are there other good ones not listed? Also, I am not sure what the prerequisites would be for implementing

Re: [sympy] GSoC 2010

2010-02-03 Thread Mateusz Paprocki
Hi, On Wed, Feb 03, 2010 at 09:25:46AM -0700, Aaron S. Meurer wrote: > What about the algorithms listed at > http://wiki.sympy.org/wiki/GSoC2010Ideas#Detailed_Ideas? > Are they still valid, or have some of these been implemented already? Are > there other good > ones not listed? Also, I am not

Re: [sympy] GSoC 2010

2010-02-03 Thread Aaron S. Meurer
Thanks. I made the bold ones bold because they were mentioned on this thread as being wanted. Of course, if you disagree or feel others should be bold, fell free to edit the wiki. What about the integration and summation algorithms? I can't find much information about the Karr algorithm, for

[sympy] Re: Symmetric Matrix Fails Symmetry Check

2010-02-03 Thread Ben Goodrich
Thanks Chris and Mateusz. I reopened issue 1472 http://code.google.com/p/sympy/issues/detail?id=1472 with a patch to substitute the one-liner and add a test. Ben -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy

Re: [sympy] Re: polynomial irreducibility test

2010-02-03 Thread Kasun Samarasinghe
HI, I was trying to checkout the poly5 branch using git. what is the url should use? i mean in git clone "?". Kasun On Wed, Feb 3, 2010 at 3:56 PM, Mateusz Paprocki wrote: > Hi, > > On Wed, Feb 03, 2010 at 02:06:10AM +0100, Kasun Samarasinghe wrote: > > Hi all, > > > > When I examining the gal

Re: [sympy] Re: polynomial irreducibility test

2010-02-03 Thread Aaron S. Meurer
I believe it is git://github.com/mattpap/sympy-polys.git Aaron Meurer On Feb 3, 2010, at 1:55 PM, Kasun Samarasinghe wrote: > HI, > > I was trying to checkout the poly5 branch using git. what is the url should > use? > i mean in git clone "?". > > Kasun > > On Wed, Feb 3, 2010 at 3:56 PM, Mat

Re: [sympy] Re: polynomial irreducibility test

2010-02-03 Thread Kasun Samarasinghe
But it does not checks out the new files in http://github.com/mattpap/sympy-polys/tree/polys5/sympy/polys/. Kasun On Wed, Feb 3, 2010 at 10:05 PM, Aaron S. Meurer wrote: > I believe it is git://github.com/mattpap/sympy-polys.git > > Aaron Meurer > On Feb 3, 2010, at 1:55 PM, Kasun Samarasinghe

Re: [sympy] Re: polynomial irreducibility test

2010-02-03 Thread Aaron S. Meurer
If you already have a git repository for sympy, just do git remote add mattpap git://github.com/mattpap/sympy-polys.git Then do git fetch mattpap git checkout mattpap/polys5 git checkout -b polys5 Then you can just to git pull on that branch to update it, and repeat the above 3 for new branc

Re: [sympy] Re: polynomial irreducibility test

2010-02-03 Thread Kasun Samarasinghe
Thank you a lot. It worked On Wed, Feb 3, 2010 at 10:11 PM, Aaron S. Meurer wrote: > If you already have a git repository for sympy, just do > > git remote add mattpap git://github.com/mattpap/sympy-polys.git > > Then do > > git fetch mattpap > git checkout mattpap/polys5 > git checkout -b polys