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.tab is entered in the notebook, the N() method is the
only
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... a.tab is
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 happen. I put
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 add it?
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 extension of