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

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 at the end of the line and so is relatively easy to
>> locate the cursor there and add it.  With RR(), one has to wrap the
>> code in a function and then unwrap it when finished, which I have
>> found takes more time (and is more error prone) than just having to
>> deal with code that is all at the end of a line.
>><snip>
>
> William's response
>I would be happy to introduce a short-cut alias for numerical_approx,
>e.g., N() or n() or ??.  You can try out a few by doing this:
<snip>

First, I would like to report that I have been using the .n() method
fairly heavily since it was added to Sage and I find that it is able
to be added to code and removed very quickly.

I am currently using Sage for a Circuit Analysis class I am taking and
I find that I am needing to take frequent 'peeks' at the numerical
approximates of rational numbers.  I have discovered that adding and
removing N() for taking quick 'peeks' is not nearly as quick as adding
and removing an n() method would be, and I miss this.

Ted

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to