[sympy] Re: RAM, stack, and polynomial manipulation

2010-04-16 Thread Ben Goodrich
Hi again, Things are a bit better now, but I still can't get as far as I'd like with the polys8 branch (as of a few days ago). I didn't rigorously benchmark the attached, but just a rough impression from looking at top implies that thing = first * second - third.sqr() where first, second, and

[sympy] Re: RAM, stack, and polynomial manipulation

2010-04-16 Thread Mateusz Paprocki
Hi, On Fri, Apr 16, 2010 at 10:16:58AM -0400, Ben Goodrich wrote: Hi again, Things are a bit better now, but I still can't get as far as I'd like with the polys8 branch (as of a few days ago). I didn't rigorously benchmark the attached, but just a rough impression from looking at top

Re: [sympy] Re: RAM, stack, and polynomial manipulation

2010-04-16 Thread Akshay Srinivasan
Forgot to expand the terms in the program, [neptune ~/bench] time g++ -lcln -lginac RAMspeed.cc -o RAMspeed real0m57.911s user0m55.526s sys0m0.780s [neptune ~/bench] time ./RAMspeed expr real0m11.153s user0m10.786s sys0m0.253s

[sympy] Re: RAM, stack, and polynomial manipulation

2010-04-16 Thread Ben Goodrich
Hi Mateusz, On Apr 16, 11:46 am, Mateusz Paprocki matt...@gmail.com wrote: SymPy can compute things like F*G - H**2 fast, unfortunately not on the user level. Below you will find a short tutorial how to do it fast but messy way. Thank you for the tutorial and all your work on the

[sympy] Re: RAM, stack, and polynomial manipulation

2010-04-16 Thread Ben Goodrich
Hi Akshay, On Apr 16, 11:51 am, Akshay Srinivasan akshaysriniva...@gmail.com wrote: Forgot to expand the terms in the program, [neptune ~/bench] time g++ -lcln -lginac RAMspeed.cc -o RAMspeed real    0m57.911s user    0m55.526s sys    0m0.780s

[sympy] Re: RAM, stack, and polynomial manipulation

2010-04-16 Thread Ben Goodrich
Hi Mateusz On Apr 16, 11:46 am, Mateusz Paprocki matt...@gmail.com wrote: SymPy can compute things like F*G - H**2 fast, unfortunately not on the user level. Below you will find a short tutorial how to do it fast but messy way. Lets assume you have polynomial-like expressions F, G, H. For my

Re: [sympy] Re: RAM, stack, and polynomial manipulation

2010-04-16 Thread Mateusz Paprocki
Hi, On 16 April 2010 13:03, Ben Goodrich goodrich@gmail.com wrote: Hi Mateusz On Apr 16, 11:46 am, Mateusz Paprocki matt...@gmail.com wrote: SymPy can compute things like F*G - H**2 fast, unfortunately not on the user level. Below you will find a short tutorial how to do it fast but

Re: [sympy] Prime Field Implementation

2010-04-16 Thread Aaron S. Meurer
Sorry, it still doesn't work for me. The problem is that you have abstractalgebra nested twice. Also, I think you might need to add something to the main sympy/__init__.py (assuming we want this imported with from sympy import *; do we?). The ./bin/strip_whitespace utility will help with

Re: [sympy] Prime Field Implementation

2010-04-16 Thread Kasun Samarasinghe
hi aaron will it convert the tab into four spaces if I run the strip utility? thanks kasun On Fri, Apr 16, 2010 at 10:20 PM, Aaron S. Meurer asmeu...@gmail.comwrote: Sorry, it still doesn't work for me. The problem is that you have abstractalgebra nested twice. Also, I think you might

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 On Fri, Apr 16, 2010 at 10:20 PM,

[sympy] Re: RAM, stack, and polynomial manipulation

2010-04-16 Thread Ben Goodrich
Hi Mateusz, On Apr 16, 4:10 pm, Mateusz Paprocki matt...@gmail.com wrote: What exactly is gens here? I thought it was supposed to be a list that contains all the symbols in the polynomials, but then I eventually run into this error

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 please have a look

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. here __init__.patch

Re: [sympy] Re: RAM, stack, and polynomial manipulation

2010-04-16 Thread Mateusz Paprocki
Hi, On 16 April 2010 14:39, Ben Goodrich goodrich@gmail.com wrote: Hi Mateusz, On Apr 16, 4:10 pm, Mateusz Paprocki matt...@gmail.com wrote: What exactly is gens here? I thought it was supposed to be a list that contains all the symbols in the polynomials, but then I eventually run

[sympy] Re: RAM, stack, and polynomial manipulation

2010-04-16 Thread Ben Goodrich
Hi Mateusz, On Apr 16, 6:43 pm, Mateusz Paprocki matt...@gmail.com wrote: This is all correct, because you are using top-level quo() function with FGH, which is a low-level polynomial representation. Ah, now I understand. Thanks. Ben -- You received this message because you are subscribed