[sympy] can we put applications in sympy

2010-04-22 Thread Kasun Samarasinghe
hi, i m working on some applications of Galois Field polynomials using sympy. (Mostly for illustration purposes). Is there a place for those in sympy code base? regards, kasun -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, sen

Re: [sympy] Prime Field Implementation

2010-04-19 Thread Kasun Samarasinghe
;> Use more descriptive messages than "Invalid Argument" for your errors. > >> For example, for this one, you might use "Argument of PrimeField must > be a > >> prime number (received 4)", or something similar. > >> In [22]: a > >> Out[

Re: [sympy] Prime Field Implementation

2010-04-18 Thread Kasun Samarasinghe
lsewhere, use one space around an =, such as "gf7 = > PrimeField(7)". > > I think this is almost ready. > > Aaron Meurer > On Apr 16, 2010, at 4:29 PM, Kasun Samarasinghe wrote: > > hi aaron, > > i managed to fix the doctest problem, here is the patch for tha

Re: [sympy] Prime Field Implementation

2010-04-18 Thread Kasun Samarasinghe
hi, I created a github account and a repository there. Then I added a remote repository using git remote add finitefield g...@github.com:k wsamarasin...@gmail.com/sympy_finitefields but when I trying to push my new branch to the git repository an error occurs. error is permission denied (public

Re: [sympy] extended euclid's algorithm

2010-04-18 Thread Kasun Samarasinghe
Yes, but i m not sure about the solution? On Sun, Apr 18, 2010 at 3:21 PM, David Joyner wrote: > On Sun, Apr 18, 2010 at 8:57 AM, Kasun Samarasinghe > wrote: > > hi, > > i m using igcdex for prime field multiplication inverse calculation. when > i > > call igcdex >

[sympy] extended euclid's algorithm

2010-04-18 Thread Kasun Samarasinghe
hi, i m using igcdex for prime field multiplication inverse calculation. when i call igcdex for (2,3) (which is in my case multiplicative inverse of 2 mod 3) returns -1, which is not correct for multiplicaitve inverse calculation. (even though igcdex it self is correct and returns right values)

Re: [sympy] Prime Field Implementation

2010-04-16 Thread Kasun Samarasinghe
hi aaron, i managed to fix the doctest problem, here is the patch for that part only. kasun On Sat, Apr 17, 2010 at 12:12 AM, Kasun Samarasinghe < kwsamarasin...@gmail.com> wrote: > I have fixed the nested problem and white spaces problem. In my machine it > passes the tests. >

Re: [sympy] Prime Field Implementation

2010-04-16 Thread Kasun Samarasinghe
I have fixed the nested problem and white spaces problem. In my machine it passes the tests. here __init__.patch is the import statement in sympy/__init__.py thank you, kasun On Fri, Apr 16, 2010 at 11:27 PM, Kasun Samarasinghe < kwsamarasin...@gmail.com> wrote: > also can you plea

Re: [sympy] Prime Field Implementation

2010-04-16 Thread Kasun Samarasinghe
also can you please have a look at my doctests, since it fails. thanks On Fri, Apr 16, 2010 at 11:20 PM, Kasun Samarasinghe < kwsamarasin...@gmail.com> wrote: > hi aaron > > will it convert the tab into four spaces if I run the strip utility? > > thanks > kasun > >

Re: [sympy] Prime Field Implementation

2010-04-16 Thread Kasun Samarasinghe
e 82, in test > assert False, message_tabs % (fname, idx+1) > AssertionError: File contains tabs instead of spaces: > /users/aaronmeurer/documents/python/sympy/sympy/sympy/abstractalgebra/abstractalgebra/finitefield.py, > line 11. > > Aaron Meurer > On Apr 15, 2010, at 5:49 PM

Re: [sympy] Prime Field Implementation

2010-04-15 Thread Kasun Samarasinghe
hi aaron, I managed to make it passed test, please give me the comment. attached the patch with this thank you kasun On Fri, Apr 16, 2010 at 12:31 AM, Ronan Lamy wrote: > Le jeudi 15 avril 2010 à 13:46 -0600, Aaron S. Meurer a écrit : > > - I think PrimeField should subclass from Expr or Basic

Re: [sympy] Prime Field Implementation

2010-04-15 Thread Kasun Samarasinghe
y file. > > Aaron Meurer > On Apr 15, 2010, at 4:10 PM, Kasun Samarasinghe wrote: > > i m having a problem with tests. When I run the test I get the intended > results from another python file. but when i run bin/test it fails? what can > be the possible reason. Also I get the error

Re: [sympy] Prime Field Implementation

2010-04-15 Thread Kasun Samarasinghe
, Apr 15, 2010 at 11:29 PM, Kasun Samarasinghe < kwsamarasin...@gmail.com> wrote: > hi aaron > > yes this is only the first part as a starting point. GF(p**n) will be > implemented later. > On sub classing, I think this is a standalone module, since its a different > algebrai

Re: [sympy] Prime Field Implementation

2010-04-15 Thread Kasun Samarasinghe
t it. > - What about GF(p**n), where p is prime and n is an integer? Does this > require more work to implement than just GF(p) (or is it just forthcoming)? > > Aaron Meurer > On Apr 15, 2010, at 2:39 PM, Kasun Samarasinghe wrote: > > > I changed according to the commen

Re: [sympy] Prime Field Implementation

2010-04-15 Thread Kasun Samarasinghe
I changed according to the comments. Please have a look, kasun On Thu, Apr 15, 2010 at 9:55 PM, Kasun Samarasinghe < kwsamarasin...@gmail.com> wrote: > hi, > > this is just the prime field implementation, which just provides the prime > field arithmetic and operations. There

Re: [sympy] Prime Field Implementation

2010-04-15 Thread Kasun Samarasinghe
point: > - How is this different from the GF implementation in polys? Should this > rather just be providing a user interface to that? > > Aaron Meurer > > On Apr 15, 2010, at 12:34 PM, Kasun Samarasinghe wrote: > > > Hi, > > > > I tried to implement Prime

[sympy] Prime Field Implementation

2010-04-15 Thread Kasun Samarasinghe
Hi, I tried to implement Prime Fields which is the first part of my GSOC project. I attached the patch with this. Please review it and comment. Thnak you, kasun -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy.

[sympy] adding packages to source repository

2010-04-14 Thread Kasun Samarasinghe
hi i added a package and files under it in sympy source repository. How can I patch the changes? kasun -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy...@googlegroups.com. To unsubscribe from this group, send e

[sympy] Extended Euclid's algorithm over modulo arithmetic

2010-04-14 Thread Kasun Samarasinghe
hi, In sympy number's module (sympy.core.numbers) extended gcd algorithm performs over normal arithmetic. Is there an implementation of it over modulo arithmetic in sympy? which means to find x and y such that a*x+b*y=gcd(a,b) modulo n? regards, kasun -- You received this message because you ar

Re: [sympy] gsoc students, patches

2010-04-13 Thread Kasun Samarasinghe
hi, i m searching for some open issues. While I m searching in the issue list, I would like to work on issues in galois polynomials if there are any. Please point me some I can work on. regards, kasun On 4/13/10, Ondrej Certik wrote: > Hi GSoC students, > > the next step that is required now f

Re: [sympy] What to do for GSoC

2010-04-05 Thread Kasun Samarasinghe
wrote: > On Mon, Apr 5, 2010 at 4:24 PM, Kasun Samarasinghe > wrote: > > Hi, > > > > this is an outline of the first idea i m working on gsoc. Coding theory > part > > is not yet worked out, for that I need some guidance from david. Please > give > > me

Re: [sympy] What to do for GSoC

2010-04-05 Thread Kasun Samarasinghe
th has done this > http://nzmath.sourceforge.net/wiki/?finitefield.py/ExtendedField > Anyway, what you have sounds fine so far. > > On Sat, Apr 3, 2010 at 2:02 PM, Kasun Samarasinghe > wrote: > > hi, > > > ... > > > > In the finite field implementation, I thought of these steps,

Re: [sympy] Re: Irreducibility polynomials

2010-04-04 Thread Kasun Samarasinghe
but can we spedify the degree in that? On Mon, Apr 5, 2010 at 12:38 AM, Mateusz Paprocki wrote: > Hi, > > On Mon, Apr 05, 2010 at 12:27:38AM +0200, Kasun Samarasinghe wrote: > > hi, > > > > Is there a function in sympy to construct an irreducible polynomial ove

[sympy] Irreducibility polynomials

2010-04-04 Thread Kasun Samarasinghe
hi, Is there a function in sympy to construct an irreducible polynomial over a finite field of a given degree? thank you kasun -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy...@googlegroups.com. To unsubscribe

Re: [sympy] What to do for GSoC

2010-04-03 Thread Kasun Samarasinghe
Apr 2, 2010 at 10:35 AM, Kasun Samarasinghe > wrote: > > hi david, > > > > can you please give me a reference to forward and reverse cyclic > > matrix constructions. > > I m a bit confused about it? please give me some reference to look into > > > http://

Re: [sympy] What to do for GSoC

2010-04-02 Thread Kasun Samarasinghe
hi david, can you please give me a reference to forward and reverse cyclic matrix constructions. I m a bit confused about it? please give me some reference to look into regards, kasun On 4/1/10, David Joyner wrote: > On Thu, Apr 1, 2010 at 10:53 AM, Kasun Samarasinghe > wrote: >&g

Re: [sympy] Re: What to do for GSoC

2010-04-01 Thread Kasun Samarasinghe
i started working on the preliminary work. I will update you. I also not sure about how mentoring process works. kasun On Thu, Apr 1, 2010 at 10:28 PM, Vinzent Steinberg < vinzent.steinb...@googlemail.com> wrote: > On Apr 1, 11:08 am, Kasun Samarasinghe > wrote: > > hi, &g

Re: [sympy] What to do for GSoC

2010-04-01 Thread Kasun Samarasinghe
se anyone implementing that. > So at least I don't think your previous suggestion is a bad idea at all. > > On Thu, Apr 1, 2010 at 5:08 AM, Kasun Samarasinghe > wrote: > > hi, > > > > It seems the above suggestion I made in the previous mail is not that > > int

Re: [sympy] What to do for GSoC

2010-04-01 Thread Kasun Samarasinghe
an important contribution? regards, Kasun On Mon, Mar 29, 2010 at 11:21 AM, Kasun Samarasinghe < kwsamarasin...@gmail.com> wrote: > hI, > > I m interested in implementing finite fields separately for SymPy. > Currently there is no separate finite field implementation and g

Re: [sympy] What to do for GSoC

2010-03-29 Thread Kasun Samarasinghe
hI, I m interested in implementing finite fields separately for SymPy. Currently there is no separate finite field implementation and galois polynomial manipulations does it internally. But with a separate finite field implementation there can be several other implementations over it. For example

Re: [sympy] Re: Irreducibility test

2010-03-16 Thread Kasun Samarasinghe
hi, hope u havent seen my last mail about the irreduciblity algorithm problem, please have a look on that so that i can complete the my patch and send for the review, regards, kasun On Sat, Mar 13, 2010 at 10:44 AM, Kasun Samarasinghe < kwsamarasin...@gmail.com> wrote: > hi, >

Re: [sympy] Re: Irreducibility test

2010-03-13 Thread Kasun Samarasinghe
: return False am i doing anything wrong here? regards, kasun On Tue, Mar 9, 2010 at 8:52 PM, Mateusz Paprocki wrote: > Hi, > > On Tue, Mar 09, 2010 at 08:36:18PM +0100, Kasun Samarasinghe wrote: > > Hi, > > > > I m working on the comments, I think i can f

Re: [sympy] Re: Irreducibility test

2010-03-12 Thread Kasun Samarasinghe
ank you, Kasun On Tue, Mar 9, 2010 at 1:07 PM, Mateusz Paprocki wrote: > Hi, > > On Sun, Mar 07, 2010 at 02:07:29PM +0100, Kasun Samarasinghe wrote: > > hi, > > I have attached the patch with this for rabin's test for irreducibility > > test. Please give me

Re: [sympy] Re: Irreducibility test

2010-03-10 Thread Kasun Samarasinghe
i figured out the way. I will send the patch for review. kasun On Tue, Mar 9, 2010 at 9:02 PM, Kasun Samarasinghe wrote: > but i need to check the gcd for all ni, where ni=n/pi. here pi are the > prime factors of n. So > i have to call gf_pow for all such numbers. what can i do in

Re: [sympy] Re: Irreducibility test

2010-03-09 Thread Kasun Samarasinghe
> On Tue, Mar 9, 2010 at 1:07 PM, Mateusz Paprocki > wrote: > > > > > Hi, > > > > > > On Sun, Mar 07, 2010 at 02:07:29PM +0100, Kasun Samarasinghe wrote: > > > > hi, > > > > I have attached the patch with this for rabin's test for

Re: [sympy] Re: Irreducibility test

2010-03-09 Thread Kasun Samarasinghe
= {6,4}. Is it because it raises to a large power or is it a problem with my code. Kasun On Tue, Mar 9, 2010 at 1:07 PM, Mateusz Paprocki wrote: > Hi, > > On Sun, Mar 07, 2010 at 02:07:29PM +0100, Kasun Samarasinghe wrote: > > hi, > > I have attached the patch with this

Re: [sympy] Irreducibility test

2010-03-08 Thread Kasun Samarasinghe
: > > On Mar 8, 2010, at 4:33 AM, Priit Laes wrote: > > > Ühel kenal päeval, P, 2010-03-07 kell 14:07, kirjutas Kasun > > Samarasinghe: > >> hi, > >> I have attached the patch with this for rabin's test for > >> irreducibility test

Re: [sympy] Irreducibility test

2010-03-08 Thread Kasun Samarasinghe
, P, 2010-03-07 kell 14:07, kirjutas Kasun > Samarasinghe: > > hi, > > I have attached the patch with this for rabin's test for > > irreducibility test. Please give me some comments on that. > > > +def gf_irreducible_rabin(f, p, K): > > +""&quo

Re: [sympy] Irreducibility test

2010-03-07 Thread Kasun Samarasinghe
hi, I have attached the patch with this for rabin's test for irreducibility test. Please give me some comments on that. Kasun On Sat, Mar 6, 2010 at 8:32 AM, Ondrej Certik wrote: > On Fri, Mar 5, 2010 at 3:00 PM, Kasun Samarasinghe > wrote: > > hi, > > how can i patch

Re: [sympy] Irreducibility test

2010-03-05 Thread Kasun Samarasinghe
hi, how can i patch the modification i done using git? kasun On Tue, Mar 2, 2010 at 11:20 PM, Ondrej Certik wrote: > On Tue, Mar 2, 2010 at 2:10 PM, Kasun Samarasinghe > wrote: > > Hi, > > I have implemented the rabis's irreducibility test in galois tool. How > ca

[sympy] Irreducibility test

2010-03-02 Thread Kasun Samarasinghe
Hi, I have implemented the rabis's irreducibility test in galois tool. How can I send it to you all to get comments. Regards Kasun -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy...@googlegroups.com. To unsubsc

Re: [sympy] Prime divisors

2010-02-17 Thread Kasun Samarasinghe
i think i have taken it wrong. Both of them are the same and i can use factorint() kasun On Thu, Feb 18, 2010 at 1:43 AM, Kasun Samarasinghe < kwsamarasin...@gmail.com> wrote: > thnak you Aaron. isnt factorint() is to get the prime factors of a given > number. But I want > get th

Re: [sympy] Prime divisors

2010-02-17 Thread Kasun Samarasinghe
thnak you Aaron. isnt factorint() is to get the prime factors of a given number. But I want get the divisors of a number which are prime? Kasun On Thu, Feb 18, 2010 at 1:37 AM, Aaron S. Meurer wrote: > factorint() > > Aaron Meurer > On Feb 17, 2010, at 5:32 PM, Kasun Samara

[sympy] Prime divisors

2010-02-17 Thread Kasun Samarasinghe
Hi, is there a function in sympy number theory to get the prime divisors of a given number, other than taking the divisors and checking for primality? Thank you, Kasun -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email

Re: [sympy] Duplicated signature error

2010-02-10 Thread Kasun Samarasinghe
Thank you. I think it is a pydev error. Kasun On Wed, Feb 10, 2010 at 8:41 PM, Ondrej Certik wrote: > On Wed, Feb 10, 2010 at 11:38 AM, Kasun Samarasinghe > wrote: > > Hi, > > > > I m in windows and trying to import the sympy source to eclipse's pydev &g

[sympy] Duplicated signature error

2010-02-10 Thread Kasun Samarasinghe
Hi, I m in windows and trying to import the sympy source to eclipse's pydev plugin. I get errors as "Duplicated signature" for many methods. eclipse uses python 2.6. Sympy version is a newest check out. What can I do for this? Kasun -- You received this message because you are subscribed to the

Re: [sympy] GSoC 2010

2010-02-10 Thread Kasun Samarasinghe
That is interesting I worked with web services before, specially with apache axis and apache synapse. I can git it a try Kasun On Wed, Feb 10, 2010 at 7:52 PM, Ondrej Certik wrote: > On Wed, Jan 27, 2010 at 2:39 PM, Ondrej Certik wrote: > > On Wed, Jan 27, 2010 at 2:37 PM, Kasun Sam

Re: [sympy] Re: polynomial irreducibility test

2010-02-08 Thread Kasun Samarasinghe
= 1 > (mod p) > > Note that when you have n == 1, then it is just x**p - x. > > I can summarize the proof from the text if you are interested. > > Aaron Meurer > On Feb 7, 2010, at 3:51 PM, Kasun Samarasinghe wrote: > > Hi, > > Could you please explain the basis

Re: [sympy] Re: polynomial irreducibility test

2010-02-07 Thread Kasun Samarasinghe
Hi, Could you please explain the basis for the implemented irreducibility test. Is it polynomial overr GF(p) is reducible if gcd(f, x^p - x (mod p)) = 1? Regards, Kasun On Wed, Feb 3, 2010 at 3:56 PM, Mateusz Paprocki wrote: > Hi, > > On Wed, Feb 03, 2010 at 02:06:10AM +01

Re: [sympy] Re: polynomial irreducibility test

2010-02-03 Thread Kasun Samarasinghe
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 branches. > > Hope that helps. > > Aaron Meurer > > On Feb 3, 2010, at 2:08 PM, Kasun Samarasinghe wrote: > > But it does not checks out t

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

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, >

[sympy] polynomial irreducibility test

2010-02-02 Thread Kasun Samarasinghe
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 interesting one. Can we implement that in sympy? Regards, Kasun -- You

Re: [sympy] Re: GSoC 2010

2010-01-30 Thread Kasun Samarasinghe
is some finite field stuff > internally in the Polys module. See the Galois_Polys file, and also the new > module (issue 1598). > > Aaron Meurer > On Jan 29, 2010, at 5:46 PM, Kasun Samarasinghe wrote: > > Thank you. So I will start with your steps. Update you on the progress

Re: [sympy] Re: GSoC 2010

2010-01-29 Thread Kasun Samarasinghe
Thank you. So I will start with your steps. Update you on the progress Kasun On Sat, Jan 30, 2010 at 1:41 AM, David Joyner wrote: > On Fri, Jan 29, 2010 at 7:34 PM, Kasun Samarasinghe > wrote: > > No, I ment a project idea where i can work with Sympy with regard to > co

Re: [sympy] Re: GSoC 2010

2010-01-29 Thread Kasun Samarasinghe
No, I ment a project idea where i can work with Sympy with regard to coding theory? On Sat, Jan 30, 2010 at 1:25 AM, David Joyner wrote: > On Fri, Jan 29, 2010 at 5:17 PM, Kasun Samarasinghe > wrote: > > david, > > > > I m looking out and reading several ideas the

Re: [sympy] Re: GSoC 2010

2010-01-29 Thread Kasun Samarasinghe
david, I m looking out and reading several ideas these days. Do you have any idea related to Coding where I can start working on? regards, Kasun On Thu, Jan 28, 2010 at 9:38 PM, Ondrej Certik wrote: > On Thu, Jan 28, 2010 at 12:23 PM, Vinzent Steinberg > wrote: > > Tensors could be also a gre

Re: [sympy] GSoC 2010

2010-01-28 Thread Kasun Samarasinghe
wnload the source and play around with > it, seeing what sorts of things are not implemented yet, or not implemented > well. > > What are you studying at KTH, by the way? > > Aaron Meurer > On Jan 27, 2010, at 3:37 PM, Kasun Samarasinghe wrote: > > Hi, > > I m Ka

Re: [sympy] GSoC 2010

2010-01-27 Thread Kasun Samarasinghe
related to coding theory since I have some background in it as well. Regards, Kasun On Wed, Jan 27, 2010 at 11:39 PM, Ondrej Certik wrote: > On Wed, Jan 27, 2010 at 2:37 PM, Kasun Samarasinghe > wrote: > > Hi, > > > > I m Kasun, a master student at KTH Sweden. I m also

Re: [sympy] GSoC 2010

2010-01-27 Thread Kasun Samarasinghe
Hi, I m Kasun, a master student at KTH Sweden. I m also interested in applying for a GSoc. Will the possible project ideas on sympy be posted? Regards, Kasun On Wed, Jan 27, 2010 at 11:25 PM, Aaron S. Meurer wrote: > I made a wiki page, which is mostly a copy of last years page, here: > http://

Re: [sympy] Infinite integrals

2010-01-10 Thread Kasun Samarasinghe
Thank you for the reply. Actually I was solving a problem where i need to integrate from minus infinity to plus infinity. Can I do that in the way you mentioned? Kasun On Sun, Jan 10, 2010 at 3:32 PM, Ondrej Certik wrote: > On Sun, Jan 10, 2010 at 6:07 AM, Kasun Samarasinghe > wrote:

[sympy] Infinite integrals

2010-01-10 Thread Kasun Samarasinghe
Hi all, Is there a way we can evaluate infinite integrals in SymPy? Kasun -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy...@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@go