[sage-support] Re: n() method for rational numbers

2007-09-01 Thread William Stein
On 8/31/07, Ted Kosan <[EMAIL PROTECTED]> wrote: > > I am using 2.8.3 and the N() method is working well for me for rational > numbers. > > However, I am now thinking that a lower case n() would be better after > all because it conforms to the Python method naming convention. When > a = 1/2...

[sage-support] Re: n() method for rational numbers

2007-08-31 Thread Ted Kosan
I am using 2.8.3 and the N() method is working well for me for rational numbers. However, I am now thinking that a lower case n() would be better after all because it conforms to the Python method naming convention. When a = 1/2... a. is entered in the notebook, the N() method is the only meth

[sage-support] Re: n() method for rational numbers

2007-08-28 Thread Ted Kosan
William wrote: >(2) Should it be lower case n() or upper case N()? I like the upper case N() because it matches the N() function. Ted --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, sen

[sage-support] Re: n() method for rational numbers

2007-08-28 Thread William Stein
On 8/28/07, Ted Kosan <[EMAIL PROTECTED]> wrote: > My request for adding a n() method for rationals is an extension of a > request I made earlier: > > On 7/10/07, Ted Kosan <[EMAIL PROTECTED]> wrote: > >> I have found myself using numerical_approx() instead of RR() because > >> it is also placed a

[sage-support] Re: n() method for rational numbers

2007-08-28 Thread Ted Kosan
William wrote: > Actually, I don't see a compelling reason to add it for rationals since it > is already available as a function: >sage: N(1/2,10) >0.50 >sage: N(2/3,10) >0.67 >sage: N(2/3,50) >0.67 My request for adding a n() method for rationals is an extens

[sage-support] Re: n() method for rational numbers

2007-08-28 Thread William Stein
On 8/28/07, Ted Kosan <[EMAIL PROTECTED]> wrote: > > The n() method is not currently defined for rational numbers: > > x = 1/2 > x.n() > > Exception (click to the left for traceback): > ... > AttributeError: 'sage.rings.rational.Rational' object has no attribute 'n' > > > Would it be possible to a

[sage-support] Re: n() method for rational numbers

2007-08-28 Thread mabshoff
Ted Kosan wrote: > The n() method is not currently defined for rational numbers: > > x = 1/2 > x.n() > > Exception (click to the left for traceback): > ... > AttributeError: 'sage.rings.rational.Rational' object has no attribute 'n' > > > Would it be possible to add it? > I am sure it will happe

[sage-support] Re: n() method for rational numbers

2007-08-28 Thread mabshoff
Ted Kosan wrote: > The n() method is not currently defined for rational numbers: > > x = 1/2 > x.n() > > Exception (click to the left for traceback): > ... > AttributeError: 'sage.rings.rational.Rational' object has no attribute 'n' > > > Would it be possible to add it? > I am sure it will happe