Re: [sympy] Prototype risch_integrate() function ready for testing

2010-08-19 Thread Christian Muise
I'm having issues with the branch: from sympy import * Traceback (most recent call last): File input, line 1, in module File /usr/local/lib/python2.6/dist-packages/sympy/__init__.py, line 24, in module from polys import * File

Re: [sympy] Prototype risch_integrate() function ready for testing

2010-08-19 Thread Christian Muise
Apparently the setup.py is dated: cjmu...@haz:~/Projects/sympy$ git diff diff --git a/setup.py b/setup.py index bdec104..538904d 100755 --- a/setup.py +++ b/setup.py @@ -71,6 +71,7 @@ 'sympy.mpmath.matrices', 'sympy.mpmath.calculus', 'sympy.polys', +'sympy.polys.domains',

Re: [sympy] Prototype risch_integrate() function ready for testing

2010-08-19 Thread Christian Muise
So it's been about 6 years since I've done calculus, and in fact the only math I see from day to day is pretty much 100% symbolic. That being said, I've attached a script that may help, or at least satisfy some curiosity. It's crude, but simple enough to toy around with and checks that the

Re: [sympy] Prototype risch_integrate() function ready for testing

2010-08-19 Thread Aaron S. Meurer
This is an artifact from Mateusz's polys11, which I am merged into. There are some other bugs from that branch that you might run into, such as if you try using a ground type other than gmpy or a python other than 2.7. Basically, he made some changes to the domains that aren't quite ready yet,

Re: [sympy] Prototype risch_integrate() function ready for testing

2010-08-19 Thread Christian Muise
By the way, why do you install the package? There is no need to do that. Just run ./bin/isympy from the sympy directory. Habit ;). I like running my python files from the command line, and `bin/isympy ri.py` executes the file before the preface for isympy (setting up the environment,

Re: [sympy] Prototype risch_integrate() function ready for testing

2010-08-19 Thread Aaron S. Meurer
Good idea. The ability to generate random expressions is very useful. We should make this more general and add it to sympy/utilities/iterables.py. I had to make a few modifications to your script. First off, you were testing if integral(function.diff(x)) == function, which has two problems:

Re: [sympy] Prototype risch_integrate() function ready for testing

2010-08-19 Thread Aaron S. Meurer
On Aug 19, 2010, at 1:18 PM, Christian Muise wrote: Good idea. The ability to generate random expressions is very useful. We should make this more general and add it to sympy/utilities/iterables.py. It's mesmerizing...may make the thing into a screen saver ;). I had to make a few

Re: [sympy] Prototype risch_integrate() function ready for testing

2010-08-19 Thread Ondrej Certik
On Thu, Aug 19, 2010 at 12:18 PM, Christian Muise christian.mu...@gmail.com wrote: Good idea.  The ability to generate random expressions is very useful.  We should make this more general and add it to sympy/utilities/iterables.py. Yes, definitely. We need such things for all kinds of things in

Re: [sympy] Prototype risch_integrate() function ready for testing

2010-08-18 Thread Aaron S. Meurer
So a few words. First, if you just pass it a strictly rational function, it is nothing new. It will return the exact same result as integrate() because it uses the exact same function, which is the already existing ratint() (however, there is a fix in my branch for rational functions with

[sympy] Prototype risch_integrate() function ready for testing

2010-08-05 Thread Aaron S. Meurer
(copied from issue 2010) I have ready in my integration3 branch a prototype risch_integrate() function, that is a user-level function for the full Risch Algorithm I have been implementing this summer. Pull from http://github.com/asmeurer/sympy/tree/integration3 . This is NOT ready to go in.