[sage-support] Re: How to do: is_Integer(sqrt(a^2+b^2))

2008-09-26 Thread Martin Albrecht
> >> These is_* sure are causing a lot of confusion lately... > > > > Indeed! I like Mike Hansen's (or your) proposal to get > > rid of them all from the global namespace, and replace > > them only by "is_lowercase_method_name" functions > > that are all conceptually meaningful. Of course leave

[sage-support] Re: How to do: is_Integer(sqrt(a^2+b^2))

2008-09-26 Thread mabshoff
On Sep 26, 12:06 am, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > > Indeed!  I like Mike Hansen's (or your) proposal to get > > rid of them all from the global namespace, and replace > > them only by "is_lowercase_method_name" functions > > that are all conceptually meaningful.   Of course le

[sage-support] Re: How to do: is_Integer(sqrt(a^2+b^2))

2008-09-26 Thread Robert Bradshaw
On Sep 25, 2008, at 6:11 PM, William Stein wrote: > > On Thu, Sep 25, 2008 at 6:06 PM, Robert Bradshaw > <[EMAIL PROTECTED]> wrote: >> >> >> On Sep 25, 2008, at 5:43 PM, William Stein wrote: >> >>> >>> On Thu, Sep 25, 2008 at 5:33 PM, Quicksilver_Johny >>> <[EMAIL PROTECTED]> wrote: If

[sage-support] Re: How to do: is_Integer(sqrt(a^2+b^2))

2008-09-25 Thread William Stein
On Thu, Sep 25, 2008 at 6:06 PM, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > > > On Sep 25, 2008, at 5:43 PM, William Stein wrote: > >> >> On Thu, Sep 25, 2008 at 5:33 PM, Quicksilver_Johny >> <[EMAIL PROTECTED]> wrote: >>> >>> If c=sqrt(a^2+b^2) >>> How would I check if c is an integer in order

[sage-support] Re: How to do: is_Integer(sqrt(a^2+b^2))

2008-09-25 Thread Robert Bradshaw
On Sep 25, 2008, at 5:43 PM, William Stein wrote: > > On Thu, Sep 25, 2008 at 5:33 PM, Quicksilver_Johny > <[EMAIL PROTECTED]> wrote: >> >> If c=sqrt(a^2+b^2) >> How would I check if c is an integer in order to get a true/false >> value. >> I tried is_Integer(ZZ(c)), this returns true when c is

[sage-support] Re: How to do: is_Integer(sqrt(a^2+b^2))

2008-09-25 Thread William Stein
On Thu, Sep 25, 2008 at 5:33 PM, Quicksilver_Johny <[EMAIL PROTECTED]> wrote: > > If c=sqrt(a^2+b^2) > How would I check if c is an integer in order to get a true/false > value. > I tried is_Integer(ZZ(c)), this returns true when c is an integer, but > ZZ(c) returns an error when c is not an integ