Thanks for all !!!

Christophe BAL

2014-09-10 17:38 GMT+02:00 William A Stein <wst...@uw.edu>:

> On Wed, Sep 10, 2014 at 8:24 AM, Jeroen Demeyer <jdeme...@cage.ugent.be>
> wrote:
> > On 2014-09-10 17:18, William A Stein wrote:
> >>
> >> RR is pre-defined to be
> >> RealField(53), and overwriting that might cause confusion.
> >
> > How that? Nothing in Sage uses the "RR" global (and if it does, that's a
> > bug).
>
> Here is how it could cause confusion.
>
> (1) Christophe is using Sage interactively and writes RR=RealField(1000).
>
> (2) Later in the session he does somethin, e.g.,
> "random_matrix(RR,2)... etc." and cuts/pastes just that into an email
> or ask.sagemath question (etc.), but neglects to mention he redefined
> RR from the default.
>
> (3) Readers are confused.
>
> ... or .... (3) He pastes back something from before involving RR, and
> is himself confused.  Or even the Sage session he is using restarts
> for some reason (or he types reset() for some reason), and RR is then
> switched back to being RealField(53), and he is confused.
>
>
> Every confusion above, and many I'm probably missing, would be avoided by
> typing
>
> R1000 = RealField(1000)
>
> instead of
>
> RR = RealField(1000).
>
> Thus I recommend "R1000 = RealField(1000)" or even "R = RealField(1000)".
>
> William
>
>
> --
> William Stein
> Professor of Mathematics
> University of Washington
> http://wstein.org
> wst...@uw.edu
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to