[sympy] Re: is_* methods on classes that are not subclasses of Basic

2008-11-02 Thread Brian Granger
On Fri, Oct 31, 2008 at 1:03 AM, Andy Ray Terrel <[EMAIL PROTECTED]> wrote: > > On Fri, Oct 31, 2008 at 6:39 AM, Brian Granger <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I am continuing some work that Ondrej and I started this week >> implementing quantum operators in sympy. I am building a Dagge

[sympy] Re: Sympy design question about encapsulation

2008-11-02 Thread Brian Granger
>> But, in sympy, the printer class has all of these methods for all the >> classes that need to be printed. Why is it done this way? > > See issue 908 for some details. ( > http://code.google.com/p/sympy/issues/detail?id=908 ) I skimmed quickly through some of this and it does sound like there

[sympy] Re: A sigh about signs

2008-11-02 Thread Vinzent Steinberg
On Nov 2, 3:30 am, Alan Bromborsky <[EMAIL PROTECTED]> wrote: > Suppose you have a calculation where you are simplifying > r*sin(theta)/sqrt(r**2*sin(theta)**2). Is there a way of specifying > that r > 0 and 0 < theta < pi so that the result will simplify to 1 > rather than > r*sin(theta)/(|r||si