[sympy] GSOC idea, better CSE

2012-03-20 Thread Andy R. Terrel
This seems doable and our cse algorithms are somewhat bad. Hosengadi et al 2006: http://cseweb.ucsd.edu/~kastner/papers/tcad06-poly_factorization_cse.pdf -- Andy -- You received this message because you are subscribed to the Google Groups "sympy" group. To view this discussion on the web vi

[sympy] converting exponentiation to use pow in tostr

2008-09-29 Thread Andy R. Terrel
Hello, I was trying to get sympy to write out some test problems for my code in c++. The only problem I have is the exponentiation operator **. I can change my core.power.Pow.tostr to use pow(%s,%s) instead of %s** %s , but this isn't usable by others. I also wrote a routine to walk the args t

[sympy] Re: converting exponentiation to use pow in tostr

2008-09-29 Thread Andy R. Terrel
Hmm updated my ancient code and got this to work: class CppPrinter(printing.str.StrPrinter): def _print_Pow(self, expr): PREC = printing.precedence.precedence(expr) if expr.exp is S.NegativeOne: return '1/%s'%(self.parenthesize(expr.base, PREC)) else:

[sympy] testing changes

2008-10-18 Thread Andy R. Terrel
Is there an easy way to only run a specific set of tests, e.g. all the ones in sympy/functions/elementary/tests? It seems to me that all the tests are really functional tests (as in the make sure sympy is functionally doing the right thing). Are there any tests that are more performance tests an

[sympy] Re: preliminary Mathematica like docs

2008-11-16 Thread Andy R. Terrel
So having better documentation is great! But maintaining this will be really difficult, it seems with the little documentation there is I find errors. Is it worth thinking about how to get some of this automated from the module doc strings? -- Andy --~--~-~--~~~---~--~