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...
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
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
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
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
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
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
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