[sympy] RoofOf Modular Exponentiation

2014-11-26 Thread Chris Swierczewski
Hello, Has work has been done on modular reduction of `RootOf` objects? (If not, I would like to begin implementing this functionality!) What I mean is this: import sympy from sympy.abc import x f = x**3 + 2*x + 1 a = sympy.RootOf(f,0) b = a**3 Since $f(a) = 0$ by definition it would be nice

Re: [sympy] RoofOf Modular Exponentiation

2014-11-26 Thread Ondřej Čertík
On Wed, Nov 26, 2014 at 11:31 AM, Chris Swierczewski cswie...@gmail.com wrote: Hello, Has work has been done on modular reduction of `RootOf` objects? (If not, I would like to begin implementing this functionality!) What I mean is this: import sympy from sympy.abc import x f = x**3 + 2*x +

Re: [sympy] RoofOf Modular Exponentiation

2014-11-26 Thread Chris Swierczewski
Hello, Thanks for the quick response! This is what I get: ... So looks like it hasn't been implemented yet. Right on. I'll start poking around, then. Good question. First, I would implement RootOf.mypow(n) and see if you can figure out how to get the answer you want. That's the hard part.

Re: [sympy] RoofOf Modular Exponentiation

2014-11-26 Thread Ondřej Čertík
Hi Chris, On Wed, Nov 26, 2014 at 11:56 AM, Chris Swierczewski cswie...@gmail.com wrote: Hello, Thanks for the quick response! This is what I get: ... So looks like it hasn't been implemented yet. Right on. I'll start poking around, then. Good question. First, I would implement

Re: [sympy] RoofOf Modular Exponentiation

2014-11-26 Thread Aaron Meurer
There's a decent chance this algorithm is already implemented and just not integrated into the RootOf object, so I would search around the polys code first. Aaron Meurer On Wed, Nov 26, 2014 at 12:17 PM, Ondřej Čertík ondrej.cer...@gmail.com wrote: Hi Chris, On Wed, Nov 26, 2014 at 11:56 AM,

Re: [sympy] RoofOf Modular Exponentiation

2014-11-26 Thread Chris Swierczewski
Hello Aaron, There's a decent chance this algorithm is already implemented and just not integrated into the RootOf object, so I would search around the polys code first. Thanks for the tip. I've been getting to know the `rem()` and `reduce()` functions a little more. From what I've seen so

Re: [sympy] Re: Windows, 0.7.6, fourier_transform error

2014-11-26 Thread Colin Macdonald
On 24/11/14 19:45, Aaron Meurer wrote: Hmm, I think py2exe changes some behavior of the interpreter. I've seen some issues on StackOverflow in the past where it couldn't compile SymPy, for instance. In this case, it looks like it sets __doc__ on a method to be None instead of the docstring.

Re: [sympy] Re: Windows, 0.7.6, fourier_transform error

2014-11-26 Thread Colin Macdonald
On 24/11/14 18:12, Abhas Bhattacharya wrote: Anyway, figured that out. And everything seems to work fine. This is what I get. Attached image. Thank you. Very strange! I run exactly that and I get the error. (If easy enough or if you are intrigued, would you mind zipping up your

Re: [sympy] Re: Windows, 0.7.6, fourier_transform error

2014-11-26 Thread Colin Macdonald
On 26/11/14 22:11, Colin Macdonald wrote: On 24/11/14 18:12, Abhas Bhattacharya wrote: Anyway, figured that out. And everything seems to work fine. This is what I get. Attached image. Thank you. Very strange! I run exactly that and I get the error. (If easy enough or if you are

Re: [sympy] Re: Windows, 0.7.6, fourier_transform error

2014-11-26 Thread Aaron S. Meurer
The exe installer is built using the standard setup.py command. bdist_win32 or something like that. By the way, I forgot that Matthew Brett has a bot that should have build Windows installers for this release. I'll need to check on it and see if they work. Aaron Meurer On Nov 26, 2014, at

[sympy] Writing a fast pattern matcher, updates and questions

2014-11-26 Thread James Crist
All, In my spare time, I've been working on implementing a fast pattern matcher that accounts for Associative and Commutative symbols. It's going to be a while before I'm ready to release the code (it needs some serious cleanup), but as of now it is partly functional. Some notation: T = set

Re: [sympy] feedback for GSOC 2012 idea

2014-11-26 Thread Arie Lakeman
Hi, has anything more happened on this? In particular I'm interested in any Latex parsing that can be done. I notice the github page https://github.com/sympy/sympy/wiki/Parsing hasn't been updated in 2 years. On Monday, 19 March 2012 09:52:14 UTC+13, Joachim Durchholz wrote: Am 18.03.2012

Re: [sympy] feedback for GSOC 2012 idea

2014-11-26 Thread Aaron Meurer
No projects on parsing were ever accepted for GSoC. It is still something that we want to improve, but no major work has been done on it. Aaron Meurer On Wed, Nov 26, 2014 at 7:15 PM, Arie Lakeman arie.lake...@gmail.com wrote: Hi, has anything more happened on this? In particular I'm

Re: [sympy] Writing a fast pattern matcher, updates and questions

2014-11-26 Thread Aaron Meurer
On Wed, Nov 26, 2014 at 4:19 PM, James Crist crist...@umn.edu wrote: All, In my spare time, I've been working on implementing a fast pattern matcher that accounts for Associative and Commutative symbols. It's going to be a while before I'm ready to release the code (it needs some serious

Re: [sympy] New to sympy: Implement Spherical Coordinates in Vector module

2014-11-26 Thread Aaron Meurer
On Tue, Nov 25, 2014 at 1:58 AM, Francesco Bonazzi franz.bona...@gmail.com wrote: On Wednesday, November 19, 2014 11:17:24 PM UTC+1, Jason Moore wrote: Sachin Joglekar developed the vector package this past summer. I was his GSoC mentor on the project. You can check out this implemented of