[sympy] Re: .is_Number .is_number and .is_NumberSymbol attributes

2009-06-18 Thread Ondrej Certik
On Thu, Jun 18, 2009 at 4:05 PM, Fabian Pedregosa wrote: > > Luke wrote: >> Fabian, >>   I'm working on the eval methods of the trig functions.  There is >> some inconsistent behavior here with regard to checking if the >> argument of the function 1) .is_Number and 2) .is_number.  For >> example,

[sympy] Re: .is_Number .is_number and .is_NumberSymbol attributes

2009-06-18 Thread Fabian Pedregosa
Luke wrote: > Fabian, > I'm working on the eval methods of the trig functions. There is > some inconsistent behavior here with regard to checking if the > argument of the function 1) .is_Number and 2) .is_number. For > example, sin only has: > if arg.is_Number: > ... > > but for example, asin

[sympy] Re: .is_Number .is_number and .is_NumberSymbol attributes

2009-06-18 Thread Luke
Fabian, I'm working on the eval methods of the trig functions. There is some inconsistent behavior here with regard to checking if the argument of the function 1) .is_Number and 2) .is_number. For example, sin only has: if arg.is_Number: ... but for example, asin has: if arg.is_Number: ... if

[sympy] Re: .is_Number .is_number and .is_NumberSymbol attributes

2009-05-25 Thread Ondrej Certik
On Mon, May 25, 2009 at 3:25 PM, Fabian Pedregosa wrote: > > Luke wrote: >> Ok, that makes more sense now.  Thanks for the clarification. >> ~Luke >> >> On May 25, 1:05 pm, Abderrahim Kitouni wrote: >>> On Mon, 25 May 2009 12:48:09 -0700 (PDT)Luke wrote: >>> 1)  Why are there both 'is_Numb

[sympy] Re: .is_Number .is_number and .is_NumberSymbol attributes

2009-05-25 Thread Fabian Pedregosa
Luke wrote: > Ok, that makes more sense now. Thanks for the clarification. > ~Luke > > On May 25, 1:05 pm, Abderrahim Kitouni wrote: >> On Mon, 25 May 2009 12:48:09 -0700 (PDT)Luke wrote: >> >>> 1) Why are there both 'is_Number' and a 'is_number' methods, and why >>> do they return different

[sympy] Re: .is_Number .is_number and .is_NumberSymbol attributes

2009-05-25 Thread Luke
Ok, that makes more sense now. Thanks for the clarification. ~Luke On May 25, 1:05 pm, Abderrahim Kitouni wrote: > On Mon, 25 May 2009 12:48:09 -0700 (PDT)Luke wrote: > > > 1)  Why are there both 'is_Number' and a 'is_number' methods, and why > > do they return different results? > > is_number

[sympy] Re: .is_Number .is_number and .is_NumberSymbol attributes

2009-05-25 Thread Abderrahim Kitouni
On Mon, 25 May 2009 12:48:09 -0700 (PDT) Luke wrote: > > 1) Why are there both 'is_Number' and a 'is_number' methods, and why > do they return different results? is_number == True means that this is a number (in the mathematical sense). is_Number == True means that this is a Number (or subclass