[sympy] Preventing expansion

2009-10-11 Thread Luke
I feel like I've seen code for this on the mailing list or IRC but after some searching wasn't able to find it. Is it possible to prevent something like (x*y)**2 from being expanded to x**2*y**2? I tried an expand=False option to Mul and Pow, as in: Mul(x*y, x*y, expand=False) Pow(x*y, 2, expand

[sympy] Re: Preventing expansion

2009-10-11 Thread Aaron S. Meurer
I think Chris Smith (smichr) is working on this on one of his branches. Aaron Meurer On Oct 11, 2009, at 1:11 AM, Luke wrote: > > I feel like I've seen code for this on the mailing list or IRC but > after some searching wasn't able to find it. > > Is it possible to prevent something like (x*y)**

[sympy] dealing with small parameters

2009-10-11 Thread klmn
0) I have recently discovered Sympy to myself and am pleased using it. It is already rich with many interesting capabilities. Thanks a lot for it! 1) I am trying to solve symbolically an eigen-problem depending on a small parameter. For my 2x2 matrix this takes couple of hours. For a 3x3 matrix t

[sympy] Re: dealing with small parameters

2009-10-11 Thread Fredrik Johansson
On Sun, Oct 11, 2009 at 11:33 PM, klmn wrote: > > 0) I have recently discovered Sympy to myself and am pleased using it. > It is already rich with many interesting capabilities. Thanks a lot > for it! > > 1) I am trying to solve symbolically an eigen-problem depending on a > small parameter. For